aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorPaul Eggert2017-11-08 19:22:26 -0800
committerPaul Eggert2017-11-08 19:22:26 -0800
commit6ee827059463e4b95c9251ef22a21f9c67cf668d (patch)
tree0612e1b84922cc43eeed5ea219104d4c5985cbdf /doc/lispref
parent83dc3f0e9b518e45bcfb0aaebcc706f79622f157 (diff)
parent255ba01148f69f452937e67feb7af5d4c1466fed (diff)
downloademacs-6ee827059463e4b95c9251ef22a21f9c67cf668d.tar.gz
emacs-6ee827059463e4b95c9251ef22a21f9c67cf668d.zip
Merge from origin/emacs-26
255ba01148 Fix handling of nil PRED2 arg for completion-table-with-pr... 949b70a7d8 ; Minor comment copyedit in window.c 20f9bf30f0 Describe Lao rendering problem 3d61657694 Fix docstring of arabic-shaper-ZWNJ-handling db949166ec Handle single-line comments correctly (Bug#26049) 795bb233a5 * test/lisp/net/tramp-tests.el (tramp-test16-file-expand-w... ba00ea7d0d * etc/PROBLEMS: Add URL to relevant issues for xterm+evil bug 4a6015811e ; In text.texi fix typo spotted by Štěpán Němec 93cd8415b2 Document new treatment of 'comment-auto-fill-only-comments' ca2d94ba61 Do not load Tramp unless `tramp-mode' is non-nil 709478eaa8 Prefer `customize-set-variable' in tramp.texi 5d36f2227f Fix last change in hscroll_window_tree 72d07d1950 Ediff: add some missing documentation 18af404ef3 Support python virtualenv on w32 (Bug#24464) efd0371c23 Improve dired deletion error handling (Bug#28797) 5d744e032f Don't replace user input when completion prefix is empty (... ec6cf35c5f ; Describe xt-mouse problems with Evil mode c572e1f329 Return non-nil from gnutls-available-p under GnuTLS 2.x a2cc6d74c5 Fix Flymake help-echo functions across windows (bug#29142) 58bb3462ee Add tests for Flymake backends for Ruby and Perl 58e742b21d Add a Flymake backend for Perl 9dee764165 Add a Flymake backend for Ruby 3ad712ebc9 Add a Flymake backend for Python (bug#28808) 8db2b3a79b Allow "%" in Tramp host names 8c50842790 ; Fix typo in test/file-organization.org 00fa4449cd ; Fix typo 918a2dda07 Use hybrid malloc for FreeBSD (Bug#28308) 725ab635d9 Add html-, mhtml- and python-mode support to semantic symref 369da28702 Improve documentation of 'window-scroll-functions' 93818eed8a Fix subtle problems in tabulated-list-mode with line numbers 1f1de8e872 Make gdb-non-stop-setting default to nil on MS-Windows 680e8e119b Fix gdb-mi prompt after "attach PID" command ff33074546 Fix doc string of 'window-configuration-change-hook' 787b75ad71 Improve documentation of window hooks d9be8704ae Fix hscroll suspension after cursor motion 6f43d29d29 ; * CONTRIBUTE, admin/make-tarball.txt: Doc tweaks re 'ema... a0d30d6369 Introduce a function to CC Mode which displays the current... 383abc8898 ; Fix some comment typos b02c2714c3 Fix typos in ediff-wind.el 4f38bdec74 Examine tex-chktex--process in the correct buffer 94b490529a * nt/INSTALL.W64: Update to current mingw64 install instru... c25113d4ac Don't resignal errors in flymake-diag-region e950f329c0 New xref-quit-and-goto-xref command bound to TAB (bug#28814) 5d34e1b288 Allow split-window-sensibly to split threshold in further ... 2a973edeac Honor window-switching intents in xref-find-definitions (b... 78e9065e9f * lisp/emacs-lisp/generator.el (iter-do): Add a debug decl... caa63cc96c * lisp/progmodes/flymake.el (flymake-start): Fix dead buff... 9f4f130b79 Fix buffer name comparison in async shell-command # Conflicts: # etc/NEWS # lisp/vc/ediff-wind.el
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/text.texi24
-rw-r--r--doc/lispref/windows.texi23
2 files changed, 34 insertions, 13 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 6094a41c473..ab554dcd421 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -1886,10 +1886,10 @@ prefix or @code{nil}, meaning it has failed to determine a prefix.
1886@cindex filling, automatic 1886@cindex filling, automatic
1887@cindex Auto Fill mode 1887@cindex Auto Fill mode
1888 1888
1889@c FIXME: I don't think any of the variables below is a/an normal/abnormal hook. 1889Auto Fill mode is a minor mode that fills lines automatically as text is
1890 Auto Fill mode is a minor mode that fills lines automatically as text 1890inserted. @xref{Auto Fill,,, emacs, The GNU Emacs Manual}. This
1891is inserted. This section describes the hook used by Auto Fill mode. 1891section describes some variables used by Auto Fill mode. For a
1892For a description of functions that you can call explicitly to fill and 1892description of functions that you can call explicitly to fill and
1893justify existing text, see @ref{Filling}. 1893justify existing text, see @ref{Filling}.
1894 1894
1895 Auto Fill mode also enables the functions that change the margins and 1895 Auto Fill mode also enables the functions that change the margins and
@@ -1898,11 +1898,11 @@ justification style to refill portions of the text. @xref{Margins}.
1898@defvar auto-fill-function 1898@defvar auto-fill-function
1899The value of this buffer-local variable should be a function (of no 1899The value of this buffer-local variable should be a function (of no
1900arguments) to be called after self-inserting a character from the table 1900arguments) to be called after self-inserting a character from the table
1901@code{auto-fill-chars}. It may be @code{nil}, in which case nothing 1901@code{auto-fill-chars}, see below. It may be @code{nil}, in which case
1902special is done in that case. 1902nothing special is done in that case.
1903 1903
1904The value of @code{auto-fill-function} is @code{do-auto-fill} when 1904The value of @code{auto-fill-function} is @code{do-auto-fill} when Auto
1905Auto-Fill mode is enabled. That is a function whose sole purpose is to 1905Fill mode is enabled. That is a function whose sole purpose is to
1906implement the usual strategy for breaking a line. 1906implement the usual strategy for breaking a line.
1907@end defvar 1907@end defvar
1908 1908
@@ -1919,6 +1919,14 @@ self-inserted---space and newline in most language environments. They
1919have an entry @code{t} in the table. 1919have an entry @code{t} in the table.
1920@end defvar 1920@end defvar
1921 1921
1922@defopt comment-auto-fill-only-comments
1923This variable, if non-@code{nil}, means to fill lines automatically
1924within comments only. More precisely, this means that if a comment
1925syntax was defined for the current buffer, then self-inserting a
1926character outside of a comment will not call @code{auto-fill-function}.
1927@end defopt
1928
1929
1922@node Sorting 1930@node Sorting
1923@section Sorting Text 1931@section Sorting Text
1924@cindex sorting text 1932@cindex sorting text
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 5014cd3d82d..e1eac457179 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -5127,7 +5127,10 @@ redisplaying a window with scrolling. Displaying a different buffer in
5127the window also runs these functions. 5127the window also runs these functions.
5128 5128
5129This variable is not a normal hook, because each function is called with 5129This variable is not a normal hook, because each function is called with
5130two arguments: the window, and its new display-start position. 5130two arguments: the window, and its new display-start position. At the
5131time of the call, the display-start position of the window argument is
5132already set to its new value, and the buffer to be displayed in the
5133window is already set as the current buffer.
5131 5134
5132These functions must take care when using @code{window-end} 5135These functions must take care when using @code{window-end}
5133(@pxref{Window Start and End}); if you need an up-to-date value, you 5136(@pxref{Window Start and End}); if you need an up-to-date value, you
@@ -5138,6 +5141,11 @@ is scrolled. It's not designed for that, and such use probably won't
5138work. 5141work.
5139@end defvar 5142@end defvar
5140 5143
5144@defun run-window-scroll-functions &optional window
5145This function calls @code{window-scroll-functions} for the specified
5146@var{window}, which defaults to the selected window.
5147@end defun
5148
5141@defvar window-size-change-functions 5149@defvar window-size-change-functions
5142This variable holds a list of functions to be called if the size of any 5150This variable holds a list of functions to be called if the size of any
5143window changes for any reason. The functions are called once per 5151window changes for any reason. The functions are called once per
@@ -5167,17 +5175,22 @@ be called again.
5167@defvar window-configuration-change-hook 5175@defvar window-configuration-change-hook
5168A normal hook that is run every time the window configuration of a frame 5176A normal hook that is run every time the window configuration of a frame
5169changes. Window configuration changes include splitting and deleting 5177changes. Window configuration changes include splitting and deleting
5170windows and the display of a different buffer in a window. Resizing the 5178windows, and the display of a different buffer in a window. Resizing the
5171frame or individual windows do not count as configuration changes. Use 5179frame or individual windows do not count as configuration changes. Use
5172@code{window-size-change-functions}, see above, when you want to track 5180@code{window-size-change-functions}, see above, when you want to track
5173size changes that are not caused by the deletion or creation of windows. 5181size changes that are not caused by the deletion or creation of windows.
5174 5182
5175The buffer-local part of this hook is run once for each window on the 5183The buffer-local value of this hook is run once for each window on the
5176affected frame, with the relevant window selected and its buffer 5184affected frame, with the relevant window selected and its buffer
5177current. The global part is run once for the modified frame, with that 5185current. The global value of this hook is run once for the modified
5178frame selected. 5186frame, with that frame selected.
5179@end defvar 5187@end defvar
5180 5188
5189@defun run-window-configuration-change-hook &optional frame
5190This function runs @code{window-configuration-change-hook} for the
5191specified @var{frame}, which defaults to the selected frame.
5192@end defun
5193
5181 In addition, you can use @code{jit-lock-register} to register a Font 5194 In addition, you can use @code{jit-lock-register} to register a Font
5182Lock fontification function, which will be called whenever parts of a 5195Lock fontification function, which will be called whenever parts of a
5183buffer are (re)fontified because a window was scrolled or its size 5196buffer are (re)fontified because a window was scrolled or its size