diff options
| author | Yuuki Harano | 2020-12-21 01:53:07 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2020-12-21 01:53:07 +0900 |
| commit | 565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42 (patch) | |
| tree | 5a25406b9f4ff091cb6856e857d2857bb3e631e4 /doc/lispref | |
| parent | a44cd7c88121bb0e04bdf13d73e15f085cf3b085 (diff) | |
| parent | 87b82a1969edf80d3bd4781454ec9fc968773a6d (diff) | |
| download | emacs-565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42.tar.gz emacs-565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/commands.texi | 7 | ||||
| -rw-r--r-- | doc/lispref/errors.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/internals.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 5 | ||||
| -rw-r--r-- | doc/lispref/minibuf.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/os.texi | 13 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 2 |
7 files changed, 41 insertions, 5 deletions
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index ebfda01671e..15d7e4e3a71 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -928,6 +928,13 @@ remapping), and @code{this-original-command} gives the command that | |||
| 928 | was specified to run but remapped into another command. | 928 | was specified to run but remapped into another command. |
| 929 | @end defvar | 929 | @end defvar |
| 930 | 930 | ||
| 931 | @defvar current-minibuffer-command | ||
| 932 | This has the same value as @code{this-command}, but is bound | ||
| 933 | recursively when entering a minibuffer. This variable can be used | ||
| 934 | from minibuffer hooks and the like to determine what command opened | ||
| 935 | the current minibuffer session. | ||
| 936 | @end defvar | ||
| 937 | |||
| 931 | @defun this-command-keys | 938 | @defun this-command-keys |
| 932 | This function returns a string or vector containing the key sequence | 939 | This function returns a string or vector containing the key sequence |
| 933 | that invoked the present command. Any events read by the command | 940 | that invoked the present command. Any events read by the command |
diff --git a/doc/lispref/errors.texi b/doc/lispref/errors.texi index cd8694be8a3..a386a41bd3d 100644 --- a/doc/lispref/errors.texi +++ b/doc/lispref/errors.texi | |||
| @@ -129,9 +129,18 @@ This is a subcategory of @code{file-error}. @xref{Modification Time}. | |||
| 129 | This is a subcategory of @code{file-error}. It happens, when a file | 129 | This is a subcategory of @code{file-error}. It happens, when a file |
| 130 | could not be watched for changes. @xref{File Notifications}. | 130 | could not be watched for changes. @xref{File Notifications}. |
| 131 | 131 | ||
| 132 | @item remote-file-error | ||
| 133 | This is a subcategory of @code{file-error}, which results from | ||
| 134 | problems in accessing a remote file. @xref{Remote Files,,, emacs, The | ||
| 135 | GNU Emacs Manual}. Often, this error appears when timers, process | ||
| 136 | filters, process sentinels or special events in general try to access | ||
| 137 | a remote file, and collide with another remote file operation. In | ||
| 138 | general it is a good idea to write a bug report. | ||
| 139 | @xref{Bugs,,, emacs, The GNU Emacs Manual}. | ||
| 140 | |||
| 132 | @c net/ange-ftp.el | 141 | @c net/ange-ftp.el |
| 133 | @item ftp-error | 142 | @item ftp-error |
| 134 | This is a subcategory of @code{file-error}, which results from | 143 | This is a subcategory of @code{remote-file-error}, which results from |
| 135 | problems in accessing a remote file using ftp. @xref{Remote Files,,, | 144 | problems in accessing a remote file using ftp. @xref{Remote Files,,, |
| 136 | emacs, The GNU Emacs Manual}. | 145 | emacs, The GNU Emacs Manual}. |
| 137 | 146 | ||
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi index 28a5fdb3492..fa3dacbb7ae 100644 --- a/doc/lispref/internals.texi +++ b/doc/lispref/internals.texi | |||
| @@ -625,7 +625,7 @@ All the data here is approximate, because there's really no consistent | |||
| 625 | way to compute the size of a variable. For instance, two variables | 625 | way to compute the size of a variable. For instance, two variables |
| 626 | may share parts of a data structure, and this will be counted twice, | 626 | may share parts of a data structure, and this will be counted twice, |
| 627 | but this command may still give a useful high-level overview of which | 627 | but this command may still give a useful high-level overview of which |
| 628 | parts of Emacs is using memory. | 628 | parts of Emacs are using memory. |
| 629 | @end defun | 629 | @end defun |
| 630 | 630 | ||
| 631 | @node Stack-allocated Objects | 631 | @node Stack-allocated Objects |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 6635f50960a..9daeb2c77f9 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -2812,6 +2812,11 @@ the shift modifier: | |||
| 2812 | @xref{Function Keys}, for more information about how to add modifiers to | 2812 | @xref{Function Keys}, for more information about how to add modifiers to |
| 2813 | function keys. | 2813 | function keys. |
| 2814 | 2814 | ||
| 2815 | If you have functions that change whether a tool bar item is enabled | ||
| 2816 | or not, this status is not necessarily updated visually immediately. | ||
| 2817 | To force recalculation of the tool bar, call | ||
| 2818 | @code{force-mode-line-update} (@pxref{Mode Line Format}). | ||
| 2819 | |||
| 2815 | @node Modifying Menus | 2820 | @node Modifying Menus |
| 2816 | @subsection Modifying Menus | 2821 | @subsection Modifying Menus |
| 2817 | @cindex menu modification | 2822 | @cindex menu modification |
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index 56bc0b8ab67..48f068ee604 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -1803,7 +1803,8 @@ The value should be a function to add prefixes and suffixes to | |||
| 1803 | completions. This function must accept one argument, a list of | 1803 | completions. This function must accept one argument, a list of |
| 1804 | completions, and should return such a list of completions where | 1804 | completions, and should return such a list of completions where |
| 1805 | each element contains a list of three elements: a completion, | 1805 | each element contains a list of three elements: a completion, |
| 1806 | a prefix string, and a suffix string. | 1806 | a prefix string, and a suffix string. This function takes priority |
| 1807 | over @code{:annotation-function}. | ||
| 1807 | 1808 | ||
| 1808 | @item :exit-function | 1809 | @item :exit-function |
| 1809 | The value should be a function to run after performing completion. | 1810 | The value should be a function to run after performing completion. |
| @@ -1911,7 +1912,8 @@ completions. The function should take one argument, | |||
| 1911 | return such a list of @var{completions} where each element contains a list | 1912 | return such a list of @var{completions} where each element contains a list |
| 1912 | of three elements: a completion, a prefix which is displayed before | 1913 | of three elements: a completion, a prefix which is displayed before |
| 1913 | the completion string in the @file{*Completions*} buffer, and | 1914 | the completion string in the @file{*Completions*} buffer, and |
| 1914 | a suffix displayed after the completion string. | 1915 | a suffix displayed after the completion string. This function |
| 1916 | takes priority over @code{annotation-function}. | ||
| 1915 | 1917 | ||
| 1916 | @item display-sort-function | 1918 | @item display-sort-function |
| 1917 | The value should be a function for sorting completions. The function | 1919 | The value should be a function for sorting completions. The function |
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index bc602205f5d..85f930d1897 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -2106,6 +2106,19 @@ run while waiting. If a timer function needs to perform an action | |||
| 2106 | after a certain time has elapsed, it can do this by scheduling a new | 2106 | after a certain time has elapsed, it can do this by scheduling a new |
| 2107 | timer. | 2107 | timer. |
| 2108 | 2108 | ||
| 2109 | If a timer function performs a remote file operation, it can be in | ||
| 2110 | conflict with an already running remote file operation of the same | ||
| 2111 | connection. Such conflicts are detected, and they result in a | ||
| 2112 | @code{remote-file-error} error (@pxref{Standard Errors}). This should | ||
| 2113 | be protected by wrapping the timer function body with | ||
| 2114 | |||
| 2115 | @lisp | ||
| 2116 | @group | ||
| 2117 | (ignore-error 'remote-file-error | ||
| 2118 | @dots{}) | ||
| 2119 | @end group | ||
| 2120 | @end lisp | ||
| 2121 | |||
| 2109 | If a timer function calls functions that can change the match data, | 2122 | If a timer function calls functions that can change the match data, |
| 2110 | it should save and restore the match data. @xref{Saving Match Data}. | 2123 | it should save and restore the match data. @xref{Saving Match Data}. |
| 2111 | 2124 | ||
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index b9ff0747382..9447e8d04c6 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1287,7 +1287,7 @@ be used.) | |||
| 1287 | 1287 | ||
| 1288 | @subsubheading Cross-file variable checking | 1288 | @subsubheading Cross-file variable checking |
| 1289 | 1289 | ||
| 1290 | @strong{Note:} This is an experimental feature that may change or | 1290 | @strong{Caution:} This is an experimental feature that may change or |
| 1291 | disappear without prior notice. | 1291 | disappear without prior notice. |
| 1292 | 1292 | ||
| 1293 | The byte-compiler can also warn about lexical variables that are | 1293 | The byte-compiler can also warn about lexical variables that are |