all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Change encoding of file names in Wdired
@ 2014-03-23  6:25 Marcin Borkowski
  0 siblings, 0 replies; only message in thread
From: Marcin Borkowski @ 2014-03-23  6:25 UTC (permalink / raw)
  To: GNU Emacs users list

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-23  6:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-23  6:25 Change encoding of file names in Wdired Marcin Borkowski

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.