aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorYuuki Harano2020-12-21 01:53:07 +0900
committerYuuki Harano2020-12-21 01:53:07 +0900
commit565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42 (patch)
tree5a25406b9f4ff091cb6856e857d2857bb3e631e4 /doc/lispref
parenta44cd7c88121bb0e04bdf13d73e15f085cf3b085 (diff)
parent87b82a1969edf80d3bd4781454ec9fc968773a6d (diff)
downloademacs-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.texi7
-rw-r--r--doc/lispref/errors.texi11
-rw-r--r--doc/lispref/internals.texi2
-rw-r--r--doc/lispref/keymaps.texi5
-rw-r--r--doc/lispref/minibuf.texi6
-rw-r--r--doc/lispref/os.texi13
-rw-r--r--doc/lispref/variables.texi2
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
928was specified to run but remapped into another command. 928was specified to run but remapped into another command.
929@end defvar 929@end defvar
930 930
931@defvar current-minibuffer-command
932This has the same value as @code{this-command}, but is bound
933recursively when entering a minibuffer. This variable can be used
934from minibuffer hooks and the like to determine what command opened
935the current minibuffer session.
936@end defvar
937
931@defun this-command-keys 938@defun this-command-keys
932This function returns a string or vector containing the key sequence 939This function returns a string or vector containing the key sequence
933that invoked the present command. Any events read by the command 940that 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}.
129This is a subcategory of @code{file-error}. It happens, when a file 129This is a subcategory of @code{file-error}. It happens, when a file
130could not be watched for changes. @xref{File Notifications}. 130could not be watched for changes. @xref{File Notifications}.
131 131
132@item remote-file-error
133This is a subcategory of @code{file-error}, which results from
134problems in accessing a remote file. @xref{Remote Files,,, emacs, The
135GNU Emacs Manual}. Often, this error appears when timers, process
136filters, process sentinels or special events in general try to access
137a remote file, and collide with another remote file operation. In
138general 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
134This is a subcategory of @code{file-error}, which results from 143This is a subcategory of @code{remote-file-error}, which results from
135problems in accessing a remote file using ftp. @xref{Remote Files,,, 144problems in accessing a remote file using ftp. @xref{Remote Files,,,
136emacs, The GNU Emacs Manual}. 145emacs, 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
625way to compute the size of a variable. For instance, two variables 625way to compute the size of a variable. For instance, two variables
626may share parts of a data structure, and this will be counted twice, 626may share parts of a data structure, and this will be counted twice,
627but this command may still give a useful high-level overview of which 627but this command may still give a useful high-level overview of which
628parts of Emacs is using memory. 628parts 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
2813function keys. 2813function keys.
2814 2814
2815If you have functions that change whether a tool bar item is enabled
2816or not, this status is not necessarily updated visually immediately.
2817To 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
1803completions. This function must accept one argument, a list of 1803completions. This function must accept one argument, a list of
1804completions, and should return such a list of completions where 1804completions, and should return such a list of completions where
1805each element contains a list of three elements: a completion, 1805each element contains a list of three elements: a completion,
1806a prefix string, and a suffix string. 1806a prefix string, and a suffix string. This function takes priority
1807over @code{:annotation-function}.
1807 1808
1808@item :exit-function 1809@item :exit-function
1809The value should be a function to run after performing completion. 1810The value should be a function to run after performing completion.
@@ -1911,7 +1912,8 @@ completions. The function should take one argument,
1911return such a list of @var{completions} where each element contains a list 1912return such a list of @var{completions} where each element contains a list
1912of three elements: a completion, a prefix which is displayed before 1913of three elements: a completion, a prefix which is displayed before
1913the completion string in the @file{*Completions*} buffer, and 1914the completion string in the @file{*Completions*} buffer, and
1914a suffix displayed after the completion string. 1915a suffix displayed after the completion string. This function
1916takes priority over @code{annotation-function}.
1915 1917
1916@item display-sort-function 1918@item display-sort-function
1917The value should be a function for sorting completions. The function 1919The 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
2106after a certain time has elapsed, it can do this by scheduling a new 2106after a certain time has elapsed, it can do this by scheduling a new
2107timer. 2107timer.
2108 2108
2109 If a timer function performs a remote file operation, it can be in
2110conflict with an already running remote file operation of the same
2111connection. Such conflicts are detected, and they result in a
2112@code{remote-file-error} error (@pxref{Standard Errors}). This should
2113be 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,
2110it should save and restore the match data. @xref{Saving Match Data}. 2123it 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
1291disappear without prior notice. 1291disappear without prior notice.
1292 1292
1293The byte-compiler can also warn about lexical variables that are 1293The byte-compiler can also warn about lexical variables that are