From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [post@gunnar-pv.fo: Changed character set in file is not picked up] Date: Thu, 21 Feb 2008 17:28:17 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1203633030 32351 80.91.229.12 (21 Feb 2008 22:30:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2008 22:30:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 21 23:30:54 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSJwI-0001yY-2X for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 23:30:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSJvm-0004Vf-7D for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 17:30:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSJtr-0003QX-Mj for emacs-devel@gnu.org; Thu, 21 Feb 2008 17:28:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSJtq-0003Pb-7l for emacs-devel@gnu.org; Thu, 21 Feb 2008 17:28:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSJtp-0003PS-OH for emacs-devel@gnu.org; Thu, 21 Feb 2008 17:28:17 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSJtp-0006Ny-I5 for emacs-devel@gnu.org; Thu, 21 Feb 2008 17:28:17 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JSJtp-0001GS-1W; Thu, 21 Feb 2008 17:28:17 -0500 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89871 Archived-At: Would people please think about this issue and DTRT? ------- Start of forwarded message ------- Message-ID: <47BC688C.5080809@gunnar-pv.fo> Date: Wed, 20 Feb 2008 17:51:08 +0000 From: "Gunnar P. Vestergaard" MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Subject: Changed character set in file is not picked up Really, I don't know if this is a feature request or a bug report. First I must thank you for making so good support for character sets. I frequently use Emacs v21.2.1 for editing files in UTF-8 and ISO 8859-1. One time, when I was working with a file in Emacs, I decided that I would convert the character set that the file was encoded in. It was in UTF-8 and I converted it to ISO 8859-1 using the shell. At the same time, the file was loaded into a buffer in Emacs. That is, I converted the file in the shell while it was in a buffer in Emacs. I forgot to delete the buffer when converting the file. Just to make sure that everything was allright, I visited the same file with the same file name into the same buffer. The minibuffer said "File file.txt changed on disk. Reread from disk? (yes or no) ". The file was loaded, but Emacs did not pick up the changed encoding. So I saw a lot of numeric codes prefixed with backslash. Shouldn't Emacs be able to pick up a new character encoding when revisiting a file with the same file name? Of course, a workaround is to delete the appropriate buffer prior to converting a file's character set. I am not subscribed to the list bug-gnu-emacs so I will appreciate if someone replies directly to my e-mail address. Yours sincerely Gunnar Vestergaard Torshavn, Faroe Islands ------- End of forwarded message -------