emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imagemagick patch v3


From: Tassilo Horn
Subject: Re: imagemagick patch v3
Date: Wed, 05 Aug 2009 20:19:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

Hi!

>> From: address@hidden
>> Date: Wed, 05 Aug 2009 10:10:23 +0200
>> Cc: Emacs Development <address@hidden>
>> 
>> >> + (push
>> >> +  (cons  (concat "\\." extension "$") 'image-mode)
>> >> +  auto-mode-alist)
>> >
>> > The "$" should be replaced with "\\'".
>> 
>> Ok, but I dont get why?
>
> Because a file name on Posix platforms can include a newline
> character.

I tried that on GNU/Linux, and indeed it does work.  The `ls' command
lists the file as "multi?line?file", where the question marks represent
the newlines.

Unfortunately, dired doesn't work with those files.  Here's a
"screenshot":

--8<---------------cut here---------------start------------->8---
  drwxr-xr-x  2 horn horn  4.0K 2009-06-30 22:32 kvm
  drwxr-xr-x  4 horn horn  4.0K 2009-08-05 19:30 Mail
  -rw-r--r--  1 horn horn     4 2009-08-05 20:05 multi
line
file
  drwxr-xr-x  7 horn horn   12K 2009-08-05 20:04 News
  drwxr-xr-x  6 horn horn  4.0K 2009-07-27 20:59 opt
--8<---------------cut here---------------end--------------->8---

The listing itself is ok, I'd say.  But hitting RET on "multi" says
"File no longer exists; type `g' to update dired buffer", and RET on
"line" or "file" say "No file on this line".

Well, not really a problem, though...

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]