From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master c4151eb: Improve the optional translation of quotes Date: Mon, 22 Jun 2015 18:09:22 +0300 Message-ID: <55882522.3030305@yandex.ru> References: <20150619073901.5856.32718@vcs.savannah.gnu.org> <55870BD2.6040706@yandex.ru> <558716E9.30903@cs.ucla.edu> <55871721.5060709@yandex.ru> <55871883.7080600@cs.ucla.edu> <55871E96.2020506@yandex.ru> <558722C0.5040702@cs.ucla.edu> <55874E55.4020501@yandex.ru> <5587B029.5000503@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1434985795 28537 80.91.229.3 (22 Jun 2015 15:09:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2015 15:09:55 +0000 (UTC) To: Paul Eggert , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 22 17:09:55 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 1Z73MA-0006LU-JD for ged-emacs-devel@m.gmane.org; Mon, 22 Jun 2015 17:09:54 +0200 Original-Received: from localhost ([::1]:40550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z73M9-0007qN-L3 for ged-emacs-devel@m.gmane.org; Mon, 22 Jun 2015 11:09:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z73Lu-0007mm-DA for emacs-devel@gnu.org; Mon, 22 Jun 2015 11:09:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z73Lq-0005NQ-I7 for emacs-devel@gnu.org; Mon, 22 Jun 2015 11:09:38 -0400 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:33504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z73Lq-0005CJ-CX for emacs-devel@gnu.org; Mon, 22 Jun 2015 11:09:34 -0400 Original-Received: by wiwl6 with SMTP id l6so40221212wiw.0 for ; Mon, 22 Jun 2015 08:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=LjPlBqhs7B1R4y+OGRoc58eS3VLGBrzIhlHL88nv2Ac=; b=gYNf/00IW3YkOvHo4yN6mikvxLk2jztI+lsZR53Ic3h9QOHlwiVvMRc+8lqrTXDZzO 3pOgxPEomHu/tIUKs1CJBTQwk1PdTHEvIaWAzYiOCCDYQih3UXhUnk0s9j5S0iQ3zEw2 dNbsrARhajHrkzHyoJP7oGhR/WlC1sJeCszHuKoi5WoszYrwISLB+c14Okw5L1KZOOhQ K3ZNtcp2g1OXksKPRyECH9RJ0vXWLDgLFxOr4IuqxSt+qgpQpKGgXY1ksvM+TnvJNznD J6Z/Xi0NqTtiLERSR9lA+L9dTHGx6YFdSDXGZvD/GVnKTNVJmY7XRGY8iKLDvDJ0pumA JszQ== X-Received: by 10.180.107.70 with SMTP id ha6mr32519010wib.20.1434985764199; Mon, 22 Jun 2015 08:09:24 -0700 (PDT) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id ej5sm30993158wjd.22.2015.06.22.08.09.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 08:09:24 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <5587B029.5000503@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::234 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:187380 Archived-At: On 06/22/2015 09:50 AM, Paul Eggert wrote: > It's not "making things worse" to > rely on a property that's been in Emacs for ages. All right, I guess that's true. > Yes, I've been reading and participating in these subthreads. I don't > follow your point here, though. Normally, curved quotes pass through > substitute-command-keys unchanged. I don't see what's "normally" have to do with anything. In the input, we don't need quotes that usually pass unchanged to the output. We need some output-independent markup that will eventually translate into whatever presentation we choose. The more we're able to defer that choice, the better. It's why I'm liking the original suggestion to do it via font-lock better and better now. > This is simple and intuitive and is > what Emacs has always normally done. Perhaps we'll come up with a > better way to highlight the output of substitute-command-keys at some > point, a way that treats quotes and key substitutions differently. That > might be nice, but it's not clear how it would work exactly, and in the > meantime we have a simple approach that does work. Please recall the suggestion to do everything via font-lock. It would also allow us to use some different quoting mechanism other than \\=, which Stefan complained about.