* bug#49849: 27.2; M-j broken when comment-auto-fill-only-comments is non-nil
@ 2021-08-03 16:22 Peter Jones via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-04 8:03 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Peter Jones via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-08-03 16:22 UTC (permalink / raw)
To: 49849
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#49849: 27.2; M-j broken when comment-auto-fill-only-comments is non-nil
2021-08-03 16:22 bug#49849: 27.2; M-j broken when comment-auto-fill-only-comments is non-nil Peter Jones via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-08-04 8:03 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-04 8:03 UTC (permalink / raw)
To: Peter Jones; +Cc: 49849
Peter Jones <pjones@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-04 8:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 16:22 bug#49849: 27.2; M-j broken when comment-auto-fill-only-comments is non-nil Peter Jones via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-04 8:03 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).