From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: literal newlines in @result{} strings Date: Tue, 30 Aug 2005 18:32:54 +0300 Organization: JURTA Message-ID: <87k6i38mqg.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125417918 31603 80.91.229.2 (30 Aug 2005 16:05:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2005 16:05:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 18:05:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EA8ZW-0007B1-GQ for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2005 18:02:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EA8de-0006Gi-LC for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2005 12:07:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EA8Yk-0004ht-5G for emacs-devel@gnu.org; Tue, 30 Aug 2005 12:02:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EA8Yg-0004hI-T2 for emacs-devel@gnu.org; Tue, 30 Aug 2005 12:02:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EA8YH-0004HT-UL for emacs-devel@gnu.org; Tue, 30 Aug 2005 12:01:34 -0400 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EA8Aj-0004V7-1R; Tue, 30 Aug 2005 11:37:13 -0400 Original-Received: from mail.neti.ee (80-235-43-170-dsl.mus.estpak.ee [80.235.43.170]) by Relayhost2.neti.ee (Postfix) with ESMTP id 330991F72; Tue, 30 Aug 2005 18:34:34 +0300 (EEST) Original-To: Thien-Thi Nguyen In-Reply-To: (Thien-Thi Nguyen's message of "29 Aug 2005 19:33:14 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42507 Archived-At: > 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/