diff options
| -rw-r--r-- | doc/emacs/cmdargs.texi | 21 | ||||
| -rw-r--r-- | etc/NEWS | 9 |
2 files changed, 17 insertions, 13 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index 25a25268889..960398df081 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -528,16 +528,17 @@ This variable defaults to @file{~/.bash_history} if you use Bash, to | |||
| 528 | otherwise. | 528 | otherwise. |
| 529 | @item HOME | 529 | @item HOME |
| 530 | @vindex HOME@r{, environment variable} | 530 | @vindex HOME@r{, environment variable} |
| 531 | The location of your files in the directory tree; used for | 531 | The location of your files in the directory tree; used for expansion |
| 532 | expansion of file names starting with a tilde (@file{~}). | 532 | of file names starting with a tilde (@file{~}). If set, it should be |
| 533 | If set to a relative file name, Emacs expands @file{~} to the | 533 | set to an absolute file name. (If set to a relative file name, Emacs |
| 534 | corresponding absolute file name. If unset, it normally defaults to | 534 | interprets it relative to the directory where Emacs was started, but |
| 535 | the home directory of the user given by @env{LOGNAME}, @env{USER} or | 535 | we don't recommend to use this feature.) If unset, @env{HOME} |
| 536 | your user ID, or to @file{/} if all else fails. On MS-DOS, | 536 | normally defaults to the home directory of the user given by |
| 537 | it defaults to the directory from which Emacs was started, with | 537 | @env{LOGNAME}, @env{USER} or your user ID, or to @file{/} if all else |
| 538 | @samp{/bin} removed from the end if it was present. On Windows, the | 538 | fails. On MS-DOS, it defaults to the directory from which Emacs was |
| 539 | default value of @env{HOME} is the @file{Application Data} | 539 | started, with @samp{/bin} removed from the end if it was present. On |
| 540 | subdirectory of the user profile directory (normally, this is | 540 | Windows, the default value of @env{HOME} is the @file{Application |
| 541 | Data} subdirectory of the user profile directory (normally, this is | ||
| 541 | @file{C:/Documents and Settings/@var{username}/Application Data}, | 542 | @file{C:/Documents and Settings/@var{username}/Application Data}, |
| 542 | where @var{username} is your user name), though for backwards | 543 | where @var{username} is your user name), though for backwards |
| 543 | compatibility @file{C:/} will be used instead if a @file{.emacs} file | 544 | compatibility @file{C:/} will be used instead if a @file{.emacs} file |
| @@ -961,9 +961,12 @@ its default value changed in Emacs 27.1. | |||
| 961 | 961 | ||
| 962 | ** The REPETITIONS argument of 'benchmark-run' can now also be a variable. | 962 | ** The REPETITIONS argument of 'benchmark-run' can now also be a variable. |
| 963 | 963 | ||
| 964 | ** If $HOME is a relative file name, 'expand-file-name' now expands | 964 | ** Interpretation of relative HOME directory has changed. |
| 965 | "~" and leading "~/" to the corresponding absolute file name. | 965 | If $HOME is set to a relative file name, 'expand-file-name' now |
| 966 | Formerly, it incorrectly expanded them to a relative file name. | 966 | interprets it relative to the directory where Emacs was started, not |
| 967 | relative to the default-directory of the current buffer. We recommend | ||
| 968 | always setting $HOME to an absolute file name, so that its meaning is | ||
| 969 | independent of where Emacs was started. | ||
| 967 | 970 | ||
| 968 | ** The FILENAME argument to 'file-name-base' is now mandatory and no | 971 | ** The FILENAME argument to 'file-name-base' is now mandatory and no |
| 969 | longer defaults to 'buffer-file-name'. | 972 | longer defaults to 'buffer-file-name'. |