bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#55213: 29.0.50; define-minor-mode/easy-mmode--mode-docstring doesn't


From: Lars Ingebrigtsen
Subject: bug#55213: 29.0.50; define-minor-mode/easy-mmode--mode-docstring doesn't handle empty DOC ("")
Date: Sun, 01 May 2022 23:02:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Taku Tekato <takutekato2@gmail.com> writes:

> easy-mmode--mode-docstring now calls `string-lines` on DOC and processes
> by poping lines from the result.
>
> Therefore the error `(wrong-type-argument char-or-string-p nil)` breaks
> various packages who define minor modes with empty docstrings.

easy-mmode--mode-docstring does:

    ;; Compose a new doc string.
    (with-temp-buffer
      (let ((lines (if doc
                       (string-lines doc)
                     (list (format "Toggle %s on or off." mode-pretty-name)))))

Perhaps you have some old .elc files lying around?  Try saying "make
bootstrap".

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





reply via email to

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