GNU bug report logs - #77823
31.0.50; M-j regression since commit 4c6b1712a4d

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Tue, 15 Apr 2025 11:29:02 UTC

Severity: normal

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#77823: closed (31.0.50; M-j regression since commit 4c6b1712a4d)
Date: Tue, 15 Apr 2025 13:16:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 15 Apr 2025 16:15:11 +0300
with message-id <86bjsxh8gw.fsf <at> gnu.org>
and subject line Re: bug#77823: 31.0.50; M-j regression since commit 4c6b1712a4d
has caused the debbugs.gnu.org bug report #77823,
regarding 31.0.50; M-j regression since commit 4c6b1712a4d
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
77823: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77823
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Sean Whitton <spwhitton <at> spwhitton.name>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; M-j regression since commit 4c6b1712a4d
Date: Tue, 15 Apr 2025 19:27:44 +0800
X-debbugs-cc: eg642616 <at> gmail.com, eliz <at> gnu.org

1. emacs -q
2. C-x b foo RET
3. M-x emacs-lisp-mode RET
4. ;;;; hello M-j

Result is:

--8<---------------cut here---------------start------------->8---
;;;; hello|#
#|
--8<---------------cut here---------------end--------------->8---

but it should be

--8<---------------cut here---------------start------------->8---
;;;; hello
;;;;
--8<---------------cut here---------------end--------------->8---

My first thought is that since multiline comments of this style are not
valid Emacs Lisp, we should just set block-comment-start and
block-comment-end to nil for emacs-lisp-mode.

However, the recipe provided above works if you do 'M-x lisp-mode RET'
instead.

Even though Common Lisp supports these block comments, if you are
already writing a semicolon-delimited comment, then M-j should continue
it, rather than starting a #| |# comment.

-- 
Sean Whitton


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: eg642616 <at> gmail.com, 77823-done <at> debbugs.gnu.org
Subject: Re: bug#77823: 31.0.50; M-j regression since commit 4c6b1712a4d
Date: Tue, 15 Apr 2025 16:15:11 +0300
> Cc: eg642616 <at> gmail.com, eliz <at> gnu.org
> From: Sean Whitton <spwhitton <at> spwhitton.name>
> Date: Tue, 15 Apr 2025 19:27:44 +0800
> 
> 1. emacs -q
> 2. C-x b foo RET
> 3. M-x emacs-lisp-mode RET
> 4. ;;;; hello M-j
> 
> Result is:
> 
> --8<---------------cut here---------------start------------->8---
> ;;;; hello|#
> #|
> --8<---------------cut here---------------end--------------->8---
> 
> but it should be
> 
> --8<---------------cut here---------------start------------->8---
> ;;;; hello
> ;;;;
> --8<---------------cut here---------------end--------------->8---

This has been fixed by a followup changeset that Elijah sent.

So I'm closing this bug.


This bug report was last modified 24 days ago.

Previous Next


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