Date: Mon, 15 Dec 2008 16:07:26 +0200 From: Giorgos Keramidas <keramida@freebsd.org> To: Noah <admin2@enabled.com> Cc: freebsd-questions@freebsd.org Subject: Renaming files with strange characters in dired-mode [was: Re: control character file names] Message-ID: <87wse17crl.fsf_-_@kobe.laptop> In-Reply-To: <494662A6.3050001@enabled.com> (Noah's message of "Mon, 15 Dec 2008 05:59:02 -0800") References: <4945BF22.7030606@enabled.com> <8763lm189r.fsf@kobe.laptop> <4945D461.7070406@enabled.com> <873agpptkn.fsf@kobe.laptop> <494662A6.3050001@enabled.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Dec 2008 05:59:02 -0800, Noah <admin2@enabled.com> wrote: >> If you have customized `dired-listing-switches' try reverting it to a >> simpler set of options, like: >> >> (setq-default dired-listing-switches "-lFa") >> >> The -b and -B options tend to confuse dired about what the *real* >> filename is, and may trigger this sort of error. > > thanks I placed that setq option in my .emacs and that works for > renaming files and directories containing control character. I am > unable to rename a directory that has nine '?'. > > What setq modification will allow emacs to change those type filenames? This seems like a dired problem. Are the characters _really_ the question mark character, or are they merely characters that are un-displayable in the current coding system? What do you see when you move the point on that filename and then type `C-u C-x ='? If the characters are really the question mark, then the informational buffer that pops up should include something like this: ,----------------------------------------------------------------------- | character: ? (63, #o77, #x3f) | preferred charset: ascii (ASCII (ISO646 IRV)) | code point: 0x3F | syntax: . which means: punctuation | category: a:ASCII | ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin r:Roman | Japanese roman | buffer code: #x3F | file code: #x3F (encoded by coding system utf-8-emacs-unix) | display: terminal code #x3F | | Character code properties: customize what to show | name: QUESTION MARK | general-category: Po (Punctuation, Other) | | There are text properties here: | fontified t | `----------------------------------------------------------------------- ASCII code 63 (octal #o77, hex #x3f) in this case is the question-mark character.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87wse17crl.fsf_-_>
