all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#99: Dired remote creates local directory from the menus
@ 2008-08-25 21:33 Lennart Borgman (gmail)
  2008-08-25 21:51 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-08-25 21:33 UTC (permalink / raw)
  To: 99

I can still easily reproduce this bug. Joakim (who can not reproduce
this) was using ssh, I am using ftp.

I am on w32 I guess that matters too. I think you are using GNU/Linux,
Joakim?






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#99: Dired remote creates local directory from the menus
  2008-08-25 21:33 bug#99: Dired remote creates local directory from the menus Lennart Borgman (gmail)
@ 2008-08-25 21:51 ` Lennart Borgman (gmail)
  2008-08-25 22:05   ` joakim
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-08-25 21:51 UTC (permalink / raw)
  To: 99, Joakim Verona

Lennart Borgman (gmail) wrote:
> I can still easily reproduce this bug. Joakim (who can not reproduce
> this) was using ssh, I am using ftp.
> 
> I am on w32 I guess that matters too. I think you are using GNU/Linux,
> Joakim?


I took a look at it. The problem is in using the system file dialog to
read remote file names on w32. This just gives a local file name.

I am surprised that this works for you, Joakim. Does the file dialog on
GNU/Linux understand Emacs remote file syntax?

I think the fix is simple. Just tell read-file-name to not use a dialog:

                (if (or (not (next-read-file-uses-dialog-p))
                        (when default-filename
                          (file-remote-p default-filename))
                        (file-remote-p dir))







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#99: Dired remote creates local directory from the menus
  2008-08-25 21:51 ` Lennart Borgman (gmail)
@ 2008-08-25 22:05   ` joakim
  0 siblings, 0 replies; 3+ messages in thread
From: joakim @ 2008-08-25 22:05 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: 99

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> Lennart Borgman (gmail) wrote:
>> I can still easily reproduce this bug. Joakim (who can not reproduce
>> this) was using ssh, I am using ftp.
>> 
>> I am on w32 I guess that matters too. I think you are using GNU/Linux,
>> Joakim?
>
>
> I took a look at it. The problem is in using the system file dialog to
> read remote file names on w32. This just gives a local file name.
>
> I am surprised that this works for you, Joakim. Does the file dialog on
> GNU/Linux understand Emacs remote file syntax?

I dont get a file-dialog at all, because I have disabled those.
I just use tramp syntax with find-file, which is why I didnt understand
the problem.


> I think the fix is simple. Just tell read-file-name to not use a dialog:
>
>                 (if (or (not (next-read-file-uses-dialog-p))
>                         (when default-filename
>                           (file-remote-p default-filename))
>                         (file-remote-p dir))

I'll try it out.

-- 
Joakim Verona






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-25 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25 21:33 bug#99: Dired remote creates local directory from the menus Lennart Borgman (gmail)
2008-08-25 21:51 ` Lennart Borgman (gmail)
2008-08-25 22:05   ` joakim

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.