From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/international and lisp/leim Date: Thu, 03 Sep 2015 10:50:49 -0400 Message-ID: References: <20150831061236.27796.57762@vcs.savannah.gnu.org> <55E3F434.2060507@yandex.ru> <55E496DC.1030608@cs.ucla.edu> <877foas9jh.fsf@gmail.com> <87vbbu4c5w.fsf@fencepost.gnu.org> <55E58F0B.4030006@yandex.ru> <87r3mi4a45.fsf@fencepost.gnu.org> <55E5B42F.3070806@yandex.ru> <87h9nbq032.fsf@gmail.com> <55E82D67.4000607@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441291977 4812 80.91.229.3 (3 Sep 2015 14:52:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2015 14:52:57 +0000 (UTC) Cc: Paul Eggert , David Kastrup , Oleh Krehel , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 03 16:52:40 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 1ZXVsQ-0006rz-GQ for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2015 16:52:34 +0200 Original-Received: from localhost ([::1]:48769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXVsP-0006aM-NB for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2015 10:52:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXVqx-0003up-Oy for emacs-devel@gnu.org; Thu, 03 Sep 2015 10:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXVqu-0006uj-IR for emacs-devel@gnu.org; Thu, 03 Sep 2015 10:51:03 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:34055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXVqu-0006uI-Bl; Thu, 03 Sep 2015 10:51:00 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t83EonE6006050; Thu, 3 Sep 2015 10:50:49 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3360F66110; Thu, 3 Sep 2015 10:50:49 -0400 (EDT) In-Reply-To: <55E82D67.4000607@yandex.ru> (Dmitry Gutov's message of "Thu, 3 Sep 2015 14:22:15 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5418=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5418> : inlines <3750> : streams <1499201> : uri <2031673> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:189504 Archived-At: >> Cut and paste can still work: just add a `quote-last-yank' command and/or >> `quote-region' command. > But it's not always that you'll want to quote the pasted string, is it? That's why he's recommending a command. You'd first yank and then (if you needed) run the quote command, which quotes what you just yanked. That's would be kind of like a "postfix argument". >> An issue that I have with \\= escaping syntax is that it's ugly. > It looks a bit odd, but we're unlikely to get rid of it, since it's been > supported for ages. It's been supported for ages, yes, but until recently it was *very* rarely needed. IOW the need to write (add-hook \\='find-file-hook \\='auto-insert) is brand new in Emacs-25, and it sucks. I don't intend to get rid of the \= escaping syntax (tho I do find it hideous), but I don't want to have to use it, except for those very limited use cases that are as old as the \= syntax itself. >> This variable is used when the function `auto-insert' is called, e.g. >> when you do ``(add-hook 'find-file-hook 'auto-insert)''. > Looks fine to me. Yes, I could live with it (and I could accept the use of "'\\='" for those very rare cases where we need to have "''" inside the "..."). BTW, re-using existing quoting syntaxes from other systems (e.g. markdown/org) is a good idea, when applicable. E.g. it would be desirable to be able to take a docstring and easily convert it to a valid org/markdown document. Of course, that needs to be balanced with the needs specific to docstrings (among other things, to accommodate pre-existing practice). > Either way, it would be weird to quote symbol references with ` ', but use > `` `` for code expressions. I don't see why. Stefan