diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/minibuf.texi | 39 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 4 |
2 files changed, 28 insertions, 15 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index 766079d7bcd..a2b6e145502 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -1108,11 +1108,11 @@ different function to completely override the normal behavior of | |||
| 1108 | in the minibuffer to do completion. | 1108 | in the minibuffer to do completion. |
| 1109 | 1109 | ||
| 1110 | @defvar minibuffer-completion-table | 1110 | @defvar minibuffer-completion-table |
| 1111 | The value of this variable is the completion table used for completion | 1111 | The value of this variable is the completion table (@pxref{Basic |
| 1112 | in the minibuffer. This is the global variable that contains what | 1112 | Completion}) used for completion in the minibuffer. This is the |
| 1113 | @code{completing-read} passes to @code{try-completion}. It is used by | 1113 | global variable that contains what @code{completing-read} passes to |
| 1114 | minibuffer completion commands such as | 1114 | @code{try-completion}. It is used by minibuffer completion commands |
| 1115 | @code{minibuffer-complete-word}. | 1115 | such as @code{minibuffer-complete-word}. |
| 1116 | @end defvar | 1116 | @end defvar |
| 1117 | 1117 | ||
| 1118 | @defvar minibuffer-completion-predicate | 1118 | @defvar minibuffer-completion-predicate |
| @@ -1770,7 +1770,8 @@ possible match, and ignore the match if the predicate returns | |||
| 1770 | @code{nil}. | 1770 | @code{nil}. |
| 1771 | 1771 | ||
| 1772 | @item | 1772 | @item |
| 1773 | A flag specifying the type of completion operation to perform. This | 1773 | A flag specifying the type of completion operation to perform; see |
| 1774 | @ref{Basic Completion}, for the details of those operations. This | ||
| 1774 | flag may be one of the following values. | 1775 | flag may be one of the following values. |
| 1775 | 1776 | ||
| 1776 | @table @code | 1777 | @table @code |
| @@ -1841,17 +1842,26 @@ the same as for @code{display-sort-function}. | |||
| 1841 | 1842 | ||
| 1842 | @defun completion-table-dynamic function &optional switch-buffer | 1843 | @defun completion-table-dynamic function &optional switch-buffer |
| 1843 | This function is a convenient way to write a function that can act as | 1844 | This function is a convenient way to write a function that can act as |
| 1844 | a programmed completion function. The argument @var{function} should be | 1845 | a programmed completion function. The argument @var{function} should |
| 1845 | a function that takes one argument, a string, and returns an alist of | 1846 | be a function that takes one argument, a string, and returns a |
| 1846 | possible completions of it. It is allowed to ignore the argument and | 1847 | completion table (@pxref{Basic Completion}) containing all the |
| 1847 | return a full list of all possible completions. You can think of | 1848 | possible completions. The table returned by @var{function} can also |
| 1848 | @code{completion-table-dynamic} as a transducer between that interface | 1849 | include elements that don't match the string argument; they are |
| 1850 | automatically filtered out by @code{completion-table-dynamic}. In | ||
| 1851 | particular, @var{function} can ignore its argument and return a full | ||
| 1852 | list of all possible completions. You can think of | ||
| 1853 | @code{completion-table-dynamic} as a transducer between @var{function} | ||
| 1849 | and the interface for programmed completion functions. | 1854 | and the interface for programmed completion functions. |
| 1850 | 1855 | ||
| 1851 | If the optional argument @var{switch-buffer} is non-@code{nil}, and | 1856 | If the optional argument @var{switch-buffer} is non-@code{nil}, and |
| 1852 | completion is performed in the minibuffer, @var{function} will be | 1857 | completion is performed in the minibuffer, @var{function} will be |
| 1853 | called with current buffer set to the buffer from which the minibuffer | 1858 | called with current buffer set to the buffer from which the minibuffer |
| 1854 | was entered. | 1859 | was entered. |
| 1860 | |||
| 1861 | The return value of @code{completion-table-dynamic} is a function that | ||
| 1862 | can be used as the 2nd argument to @code{try-completion} and | ||
| 1863 | @code{all-completions}. Note that this function will always return | ||
| 1864 | empty metadata and trivial boundaries (@pxref{Programmed Completion}). | ||
| 1855 | @end defun | 1865 | @end defun |
| 1856 | 1866 | ||
| 1857 | @defun completion-table-with-cache function &optional ignore-case | 1867 | @defun completion-table-with-cache function &optional ignore-case |
| @@ -1876,9 +1886,10 @@ Emacs Manual}. This command uses the abnormal hook variable | |||
| 1876 | 1886 | ||
| 1877 | @defvar completion-at-point-functions | 1887 | @defvar completion-at-point-functions |
| 1878 | The value of this abnormal hook should be a list of functions, which | 1888 | The value of this abnormal hook should be a list of functions, which |
| 1879 | are used to compute a completion table for completing the text at | 1889 | are used to compute a completion table (@pxref{Basic Completion}) for |
| 1880 | point. It can be used by major modes to provide mode-specific | 1890 | completing the text at point. It can be used by major modes to |
| 1881 | completion tables (@pxref{Major Mode Conventions}). | 1891 | provide mode-specific completion tables (@pxref{Major Mode |
| 1892 | Conventions}). | ||
| 1882 | 1893 | ||
| 1883 | When the command @code{completion-at-point} runs, it calls the | 1894 | When the command @code{completion-at-point} runs, it calls the |
| 1884 | functions in the list one by one, without any argument. Each function | 1895 | functions in the list one by one, without any argument. Each function |
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 3630c317b2f..db3b3f7fee5 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -3857,7 +3857,9 @@ Due to the remote shell saving tilde expansions triggered by | |||
| 3857 | @value{tramp} can suppress this behavior with the user option | 3857 | @value{tramp} can suppress this behavior with the user option |
| 3858 | @code{tramp-histfile-override}. When set to @code{t}, environment | 3858 | @code{tramp-histfile-override}. When set to @code{t}, environment |
| 3859 | variable @env{HISTFILE} is unset, and environment variables | 3859 | variable @env{HISTFILE} is unset, and environment variables |
| 3860 | @env{HISTFILESIZE} and @env{HISTSIZE} are set to 0. | 3860 | @env{HISTFILESIZE} and @env{HISTSIZE} are set to 0. Don't use this |
| 3861 | with @command{bash} 5.0.0. There is a bug in @command{bash} which | ||
| 3862 | lets @command{bash} die. | ||
| 3861 | 3863 | ||
| 3862 | Alternatively, @code{tramp-histfile-override} could be a string. | 3864 | Alternatively, @code{tramp-histfile-override} could be a string. |
| 3863 | Environment variable @env{HISTFILE} is set to this file name then. Be | 3865 | Environment variable @env{HISTFILE} is set to this file name then. Be |