[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#4816: change of coding system without inquiry
From: |
Lars Ingebrigtsen |
Subject: |
bug#4816: change of coding system without inquiry |
Date: |
Thu, 27 Jun 2019 19:49:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
(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
- bug#4816: change of coding system without inquiry,
Lars Ingebrigtsen <=