From: Eli Zaretskii <eliz@gnu.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: eggert@cs.ucla.edu, 24759@debbugs.gnu.org
Subject: bug#24759: 25.1.50; electric-quote-mode
Date: Sat, 22 Oct 2016 12:10:33 +0300 [thread overview]
Message-ID: <83funorbp2.fsf@gnu.org> (raw)
In-Reply-To: <CAH8Pv0g0mwi3ztsCrruBKU02ztiD4DZ2ZjBeR8mQ0=VN4MWVKg@mail.gmail.com> (message from Dani Moncayo on Sat, 22 Oct 2016 10:16:35 +0200)
> From: Dani Moncayo <dmoncayo@gmail.com>
> Date: Sat, 22 Oct 2016 10:16:35 +0200
> Cc: Paul Eggert <eggert@cs.ucla.edu>, 24759@debbugs.gnu.org
>
> > And if electric-quote-mode wants to be more user-friendly, it could
> > ask, upon the first insertion of any electric quote character into a
> > buffer, whether the user would like to her buffer-file-coding-system
> > switched to UTF-8.
>
> I'd like such a feature, but I'd rather make it general (not specific
> to electric-quote-mode). That is, whenever a buffer gets a character
> (whether typed, yanked, electrically inserted, ...) which is not
> representable in the current buffer-file-coding-system, Emacs could
> offer the user to switch the coding system to UTF-8 (or another one
> which can represent all the characters currently present in the
> buffer), like happens when the buffer is about to be saved to a file.
IMO, this would be too annoying and detrimental to performance in many
cases. I think you underestimate how much 'insert' is used in Emacs,
without the user knowing anything about that. In most such cases, the
buffer into which the character is entered will never be saved to any
file.
My proposal was specifically for the case where keyboard input caused
these characters be inserted after conversion by electric-quote-mode,
which hopefully restricts the applicable use cases to those where the
user is typing at the keyboard.
next prev parent reply other threads:[~2016-10-22 9:10 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-21 19:38 bug#24759: 25.1.50; electric-quote-mode Dani Moncayo
2016-10-21 19:58 ` Eli Zaretskii
2016-10-21 20:26 ` Dani Moncayo
2016-10-21 21:01 ` Paul Eggert
2016-10-21 21:04 ` Paul Eggert
2016-10-22 6:49 ` Eli Zaretskii
2016-10-22 7:47 ` Eli Zaretskii
2016-10-22 8:16 ` Dani Moncayo
2016-10-22 9:10 ` Eli Zaretskii [this message]
2016-10-22 10:36 ` Dani Moncayo
2016-10-22 18:47 ` Paul Eggert
2016-10-22 19:04 ` Eli Zaretskii
2016-10-22 19:34 ` Eli Zaretskii
2016-10-23 4:10 ` Paul Eggert
2016-10-23 7:13 ` Eli Zaretskii
2016-10-23 8:24 ` Paul Eggert
2016-10-23 8:51 ` Eli Zaretskii
2016-10-22 19:20 ` Andreas Schwab
2016-10-23 3:55 ` Paul Eggert
2016-10-23 7:00 ` Eli Zaretskii
2016-10-23 8:15 ` Paul Eggert
2016-10-23 8:55 ` Eli Zaretskii
2016-10-23 9:15 ` Dani Moncayo
2016-10-23 9:28 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83funorbp2.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=24759@debbugs.gnu.org \
--cc=dmoncayo@gmail.com \
--cc=eggert@cs.ucla.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.