diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/files.texi | 3 | ||||
| -rw-r--r-- | doc/emacs/mini.texi | 24 |
2 files changed, 24 insertions, 3 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 2c4a0ca30ce..dc59e13e081 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi | |||
| @@ -63,6 +63,9 @@ completing up to a nonexistent file name, Emacs prints | |||
| 63 | @samp{[Confirm]} and you must type a second @key{RET} to confirm. | 63 | @samp{[Confirm]} and you must type a second @key{RET} to confirm. |
| 64 | @xref{Completion Exit}, for details. | 64 | @xref{Completion Exit}, for details. |
| 65 | 65 | ||
| 66 | Minibuffer history commands offer some special features for reading | ||
| 67 | file names, see @ref{Minibuffer History}. | ||
| 68 | |||
| 66 | @cindex default directory | 69 | @cindex default directory |
| 67 | @vindex default-directory | 70 | @vindex default-directory |
| 68 | @vindex insert-default-directory | 71 | @vindex insert-default-directory |
diff --git a/doc/emacs/mini.texi b/doc/emacs/mini.texi index 83e7f3b7eb5..93f91420771 100644 --- a/doc/emacs/mini.texi +++ b/doc/emacs/mini.texi | |||
| @@ -89,7 +89,10 @@ the default directory. If you now type @kbd{buffer.c} as input, that | |||
| 89 | specifies the file @file{/u2/emacs/src/buffer.c}. @xref{File Names}, | 89 | specifies the file @file{/u2/emacs/src/buffer.c}. @xref{File Names}, |
| 90 | for information about the default directory. | 90 | for information about the default directory. |
| 91 | 91 | ||
| 92 | You can specify the parent directory with @file{..}: | 92 | Alternative defaults for the file name you may want are available by |
| 93 | typing @kbd{M-n}, see @ref{Minibuffer History}. | ||
| 94 | |||
| 95 | You can specify a file in the parent directory with @file{..}: | ||
| 93 | @file{/a/b/../foo.el} is equivalent to @file{/a/foo.el}. | 96 | @file{/a/b/../foo.el} is equivalent to @file{/a/foo.el}. |
| 94 | Alternatively, you can use @kbd{M-@key{DEL}} to kill directory names | 97 | Alternatively, you can use @kbd{M-@key{DEL}} to kill directory names |
| 95 | backwards (@pxref{Words}). | 98 | backwards (@pxref{Words}). |
| @@ -609,8 +612,6 @@ Move to a later item in the minibuffer history that matches | |||
| 609 | 612 | ||
| 610 | @kindex M-p @r{(minibuffer history)} | 613 | @kindex M-p @r{(minibuffer history)} |
| 611 | @kindex M-n @r{(minibuffer history)} | 614 | @kindex M-n @r{(minibuffer history)} |
| 612 | @kindex UP @r{(minibuffer history)} | ||
| 613 | @kindex DOWN @r{(minibuffer history)} | ||
| 614 | @findex next-history-element | 615 | @findex next-history-element |
| 615 | @findex previous-history-element | 616 | @findex previous-history-element |
| 616 | While in the minibuffer, @kbd{M-p} (@code{previous-history-element}) | 617 | While in the minibuffer, @kbd{M-p} (@code{previous-history-element}) |
| @@ -627,8 +628,25 @@ typed @kbd{M-p}), Emacs tries fetching from a list of default | |||
| 627 | arguments: values that you are likely to enter. You can think of this | 628 | arguments: values that you are likely to enter. You can think of this |
| 628 | as moving through the ``future history''. | 629 | as moving through the ``future history''. |
| 629 | 630 | ||
| 631 | @cindex future history for file names | ||
| 632 | @cindex minibuffer defaults for file names | ||
| 633 | @vindex file-name-at-point-functions | ||
| 634 | The ``future history'' for file names includes several possible | ||
| 635 | alternatives you may find useful, such as the file name or the URL at | ||
| 636 | point in the current buffer. The defaults put into the ``future | ||
| 637 | history'' in this case are controlled by the functions mentioned in | ||
| 638 | the value of the option @code{file-name-at-point-functions}. By | ||
| 639 | default, its value invokes the @code{ffap} package (@pxref{FFAP}), | ||
| 640 | which tries to guess the default file or URL from the text around | ||
| 641 | point. To disable this guessing, customize the option to a @code{nil} | ||
| 642 | value, then the ``future history'' of file names will include only the | ||
| 643 | file, if any, visited by the current buffer, and the default | ||
| 644 | directory. | ||
| 645 | |||
| 630 | @findex previous-line-or-history-element | 646 | @findex previous-line-or-history-element |
| 631 | @findex next-line-or-history-element | 647 | @findex next-line-or-history-element |
| 648 | @kindex UP @r{(minibuffer history)} | ||
| 649 | @kindex DOWN @r{(minibuffer history)} | ||
| 632 | The arrow keys @kbd{@key{UP}} and @kbd{@key{DOWN}} work like | 650 | The arrow keys @kbd{@key{UP}} and @kbd{@key{DOWN}} work like |
| 633 | @kbd{M-p} and @kbd{M-n}, but if the current history item is longer | 651 | @kbd{M-p} and @kbd{M-n}, but if the current history item is longer |
| 634 | than a single line, they allow you to move to the previous or next | 652 | than a single line, they allow you to move to the previous or next |