Doom-emacs: `M-RET` in org ordered list does not increment number

Created on 31 Jan 2018  ·  6Comments  ·  Source: hlissner/doom-emacs

Observed behavior

Given an ordered list on org:

scenario 1

1. Item one
2. Item 2 **

(** represents my cursor position)

when I press M-RET, I see this:

1. Item one
2. Item 2
2. **

scenario 2

1. Item one **
2. Item 2

after M-RET, I see this:

1. Item one
1. **
2. Item 2

Expected behavior

I expect the numbers to automatically update:

1. Item one **
2. Item 2

after M-RET, I see this:

1. Item one
2. **
3. Item 2

Steps to reproduce

check observed behaviour above

System information

osx high sierra 10.13.2


Click to expand

❯ env DEBUG=1 make doctor
DOOM Doctor
Running Emacs v26.0.91, commit 377352b4e64fa83b26fddbc77efb02ccd7be606e

shell: /usr/local/bin/fish
Compiled with:
  JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB
  TOOLKIT_SCROLL_BARS NS MODULES LCMS2
uname -a:
  Darwin aru 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST
  2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64

Attempt to load DOOM: success! Loaded v2.0.9
Revision 377352b4e64fa83b26fddbc77efb02ccd7be606e

----

test-emacs
test-windows
test-fonts
Found font material-design-icons.ttf
Found font weathericons.ttf
Found font octicons.ttf
Found font fontawesome.ttf
Found font file-icons.ttf
Found font all-the-icons.ttf
test-gnutls
test-tls
Validated https://elpa.gnu.org
Validated https://melpa.org
Successfully rejected https://self-signed.badssl.com
Successfully rejected https://wrong.host.badssl.com/
test-tar

====
Have some debug information:

  + enabled modules:
    +eval                  +evil                  +file-templates
    +jump                  +services              +snippets
    +spellcheck            +version-control       +workspaces
    +company               +ivy                   +doom
    +doom-dashboard        +doom-modeline         +doom-quit
    +hl-todo               +nav-flash             +evil-goggles
    +window-select         +dired                 +electric-indent
    +imenu                 +impatient-mode        +macos
    +make                  +neotree               +data
    +emacs-lisp            +javascript            +latex
    +ledger                +lua                   +markdown
    +org                   +python                +rest
    +ruby                  +sh                    +web
    +default               +aru

  + enabled packages:
    ace-link-20180101.1328             ace-window-20180123.1111
    adaptive-wrap-0.5.1                all-the-icons-20180125.757
    anaconda-mode-20171223.1118        auctex-12.1.0
    auto-compile-20180111.436          auto-yasnippet-20160925.225
    avy-20171230.220                   coffee-mode-20170324.240
    command-log-mode-20160412.2147     company-20180123.1315
    company-anaconda-20171222.342      company-auctex-20161025.24
    company-dict-20160528.53           company-inf-ruby-20140805.1354
    company-lua-20171108.1506          company-quickhelp-20170429.1052
    company-restclient-20151202.401    company-shell-20170517.2241
    company-statistics-20170210.1133   company-tern-20161004.1147
    company-web-20171111.1049          counsel-20180114.1336
    counsel-css-20170304.2047          counsel-projectile-20180105.632
    dired-k-20170313.803               dockerfile-mode-20171124.1647
    doom-themes-20180123.2357          editorconfig-20171208.2036
    eldoc-eval-20150512.506            emacs-snippets-20180125.38
    emmet-mode-20161113.2158           eslintd-fix-20171128.453
    evil-20180126.1159                 evil-anzu-20170123.2318
    evil-args-20140329.1429            evil-commentary-20170413.751
    evil-easymotion-20180113.2254      evil-embrace-20160519.1129
    evil-escape-20170913.618           evil-exchange-20170510.1959
    evil-goggles-20180116.653          evil-indent-plus-20151109.1106
    evil-ledger-20170905.519           evil-matchit-20171127.245
    evil-mc-20170716.1806              evil-multiedit-20171217.2317
    evil-numbers-20140606.551          evil-snipe-20170903.603
    evil-surround-20180102.601         evil-textobj-anyblock-20170905.1207
    evil-vimish-fold-20171030.451      evil-visualstar-20160222.1648
    exec-path-from-shell-20170508.4    expand-region-20171217.2125
    flyspell-correct-20171205.940      flyspell-correct-ivy-20161031.1134
    fringe-helper-20140620.1409        git-gutter-fringe-20170112.2133
    git-link-20170603.1026             git-timemachine-20170325.220
    gitconfig-mode-20170627.854        gitignore-mode-20160319.302
    haml-mode-20170923.2153            helpful-20180120.355
    highlight-indentation-20171218.137 highlight-numbers-20170905.342
    highlight-quoted-20140916.1122     hl-todo-20170621.1257
    htmlize-20171017.141               hydra-20171120.1042
    imenu-anywhere-20170805.1155       imenu-list-20171120.1255
    impatient-mode-20180124.1828       inf-ruby-20180121.2300
    ivy-20180124.1127                  ivy-bibtex-20180124.338
    ivy-hydra-20171130.1143            ivy-rich-20180109.1933
    js2-mode-20171224.1833             js2-refactor-20180118.251
    json-mode-20170719.2205            ledger-mode-20180126.1808
    lua-mode-20180104.626              macrostep-20161120.1306
    magit-20180126.1234                makefile-executor-20171017.438
    markdown-mode-20180124.138         markdown-toc-20170711.1249
    moonscript-20170831.1526           nav-flash-20140508.1341
    neotree-20170522.758               nodejs-repl-20170722.443
    nose-20140520.948                  org-bullets-20170210.1610
    org-download-20171116.1045         org-plus-contrib-20180129
    osx-clipboard-20141012.17          overseer-20170207.2241
    ox-pandoc-20171107.341             pcre2el-20161120.1303
    persp-mode-20180104.843            pip-requirements-20171109.1439
    prodigy-20171121.512               projectile-20180128.655
    pug-mode-20171208.2029             quickrun-20170222.1715
    rainbow-delimiters-20170929.432    rainbow-mode-0.13
    rake-20170921.801                  restclient-20171203.1248
    rjsx-mode-20171029.1156            rspec-mode-20171025.1606
    ruby-refactor-20160214.850         sass-mode-20161006.2326
    shackle-20171209.1401              shrink-path-20170812.1947
    skewer-mode-20170730.1241          slime-20180126.1033
    smart-forward-20140430.13          smartparens-20180126.1611
    smex-20151212.1409                 solaire-mode-20171209.1350
    stylus-mode-20150313.812           swiper-20180124.1142
    tern-20170925.1333                 toc-org-20171009.156
    toml-mode-20161107.1000            undo-tree-20170706.246
    vimrc-mode-20170814.1837           visual-fill-column-20170502.1300
    web-beautify-20161115.1447         web-mode-20180120.1009
    wgrep-20141016.1656                which-key-20180108.1930
    yaml-mode-20170727.1531            yard-mode-20170817.537
    yasnippet-20180124.1445

  + byte-compiled files:
    n/a

  + exec-path:
    /Users/aru/.bin/
    /Users/aru/.bin/
    /Users/aru/.bin/
    /usr/local/bin/
    /usr/bin/
    /bin/
    /usr/sbin/
    /sbin/
    /Library/TeX/texbin/
    /usr/local/Cellar/emacs-plus/26.0.91/libexec/emacs/26.0.91/x86_64-apple-darwin17.3.0/

  + PATH:
    /Users/aru/.bin
    /Users/aru/.bin
    /Users/aru/.bin
    /usr/local/bin
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /Library/TeX/texbin

Everything seems fine, happy Emacs’ing!


I am not sure if this is happening because of doom-emacs or if any additional settings/plugin is required? I was using spacemacs before this and this seemed to be the default behaviour there.

Please let me know if you require any other information, thanks for maintaining a lovely config! 😄

bug resolved

All 6 comments

This is certainly a bug. I'll look into it within the next day or two.

Perhaps I can help? I am looking for ways to contribute back and this will be a good opportunity to learn some elisp. If you can give me some pointers on how to get started, I will be more than happy to dig into it.

Alright, just pushed a fix. Let me know if it doesn't resolve your issue!

Perhaps I can help?

Thanks! I appreciate the offer. I (try to) post my TODOs for Doom in https://github.com/hlissner/doom-emacs/projects~~ https://trello.com/b/vgzmRE65/development-roadmap -- anything in the "approved" columns there are fair game (or anything has hasn't been assigned to someone).

If you haven't already, come join us on Discord, if you'd like to bounce ideas off me.

There's also a big release coming up this weekend; the documentation (and contributing guidelines) will be rewritten and more accessible. If you don't mind waiting, I'll have more resources available for willing contributors then.

@hlissner I can confirm that this bug is fixed however in the process of testing I noticed that on develop branch SPC is not recognized as leader key anymore! (when I press SPC the cursor just moves forward)

@arumoy-shome you've already gotten your answer on discord, but I'll include it here for posterity:

As of https://github.com/hlissner/doom-emacs/commit/26d1dd7991344e02b70e151d620a881fa7a64640, the keybindings, evil commands and snippets library provided by private/default are no longer enabled by default. You'll need to add the +bindings +snippets and +evil-commands module flags to its entry in ~/.emacs.d/init.el to restore them:

(doom! ; [...] 
       :private 
       (default +bindings +snippets +evil-commands)
       ; [...]
       )

Thanks Henrik, will that be in the documentation for the new release?

On Fri, Feb 2, 2018 at 7:34 PM Henrik Lissner notifications@github.com
wrote:

@arumoy-shome https://github.com/arumoy-shome you've already gotten
your answer on discord, but I'll include it here for posterity:

As of 26d1dd7
https://github.com/hlissner/doom-emacs/commit/26d1dd7991344e02b70e151d620a881fa7a64640,
the keybindings, evil commands and snippets library provided by
private/default are no longer enabled by default. You'll need to add the
+bindings +snippets and +evil-commands module flags to its entry in
~/.emacs.d/init.el to restore them:

(doom! ; [...]
:private
(default +bindings +snippets +evil-commands)
; [...]
)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/hlissner/doom-emacs/issues/390#issuecomment-362684048,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABRjpWS3aJWv9NBcKbT1JASaWWY9i2qks5tQ2M2gaJpZM4R0Gfw
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zeronone picture zeronone  ·  23Comments

Ruin0x11 picture Ruin0x11  ·  27Comments

pmercatoris picture pmercatoris  ·  30Comments

HaoZeke picture HaoZeke  ·  28Comments

ghost picture ghost  ·  24Comments