aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNoam Postavsky2017-11-11 11:10:49 -0500
committerNoam Postavsky2017-11-11 11:12:00 -0500
commit1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e (patch)
tree66f1607d41b0bc490f3202c327ecb3fcdc5746bf /doc
parent1ef6d2b0e679c035dd2a1f2f858865eeafc5bc28 (diff)
parent9533d76b0b5bfe2df1cccc55a92c2545b1de4e2b (diff)
downloademacs-1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e.tar.gz
emacs-1fa0766cfa17e37be77a1566dbc775ab4ce7ff2e.zip
; Merge from emacs-26
9533d76b0b Keep Man sections in natural order (bug#28998) d63c9a96f5 * lisp/minibuffer.el: Install a workaround for bug#16274 7657a86709 Fix comparisons with tip_frame in GTK builds 603a0716a8 Improve the documentation of M-n for entering file names 72f813fb56 Fix desktop auto-save timer when linum-mode is used 44340b475f Fix "C-h k" in xterm-mouse-mode 05aa6d4a68 Fix off-by-1 bug in --enable-checking=stringbytes 096f638ddc Correct the indentation of C99's compound literals. c52a2aa8f3 Improve the doc string of 'dired-isearch-filter-filenames' e592b92482 * lisp/isearch.el (search-invisible): Doc fix. (Bug#29222) f3e69a80ab Fix display of line numbers in GTK builds e6f1fd4091 Fix previous change to flymake-diag-region (bug#29174) 89382780e1 flymake-diag-region really returns nil if region is invali... 535688a418 Flymake correctly highlights whole last line if eob (bug#2... 72e62d3fdb Protect Flymake checkdoc backend against checkdoc errors (... b28de57411 Sort entries of the Flymake diagnostics buffer (bug#29175) fc56bea142 Correctly indent C++14 brace lists which are a second argu... 9dde8be9cd Fix redisplay of overlay-arrows on GUI frames 0da08f2f8e Protect Flymake tests against older Ruby and Perl (bug#29187) 781f276cc1 Fix URL cookie expiration bug
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/files.texi3
-rw-r--r--doc/emacs/mini.texi24
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
66Minibuffer history commands offer some special features for reading
67file 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
89specifies the file @file{/u2/emacs/src/buffer.c}. @xref{File Names}, 89specifies the file @file{/u2/emacs/src/buffer.c}. @xref{File Names},
90for information about the default directory. 90for 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
93typing @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}.
94Alternatively, you can use @kbd{M-@key{DEL}} to kill directory names 97Alternatively, you can use @kbd{M-@key{DEL}} to kill directory names
95backwards (@pxref{Words}). 98backwards (@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
627arguments: values that you are likely to enter. You can think of this 628arguments: values that you are likely to enter. You can think of this
628as moving through the ``future history''. 629as 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
635alternatives you may find useful, such as the file name or the URL at
636point in the current buffer. The defaults put into the ``future
637history'' in this case are controlled by the functions mentioned in
638the value of the option @code{file-name-at-point-functions}. By
639default, its value invokes the @code{ffap} package (@pxref{FFAP}),
640which tries to guess the default file or URL from the text around
641point. To disable this guessing, customize the option to a @code{nil}
642value, then the ``future history'' of file names will include only the
643file, if any, visited by the current buffer, and the default
644directory.
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
634than a single line, they allow you to move to the previous or next 652than a single line, they allow you to move to the previous or next