From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: A simple solution to "Upcoming loss of usability ..." Date: Thu, 25 Jun 2015 15:41:19 -0700 Organization: UCLA Computer Science Department Message-ID: <558C838F.6050706@cs.ucla.edu> References: <87egkzg7gb.fsf@gmail.com> <558C2E25.10303@cs.ucla.edu> <87mvzng1ud.fsf@gmail.com> <558C690D.3000208@cs.ucla.edu> <558C6E3B.5040105@yandex.ru> <558C7D8A.4060403@cs.ucla.edu> <558C7FDB.80900@yandex.ru> 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 1435272119 18647 80.91.229.3 (25 Jun 2015 22:41:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 22:41:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 26 00:41:44 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 1Z8Fq0-0003pm-Q4 for ged-emacs-devel@m.gmane.org; Fri, 26 Jun 2015 00:41:40 +0200 Original-Received: from localhost ([::1]:57670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Fq0-00042i-7c for ged-emacs-devel@m.gmane.org; Thu, 25 Jun 2015 18:41:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Fpl-00042S-Gw for emacs-devel@gnu.org; Thu, 25 Jun 2015 18:41:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8Fph-0001Pw-En for emacs-devel@gnu.org; Thu, 25 Jun 2015 18:41:25 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Fph-0001Pd-8g for emacs-devel@gnu.org; Thu, 25 Jun 2015 18:41:21 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7E6F9160844; Thu, 25 Jun 2015 15:41:20 -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 qdKaRBhvHe1G; Thu, 25 Jun 2015 15:41:19 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CDB9D160848; Thu, 25 Jun 2015 15:41:19 -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 OVeZ1Yyq2trq; Thu, 25 Jun 2015 15:41:19 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B0B89160840; Thu, 25 Jun 2015 15:41:19 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <558C7FDB.80900@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:187542 Archived-At: Dmitry Gutov wrote: >> Whatever heuristics we use are likely to be wrong for many real-world >> uses in Elisp code. > > font-lock rules don't have to be about heuristics. The conversion can be as > straight as we want it to me. No straightforward conversion will work, I'm afraid. >> Many uses of grave accent in Elisp strings, >> characters, and comments are intended to be grave accent, not left >> quote. Similarly for apostrophe and right quote. It's unlikely that >> any easy-to-explain heuristic based on font-lock will distinguish among >> the uses reliably. > > It has been established already that we need an escaping syntax, too. Sorry, I'm not following. This would be a new escape syntax for Elisp strings? How would it work? For example, would \` and \' have different meaning in strings than they do in character literals? When exactly would these escapes be transformed to user-preferred quote characters? Although I have already explored solutions along these lines and none of them worked well, perhaps you have ideas that will improve them.