[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55209: 29.0.50; Let easy-mmode--mode-docstring handle empty DOC
From: |
Lars Ingebrigtsen |
Subject: |
bug#55209: 29.0.50; Let easy-mmode--mode-docstring handle empty DOC |
Date: |
Sun, 01 May 2022 20:49:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
daanturo <daanturo@gmail.com> writes:
> * lisp/emacs-lisp/easy-mmode.el (easy-mmode--mode-docstring): handle
> empty DOC case.
[...]
> ;; Compose a new doc string.
> (with-temp-buffer
> (let ((lines (if doc
> - (string-lines doc)
> + (or (string-lines doc)
> + '(""))
Is this patch against an old checkout? The code currently looks like
this:
;; 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)))))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no