mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-05-01 02:31:23 -07:00
Always print the expanded directory name for Eshell's "pwd" command
* lisp/eshell/em-dirs.el (eshell-pwd-convert-function): Default to 'expand-file-name' on all systems. * etc/NEWS: Announce this change.
This commit is contained in:
parent
3e36267b25
commit
ef440f59a1
2 changed files with 10 additions and 4 deletions
7
etc/NEWS
7
etc/NEWS
|
|
@ -704,6 +704,13 @@ Use 'if-let*', 'when-let*' and 'and-let*' instead.
|
|||
This effectively obsoletes the old '(if-let (SYMBOL SOMETHING) ...)'
|
||||
single binding syntax, which we'd kept only for backwards compatibility.
|
||||
|
||||
---
|
||||
** The Eshell 'pwd' command now expands the directory name on all systems.
|
||||
This ensures that user directories are properly expanded to their full
|
||||
name. Previously, Eshell only did this for MS-Windows systems. To
|
||||
restore the old behavior, you can set 'eshell-pwd-convert-function' to
|
||||
'identity'.
|
||||
|
||||
|
||||
* Lisp Changes in Emacs 31.1
|
||||
|
||||
|
|
|
|||
|
|
@ -65,9 +65,7 @@ they lack somewhat in feel from the typical shell equivalents."
|
|||
:version "24.1" ; removed eshell-dirs-initialize
|
||||
:type 'hook)
|
||||
|
||||
(defcustom eshell-pwd-convert-function (if (eshell-under-windows-p)
|
||||
#'expand-file-name
|
||||
#'identity)
|
||||
(defcustom eshell-pwd-convert-function #'expand-file-name
|
||||
"The function used to normalize the value of Eshell's `pwd'.
|
||||
The value returned by `pwd' is also used when recording the
|
||||
last-visited directory in the last-dir-ring, so it will affect the
|
||||
|
|
@ -75,7 +73,8 @@ form of the list used by `cd ='."
|
|||
:type '(radio (function-item file-truename)
|
||||
(function-item expand-file-name)
|
||||
(function-item identity)
|
||||
(function :tag "Other")))
|
||||
(function :tag "Other"))
|
||||
:version "31.1")
|
||||
|
||||
(defcustom eshell-ask-to-save-last-dir 'always
|
||||
"Determine if the last-dir-ring should be automatically saved.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue