guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Broken lisp-fill-paragraph post Emacs 28 update


From: Ricardo Wurmus
Subject: Re: Broken lisp-fill-paragraph post Emacs 28 update
Date: Sat, 09 Jul 2022 08:53:37 +0200
User-agent: mu4e 1.6.11; emacs 28.1

Hi Maxim,

> The problem was introduced in commit 9bf367e1848, which aimed to improve
> the handling of Elisp docstrings.  To revert to the old version (the one
> that shipped with Emacs 27), you can put this in your .emacs:
>
> (require 'lisp-mode)
> (defun lisp-fill-paragraph (&optional justify)
>   (interactive "P")
>   (or (fill-comment-paragraph justify)
>       (let ((paragraph-start
>              (concat paragraph-start
>                      "\\|\\s-*\\([(;\"]\\|\\s-:\\|`(\\|#'(\\)"))
>           (paragraph-separate
>            (concat paragraph-separate "\\|\\s-*\".*[,\\.]$"))
>             (fill-column (if (and (integerp emacs-lisp-docstring-fill-column)
>                                   (derived-mode-p 'emacs-lisp-mode))
>                              emacs-lisp-docstring-fill-column
>                            fill-column)))
>       (fill-paragraph justify))
>       ;; Never return nil.
>       t))
>
> For more details, you can refer to the (now closed) upstream bug report
> here [0].
>
> [0]  https://issues.guix.gnu.org/56197

Oof, that’s a frustrating discussion.  Interesting how it took just
*one* comment to dismiss the new bug report with “the votes are in” :-/

Thanks for the procedure definition above.  Do you think we should
enable this by default in the guix-devel minor mode?

-- 
Ricardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]