[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Enable customisation for electric-quote-mode chars
From: |
Eli Zaretskii |
Subject: |
Re: [PATCH] Enable customisation for electric-quote-mode chars |
Date: |
Mon, 29 Aug 2016 18:08:25 +0300 |
> From: Göktuğ Kayaalp <address@hidden>
> Cc: address@hidden, address@hidden
> Date: Mon, 29 Aug 2016 08:28:19 +0300
>
> address@hidden electric-quote-chars
> Electric Quote mode makes it easier to type curved quotes. As you
> type characters it optionally converts @t{`} to @t{‘}, @t{'} to @t{’},
> @t{``} to @t{“}, and @t{''} to @t{”}. These conversions are
> suppressed in buffers whose coding systems cannot represent curved
> -quote characters.
> +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
> address@hidden'(?‘ ?’ ?“ ?”)}.
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.
Which brings me to this:
> +(defcustom electric-quote-chars '(?‘ ?’ ?“ ?”)
> + "Curved quote characters for `electric-quote-mode'.
> +The items correspond to the left single quote, the right single
> +quote, the left double quote, and the right double quote, respectively."
> + :version "25.1"
> + :type 'list :safe 'listp :group 'electricity)
> +
Making it a list with minimal explanations sounds like not very
user-friendly. How about offering several ready out-of-the-box sets,
each one for some culture we know about? We could also allow a raw
list, for the power users, but I think less advanced Emacs users will
appreciate something like
Default (‘..’ “..”)
Arabic (".." ”..“)
German (‚..‛ „..“)
French (‹..› «..»)
Cyrillic (‚..‘ «..»)
etc. WDYT? (See https://en.wikipedia.org/wiki/Quotation_mark for
some more.)
Thanks.
- [PATCH] Enable customisation for electric-quote-mode chars, Göktuğ Kayaalp, 2016/08/27
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Eli Zaretskii, 2016/08/27
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Göktuğ Kayaalp, 2016/08/27
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Paul Eggert, 2016/08/27
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Göktuğ Kayaalp, 2016/08/27
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Paul Eggert, 2016/08/28
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Göktuğ Kayaalp, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Paul Eggert, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars,
Eli Zaretskii <=
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Yuri Khan, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Eli Zaretskii, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Göktuğ Kayaalp, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Eli Zaretskii, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Göktuğ Kayaalp, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Paul Eggert, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Eli Zaretskii, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Paul Eggert, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Eli Zaretskii, 2016/08/29
- Re: [PATCH] Enable customisation for electric-quote-mode chars, Paul Eggert, 2016/08/30