Read mailcaps again only when necessary
* doc/lispref/files.texi (File Attributes): Document it. * lisp/files.el (file-has-changed-p): New function. (file-has-changed-p--hash-table): Internal variable used by the new function (bug#51523). * lisp/emacs-lisp/shortdoc.el (file): Mention it. * lisp/net/mailcap.el (mailcap-parse-mailcaps): Read mailcaps again only when at least one of the mailcap files has changed. Fixes bug#51523.
This commit is contained in:
parent
453d104602
commit
daea9b3b44
5 changed files with 46 additions and 12 deletions
|
@ -358,6 +358,9 @@ There can be any number of :example/:result elements."
|
|||
(file-newer-than-file-p
|
||||
:no-eval (file-newer-than-file-p "/tmp/foo" "/tmp/bar")
|
||||
:eg-result nil)
|
||||
(file-has-changed-p
|
||||
:no-eval (file-has-changed-p "/tmp/foo")
|
||||
:eg-result t)
|
||||
(file-equal-p
|
||||
:no-eval (file-equal-p "/tmp/foo" "/tmp/bar")
|
||||
:eg-result nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue