1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/lisp/gnus
Basil L. Contovounesios 1a0a11f7d2 Inhibit buffer hooks in temporary buffers
Give get-buffer-create an optional argument to inhibit buffer hooks
in internal or temporary buffers for efficiency (bug#34765).

* etc/NEWS: Announce new parameter of get-buffer-create and
generate-new-buffer, and that with-temp-buffer and with-temp-file
now inhibit buffer hooks.

* doc/lispref/buffers.texi (Buffer Names): Fix typo.
(Creating Buffers): Document new parameter of get-buffer-create and
generate-new-buffer.
(Buffer List, Killing Buffers): Document when buffer hooks are
inhibited.
(Current Buffer):
* doc/lispref/files.texi (Writing to Files): Document that
with-temp-buffer and with-temp-file inhibit buffer hooks.
* doc/lispref/internals.texi (Buffer Internals): Document
inhibit_buffer_hooks flag.  Remove stale comment.
* doc/misc/gnus-faq.texi (FAQ 5-8):
* lisp/simple.el (shell-command-on-region): Fix indentation.

* lisp/files.el (kill-buffer-hook): Document when hook is inhibited.
(create-file-buffer):
* lisp/gnus/gnus-uu.el (gnus-uu-unshar-article):
* lisp/international/mule.el (load-with-code-conversion):
* lisp/mh-e/mh-xface.el (mh-x-image-url-fetch-image):
* lisp/net/imap.el (imap-open):
* lisp/net/mailcap.el (mailcap-maybe-eval):
* lisp/progmodes/flymake-proc.el
(flymake-proc--read-file-to-temp-buffer)
(flymake-proc--copy-buffer-to-temp-buffer): Simplify.

* lisp/subr.el (generate-new-buffer): Forward new optional argument
to inhibit buffer hooks to get-buffer-create.
(with-temp-file, with-temp-buffer, with-output-to-string):
* lisp/json.el (json-encode-string): Inhibit buffer hooks in buffer
used.

* src/buffer.c (run_buffer_list_update_hook): New helper function.
(Fget_buffer_create): Use it.  Add optional argument to set
inhibit_buffer_hooks flag instead of comparing the buffer name to
Vcode_conversion_workbuf_name.  All callers changed.
(Fmake_indirect_buffer, Frename_buffer, Fbury_buffer_internal)
(record_buffer): Use run_buffer_list_update_hook.
(Fkill_buffer): Document when buffer hooks are inhibited.  Use
run_buffer_list_update_hook.
(init_buffer_once): Inhibit buffer hooks in Vprin1_to_string_buffer.
(Vkill_buffer_query_functions, Vbuffer_list_update_hook): Document
when hooks are inhibited.
* src/buffer.h (struct buffer): Update inhibit_buffer_hooks
commentary.
* src/coding.h (Vcode_conversion_workbuf_name):
* src/coding.c (Vcode_conversion_workbuf_name): Make static again
since it is no longer needed in src/buffer.c.
(code_conversion_restore, code_conversion_save, syms_of_coding):
Prefer boolean over integer constants.
* src/fileio.c (Finsert_file_contents): Inhibit buffer hooks in
" *code-converting-work*" buffer.
* src/window.c (Fselect_window): Fix grammar.  Mention
window-selection-change-functions alongside buffer-list-update-hook.

* test/src/buffer-tests.el: Fix requires.
(buffer-tests-inhibit-buffer-hooks): New test.
2020-12-20 17:32:24 +00:00
..
.dir-locals.el
canlock.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.1 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.2 ; Fix trivial typos in ChangeLogs 2020-10-03 12:53:51 +02:00
ChangeLog.3 ; Fix trivial typos in ChangeLogs 2020-10-03 12:53:51 +02:00
deuglify.el Fix over-wide doc strings 2020-12-19 13:18:11 +02:00
gmm-utils.el Use the "modern" toolbars in Gnus again 2020-05-11 04:34:55 +03:00
gnus-agent.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
gnus-art.el Shorten over-wide docstrings in defcustoms 2020-12-19 18:21:06 +01:00
gnus-async.el Add a new variable to control Gnus Agent caching 2020-10-16 07:21:05 +02:00
gnus-bcklg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-bookmark.el Don't quote lambdas in several places 2020-11-14 17:04:23 +01:00
gnus-cache.el Make Gnus cache work with nnselect 2020-09-09 17:01:44 +08:00
gnus-cite.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-cloud.el Fix formatting of recent Gnus nnselect changes 2020-09-06 16:06:57 +01:00
gnus-cus.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
gnus-dbus.el Switch Gnus D-Bus signal from :session to :system 2020-08-27 14:19:07 -07:00
gnus-delay.el Remove the Date header from message-draft-headers 2020-03-20 11:39:44 -07:00
gnus-demon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-diary.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-dired.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-draft.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-dup.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-eform.el Derive gnus-edit-form-mode from lisp-data-mode, fix mode map 2020-06-12 09:17:04 -07:00
gnus-fun.el Use null-device where appropriate 2020-11-25 22:13:33 +01:00
gnus-gravatar.el Make libravatar lookups asynchronous 2020-07-30 05:32:16 +02:00
gnus-group.el Shorten over-wide docstrings in defcustoms 2020-12-19 18:21:06 +01:00
gnus-html.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-icalendar.el Fix previous gnus-icalendar sanitization 2020-10-16 10:46:14 +02:00
gnus-int.el Clean up group-finding in Gnus nnir search 2020-09-11 09:02:09 +08:00
gnus-kill.el Adjust naming convention for dependent Gnus sessions 2020-07-17 01:46:57 +02:00
gnus-logic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-mh.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-ml.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-mlspl.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-msg.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
gnus-notifications.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-picon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-range.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-registry.el Fix default value of gnus-registry-register-all: should be t 2020-12-19 15:26:48 -08:00
gnus-rfc1843.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-salt.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
gnus-score.el Shorten over-wide docstrings in defcustoms 2020-12-19 18:21:06 +01:00
gnus-search.el Fix regexp in IMAP search-string preparation 2020-12-17 19:16:52 -08:00
gnus-sieve.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
gnus-spec.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-srvr.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
gnus-start.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
gnus-sum.el Shorten over-wide docstrings in variables 2020-12-19 18:21:06 +01:00
gnus-topic.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
gnus-undo.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
gnus-util.el Make gnus-output-to-rmail appending work better 2020-10-27 19:29:02 +01:00
gnus-uu.el Inhibit buffer hooks in temporary buffers 2020-12-20 17:32:24 +00:00
gnus-vm.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-win.el Fix quoting in gnus-buffer-configuration 2020-12-11 02:23:23 +00:00
gnus.el Shorten over-wide docstrings in defcustoms 2020-12-19 18:21:06 +01:00
gssapi.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
legacy-gnus-agent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mail-source.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
message.el Shorten over-wide docstrings in variables 2020-12-19 18:21:06 +01:00
mm-archive.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
mm-bodies.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-decode.el Show the status of signed + encrypted S/MIME messages in Gnus 2020-09-07 16:29:59 +02:00
mm-encode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-extern.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-partial.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-url.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-util.el ; Prefer https to http in many URLs 2020-10-01 15:28:15 +02:00
mm-uu.el Add and remove backslashes in regexps 2020-02-20 16:03:30 +01:00
mm-view.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
mml-sec.el Don't error if no GPG signing key configured 2020-10-02 10:47:23 +02:00
mml-smime.el Remove many items obsolete since Emacs 23.1 2020-08-14 13:07:26 +02:00
mml.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
mml1991.el Remove many items obsolete since Emacs 23.1 2020-08-14 13:07:26 +02:00
mml2015.el Use null-device where appropriate 2020-11-25 22:13:33 +01:00
nnagent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnbabyl.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nndiary.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
nndir.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nndoc.el nndoc minor clean-up 2020-08-22 15:42:17 +02:00
nndraft.el Merge from origin/emacs-27 2020-04-15 07:50:15 -07:00
nneething.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnfolder.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
nngateway.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnheader.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
nnimap.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
nnmail.el Shorten over-wide docstrings in defcustoms 2020-12-19 18:21:06 +01:00
nnmaildir.el Merge from origin/emacs-27 2020-10-02 09:38:24 -07:00
nnmairix.el Remove redundant 'function's around lambdas 2020-11-17 18:42:38 +01:00
nnmbox.el nnmail-cache-close should not use nofollow 2020-02-26 17:10:48 -08:00
nnmh.el Shorten over-wide docstrings in variables 2020-12-19 18:21:06 +01:00
nnml.el Prefer setq-local in gnus/*.el 2020-12-07 16:45:33 +01:00
nnnil.el
nnoo.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnregistry.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnrss.el ; Prefer https to http in many URLs 2020-10-01 15:28:15 +02:00
nnselect.el Remove ephemeral group on error or null result 2020-11-10 08:19:43 +08:00
nnspool.el Introduce nnselect backend for gnus 2020-09-05 08:46:43 +08:00
nntp.el Shorten over-wide docstrings in variables 2020-12-19 18:21:06 +01:00
nnvirtual.el Fix over-wide doc strings 2020-12-19 13:18:11 +02:00
nnweb.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
score-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
smiley.el Fix up smiley emoji application to make it reversible 2020-10-18 09:42:25 +02:00
smime.el Use null-device where appropriate 2020-11-25 22:13:33 +01:00
spam-report.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
spam-stat.el ; Prefer https to http in many URLs 2020-10-01 15:28:15 +02:00
spam-wash.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
spam.el Avoid modifying nnimap user option in spam.el 2020-12-06 11:45:52 +00:00