GNU bug report logs - #49849
27.2; M-j broken when comment-auto-fill-only-comments is non-nil

Previous Next

Package: emacs;

Reported by: Peter Jones <pjones <at> devalot.com>

Date: Tue, 3 Aug 2021 21:30:02 UTC

Severity: normal

Found in version 27.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49849 in the body.
You can then email your comments to 49849 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#49849; Package emacs. (Tue, 03 Aug 2021 21:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Jones <pjones <at> devalot.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 03 Aug 2021 21:30:02 GMT) Full text and rfc822 format available.

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

From: Peter Jones <pjones <at> devalot.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.2; M-j broken when comment-auto-fill-only-comments is non-nil
Date: Tue, 03 Aug 2021 09:22:24 -0700
When inside a comment, M-j will insert a newline then the
`comment-start' marker so you can continue writing a comment.  However,
if `comment-auto-fill-only-comments' is non-nil, M-j will insert a
newline but not `comment-start'.

To reproduce, in a fresh emacs -Q:

(progn
  (switch-to-buffer "*scratch*")
  (end-of-buffer)
  (insert "; ") ; one or more spaces after comment-start
  (setq comment-auto-fill-only-comments t)
  (default-indent-new-line) ; M-j
  (beginning-of-line)
  (cl-assert (looking-at-p ";")))

This assertion fails.  However, if you set
`comment-auto-fill-only-comments' to nil it will succeeded.

This behavior is exhibited regardless of the major mode.


In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.16.0)
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: NixOS 21.05 (Okapi)

Configured using:
 'configure
 --prefix=/nix/store/mf19iryz00nbykkfb8whyhx6ia7mb39y-emacs-27.2
 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft
 --with-cairo'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON
PDUMPER GMP

Major mode: Emacs-Lisp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49849; Package emacs. (Wed, 04 Aug 2021 08:04:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Peter Jones <pjones <at> devalot.com>
Cc: 49849 <at> debbugs.gnu.org
Subject: Re: bug#49849: 27.2; M-j broken when
 comment-auto-fill-only-comments is non-nil
Date: Wed, 04 Aug 2021 10:03:43 +0200
Peter Jones <pjones <at> devalot.com> writes:

> When inside a comment, M-j will insert a newline then the
> `comment-start' marker so you can continue writing a comment.  However,
> if `comment-auto-fill-only-comments' is non-nil, M-j will insert a
> newline but not `comment-start'.

The `M-j' command is now fixed in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 49849 <at> debbugs.gnu.org and Peter Jones <pjones <at> devalot.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 04 Aug 2021 08:04:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 01 Sep 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 293 days ago.

Previous Next


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