all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: read-directory-name
Date: Fri, 6 May 2005 21:34:29 -0500 (CDT)	[thread overview]
Message-ID: <200505070234.j472YTN21017@raven.dms.auburn.edu> (raw)
In-Reply-To: <200505070148.j471mtT20941@raven.dms.auburn.edu> (message from Luc Teirlinck on Fri, 6 May 2005 20:48:55 -0500 (CDT))

Is the behavior implemented by the following patch what was really
intended by the April 23 change?  One could, in addition to the patch
below, also change the `(concat dir initial)' into
`(expand-file-name initial dir)' which is probably more portable.

Note however that the _old_ (in fact _still present_, even though
maybe accidentally so) behavior, as documented in the Elisp manual
looks like it was implemented very intentionally.

===File ~/files.el-diff=====================================
*** files.el	06 May 2005 11:08:41 -0500	1.764
--- files.el	06 May 2005 20:47:00 -0500	
***************
*** 543,553 ****
      (setq dir default-directory))
    (unless default-dirname
      (setq default-dirname
! 	  (if initial (concat dir initial) default-directory)))
!   (read-file-name prompt dir (or default-dirname 
! 				 (if initial (expand-file-name initial dir)
! 				   dir))
! 		  mustmatch initial
  		  'file-directory-p))
  
  \f
--- 543,550 ----
      (setq dir default-directory))
    (unless default-dirname
      (setq default-dirname
! 	  (if initial (concat dir initial) dir)))
!   (read-file-name prompt dir default-dirname mustmatch initial
  		  'file-directory-p))
  
  \f
============================================================

  parent reply	other threads:[~2005-05-07  2:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-07  1:20 read-directory-name Luc Teirlinck
2005-05-07  1:48 ` read-directory-name Luc Teirlinck
2005-05-07  1:52   ` read-directory-name Luc Teirlinck
2005-05-07  2:34   ` Luc Teirlinck [this message]
2005-05-07  2:47     ` read-directory-name Luc Teirlinck
2005-05-07  2:56       ` read-directory-name Luc Teirlinck
2005-05-09 21:32         ` read-directory-name Juri Linkov
2005-05-08 22:45 ` read-directory-name Richard Stallman

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

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

  git send-email \
    --in-reply-to=200505070234.j472YTN21017@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=emacs-devel@gnu.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 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.