From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/international and lisp/leim Date: Wed, 02 Sep 2015 07:23:33 +0200 Message-ID: <87k2s91jje.fsf@fencepost.gnu.org> References: <20150831061236.27796.57762@vcs.savannah.gnu.org> <55E3F434.2060507@yandex.ru> <55E496DC.1030608@cs.ucla.edu> <877foas9jh.fsf@gmail.com> <55E5FD79.3060309@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441171440 23662 80.91.229.3 (2 Sep 2015 05:24:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Sep 2015 05:24:00 +0000 (UTC) Cc: Paul Eggert , emacs-devel@gnu.org, Oleh Krehel , Dmitry Gutov To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 02 07:23:54 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 1ZX0WY-0006UD-C7 for ged-emacs-devel@m.gmane.org; Wed, 02 Sep 2015 07:23:54 +0200 Original-Received: from localhost ([::1]:33680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX0WX-0003CH-Hz for ged-emacs-devel@m.gmane.org; Wed, 02 Sep 2015 01:23:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX0WL-0003C7-Jy for emacs-devel@gnu.org; Wed, 02 Sep 2015 01:23:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZX0WK-0000gw-UF for emacs-devel@gnu.org; Wed, 02 Sep 2015 01:23:41 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX0WH-0000fu-Ae; Wed, 02 Sep 2015 01:23:37 -0400 Original-Received: from localhost ([127.0.0.1]:43062 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZX0WF-0007L2-HN; Wed, 02 Sep 2015 01:23:36 -0400 Original-Received: by lola (Postfix, from userid 1000) id E5A5BE327D; Wed, 2 Sep 2015 07:23:33 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Tue, 01 Sep 2015 22:34:11 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:189446 Archived-At: Stefan Monnier writes: >> That would undermine another stated goal (by Paul): improve the typography >> in Emacs. > > I think this goal should have very low priority. > >>> But if we start using curly quotes everywhere, then we're back with the >>> ambiguity, so that's not a good solution. >> So what's the exact ambiguity that you have in mind? Code references or >> snippets vs. everything else like key sequences? >> Then I definitely misunderstood you a while back. > > W.r.t ambiguity, the main problem I see is that we currently can never > be sure that when we see a ` followed by a ' the two actually form a pair. > A human usually can tell, but a program can't get it right 100% of the time. > >> We might also want to support code snippets like `(progn (foo bar foo))'. >> At least, elisp-completion-at-point relies on snippets being quoted >> that way now. We can detect these using paired parens. > > Not sure I want to go down that road. What about `(foo 'a 'b)' ? Appears to work fine using paired parens when parsed from the start. -- David Kastrup