From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Enable customisation for electric-quote-mode chars Date: Mon, 29 Aug 2016 19:39:32 +0300 Message-ID: <838tvfbkcb.fsf@gnu.org> References: <874m631qwx.fsf@xi.bootis> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1472488800 27141 195.159.176.226 (29 Aug 2016 16:40:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2016 16:40:00 +0000 (UTC) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 29 18:39:56 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bePbG-0006YL-FC for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2016 18:39:54 +0200 Original-Received: from localhost ([::1]:44801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bePbE-0006NT-3E for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2016 12:39:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bePb1-0006Ki-OW for emacs-devel@gnu.org; Mon, 29 Aug 2016 12:39:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bePax-0001iS-G6 for emacs-devel@gnu.org; Mon, 29 Aug 2016 12:39:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bePax-0001iN-D7; Mon, 29 Aug 2016 12:39:35 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1304 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bePav-0006BN-E3; Mon, 29 Aug 2016 12:39:33 -0400 In-reply-to: <874m631qwx.fsf@xi.bootis> (message from =?utf-8?B?R8O2a3R1?= =?utf-8?B?xJ8=?= Kayaalp on Mon, 29 Aug 2016 19:27:42 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:206888 Archived-At: > From: Göktuğ Kayaalp > Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org > Date: Mon, 29 Aug 2016 19:27:42 +0300 > > > From: Eli Zaretskii > > Date: 2016-08-29 06:08:25 PM +0300 > > Eli Zaretskii wrote: > >> From: Göktuğ Kayaalp > >> Cc: eliz@gnu.org, emacs-devel@gnu.org > >> Date: Mon, 29 Aug 2016 08:28:19 +0300 > > (I'm sorry for /borrowing/ your citation style, but it's very nice, I > couldn't refuse. Hope that doesn't annoy you :) I've made it a bit > different though.) It's not me, it's Rmail that's doing this. (No, I'm not annoyed, of course not.) > >> +quote characters. It's possible to change the default quotes listed > >> +above, by customizing the variable @code{electric-quote-chars}, a list > >> +of four characters, where the items correspond to the left single > >> +quote, the right single quote, the left double quote and the right > >> +double quote, respectively, whose default value is > >> +@code{'(?‘ ?’ ?“ ?”)}. > > > > There's no need to go to such detail when describing a customizable > > option. The Customize interface should be enough for the user to > > figure out what to do. > > Then I can remove the part after reference to the variable name, and > improve the defcustom's documentation (see below). Is that okay? Yes. > > Default (‘..’ “..”) > > Arabic (".." ”..“) > > German (‚..‛ „..“) > > French (‹..› «..») > > Cyrillic (‚..‘ «..») > > > > etc. WDYT? (See https://en.wikipedia.org/wiki/Quotation_mark for > > some more.) > > Well I think we'd rather not do that but improve the docstring instead, > because, looking at the big summary table on the page you linked [1] > there's not only a lot of variance among languages, but some of them > have multiple standard and alternative forms, and some don't have single > quotes (e.g. Persian). I think we'd better keep the defaults and > improve the documentation, and not have implement all the languages nor > have to pick a subset. If no one else thinks my suggestion is a significant improvement, I won't insist. (And of course, we don't need to implement the entire Wikipedia list, I'm not even sure it's accurate.) It could be enough to mention some of the possibilities in the doc string, together with their cultural affiliations. > Maybe we could leave setting these variables to the language environment > if that's possible? I think it's too early for that, we haven't yet figured out how to set up language dependent settings. One problem with the idea you raise is that a user can reside in a certain locale, but use universal settings commonly used in multilingual environments. > Please direct me on how to proceed, and I'll update the patch as soon as > I can I would suggest to wait for a couple of days for more comments. If no one supports my suggestions about language-tagged alternatives, you can disregard them, and only make the documentation changes already mentioned. Thanks.