unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: xah lee <xah@xahlee.org>, 4044@emacsbugs.donarmstrong.com
Subject: bug#4044: 23.1; unable to handle folder whose name starts with 2009-08-04
Date: Mon, 10 Aug 2009 10:34:19 +0200	[thread overview]
Message-ID: <nq7hxcnk38.fsf@alcatel-lucent.de> (raw)
In-Reply-To: <mailman.4271.1249872423.2239.bug-gnu-emacs@gnu.org> (Chong Yidong's message of "Sun, 09 Aug 2009 22:28:01 -0400")

Chong Yidong <cyd@stupidchicken.com> writes:

>> if a folder has names like “2009-08-04 misc”, then emacs dired  
>> will mistake the folder name being just “misc”, and basically  
>> unable to open, move, delete the folder.
>>
>> • switch to dired.
>> • type + then 2009-08-04 misc
>>
>> • Now, you can see the coloring is wrong. Try to move, rename, or go  
>> into the folder. Emacs complains
>> dired-get-file-for-visit: File no longer exists; type `g' to update  
>> dired buffer
>>
>> This happens on emacs 23.x on Mac. 100% reproducible.
>
> I'm afraid I can't reproduce it on GNU/Linux with 23.1, or with trunk.
> Do you see the problem without customizations (-Q)?

This is similar to Bug#4075. The problem is, that the `dired-filename'
text property is wrongly set in the dired buffer for that entry.

Under GNU/Linux, this property is set correctly, likely due to the
"--dired" switch of the ls command (see `insert-directory'). Tramp
hasn't set it until recently, and somebody else did set the wrong value
when Tramp's `tramp-handle-insert-directory' was finished.

I have solved it (partly) by setting this text property in
`tramp-handle-insert-directory', if possible. I have no idea what
happens on Mac.

Best regards, Michael.





       reply	other threads:[~2009-08-10  8:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4271.1249872423.2239.bug-gnu-emacs@gnu.org>
2009-08-10  8:34 ` Michael Albinus [this message]
2009-08-10  2:28 bug#4044: 23.1; unable to handle folder whose name starts with 2009-08-04 Chong Yidong
2009-08-10  6:11 ` Xah Lee
  -- strict thread matches above, loose matches on Subject: below --
2009-08-05  4:11 xah lee

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=nq7hxcnk38.fsf@alcatel-lucent.de \
    --to=michael.albinus@gmx.de \
    --cc=4044@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    --cc=xah@xahlee.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).