all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: GNU Emacs users list <help-gnu-emacs@gnu.org>
Subject: Change encoding of file names in Wdired
Date: Sun, 23 Mar 2014 07:25:45 +0100	[thread overview]
Message-ID: <20140323072545.77b2d247@aga-netbook> (raw)

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 ąćę.txt (fictional example)).  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
<something cool>
C-c C-c

What should I substitute for <something cool>?

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,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



                 reply	other threads:[~2014-03-23  6:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140323072545.77b2d247@aga-netbook \
    --to=mbork@wmi.amu.edu.pl \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.