summaryrefslogtreecommitdiff
path: root/doc/lispref/hooks.texi
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Rearrange NEWS, add missing documentationEli Zaretskii2019-12-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Rearrange and mark entries whether documented or not. * doc/lispref/streams.texi (Output Variables): Document the new default of 'print-quoted'. * doc/lispref/keymaps.texi (Functions for Key Lookup): Document that KEYMAP arg to 'lookup-key' can also be a list. * doc/lispref/customize.texi (Variable Definitions): Document the :local keyword of 'defcustom'. * doc/lispref/numbers.texi (Float Basics): Document changes in 'logb'. * doc/lispref/hooks.texi (Standard Hooks): Document 'comint-password-function'. * doc/emacs/display.texi (Text Scale): Document text-size adjustment using the mouse wheel. * doc/emacs/frames.texi (Mouse Commands): Document image scaling with the mouse wheel. * doc/emacs/windows.texi (Window Convenience): Document 'global-tab-line-mode'. * doc/emacs/search.texi (Repeat Isearch, Symbol Search) (Isearch Yank): Document the new support for numeric arguments in Isearch commands. (Special Isearch): Document 'M-s M->' and 'M-s M-<'. (Search Customizations): Document 'isearch-lazy-count'. Improve indexing. (Not Exiting Isearch): Document the new value of 'isearch-allow-scroll'. * doc/emacs/maintaining.texi (Xref Commands): Document the new 'g' key binding. * doc/emacs/package.texi (Package Installation): Document changes in 'package-check-signature'. * doc/emacs/maintaining.texi (VC Change Log): Document 'vc-log-search'. * doc/emacs/dired.texi (Operating on Files): Document 'dired-vc-rename'.
* Mention quit-window-hook in "Standard Hooks"Lars Ingebrigtsen2019-08-211-0/+3
| | | | | * doc/lispref/hooks.texi (Standard Hooks): Mention quit-window-hook (bug#9867).
* Avoid polling in global-auto-revert-mode (bug#35418)Mattias Engdegård2019-05-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `auto-revert-avoid-polling' have effect in global-auto-revert-mode. Buffers actually handled by that mode are marked with a non-nil value of `auto-revert--global-mode'. When global-auto-revert-mode is entered, eligible buffers are marked in that way, and hooks are set up to mark new buffers and take care of buffers whose file names change. This way the existing poll-avoidance logic can be used, since the entire set of buffers in auto-revert is known. A new hook, `after-set-visited-file-name-hook', was added to handle the case when the file name of a tracked buffer changes. * lisp/autorevert.el (auto-revert-avoid-polling): Amend doc string. (auto-revert--global-mode): New buffer-local variable. (global-auto-revert-mode): Mark existing buffers and set up hooks when mode is entered; do the opposite when exited. (auto-revert--global-add-current-buffer) (auto-revert--global-adopt-current-buffer) (auto-revert--set-visited-file-name-advice): New functions. (auto-revert--polled-buffers, auto-revert--need-polling-p) (auto-revert-notify-handler) (auto-revert-active-p): Modify logic to cover global-auto-revert-mode. * lisp/files.el (after-set-visited-file-name-hook): New hook. (set-visited-file-name-hook): Call new hook. * test/lisp/autorevert-tests.el (top): Use lexical-binding. (auto-revert-test--write-file, auto-revert-test--buffer-string) (auto-revert-test--wait-for, auto-revert-test--wait-for-buffer-text) (auto-revert-test05-global-notify): New test. * doc/lispref/hooks.texi (Standard Hooks): Mention new hook (in a comment, since it's unclear whether it should actually be documented here) * etc/NEWS (Changes in Specialized Modes and Packages): Update entry.
* Merge from origin/emacs-26Paul Eggert2018-12-311-1/+1
|\ | | | | | | | | | | 2fcf2df Fix copyright years by hand 26bed8b Update copyright year to 2019 2814292 Fix value of default frame height. (Bug#33921)
| * Update copyright year to 2019Paul Eggert2019-01-011-1/+1
| | | | | | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* | ; Assorted documentation fixes in recent changesEli Zaretskii2018-06-121-0/+1
| | | | | | | | | | | | | | | | | | | | * etc/NEWS: Minor copyedits of recent entries. * src/keyboard.c (Finternal_handle_focus_in): * lisp/frame.el (frame-focus-state): Doc fixes. * doc/lispref/hooks.texi (Standard Hooks): Mention after-delete-frame-functions.
* | Improve support for desktop restoration in daemon modeEli Zaretskii2018-03-101-0/+1
|/ | | | | | | | | | | | | * lisp/server.el (server-after-make-frame-hook): New hook. (server-execute): Call it after creating a new frame or before switching to a buffer shown in a client frame. (Bug#30421) * doc/emacs/misc.texi (Saving Emacs Sessions): Adjust advice for restoring desktop in daemon mode to the new hook. * doc/lispref/frames.texi (Creating Frames, Standard Hooks): Document server-after-make-frame-hook. * etc/NEWS: Mention server-after-make-frame-hook.
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* Remove Vwindow_text_change_functions and related codeMartin Rudalics2017-07-071-5/+0
| | | | | | | | | | | | Vwindow_text_change_functions had been provided for implementing line numbers but apparently was never functional or in use. * src/xdisp.c (redisplay_window): Remove handling of Vwindow_text_change_functions. (syms_of_xdisp): Remove Qwindow_text_change_functions. (Vwindow_text_change_functions): Remove variable. * doc/lispref/hooks.texi (Standard Hooks): Remove entry for `window-text-change-functions'.
* Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | Run admin/update-copyright.
* Document 'pre-redisplay-functions'Eli Zaretskii2016-01-131-10/+14
| | | | | | * doc/lispref/hooks.texi (Standard Hooks): * doc/lispref/display.texi (Forcing Redisplay): Document 'pre-redisplay-functions'.
* Document the new prefix-command hooksEli Zaretskii2016-01-131-0/+16
| | | | | | * doc/lispref/hooks.texi (Standard Hooks): Document `prefix-command-echo-keystrokes-functions' and `prefix-command-preserve-state-hook'.
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* Quote less in manualsPaul Eggert2015-09-151-1/+1
| | | | | | | | | | The manuals often used quotes ``...'' when it is better to use @dfn or @code or capitalized words or no quoting at all. For example, there is no need for the `` and '' in “if a variable has one effect for @code{nil} values and another effect for ``non-@code{nil}'' values”. Reword the Emacs, Lisp intro, and Lisp reference manuals to eliminate unnecessary quoting like this, and to use @dfn etc. instead when called for (Bug#21472).
* Update copyright year to 2015Paul Eggert2015-01-011-1/+2
| | | | Run admin/update-copyright.
* Doc updates re window-setup-hookGlenn Morris2014-06-061-3/+1
| | | | | | | | | | | | | * lisp/startup.el (window-setup-hook): Doc fix. * doc/lispref/display.texi (Window Systems): Remove window-setup-hook. * doc/lispref/os.texi (Startup Summary, Init File): Improve description of window-setup-hook. (Terminal-Specific): Update window-setup-hook cross-reference. * doc/lispref/hooks.texi (Standard Hooks): Update window-setup-hook cross-reference.
* Doc updates re filter-buffer-substringGlenn Morris2014-05-261-1/+0
| | | | | | | | | | | | | * lisp/simple.el (filter-buffer-substring-functions) (filter-buffer-substring-function, buffer-substring-filters) (filter-buffer-substring, buffer-substring--filter): Doc fixes. * doc/lispref/text.texi (Buffer Contents): Update for filter-buffer-substring changes. * doc/lispref/hooks.texi: Remove old comment. * etc/NEWS: Related markup.
* Doc updates re completion-in-region-functionGlenn Morris2014-05-261-1/+0
| | | | | | | * lisp/minibuffer.el (completion-in-region-functions, completion-in-region) (completion--in-region): Doc fixes. * doc/lispref/hooks.texi: Update comment.
* Update docs for select-window and buffer-list-update-hook.Martin Rudalics2014-03-071-1/+1
| | | | | | | | | | | | | | * buffer.c (Vbuffer_list_update_hook): Doc-string fix. * window.c (Fselect_window): Explain NORECORD and `buffer-list-update-hook' in doc-string. * buffers.texi (The Buffer List): Rename node to Buffer List. Describe `buffer-list-update-hook'. * elisp.texi (Top): "The Buffer List" renamed to "Buffer List". Add node for Window Dividers. * hooks.texi (Standard Hooks): Add reference to `buffer-list-update-hook'. * windows.texi (Selecting Windows): Update description of `select-window'.
* Doc updates related to tty-setup-hookGlenn Morris2014-02-251-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/custom.texi (Terminal Init): Replace term-setup-hook with tty-setup-hook. * doc/lispref/display.texi (Window Systems): * doc/lispref/hooks.texi (Standard Hooks): Replace term-setup-hook with tty-setup-hook. * doc/lispref/os.texi (Startup Summary, Init File, Terminal-Specific): Replace term-setup-hook with tty-setup-hook, and update. * doc/misc/edt.texi (Quick start, Starting emulation): * doc/misc/efaq.texi (Fullscreen mode on MS-Windows) (Terminal setup code works after Emacs has begun): Update hook details. * doc/misc/vip.texi (Loading VIP): Fix hook example. * lisp/faces.el (tty-setup-hook, tty-run-terminal-initialization): Doc fixes. * lisp/startup.el (term-setup-hook): Doc fix. Make obsolete. * lisp/emulation/edt.el: Comment update. * lisp/term/sun.el (sun-raw-prefix-hooks): Use tty-setup-hook instead of term-setup-hook. (terminal-init-sun): Construct message from bytecomp plist. * lisp/term/wyse50.el (enable-arrow-keys): Doc fix. * etc/refcards/vipcard.tex: Hook fix. * etc/NEWS: Related edit.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* Documentation for focus-in,out hooks (tiny change)Brian Jenkins2013-11-231-0/+6
| | | | | | | | * doc/lispref/frames.texi (Input Focus): * doc/lispref/hooks.texi (Standard Hooks): Mention focus-in-hook, focus-out-hook. * etc/NEWS: Copyedit.
* Fix usage of @itemx in ELisp manual.Eli Zaretskii2013-01-051-1/+1
| | | | | doc/lispref/hooks.texi (Standard Hooks): Use @item, not @itemx, as the first directive in a group of items.
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+2
|
* More Emacs 24.3 documentation updates.Chong Yidong2012-10-271-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/building.texi (Compilation): Document compilation-always-kill. * doc/emacs/files.texi (Misc File Ops): Symbolic links on Windows only work on Vista and later. * doc/emacs/frames.texi (Mouse Avoidance): Mention new variable mouse-avoidance-banish-position. * doc/emacs/mule.texi (Recognize Coding): Remove an unreferenced vindex. * doc/emacs/package.texi (Package Menu): Document the "new" status. * doc/emacs/programs.texi (Which Function): Which Function mode now works in all major modes by default. * doc/emacs/search.texi (Symbol Search): New node. * doc/emacs/windows.texi (Window Choice): Don't refer to the obsolete special-display feature. * commands.texi (Event Input Misc): Remove last-input-char. (Command Loop Info): Remove last-command-char. * display.texi (Fringe Bitmaps): Add exclamation-mark bitmap. * frames.texi (Initial Parameters): Don't mention the obsolete special-display feature. * hooks.texi (Standard Hooks): Remove obsolete hooks. * markers.texi (Information from Markers): Remove obsolete function buffer-has-markers-at. * minibuf.texi (High-Level Completion): Don't mention removed function iswitchb-read-buffer. * text.texi (Yanking): Document yank-handled-properties. * windows.texi (Choosing Window): Don't mention the obsolete special display feature. (Choosing Window Options): Remove obsolete special-display variables, and the functions special-display-p and special-display-popup-frame. * subr.el (insert-buffer-substring-as-yank): Doc fix.
* Cleanup uses of "-hooks".Stefan Monnier2012-10-231-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/custom.texi (Hooks): * doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated. * lisp/gnus/nndiary.el (nndiary-request-create-group-functions) (nndiary-request-update-info-functions) (nndiary-request-accept-article-functions): * lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions): * lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions): * lisp/cedet/semantic/lex.el (semantic-lex-reset-functions): * lisp/cedet/semantic/edit.el (semantic-change-functions) (semantic-edits-new-change-functions) (semantic-edits-delete-change-functions) (semantic-edits-reparse-change-functions): * lisp/htmlfontify.el (hfy-post-html-hook): * lisp/filesets.el (filesets-cache-fill-content-hook): * lisp/arc-mode.el (archive-extract-hook): * lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook): * lisp/net/rcirc.el (rcirc-sentinel-functions) (rcirc-receive-message-functions, rcirc-activity-functions) (rcirc-print-functions): * lisp/net/dbus.el (dbus-event-error-functions): * lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions): * lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions) (checkdoc-comment-style-functions): Don't use "-hooks" suffix. * lisp/term/sun.el (sun-raw-prefix-hooks): * lisp/mail/sendmail.el (mail-yank-hooks): * lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
* deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150)Paul Eggert2012-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Document these changes. * leim/quail/uni-input.el (ucs-input-deactivate): Rename from ucs-input-inactivate. * leim/quail/hangul.el (hangul-input-method-deactivate): Rename from hangul-input-method-inactivate. * emulation/viper-init.el (viper-deactivate-input-method-action): Rename from viper-inactivate-input-method-action. (viper-deactivate-input-method): Rename from viper-inactivate-input-method. * lisp/follow.el (follow-inactive-menu): Rename from follow-deactive-menu. * lisp/international/mule-cmds.el (deactivate-input-method): Rename from inactivate-input-method. Also run input-method-deactivate-hook. (deactivate-current-input-method-function): Rename from inactivate-current-input-method-function. (input-method-deactivate-hook): New hook. (input-method-inactivate-hook): Mark obsolete. * lisp/international/quail.el (quail-activate): Also run quail-deactivate-hook. (quail-deactivate): Rename from quail-inactivate. * lisp/international/robin.el (robin-activate): Also run robin-deactivate-hook. (robin-deactivate): Rename from robin-inactivate.
* Nuke hand-written node pointers in doc/lisprefGlenn Morris2012-05-261-1/+1
| | | | Let makeinfo figure them out, as is recommended.
* Remove unnecessary @setfilename commands from many doc/lispref/*.texiGlenn Morris2012-04-131-1/+0
|
* Checked lispref/hooks.texiGlenn Morris2012-03-011-118/+149
| | | | | | | | | | | | | * doc/lispref/hooks.texi (Standard Hooks): General update. Put related hooks together. * doc/lispref/commands.texi (Keyboard Macros): Remove cross-ref to Standard Hooks. * doc/lispref/modes.texi (Hooks): Tweak cross-ref description. Remove non-standard file-local fill-column (2010-05-13T03:55:46Z!rgm@gnu.org). * admin/FOR-RELEASE: Related markup.
* * doc/lispref/hooks.texi (Standard Hooks): Remove mode-specific hooks.Glenn Morris2012-02-291-101/+3
| | | | Ref http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00702.html
* Fix cross-references between different manualsGlenn Morris2012-02-161-2/+1
| | | | | | | | | | | | * emacs/maintaining.texi (Old Revisions): Fix cross-refs to Ediff manual. * lispintro/emacs-lisp-intro.texi (Design @value{COUNT-WORDS}, Syntax) (count-words-in-defun): Fix cross-refs to Emacs manual. * lispref/hooks.texi (Standard Hooks): Fix cross-ref to Emacs manual. * misc/gnus.texi (Posting Styles): * misc/remember.texi (Org): Fix cross-refs to other manuals.
* Document post-self-insert-hookGlenn Morris2012-02-011-0/+3
| | | | | | | | | * doc/lispref/hooks.texi (Standard Hooks): * doc/lispref/modes.texi (Keymaps and Minor Modes): * doc/lispref/text.texi (Commands for Insertion): Document post-self-insert-hook. *etc/NEWS: Markup.
* * doc/lispref/hooks.texi (Standard Hooks): Add prog-mode-hook.Glenn Morris2012-02-011-0/+3
|
* Document change-major-mode-after-body-hookGlenn Morris2012-02-011-0/+3
| | | | | | | | | | * doc/lispref/hooks.texi (Standard Hooks): * doc/lispref/modes.texi (Major Mode Conventions, Mode Hooks): Document change-major-mode-after-body-hook. * lisp/subr.el (run-mode-hooks): Doc fix. * etc/NEWS: Markup
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-4/+0
|
* Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
|
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* A bit rusty on the alphabet.Glenn Morris2009-12-051-2/+2
|
* Put calendar and diary hooks back in alphabetical order followingGlenn Morris2009-12-051-64/+64
| | | | previous change.
* (Standard Hooks): Remove diary-display-hook, replaced byGlenn Morris2009-12-051-19/+10
| | | | | | diary-display-function, and no longer recommended to be a hook. Update for changes in the names of calendar and diary hooks. diary-print-entries-hook has changed section.
* Kevin Ryde <user42 at zip.com.au>Glenn Morris2009-07-111-4/+4
| | | | (Standard Hooks): Fix cross-references.
* * hooks.texi (Standard Hooks): Remove mention of obsoleteChong Yidong2009-05-271-3/+0
| | | | | | | redisplay-end-trigger-functions. * internals.texi (Window Internals): Remove mention of obsolete redisplay-end-trigger-functions.
* * hooks.texi (Standard Hooks): Add abbrev-expand-functions.Chong Yidong2009-05-041-3/+3
| | | | | | | | | | Remove obsoleted pre-abbrev-expand-hook. * locals.texi (Standard Buffer-Local Variables): Consolidate table entries. * internals.texi (Window Internals): Synch field names to window.h. (Process Internals): Synch field names to process.h.
* (Standard Hooks): Document `suspend-tty-functions' and `resume-tty-functions'.Eli Zaretskii2009-01-171-0/+6
|
* (Standard Hooks): Document `delete-frame-functions' andEli Zaretskii2009-01-171-0/+7
| | | | `delete-terminal-functions'.