redguardtoo / evil-nerd-commenter

Comment/uncomment lines efficiently. Like Nerd Commenter in Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

evilnc-comment-or-uncomment-lines fail to uncomment for autoconf

hongxuchen opened this issue · comments

It does work when I comment some line, and it always adds dnl to the begin of the line. However It fails to uncomment, neither # nor dnl of the commented line.

FYI, the minor modes that are activated is as belows:

Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption Auto-Fill
Autopair Autopair-Global Column-Number Desktop-Save Display-Time Evil Evil-Local
File-Name-Shadow Font-Lock Global-Auto-Complete Global-Auto-Revert
Global-Font-Lock Global-Linum Global-Pointback Global-Undo-Tree
Goto-Address-Prog Ido-Everywhere Ido-Ubiquitous Line-Number Linum Mouse-Wheel
Openwith Pointback Recentf Shell-Dirtrack Show-Paren Tooltip Transient-Mark
Undo-Tree Yas Yas-Global

Thanks,
Hongxu Chen

yes, I can reproduce it. it works on the first line of configure.ac only. wierd.

a bug in autoconf-mode, I already sent the bug report to emacs maintainer

I just found the comment/uncomment keymaps in Emacs is a bit confusing. According to this page, M-; and C-u M-; can comment/uncomment a line, but actually I tried so many file types but found that the uncomment behavior is not right. BTW, would please also post the link address so that I can also see the bug report?Thanks.

The bug report is sent by email. So you can find my email on their mailing list (http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-03/msg00891.html). comment-dwim is the default command when you press M-;. My plugin just replace that command because as you can find out by yourself, comment-dwim is crap.

Looks emacs developers are busy to fix other bugs. I even contact the author of autoconf.el.
Anyway, here is my workaround. See d3581dc , at least evil-nerd-commenter is functional now even the official Emacs doesn't work. Another reason to stick to my plugin? ;)

chen bin notifications@github.com writes:
That's really nice, thanks.

Looks emacs developers are busy to fix other bugs. I even contact the author of
autoconf.el.
Anyway, here is my workaround. See d3581dc , at least evil-nerd-commenter is
functional now even the official Emacs doesn't work. Another reason to stick to
my plugin? ;)


Reply to this email directly or view it on GitHub.