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


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: app-emacs-dev <at> janestreet.com, Aaron Zeng <azeng <at> janestreet.com>,
 77295 <at> debbugs.gnu.org
Subject: Re: bug#77295: 30.1.50; (comment-beginning) returns wrong, or
 errors, in org-mode
Date: Thu, 27 Mar 2025 09:03:16 -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.


        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.