From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: literal newlines in @result{} strings
Date: Tue, 30 Aug 2005 18:32:54 +0300 [thread overview]
Message-ID: <87k6i38mqg.fsf@jurta.org> (raw)
In-Reply-To: <jkr7ccfhdx.fsf@glug.org> (Thien-Thi Nguyen's message of "29 Aug 2005 19:33:14 -0400")
> for `thing-at-point' i see:
>
> @result{} "Gentlemen may cry ``Peace! Peace!,''\n"
>
> which has the `\n' instead of a literal newline. i'd like to change the
> former two to resemble the latter. any objections? any reason to go in
> the opposite direction?
Neither of these functions returns `\n'. And `\n' is not an
alternative for a literal newline. For differences, please see
examples of newlines in the documentation of `print-escape-newlines'
in (info "(elisp)Output Variables"). It demonstrates that the
difference whether a function returns or prints a literal newline or
`\n' is preserved in the Emacs Lisp Reference Manual.
Since `thing-at-point' actually returns a literal newline instead of
`\n', it would be more correct to replace `\n' with a literal newline
in its example.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2005-08-30 15:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-29 23:33 literal newlines in @result{} strings Thien-Thi Nguyen
2005-08-30 10:30 ` Richard M. Stallman
2005-08-30 15:32 ` Juri Linkov [this message]
2005-08-31 14:35 ` Richard M. Stallman
2005-08-31 16:27 ` Juri Linkov
2005-09-01 7:11 ` Thien-Thi Nguyen
2005-09-01 15:52 ` Richard M. Stallman
2005-09-01 19:32 ` Juri Linkov
2005-09-03 1:42 ` Richard M. 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=87k6i38mqg.fsf@jurta.org \
--to=juri@jurta.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).