summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp.el
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-01-21 11:50:44 +0900
committerEli Zaretskii <eliz@gnu.org>2025-01-25 12:17:32 +0200
commit192355e54af91ad6e7d1343071a749e1ced29400 (patch)
treedd4676867cd19ed6f4c6266b993c86f5ea25454f /lisp/emacs-lisp/lisp.el
parentd4ca688abefa90cf3e54add036b32c06b7da6363 (diff)
downloademacs-192355e54af91ad6e7d1343071a749e1ced29400.tar.gz
emacs-192355e54af91ad6e7d1343071a749e1ced29400.tar.bz2
emacs-192355e54af91ad6e7d1343071a749e1ced29400.zip
lisp: Introduce a `lisp-fill-paragraph-as-displayed' variable.
Starting with Emacs 28, filling strings now happens in a narrowed scope, and looses the leading indentation and can cause the string to extend past the fill-column value. Introduce `lisp-fill-paragraph-as-displayed' as a new variable allowing opting out of this new behavior in specific scenarios (such as when using the Scheme major mode, say). * lisp/emacs-lisp/lisp-mode.el (lisp-fill-paragraph-as-displayed): New variable. (lisp-fill-paragraph): Honor it, by avoiding the logic narrow to strings before applying fill-paragraph. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-fill-paragraph-respects-fill-column): Test it. (lisp-fill-paragraph-docstring-boundaries): New test, as a safeguard to avoid regressions. Fixes: bug#56197
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions