From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#24759: 25.1.50; electric-quote-mode Date: Fri, 21 Oct 2016 14:04:56 -0700 Organization: UCLA Computer Science Department Message-ID: <74d0a4a5-014e-b365-9d89-ad03a7fc6430@cs.ucla.edu> References: <83wph1qxrw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1477084171 5758 195.159.176.226 (21 Oct 2016 21:09:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2016 21:09:31 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 Cc: 24759@debbugs.gnu.org To: Eli Zaretskii , Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 21 23:09:20 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 1bxh3l-0006Vn-VO for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2016 23:09:02 +0200 Original-Received: from localhost ([::1]:34580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxh3o-0002lB-4m for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2016 17:09:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxh0w-0000QH-D5 for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 17:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxh0s-0006GB-6o for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 17:06:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bxh0s-0006Fu-3g for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 17:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bxh0r-0006OA-Th for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 17:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2016 21:06: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.147708390524481 (code B ref 24759); Fri, 21 Oct 2016 21:06:01 +0000 Original-Received: (at 24759) by debbugs.gnu.org; 21 Oct 2016 21:05:05 +0000 Original-Received: from localhost ([127.0.0.1]:45715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxgzx-0006Mn-3G for submit@debbugs.gnu.org; Fri, 21 Oct 2016 17:05:05 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:41050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxgzv-0006MF-0e for 24759@debbugs.gnu.org; Fri, 21 Oct 2016 17:05:03 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A2B00161324; Fri, 21 Oct 2016 14:04:57 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 6j-Cq5cBGmMN; Fri, 21 Oct 2016 14:04:56 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 950231612D4; Fri, 21 Oct 2016 14:04:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id fpAhxP5BOxvH; Fri, 21 Oct 2016 14:04:56 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7C5C51612A6; Fri, 21 Oct 2016 14:04:56 -0700 (PDT) In-Reply-To: <83wph1qxrw.fsf@gnu.org> 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:124800 Archived-At: On 10/21/2016 12:58 PM, Eli Zaretskii wrote: > I think this condition: > > (defun electric--insertable-p (string) > (or (not buffer-file-coding-system) > (eq (coding-system-base buffer-file-coding-system) 'undecided) > (not (unencodable-char-position nil nil buffer-file-coding-system > nil string)))) > > should also accept a coding-system that is the default-value of > buffer-file-coding-system, because that's how buffers are created. > When the file is saved, Emacs will ask for a proper encoding, which is > not a catastrophe. Wouldn't this lead to problems? If I use electric quoting in a unibyte French locale, where I the default is an ISO 8859 encoding and buffer-file-coding-system is something like iso-latin-1-unix, 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.