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:34:50 +0300 Message-ID: <83k2d0p485.fsf@gnu.org> References: <83wph1qxrw.fsf@gnu.org> <74d0a4a5-014e-b365-9d89-ad03a7fc6430@cs.ucla.edu> <83shrori8z.fsf@gnu.org> <83mvhwp5mr.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477164987 3959 195.159.176.226 (22 Oct 2016 19:36:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2016 19:36:27 +0000 (UTC) Cc: 24759@debbugs.gnu.org To: eggert@cs.ucla.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 21:36:21 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 1by25T-0007Xb-3B for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 21:36:11 +0200 Original-Received: from localhost ([::1]:38482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by25V-00025M-5h for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 15:36:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by25O-00024t-Mo for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1by25K-0000L4-P2 for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:36:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59440) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1by25K-0000Ky-Kl for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1by25K-0006My-Cw for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 15:36:02 -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:36:02 +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.147716492324432 (code B ref 24759); Sat, 22 Oct 2016 19:36:02 +0000 Original-Received: (at 24759) by debbugs.gnu.org; 22 Oct 2016 19:35:23 +0000 Original-Received: from localhost ([127.0.0.1]:46606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1by24h-0006M0-5k for submit@debbugs.gnu.org; Sat, 22 Oct 2016 15:35:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1by24f-0006Lm-8D for 24759@debbugs.gnu.org; Sat, 22 Oct 2016 15:35:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1by24V-0008Rn-KI for 24759@debbugs.gnu.org; Sat, 22 Oct 2016 15:35:15 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1by24V-0008Rj-Hf; Sat, 22 Oct 2016 15:35:11 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2086 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1by24S-0007NM-Tj; Sat, 22 Oct 2016 15:35:11 -0400 In-reply-to: <83mvhwp5mr.fsf@gnu.org> (message from Eli Zaretskii on Sat, 22 Oct 2016 22:04:28 +0300) 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:124851 Archived-At: > Date: Sat, 22 Oct 2016 22:04:28 +0300 > From: Eli Zaretskii > Cc: 24759@debbugs.gnu.org > > > 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. Please also note that by the time this prompt is displayed, Emacs has already tried to see whether several default encodings corresponding to the user locale and preferences can encode the text, and the answer was NO (this information is included in the buffer popped up to the user). If one of the default encodings could encode the text, Emacs would have used it without asking any questions. Once we have tried all those defaults, and found they cannot do the job, we've exhausted our potential of guessing "what the user wants" reliably, so we must now ask the user to tell us that.