From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#23425: master branch: `message' wrongly corrupts ' to curly quote. Date: Wed, 7 Jun 2017 16:28:28 -0700 Organization: UCLA Computer Science Department Message-ID: References: <20170531212452.GA3789@acm.fritz.box> <07bf5f9d-e8cd-a4d9-1843-b488bfe0b92c@cs.ucla.edu> <20170602210209.GA3570@acm.fritz.box> <11c0adfb-7fdd-8d28-1a47-869e3e7043ea@cs.ucla.edu> <20170603205331.GA2130@acm.fritz.box> <20170605162737.GA30946@acm.fritz.box> <20170605203753.GB30946@acm.fritz.box> <20170607191344.GB2430@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1496878152 18918 195.159.176.226 (7 Jun 2017 23:29:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Jun 2017 23:29:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 Cc: 23425@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 08 01:29:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIkNv-0004aB-ED for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jun 2017 01:29:07 +0200 Original-Received: from localhost ([::1]:46489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIkO0-0006qS-OD for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jun 2017 19:29:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIkNt-0006qN-Hb for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 19:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIkNq-0005YK-BB for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 19:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59333) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dIkNq-0005YA-7t for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 19:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dIkNp-0006LY-Ra for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 19:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jun 2017 23:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23425 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23425-submit@debbugs.gnu.org id=B23425.149687811824366 (code B ref 23425); Wed, 07 Jun 2017 23:29:01 +0000 Original-Received: (at 23425) by debbugs.gnu.org; 7 Jun 2017 23:28:38 +0000 Original-Received: from localhost ([127.0.0.1]:33777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIkNR-0006Kw-TJ for submit@debbugs.gnu.org; Wed, 07 Jun 2017 19:28:38 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:35752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIkNQ-0006Kj-6I for 23425@debbugs.gnu.org; Wed, 07 Jun 2017 19:28:36 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1904916008D; Wed, 7 Jun 2017 16:28:30 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Lg-i6NnjsVUY; Wed, 7 Jun 2017 16:28:29 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 53C821600A1; Wed, 7 Jun 2017 16:28:29 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1ANhU8NVWMd9; Wed, 7 Jun 2017 16:28:29 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id ED43116008D; Wed, 7 Jun 2017 16:28:28 -0700 (PDT) In-Reply-To: <20170607191344.GB2430@acm.fritz.box> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133387 Archived-At: [dropping emacs-devel on Drew's request.] On 06/07/2017 12:13 PM, Alan Mackenzie wrote: > What I am arguing against is being required to use _two_ format=20 > strings in one message invocation, as (message "%s" (format "..." ...))= . We could address this problem by defining a new function (=E2=80=98memo=E2= =80=99, say),=20 that acts like =E2=80=98message=E2=80=99 except that it takes just one ar= gument and does=20 no format processing. That way, instead of writing (message "%s" (format=20 FMT A B C)), one could write (memo (format FMT A B C)), thus avoiding=20 the need for two format strings. > _Nobody_ will have the slightest difficulty with % in message, because=20 > it stands out visually. I don=E2=80=99t see what =E2=80=9Cstanding out visually=E2=80=9D has to d= o it. If one naively=20 expects (message "30%-50% done") to display "30%-50% done", one will be=20 surprised/disappointed/angry/whatever when Emacs displays only "30% done"= . > It may be documented, but it's still surreptitious. It seems intended = by its writer to be as hidden as possible It=E2=80=99s not intended to be =E2=80=9Csurreptitious=E2=80=9D or =E2=80= =9Chidden=E2=80=9D or anything like=20 that, and we should fix any part of the documentation that suggests=20 otherwise. It would be helpful to point out any specific parts of the=20 documentation needing improvement in this area.