GNU bug report logs - #77295
30.1.50; (comment-beginning) returns wrong, or errors, in org-mode

Previous Next

Package: emacs;

Reported by: Aaron Zeng <azeng <at> janestreet.com>

Date: Wed, 26 Mar 2025 20:21:02 UTC

Severity: normal

Found in version 30.1.50

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: app-emacs-dev <at> janestreet.com, azeng <at> janestreet.com, 77295 <at> debbugs.gnu.org
Subject: bug#77295: 30.1.50; (comment-beginning) returns wrong, or errors, in org-mode
Date: Wed, 09 Apr 2025 15:18:48 -0400
>> >> I'm reporting this bug to Emacs rather than the Org mode mailing list
>> >> because the following code from org-setup-comments-handling is
>> >> actually enough to trigger the return value bug in a fundamental-mode
>> >> buffer (but not the wrong-type-argument error), so it seems like it
>> >> might be a bug in newcomment.el:
>> >> 
>> >>   (setq-local comment-use-syntax nil)
>> >>   (setq-local comment-start "# ")
>> >>   (setq-local comment-start-skip "^\\s-*#\\(?: \\|$\\)")
>> >
>> > Stefan, do you agree this is a problem in newcomment.el?
>> 
>> Yes.
>
> Any ideas or suggestions for how to fix that?

Haven't touched the code is too long, so no.  Can't think offhand of
a reason why it should be hard to fix, tho.


        Stefan





This bug report was last modified 66 days ago.

Previous Next


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