unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: eisinger@informatik.uni-muenchen.de, 4816@debbugs.gnu.org
Subject: bug#4816: change of coding system without inquiry
Date: Thu, 27 Jun 2019 19:49:33 +0200	[thread overview]
Message-ID: <m3ef3ezzo2.fsf@gnus.org> (raw)
In-Reply-To: <jwvr5sl9c7g.fsf-monnier+emacsbugreports@gnu.org> (Stefan Monnier's message of "Fri, 30 Oct 2009 11:02:49 -0400")

(Bug report about Latin-1 files becoming UTF-8.)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> +      (unless (or (local-variable-p 'buffer-file-coding-system)
> +                  (eq coding-system buffer-file-coding-system)
> +                  ;; We'd rather only bother the user if the coding-system
> +                  ;; change would cause the file's content to change, so we'd
> +                  ;; want to check whether the new coding-system is a superset
> +                  ;; of the previous one.
> +                  (memq buffer-file-coding-system '(nil undecided us-ascii))
> +                  (y-or-n-p (format "Change encoding from %s to %s? "
> +                                    buffer-file-coding-system coding-system)))
> +        (setq coding-system nil))

Eli Zaretskii <eliz@gnu.org> writes:

> FWIW, in the past users explicitly expressed annoyance by these
> questions.  The request was to use the "native" encoding silently.  By
> introducing back this question, we are restoring that annoyance.

Perhaps it's time to make a decision now -- to not add a change like this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2019-06-27 17:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-27 23:03 bug#4816: change of coding system without inquiry Norbert Eisinger
2009-10-30  0:57 ` Stefan Monnier
2009-10-30 13:19   ` Norbert Eisinger
2009-10-30 15:02     ` Stefan Monnier
2009-10-30 15:47       ` Eli Zaretskii
2009-10-31 16:32       ` Norbert Eisinger
2009-11-01 18:33       ` Eli Zaretskii
2009-11-02  7:05         ` Stefan Monnier
2019-06-27 17:49       ` Lars Ingebrigtsen [this message]
2019-06-27 18:41         ` Eli Zaretskii
2019-11-23 12:55           ` Lars Ingebrigtsen
2016-02-28  6:37 ` Lars Ingebrigtsen
2016-02-28 15:46   ` Eli Zaretskii
2016-02-29  2:35     ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ef3ezzo2.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=4816@debbugs.gnu.org \
    --cc=eisinger@informatik.uni-muenchen.de \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).