From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#24759: 25.1.50; electric-quote-mode Date: Sat, 22 Oct 2016 10:16:35 +0200 Message-ID: References: <83wph1qxrw.fsf@gnu.org> <74d0a4a5-014e-b365-9d89-ad03a7fc6430@cs.ucla.edu> <83shrori8z.fsf@gnu.org> <83k2d0rfk8.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1477124239 3857 195.159.176.226 (22 Oct 2016 08:17:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2016 08:17:19 +0000 (UTC) Cc: Paul Eggert , 24759@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 10:17:15 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 1bxrUK-0008D5-Ka for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 10:17:08 +0200 Original-Received: from localhost ([::1]:35956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxrUM-000528-PL for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 04:17:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxrUH-00051s-7Z for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 04:17:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxrUE-0000RX-0P for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 04:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bxrUD-0000Q3-T2 for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 04:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bxrUD-0008Oo-It for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 04:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2016 08:17: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.147712420332258 (code B ref 24759); Sat, 22 Oct 2016 08:17:01 +0000 Original-Received: (at 24759) by debbugs.gnu.org; 22 Oct 2016 08:16:43 +0000 Original-Received: from localhost ([127.0.0.1]:45834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxrTu-0008OE-SW for submit@debbugs.gnu.org; Sat, 22 Oct 2016 04:16:42 -0400 Original-Received: from mail-wm0-f43.google.com ([74.125.82.43]:38807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxrTt-0008O0-FU for 24759@debbugs.gnu.org; Sat, 22 Oct 2016 04:16:41 -0400 Original-Received: by mail-wm0-f43.google.com with SMTP id c78so24660024wme.1 for <24759@debbugs.gnu.org>; Sat, 22 Oct 2016 01:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4ilLjCVJ66Rdndt4Lrinv2QBTeXbqGcYlBrVSGyfJ3o=; b=CndLo00OcFdgR179rMh1yyNvBAtnsSYAXX/eUET1I2CK30wM8lEMt/1882TfyMZlgp l5OTYxwHzU1ZjlgGudLT/Cp5pfOWxOQnn2eGxTwDisxsoVY4+Q5eg7Dx6J3jbnb2xXg7 abRT/i44b64n+yPmtA2YwntcVUWZvDJmdLmrh2iL+f1JW6XHLKWxOH8iodDuyR6wNTmJ wiXd2lZoW9lmnRBBch42Nk9DpI+nHV3BZorwzUwDiADiBzp6lWdRtCq9szAz7QI4s2PB YuexIppGXgGFFwe8thsvZcIf661lcglaoivg1vd2HBD6LAqbmfw5ncvVYzkFFfOnBfIs zUZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4ilLjCVJ66Rdndt4Lrinv2QBTeXbqGcYlBrVSGyfJ3o=; b=M7URFo4z13do0GnOXnIvLPmU9F0N+HACZzIuLFgik7i6aj5d/fGICffMiEsm12S+6S v6zmxQSsqLaxRHcf3HWVwxhwPBPRH0tdXosihY8EpLaeRIB2/ppRM2X4ovGdZuzxvIfq JUnE5UOKMdKrC0vHWWKjSrjV4BcYSIQzp9vOg0faBH/aQgsa1Wdw7XIKHGj91bqGPbG9 EU5bGsfPUVGgN0SeTyd7N2XNgs2bNFIuxDzjK86bFjC9CcKtmgJSNyNZDIhJCNmd4jo0 46lK8A4pdrsFEjcxPmkWS+tfLZKuc3+ChKN7qqklaUTCNXpHH0D3xOvaIo4T1ZCtMSiO Ij0w== X-Gm-Message-State: AA6/9Rn8Mm42sE0cGdNGb1uH8xaL4r+Hk42z2Du2M+xcHsMnmgF6n/azBW9Y0Mie1m5BngKh4R8AQUXLzyTtTA== X-Received: by 10.28.209.75 with SMTP id i72mr6128463wmg.56.1477124195598; Sat, 22 Oct 2016 01:16:35 -0700 (PDT) Original-Received: by 10.28.95.133 with HTTP; Sat, 22 Oct 2016 01:16:35 -0700 (PDT) In-Reply-To: <83k2d0rfk8.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:124812 Archived-At: >> So I actually question the need for any test in electric--insertable-p. >> What bad things, besides the prompt at save-buffer time, will happen >> if we remove the test, and insert the characters unconditionally? > > 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. -- Dani Moncayo