From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Change encoding of file names in Wdired Date: Sun, 23 Mar 2014 07:25:45 +0100 Organization: WMI UAM Message-ID: <20140323072545.77b2d247@aga-netbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1395555963 26972 80.91.229.3 (23 Mar 2014 06:26:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2014 06:26:03 +0000 (UTC) To: GNU Emacs users list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 23 07:26:13 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1WRbrJ-0001dw-30 for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Mar 2014 07:26:13 +0100 Original-Received: from localhost ([::1]:59050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRbrI-0002K3-Ht for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Mar 2014 02:26:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRbr3-0002Cq-3M for help-gnu-emacs@gnu.org; Sun, 23 Mar 2014 02:26:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRbqx-0003cV-5F for help-gnu-emacs@gnu.org; Sun, 23 Mar 2014 02:25:57 -0400 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:48118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRbqw-0003cG-U8 for help-gnu-emacs@gnu.org; Sun, 23 Mar 2014 02:25:51 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 452D341D4A for ; Sun, 23 Mar 2014 07:25:48 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qvipodq-9ROK for ; Sun, 23 Mar 2014 07:25:48 +0100 (CET) Original-Received: from aga-netbook (99-234.echostar.pl [213.156.99.234]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 1B0594206C for ; Sun, 23 Mar 2014 07:25:47 +0100 (CET) X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96689 Archived-At: Hi all Emacs Gurus, I have a directory ("folder" in newspeak;)) with a few files. The names of these files include non-ASCII letters (more precisely: Polish letters with diacritical signs, like =C4=85=C4=87=C4=99.txt (fictional exam= ple)). I want them to be renamed to ace.txt etc. I imagined that I could do something like C-x d DIR C-x C-q C-c C-c What should I substitute for ? C-x h M-x encode-coding-region us-ascii is pretty close, but converts non-ASCII characters to question marks, which is not exactly what I want. Of course, I could write a simple Elisp function, performing 18 substitutions (there are 9 non-ASCII letters in the Polish alphabet), but I suspect that something like this exists already. This is Emacs, after all;). TIA, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University