From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics Date: Mon, 24 Aug 2015 16:20:21 -0400 Message-ID: References: <20150816160149.9416.80132@vcs.savannah.gnu.org> <55D1043C.3030909@yandex.ru> <55D15899.2070105@cs.ucla.edu> <55D1C9CE.2060407@yandex.ru> <55D20EDF.5070906@cs.ucla.edu> <55D223CA.4080109@yandex.ru> <55D22A1F.8040508@cs.ucla.edu> <55D22CF4.9030608@yandex.ru> <55D2747D.10809@cs.ucla.edu> <55D317A9.6000805@yandex.ru> <55D42210.9070703@cs.ucla.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: ger.gmane.org 1440447667 30200 80.91.229.3 (24 Aug 2015 20:21:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Aug 2015 20:21:07 +0000 (UTC) Cc: emacs-devel@gnu.org, dgutov@yandex.ru To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 24 22:20:56 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZTyEh-0004Ug-HD for ged-emacs-devel@m.gmane.org; Mon, 24 Aug 2015 22:20:55 +0200 Original-Received: from localhost ([::1]:56589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTyEh-0000cD-09 for ged-emacs-devel@m.gmane.org; Mon, 24 Aug 2015 16:20:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTyEb-0000Wy-5e for emacs-devel@gnu.org; Mon, 24 Aug 2015 16:20:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTyEX-00026n-9F for emacs-devel@gnu.org; Mon, 24 Aug 2015 16:20:48 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:57552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTyEB-0001VI-2y; Mon, 24 Aug 2015 16:20:23 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZTyE9-0003aI-Vq; Mon, 24 Aug 2015 16:20:22 -0400 In-reply-to: <55D42210.9070703@cs.ucla.edu> (message from Paul Eggert on Tue, 18 Aug 2015 23:28:32 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189130 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] We could let the first argument to 'format' be a symbol that specifies how to transform the format string. Then the second argument would be the format string. This feature would naturally propagate to 'message' and 'error'. So you would write (format 'ascii-quotes "`add-to-list' can't use var `%s'; use `push' or `cl-pushnew'" sym) and it would convert the quotes according to the display. Or (format 'single-quotes "'add-to-list' can't use var '%s'; use 'push' or 'cl-pushnew'" sym) and it would convert the quotes according to the display, treating odd-numbered singlequotes as open-quotes. You can take your choice, because either one will DTRT on all displays. The specified symbol's 'format-transform' property should be a function that makes the change. This way, many such transformations can be implemented. A list of transformation symbols would mean to make several of them. This avoids all the disadvantages you were talking about. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html.