aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorPaul Eggert2017-11-25 22:55:35 -0800
committerPaul Eggert2017-11-25 22:55:35 -0800
commitd20161b25e9cd184d841ba9e36ee5141c01fd75f (patch)
tree6026fea9d48e641bf63b23209970efd1f8024e2c /doc/lispref
parente27004c5fe3c227476ea210ff5bee2efb783ae17 (diff)
parenta89f0b6f33f9eb8910a1fceda9028d76ef50b05d (diff)
downloademacs-d20161b25e9cd184d841ba9e36ee5141c01fd75f.tar.gz
emacs-d20161b25e9cd184d841ba9e36ee5141c01fd75f.zip
Merge from origin/emacs-26
a89f0b6f33 maint: shorten https://lists.gnu.org/archive/html/... links 8be3aee281 Merge from Gnulib 265cee553f Work around GCC bug 80776 on Fedora 27 x86 dc7a97fb84 Tweak copy-file, rename-file doc cfa2a944d4 Change font-lock-extend-region-multiline handling in mhtml... a8664cc998 Minor cleanup in tramp-gvfs-handle-file-local-copy 55c5b12fa0 Add test for Bug#29423 in Tramp. 3198a1646e Avoid jumbled order in HTML rendered by shr.el 23bfc2d2db Make sure 'dired-filename' property is always put by ls-lisp f7fdaea4c0 A better solution for bug#29347 86e6ed8521 ; * src/thread.c (acquire_global_lock): Fix thinko in last... f300852037 Avoid a hang after C-g while sit-for on a Unix TTY d7fc719ff1 Improve the doc string of 'list-packages' b4f67ebb92 Improve discoverability of 'defvar' for suppressing warnings 8a2b204e64 Improve discoverability of 'read-buffer-completion-ignore-... eea4e9194c Improve documentation of self-insert-uses-region-functions e6e41dac87 Reflect changes in copy-file and rename-file in doc strings 0ec534070f * lisp/progmodes/cc-vars.el (c-offsets-alist): Doc fix. (... 1d0dbdff6c Reorder type predicates in ELisp manual b081ec9dd7 Fix backward scrolling in buffers with header-line 8e40429c96 ; Fix some doc typos ed2c542920 * lisp/bindings.el (buffer-file-coding-system): Add explic... d82474e452 * src/fns.c (syms_of_fns) <overriding-plist-environment>: ... 292c09ff6d Fix incorrect interaction of drag/drop and double click (b... d6fadb1d26 * lisp/menu-bar.el (menu-bar-options-save): Add display-li... daa959efbc * lisp/menu-bar.el (menu-bar-options-save): Add global-dis... 17fc74d1b9 * lisp/follow.el (follow-mode): Restore mode line lighter.... f20c2e2f3d ; Compare process status against 127 exactly 2d203ffb7e Extract the common part of ruby-flymake-simple and ruby-fl... 09944d499a Add Rubocop Flymake backend c65a0ae7c4 ; Fix a typo 7ab7603125 Update nt/INSTALL.W64 (Bug#28601) 11db253c08 Remove incorrect NEWS item about VC state indicator (Bug#2... 2fdc01c036 * lisp/emacs-lisp/byte-run.el (defsubst): Doc fix. 735c8b516e Make c-defun-name analyze more thoroughly a function type ... 92f0c4cd56 Avoid bogus abbreviated file names if HOME changes 8d450453fa * lisp/emacs-lisp/byte-run.el (inline): Give it a doc. 37a3b4ea40 Fix erc keep-place module with new defaults (Bug#29111) 6c312605bf Add window divider faces to NS (bug#29353) # Conflicts: # etc/NEWS # lisp/ruler-mode.el
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog.16
-rw-r--r--doc/lispref/compile.texi10
-rw-r--r--doc/lispref/modes.texi9
-rw-r--r--doc/lispref/objects.texi33
-rw-r--r--doc/lispref/text.texi10
-rw-r--r--doc/lispref/variables.texi4
6 files changed, 40 insertions, 32 deletions
diff --git a/doc/lispref/ChangeLog.1 b/doc/lispref/ChangeLog.1
index 3fab757c963..c461f9a42b1 100644
--- a/doc/lispref/ChangeLog.1
+++ b/doc/lispref/ChangeLog.1
@@ -497,7 +497,7 @@
497 Improve doc for use of 'int', and discuss 'ssize_t'. 497 Improve doc for use of 'int', and discuss 'ssize_t'.
498 * internals.texi (C Integer Types): Mention 'int' for other 498 * internals.texi (C Integer Types): Mention 'int' for other
499 randomish values that lie in 'int' range. Mention 'ssize_t'. See: 499 randomish values that lie in 'int' range. Mention 'ssize_t'. See:
500 https://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00019.html 500 https://lists.gnu.org/r/emacs-devel/2014-10/msg00019.html
501 501
502 Use AUTO_CONS instead of SCOPED_CONS, etc. 502 Use AUTO_CONS instead of SCOPED_CONS, etc.
503 * internals.texi (Stack-allocated Objects): 503 * internals.texi (Stack-allocated Objects):
@@ -2154,7 +2154,7 @@
2154 2154
2155 * internals.texi (C Integer Types): New section. 2155 * internals.texi (C Integer Types): New section.
2156 This follows up and records an email in 2156 This follows up and records an email in
2157 <https://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00496.html>. 2157 <https://lists.gnu.org/r/emacs-devel/2012-07/msg00496.html>.
2158 2158
21592012-12-10 Stefan Monnier <monnier@iro.umontreal.ca> 21592012-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
2160 2160
@@ -6288,7 +6288,7 @@
62882009-04-11 Eli Zaretskii <eliz@gnu.org> 62882009-04-11 Eli Zaretskii <eliz@gnu.org>
6289 6289
6290 * display.texi (Overlays): Overlays don't scale well. See 6290 * display.texi (Overlays): Overlays don't scale well. See
6291 https://lists.gnu.org/archive/html/emacs-devel/2009-04/msg00243.html. 6291 https://lists.gnu.org/r/emacs-devel/2009-04/msg00243.html.
6292 6292
62932009-04-10 Chong Yidong <cyd@stupidchicken.com> 62932009-04-10 Chong Yidong <cyd@stupidchicken.com>
6294 6294
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi
index 201d9fc2fa5..57ff06085d9 100644
--- a/doc/lispref/compile.texi
+++ b/doc/lispref/compile.texi
@@ -434,6 +434,7 @@ to what @code{eval-when-compile} does.
434@node Compiler Errors 434@node Compiler Errors
435@section Compiler Errors 435@section Compiler Errors
436@cindex compiler errors 436@cindex compiler errors
437@cindex byte-compiler errors
437 438
438 Error and warning messages from byte compilation are printed in a 439 Error and warning messages from byte compilation are printed in a
439buffer named @file{*Compile-Log*}. These messages include file names 440buffer named @file{*Compile-Log*}. These messages include file names
@@ -450,6 +451,10 @@ compiled, and point shows how far the byte compiler was able to read;
450the cause of the error might be nearby. @xref{Syntax Errors}, for 451the cause of the error might be nearby. @xref{Syntax Errors}, for
451some tips for locating syntax errors. 452some tips for locating syntax errors.
452 453
454@cindex byte-compiler warnings
455@cindex free variable, byte-compiler warning
456@cindex reference to free variable, compilation warning
457@cindex function not known to be defined, compilation warning
453 A common type of warning issued by the byte compiler is for 458 A common type of warning issued by the byte compiler is for
454functions and variables that were used but not defined. Such warnings 459functions and variables that were used but not defined. Such warnings
455report the line number for the end of the file, not the locations 460report the line number for the end of the file, not the locations
@@ -490,12 +495,13 @@ The reference to @var{variable} must be in the @var{then-form} of the
490 495
491@item 496@item
492You can tell the compiler that a function is defined using 497You can tell the compiler that a function is defined using
493@code{declare-function}. @xref{Declaring Functions}. 498@code{declare-function}. @xref{Declaring Functions}.
494 499
495@item 500@item
496Likewise, you can tell the compiler that a variable is defined using 501Likewise, you can tell the compiler that a variable is defined using
497@code{defvar} with no initial value. (Note that this marks the 502@code{defvar} with no initial value. (Note that this marks the
498variable as special.) @xref{Defining Variables}. 503variable as special, i.e.@: dynamically bound.) @xref{Defining
504Variables}.
499@end itemize 505@end itemize
500 506
501 You can also suppress any and all compiler warnings within a certain 507 You can also suppress any and all compiler warnings within a certain
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index f7013da9433..bd94aeadf15 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1490,10 +1490,11 @@ alist @code{minor-mode-map-alist}. @xref{Definition of minor-mode-map-alist}.
1490 One use of minor mode keymaps is to modify the behavior of certain 1490 One use of minor mode keymaps is to modify the behavior of certain
1491self-inserting characters so that they do something else as well as 1491self-inserting characters so that they do something else as well as
1492self-insert. (Another way to customize @code{self-insert-command} is 1492self-insert. (Another way to customize @code{self-insert-command} is
1493through @code{post-self-insert-hook}. Apart from this, the facilities 1493through @code{post-self-insert-hook}, see @ref{Commands for
1494for customizing @code{self-insert-command} are limited to special cases, 1494Insertion}. Apart from this, the facilities for customizing
1495designed for abbrevs and Auto Fill mode. Do not try substituting your 1495@code{self-insert-command} are limited to special cases, designed for
1496own definition of @code{self-insert-command} for the standard one. The 1496abbrevs and Auto Fill mode. Do not try substituting your own
1497definition of @code{self-insert-command} for the standard one. The
1497editor command loop handles this function specially.) 1498editor command loop handles this function specially.)
1498 1499
1499Minor modes may bind commands to key sequences consisting of @kbd{C-c} 1500Minor modes may bind commands to key sequences consisting of @kbd{C-c}
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index daa397175c3..97f411a08dc 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -1898,6 +1898,9 @@ with references to further information.
1898@item bool-vector-p 1898@item bool-vector-p
1899@xref{Bool-Vectors, bool-vector-p}. 1899@xref{Bool-Vectors, bool-vector-p}.
1900 1900
1901@item booleanp
1902@xref{nil and t, booleanp}.
1903
1901@item bufferp 1904@item bufferp
1902@xref{Buffer Basics, bufferp}. 1905@xref{Buffer Basics, bufferp}.
1903 1906
@@ -1967,18 +1970,15 @@ with references to further information.
1967@item mutexp 1970@item mutexp
1968@xref{Mutexes, mutexp}. 1971@xref{Mutexes, mutexp}.
1969 1972
1970@item wholenump
1971@xref{Predicates on Numbers, wholenump}.
1972
1973@item nlistp 1973@item nlistp
1974@xref{List-related Predicates, nlistp}. 1974@xref{List-related Predicates, nlistp}.
1975 1975
1976@item numberp
1977@xref{Predicates on Numbers, numberp}.
1978
1979@item number-or-marker-p 1976@item number-or-marker-p
1980@xref{Predicates on Markers, number-or-marker-p}. 1977@xref{Predicates on Markers, number-or-marker-p}.
1981 1978
1979@item numberp
1980@xref{Predicates on Numbers, numberp}.
1981
1982@item overlayp 1982@item overlayp
1983@xref{Overlays, overlayp}. 1983@xref{Overlays, overlayp}.
1984 1984
@@ -1991,6 +1991,9 @@ with references to further information.
1991@item sequencep 1991@item sequencep
1992@xref{Sequence Functions, sequencep}. 1992@xref{Sequence Functions, sequencep}.
1993 1993
1994@item string-or-null-p
1995@xref{Predicates for Strings, string-or-null-p}.
1996
1994@item stringp 1997@item stringp
1995@xref{Predicates for Strings, stringp}. 1998@xref{Predicates for Strings, stringp}.
1996 1999
@@ -2009,6 +2012,9 @@ with references to further information.
2009@item vectorp 2012@item vectorp
2010@xref{Vectors, vectorp}. 2013@xref{Vectors, vectorp}.
2011 2014
2015@item wholenump
2016@xref{Predicates on Numbers, wholenump}.
2017
2012@item window-configuration-p 2018@item window-configuration-p
2013@xref{Window Configurations, window-configuration-p}. 2019@xref{Window Configurations, window-configuration-p}.
2014 2020
@@ -2017,21 +2023,6 @@ with references to further information.
2017 2023
2018@item windowp 2024@item windowp
2019@xref{Basic Windows, windowp}. 2025@xref{Basic Windows, windowp}.
2020
2021@item booleanp
2022@xref{nil and t, booleanp}.
2023
2024@item string-or-null-p
2025@xref{Predicates for Strings, string-or-null-p}.
2026
2027@item threadp
2028@xref{Basic Thread Functions, threadp}.
2029
2030@item mutexp
2031@xref{Mutexes, mutexp}.
2032
2033@item condition-variable-p
2034@xref{Condition Variables, condition-variable-p}.
2035@end table 2026@end table
2036 2027
2037 The most general way to check the type of an object is to call the 2028 The most general way to check the type of an object is to call the
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index ab554dcd421..35ba5d0dddc 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -525,9 +525,17 @@ responsible for calling @code{blink-paren-function} when the inserted
525character has close parenthesis syntax (@pxref{Blinking}). 525character has close parenthesis syntax (@pxref{Blinking}).
526 526
527@vindex post-self-insert-hook 527@vindex post-self-insert-hook
528@vindex self-insert-uses-region-functions
528The final thing this command does is to run the hook 529The final thing this command does is to run the hook
529@code{post-self-insert-hook}. You could use this to automatically 530@code{post-self-insert-hook}. You could use this to automatically
530reindent text as it is typed, for example. 531reindent text as it is typed, for example. If any function on this
532hook needs to act on the region (@pxref{The Region}), it should make
533sure Delete Selection mode (@pxref{Using Region, Delete Selection, ,
534emacs, The GNU Emacs Manual}) doesn't delete the region before
535@code{post-self-insert-hook} functions are invoked. The way to do so
536is to add a function that returns @code{nil} to
537@code{self-insert-uses-region-functions}, a special hook that tells
538Delete Selection mode it should not delete the region.
531 539
532Do not try substituting your own definition of 540Do not try substituting your own definition of
533@code{self-insert-command} for the standard one. The editor command 541@code{self-insert-command} for the standard one. The editor command
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 52d1f3bbf5e..99bbfc91243 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -435,7 +435,9 @@ dynamically bound value; @pxref{Void Variables}), then @var{value} is
435evaluated and @var{symbol} is set to the result. But if @var{symbol} 435evaluated and @var{symbol} is set to the result. But if @var{symbol}
436is not void, @var{value} is not evaluated, and @var{symbol}'s value is 436is not void, @var{value} is not evaluated, and @var{symbol}'s value is
437left unchanged. If @var{value} is omitted, the value of @var{symbol} 437left unchanged. If @var{value} is omitted, the value of @var{symbol}
438is not changed in any case. 438is not changed in any case. Using @code{defvar} with no value is one
439method of suppressing byte compilation warnings, see @ref{Compiler
440Errors}.
439 441
440If @var{symbol} has a buffer-local binding in the current buffer, 442If @var{symbol} has a buffer-local binding in the current buffer,
441@code{defvar} acts on the default value, which is buffer-independent, 443@code{defvar} acts on the default value, which is buffer-independent,