diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2025-01-03 07:50:07 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2025-01-03 07:51:21 +0100 |
commit | 279a7d950ffff1b4f4a420848502a018b3998ee1 (patch) | |
tree | b6ee0ef052a289fd025038f91520fe065b908d49 /lisp/emacs-lisp/syntax.el | |
parent | b683280f87bb039a7fcf41d03cf1766e980fa378 (diff) | |
download | emacs-279a7d950ffff1b4f4a420848502a018b3998ee1.tar.gz emacs-279a7d950ffff1b4f4a420848502a018b3998ee1.tar.bz2 emacs-279a7d950ffff1b4f4a420848502a018b3998ee1.zip |
Improve temporary file handling in browse-url
* lisp/net/browse-url.el (browse-url-delete-temp-file): Don't add
to kill-buffer-hook on top level.
(browse-url--temp-file-setup): New macro to set 'kill-buffer-hook'
buffer-locally to above function when creating a temporary file. Use
stricter permissions to protect user privacy on multi-user systems.
(browse-url-of-file, browse-url-of-buffer): Use above new macro.
(browse-url-delete-temp-file): Simplify calling convention by removing
unused argument.
Diffstat (limited to 'lisp/emacs-lisp/syntax.el')
0 files changed, 0 insertions, 0 deletions