From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: detecting charset of directories Date: Sat, 21 Oct 2006 09:55:02 +0900 Message-ID: References: <20061020142038.99914.qmail@web51005.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1161392078 5693 80.91.229.2 (21 Oct 2006 00:54:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Oct 2006 00:54:38 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 21 02:54:35 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gb58B-0002iP-Th for ged-emacs-devel@m.gmane.org; Sat, 21 Oct 2006 02:54:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gb58B-0002pP-95 for ged-emacs-devel@m.gmane.org; Fri, 20 Oct 2006 20:54:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gb57t-0002lQ-U1 for emacs-devel@gnu.org; Fri, 20 Oct 2006 20:54:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gb57p-0002YK-QS for emacs-devel@gnu.org; Fri, 20 Oct 2006 20:54:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gb57p-0002Xh-M1; Fri, 20 Oct 2006 20:54:09 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gb57p-0004JN-FC; Fri, 20 Oct 2006 20:54:09 -0400 Original-Received: from smtp1.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k9L0s5sQ029441; Sat, 21 Oct 2006 09:54:05 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id k9L0s5G2019950; Sat, 21 Oct 2006 09:54:05 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1Gb58g-0000kE-00; Sat, 21 Oct 2006 09:55:02 +0900 Original-To: Kevin Rodgers In-reply-to: <20061020142038.99914.qmail@web51005.mail.yahoo.com> (message from Kevin Rodgers on Fri, 20 Oct 2006 07:20:38 -0700 (PDT)) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:60973 gmane.emacs.pretest.bugs:14710 Archived-At: In article <20061020142038.99914.qmail@web51005.mail.yahoo.com>, Kevin Rodgers writes: > > > Also, how can one ensure that `C-x m c CODING-SYSTEM g' will (1) have > > > its intended effect and (2) persist its effect, for subsequent `g' > > > commands? > > > > Sorry, I don't understand what you mean. Could you please > > paraphrase it? > [Sorry, `C-x m c ...' should have been `C-x C-m c ...'] > Let's say you are in a Dired buffer and you realize the coding system is > wrong, so you try to re-read it with `C-x RET c CODING-SYSTEM g'. Does > that work? If later you decide to simply run `g', does it use > CODING-SYSTEM to re-read the directory? > I think to make that work, dired-revert needs the same fix as > dired-mode, namely: > (set (make-local-variable 'file-name-coding-system) > (or coding-system-for-read file-name-coding-system)) > Or perhaps that should be done later in just one place: dired-readin. I basically agree with you, but as I don't know the code of dired, I don't know which part is the right place to fix. I'd like to ask maintainers of dired.el to work on it. --- Kenichi Handa handa@m17n.org