all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Taku Tekato <takutekato2@gmail.com>
Cc: 55213@debbugs.gnu.org
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	[thread overview]
Message-ID: <87tua9arvt.fsf@gnus.org> (raw)
In-Reply-To: <c6a0b27a-44c6-661a-9a7a-33bcd939f53b@gmail.com> (Taku Tekato's message of "Mon, 2 May 2022 01:28:00 +0700")

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	other threads:[~2022-05-01 21:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-01 18:28 bug#55213: 29.0.50; define-minor-mode/easy-mmode--mode-docstring doesn't handle empty DOC ("") Taku Tekato
2022-05-01 21:02 ` Lars Ingebrigtsen [this message]
2022-05-01 21:05   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tua9arvt.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=55213@debbugs.gnu.org \
    --cc=takutekato2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.