[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 46a7b51 090/140: with-editor-{finish, cancel}-
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor 46a7b51 090/140: with-editor-{finish, cancel}-hook: No longer ignore global value |
Date: |
Fri, 6 Aug 2021 12:51:26 -0400 (EDT) |
branch: elpa/with-editor
commit 46a7b5136338d8fc7af4f6eb3ade2b8a990b7760
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
with-editor-{finish,cancel}-hook: No longer ignore global value
---
with-editor.el | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/with-editor.el b/with-editor.el
index bf79dd6..e5445b1 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -331,14 +331,15 @@ And some tools that do not handle $EDITOR properly also
break."
(interactive "P")
(when (run-hook-with-args-until-failure
'with-editor-finish-query-functions force)
- (let ((with-editor-post-finish-hook-1
- (ignore-errors (delq t with-editor-post-finish-hook)))
+ (let ((post-finish-hook with-editor-post-finish-hook)
(dir default-directory))
(run-hooks 'with-editor-pre-finish-hook)
(with-editor-return nil)
(accept-process-output nil 0.1)
- (let ((default-directory dir))
- (run-hooks 'with-editor-post-finish-hook-1)))))
+ (with-temp-buffer
+ (setq default-directory dir)
+ (setq-local with-editor-post-finish-hook post-finish-hook)
+ (run-hooks 'with-editor-post-finish-hook)))))
(defun with-editor-cancel (force)
"Cancel the current edit session."
@@ -348,15 +349,16 @@ And some tools that do not handle $EDITOR properly also
break."
(let ((message with-editor-cancel-message))
(when (functionp message)
(setq message (funcall message)))
- (let ((with-editor-post-cancel-hook-1
- (ignore-errors (delq t with-editor-post-cancel-hook)))
+ (let ((post-cancel-hook with-editor-post-cancel-hook)
(with-editor-cancel-alist nil)
(dir default-directory))
(run-hooks 'with-editor-pre-cancel-hook)
(with-editor-return t)
(accept-process-output nil 0.1)
- (let ((default-directory dir))
- (run-hooks 'with-editor-post-cancel-hook-1)))
+ (with-temp-buffer
+ (setq default-directory dir)
+ (setq-local with-editor-post-cancel-hook post-cancel-hook)
+ (run-hooks 'with-editor-post-cancel-hook)))
(message (or message "Canceled by user")))))
(defun with-editor-return (cancel)
- [nongnu] elpa/with-editor 93876b6 068/140: manual: use @noindent before version sentence, (continued)
- [nongnu] elpa/with-editor 93876b6 068/140: manual: use @noindent before version sentence, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f401e12 071/140: Add some autoload, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fcbccec 072/140: Use process-live-p to check whether process is alive, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 3e64247 080/140: Release version 2.7.4, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor cacb41d 062/140: make: use same export settings as for manual Org exports, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ee39f23 065/140: make: generate CDN invalidation after upload, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 73d3d1a 066/140: Use the emacsclient again when running shell commands, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ff3e969 077/140: make: Refactor manual publishing, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 3ad940c 086/140: Update documentation, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor db11c10 089/140: Release version 2.8.0, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 46a7b51 090/140: with-editor-{finish, cancel}-hook: No longer ignore global value,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor 66bec91 098/140: Release version 2.8.3, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor bc184cf 075/140: Changing heading of library footer section, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 22a581d 076/140: make: Remove deleted pages when publishing manual, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 71e61b9 081/140: with-editor-sleeping-editor: Also print the working directory, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d3b0bc7 083/140: Update documentation, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 87c96b3 091/140: with-editor-finish: Preserve local git-commit-post-finish-hook, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ef0ef43 093/140: manual: Call ox-texinfo+-update-copyright-years while exporting, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 513e13f 097/140: Fix previous commit, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ff23166 099/140: Add .github/FUNDING.yml, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f5a8d96 100/140: with-editor-usage-message: Delay message a little longer, Jonas Bernoulli, 2021/08/06