From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r114533: Revert 114527 Date: Sat, 05 Oct 2013 22:02:08 +0300 Message-ID: <8361tb7d8v.fsf@gnu.org> References: <52505FDE.30106@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1380999752 11717 80.91.229.3 (5 Oct 2013 19:02:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Oct 2013 19:02:32 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 05 21:02:35 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VSX7b-0002Mm-Ar for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2013 21:02:35 +0200 Original-Received: from localhost ([::1]:52750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSX7a-0006iT-2t for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2013 15:02:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSX7S-0006hI-MR for emacs-devel@gnu.org; Sat, 05 Oct 2013 15:02:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSX7N-00037X-Dv for emacs-devel@gnu.org; Sat, 05 Oct 2013 15:02:26 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:45178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSX7N-00037K-5N for emacs-devel@gnu.org; Sat, 05 Oct 2013 15:02:21 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MU700M00LZ30T00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 05 Oct 2013 22:02:17 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MU700LQOM7TQM80@a-mtaout20.012.net.il>; Sat, 05 Oct 2013 22:02:17 +0300 (IDT) In-reply-to: <52505FDE.30106@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163890 Archived-At: > Date: Sat, 05 Oct 2013 21:52:14 +0300 > From: Dmitry Gutov > Cc: emacs-devel@gnu.org > > On 05.10.2013 21:43, Stefan Monnier wrote: > >> `last-coding-system-used' is unreliable: it can be modified by other > >> functions in `after-save-hook'. > > > > Indeed. Why not use buffer-file-coding-system? > > Because its value doesn't change (from the initial `undecided-unix') > even after the buffer is saved with new, non-ASCII characters. Didn't Emacs asked you to select an encoding when you saved? Also, what were the non-ASCII characters, and what is your default-buffer-file-coding-system? > So far I've decided to use `select-safe-coding-system-function', but it > just adds to the mess: Please describe the issue from the beginning, I cannot find it in the mailing list archives. It's hard to judge the solution without knowing the details of the problem.