all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#2585: 23.0.90; read-file-name with dialog
@ 2009-03-08 20:05 Chong Yidong
  2009-03-08 20:24 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2009-03-08 20:05 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 2585, MJ

> Whoever did the conversion of read-file-name from C to lisp probably 
> knows what was meant by this, by my naive impression is that the 
> following logic is a mistake:
>
>   ;; If DIR contains a file name, split it.
>   (let ((file (file-name-nondirectory dir)))
>     (when (and default-filename (not (zerop (length file))))
>       (setq default-filename file)
>       (setq dir (file-name-directory dir)))
>
> The third line makes more sense to me as:
>
>  (when (and (not default-filename) (not (zerop (length file))))
>
> ie. if default-filename is specified, then the splitting should NOT be
> done.

That seems right to me.  Stefan, you were the one who rewrote
read-file-name; could you verify this?






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

end of thread, other threads:[~2009-03-09 13:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <49B51A3D.7040101@gnu.org>
2009-03-06 18:41 ` bug#2585: 23.0.90; read-file-name with dialog MJ
2009-03-07  7:50   ` Jason Rumney
2009-03-09 13:40   ` bug#2585: marked as done (23.0.90; read-file-name with dialog) Emacs bug Tracking System
2009-03-08 20:05 bug#2585: 23.0.90; read-file-name with dialog Chong Yidong
2009-03-08 20:24 ` Stefan Monnier

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.