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: [ELPA] New package: cycle-quotes.el Date: Sat, 11 Jun 2016 17:32:31 -0400 Message-ID: References: <87y46babc3.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1465680781 7640 80.91.229.3 (11 Jun 2016 21:33:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2016 21:33:01 +0000 (UTC) Cc: Michael Mauger , emacs-devel@gnu.org To: Simen =?windows-1252?Q?Heggest=F8yl?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 11 23:32:52 2016 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 1bBqWN-0002dl-Or for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2016 23:32:47 +0200 Original-Received: from localhost ([::1]:48704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBqWN-0008Vr-4G for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2016 17:32:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBqWD-0008VU-MS for emacs-devel@gnu.org; Sat, 11 Jun 2016 17:32:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBqW9-0007RN-LZ for emacs-devel@gnu.org; Sat, 11 Jun 2016 17:32:37 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:45938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBqW9-0007RJ-Gt for emacs-devel@gnu.org; Sat, 11 Jun 2016 17:32:33 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u5BLWWuA016561; Sat, 11 Jun 2016 17:32:32 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id D9059AE582; Sat, 11 Jun 2016 17:32:31 -0400 (EDT) In-Reply-To: <87y46babc3.fsf@gmail.com> ("Simen =?windows-1252?Q?Heggest?= =?windows-1252?Q?=F8yl=22's?= message of "Sat, 11 Jun 2016 19:23:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.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 RV5703=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5703> : inlines <4921> : streams <1650414> : uri <2228827> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:204293 Archived-At: > Michael, Stefan, will something like this provide enough flexibility for > you? I don't really have the time to try and think about what's needed to cover the different possible needs. But I don't see an urgent need to come up with a perfect solution either. So you might like to simply take it incrementally, adding support for new cases as you bump into them. Also, you have to weight the cost of implementation/flexibility against the likelihood of it being used. E.g. I'm not sure it'd be worth the trouble trying to add support for switching between '...' quoting and heredoc-quoting in sh-mode. Similarly, in sh-mode I could imagine situations where switching correctly from "..." to '...' would require extra processing to make sure any $... embedded in the string is still expanded. But should we really cater to such cases? Stefan