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: Thu, 8 Jun 2017 13:17:39 -0700 Organization: UCLA Computer Science Department Message-ID: References: <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> <20170608173400.GA2662@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 1496953096 18107 195.159.176.226 (8 Jun 2017 20:18:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Jun 2017 20:18:16 +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 22:18: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 1dJ3sd-0004AY-9t for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jun 2017 22:18:07 +0200 Original-Received: from localhost ([::1]:51331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ3si-0005kN-KK for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jun 2017 16:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ3sb-0005jF-Ax for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 16:18:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJ3sY-0008PJ-6P for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 16:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJ3sY-0008PB-3E for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 16:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dJ3sX-0002qT-Up for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 16:18: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: Thu, 08 Jun 2017 20:18: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.149695306910913 (code B ref 23425); Thu, 08 Jun 2017 20:18:01 +0000 Original-Received: (at 23425) by debbugs.gnu.org; 8 Jun 2017 20:17:49 +0000 Original-Received: from localhost ([127.0.0.1]:35500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ3sL-0002pw-IK for submit@debbugs.gnu.org; Thu, 08 Jun 2017 16:17:49 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ3sJ-0002pd-IO for 23425@debbugs.gnu.org; Thu, 08 Jun 2017 16:17:48 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 919F31600D4; Thu, 8 Jun 2017 13:17:41 -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 Bym2bmRRJIFV; Thu, 8 Jun 2017 13:17:40 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B0DEA1600D5; Thu, 8 Jun 2017 13:17:40 -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 zFjGlHhFwplJ; Thu, 8 Jun 2017 13:17:40 -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 5113B1600D4; Thu, 8 Jun 2017 13:17:40 -0700 (PDT) In-Reply-To: <20170608173400.GA2662@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:133409 Archived-At: On 06/08/2017 10:34 AM, Alan Mackenzie wrote: > YUCK! So we'd have both message and memo doing basically the=20 > samething, with different interfaces. If it=E2=80=99s the API difference you object to, it=E2=80=99d be OK for = the two=20 functions to have the same signature. It=E2=80=99s no big deal. > you've got two functions which are so close to each other, one single f= unction would be better..... If having one single function would mean changing hundreds or thousands=20 of callers, then there is an important sense in which one single=20 function would not be better. > NOBODY will write (message "30%-50% done") Admittedly the example was contrived, but I thought it was cool how one=20 can use % to delete parts of messages, something that is much worse than=20 quote restyling. More commonly people compute a message string S=20 somewhere else and then call (message S), and that does have real=20 problems with %, particularly in situations where an adversary has some=20 control over the contents of S. > >> It=E2=80=99s not intended to be =E2=80=9Csurreptitious=E2=80=9D or =E2= =80=9Chidden=E2=80=9D or anything like that, .... > That may be the case, but it _seems_ very much like it. If the intenti= on had actually been to be surreptitious, what more could have been done = than was actually done? Lots. We discussed and rejected more-=E2=80=9Csurreptitious=E2=80=9D opti= ons back before=20 this stuff was installed. For example, we discussed changing =E2=80=98for= mat=E2=80=99 to=20 behave like =E2=80=98format-message=E2=80=99 does now.