reopen 46364 ! tags 46364 - moreinfo tags 46364 + confirmed found 46364 28.0.50 quit Lars Ingebrigtsen writes: > Boruch Baum writes: > >> In emacs 26, lm-commentary functions fine. >> In the emacs-snapshot that I'm using from ~2020-09, it does not >> correctly indent sub headings. >> >> This was observed for the lisp file[1], as processed by MELPA[2], and >> reproduced by me locally. I don't know what version MELPA is using. > > I'm not sure how Melpa is involved here? Is the problem that > (lm-commentary "/that/file") doesn't return the correct result on some > particular file? If so, can you include the file here in the bug > tracker, as well as instructions for how to reproduce the bug? I attach the file in question, diredc.el. Here's the recipe: 0. emacs -Q 1. (require 'lisp-mnt) C-j 2. (lm-commentary "/path/to/diredc.el") C-j In Emacs 27, the resulting string includes leading semicolons and indentation. In Emacs 28, it doesn't. Version info follows my signature. Thanks, -- Basil In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2021-02-07 built on tia Repository revision: 7c5938ad7d8884d03471e2395937e11611faadb9 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Debian GNU/Linux bullseye/sid Configured using: 'configure 'CC=ccache gcc' 'CFLAGS=-O2 -march=native' --config-cache --prefix=/home/blc/.local --enable-checking=structs --with-x-toolkit=lucid --with-file-notification=yes --with-x' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB In GNU Emacs 27.1.91 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2021-02-06 built on tia Repository revision: 8ad48a0bdd0806fe3bfbabf00c845381d9107cb0 Repository branch: emacs-27 Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Debian GNU/Linux bullseye/sid Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [2 times] Configured using: 'configure 'CC=ccache gcc' 'CFLAGS=-O0 -g3 -ggdb -gdwarf-4' --config-cache --prefix=/home/blc/.local --program-suffix=-27 --enable-checking=yes,glyphs --enable-check-lisp-object-type --with-x-toolkit=lucid --with-file-notification=yes --with-x --with-cairo' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix