From: David Kastrup <dak@gnu.org>
Cc: emacs- devel <emacs-devel@gnu.org>
Subject: Re: message's docstring
Date: Sun, 12 Nov 2006 11:16:22 +0100 [thread overview]
Message-ID: <85r6w9ynpl.fsf@lola.goethe.zz> (raw)
In-Reply-To: <f7ccd24b0611111611q1a6767b5if0b1a0d21f8b057c@mail.gmail.com> (Juanma Barranquero's message of "Sun\, 12 Nov 2006 01\:11\:02 +0100")
"Juanma Barranquero" <lekktu@gmail.com> writes:
> Two slight inconsistencies/problems in message's docstring:
>
> 1) It says:
>
> DEFUN ("message", Fmessage, Smessage, 1, MANY, 0,
> doc: /* Print a one-line message at the bottom of the screen.
>
> Why "a one-line message"? There's nothing stopping
>
> (message "line 1\nline 2")
>
> for working, or even
>
> (message "%s\n%s" "line1" "line2")
>
> 2) The docstring doesn't mention that the message is returned.
> However, several modules do rely on it (files.el, for example, has
> "(y-or-n-p (message ...))".
That sounds nonsensical. Shouldn't this be
(y-or-n-p (format ...))
instead?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2006-11-12 10:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-12 0:11 message's docstring Juanma Barranquero
2006-11-12 10:16 ` David Kastrup [this message]
2006-11-12 12:08 ` Juanma Barranquero
2006-11-12 12:17 ` David Kastrup
2006-11-12 12:20 ` Juanma Barranquero
2006-11-12 12:29 ` David Kastrup
2006-11-12 12:42 ` Juanma Barranquero
2006-11-13 9:43 ` Richard Stallman
2006-11-13 18:36 ` Kevin Rodgers
2006-11-13 19:04 ` Juanma Barranquero
2006-11-12 21:12 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85r6w9ynpl.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).