From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24759: 25.1.50; electric-quote-mode Date: Sat, 22 Oct 2016 22:04:28 +0300 Message-ID: <83mvhwp5mr.fsf@gnu.org> References: <83wph1qxrw.fsf@gnu.org> <74d0a4a5-014e-b365-9d89-ad03a7fc6430@cs.ucla.edu> <83shrori8z.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477163121 20807 195.159.176.226 (22 Oct 2016 19:05:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2016 19:05:21 +0000 (UTC) Cc: 24759@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 21:05:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1by1bV-0004Pk-8J for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 21:05:13 +0200 Original-Received: from localhost ([::1]:38410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by1bX-0006gC-LQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 15:05:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by1bN-0006df-38 for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:05:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1by1bJ-0007qF-VT for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:05:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59416) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1by1bJ-0007qB-T5 for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:05:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1by1bJ-0005c1-M1 for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2016 19:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24759 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24759-submit@debbugs.gnu.org id=B24759.147716308721549 (code B ref 24759); Sat, 22 Oct 2016 19:05:01 +0000 Original-Received: (at 24759) by debbugs.gnu.org; 22 Oct 2016 19:04:47 +0000 Original-Received: from localhost ([127.0.0.1]:46582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1by1b5-0005bU-18 for submit@debbugs.gnu.org; Sat, 22 Oct 2016 15:04:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1by1b3-0005bI-Fl for 24759@debbugs.gnu.org; Sat, 22 Oct 2016 15:04:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1by1au-0007j1-VM for 24759@debbugs.gnu.org; Sat, 22 Oct 2016 15:04:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by1au-0007ix-Sv; Sat, 22 Oct 2016 15:04:36 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2070 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1by1at-0006FZ-J0; Sat, 22 Oct 2016 15:04:36 -0400 In-reply-to: (message from Paul Eggert on Sat, 22 Oct 2016 11:47:58 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124847 Archived-At: > Cc: dmoncayo@gmail.com, 24759@debbugs.gnu.org > From: Paul Eggert > Date: Sat, 22 Oct 2016 11:47:58 -0700 > > Eli Zaretskii wrote: > >> when I > >> > later save the file Emacs will say "Select coding system (default > >> > chinese-iso-8bit): ". This is hardly user-friendly, even if we improve > >> > Emacs to guess UTF-8, as there may be a long interval between typing ` > >> > and saving the buffer. > > This is standard Emacs behavior. > > If it is, then the standard behavior is wrong. It was like that since Emacs 20.1. I don't see what changed now that it's suddenly a problem. I guess you are simply unused to see these prompts due to your locale, that's all. > For starters, Emacs should not default to chinese-iso-8bit in a > unibyte French-language environment merely because the buffer has a > curved quote. Emacs collects all the encodings that can handle all of the characters, then sorts them; chinese-iso-8bit is just the one that comes up first in the sorted order. If you are hinting that UTF-8 should come up first, we should just change the sorting order, that's all. > That can't be what a typical French user wants. We have no idea what the user might want. We can guess at best, and offer the list of the alternatives from which to choose. Which is what we do. > More generally, if I type any character that won't be saved, I should be > notified when I type it, not ages later when I save the buffer. I disagree. Most buffers will never be saved. And even if they will be, the user could delete the character by the time she saves it. I don't see how we can do better here than we already do, except by making the first alternative more suitable for today's world.