GNU bug report logs - #12583
latest org-mode changes exposes bug in `comment-forward' in newcomment.el

Previous Next

Package: emacs;

Reported by: Le Wang <l26wang <at> gmail.com>

Date: Sat, 6 Oct 2012 11:08:01 UTC

Severity: minor

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Le Wang <l26wang <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: latest org-mode changes exposes bug in `comment-forward' in
	newcomment.el
Date: Sat, 6 Oct 2012 19:07:21 +0800
Repro with Emacs head:

1. emacs -Q
2. create new org file
3. insert "# blah"
4. C-a
5. M-: (comment-forward 1)

The problem is that `comment-use-syntax' changed from 'undecided to
nil in org.el, which intern exposed a problem in `comment-forward':

It contains:

    (re-search-forward comment-end-skip nil 'move)

But comment-end-skip can validly be nil according to documentation.

-- 
Le




This bug report was last modified 12 years and 300 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.