[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 78e1e2b 090/449: Use custom refile targets in re-
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 78e1e2b 090/449: Use custom refile targets in re-attaching files |
Date: |
Fri, 27 Nov 2020 23:15:15 -0500 (EST) |
branch: externals/gnorb
commit 78e1e2b8e206ce9dce032d13c9f67aaf181530f6
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Use custom refile targets in re-attaching files
lisp/gnorb-gnus.el: We've got a custom option
`gnorb-gnus-trigger-refile-targets', make use of that in
`gnorb-gnus-attach-part' as well.
---
lisp/gnorb-gnus.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index 9ce9aca..4521b88 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -111,11 +111,12 @@ Basically behave as if all attachments have
\":gnus-attachments t\"."
(defun gnorb-gnus-attach-part (handle &optional org-heading)
"Attach HANDLE to an existing org heading."
- (let ((filename (gnorb-gnus-save-part handle))
- ;; we should probably do the automatic location routine here,
- ;; as well.
- (org-heading (or org-heading
- (org-refile-get-location "Attach part to" nil t))))
+ (let* ((filename (gnorb-gnus-save-part handle))
+ ;; we should probably do the automatic location routine here,
+ ;; as well.
+ (org-refile-targets gnorb-gnus-trigger-refile-targets)
+ (org-heading (or org-heading
+ (org-refile-get-location "Attach part to" nil t))))
(require 'org-attach)
(save-window-excursion
(find-file (nth 1 org-heading))
- [elpa] externals/gnorb 3a2cd3b 072/449: Improve scanning of headings for mail actions, (continued)
- [elpa] externals/gnorb 3a2cd3b 072/449: Improve scanning of headings for mail actions, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb bb21414 075/449: Provide more escapes for outgoing capture templates, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb cd1f289 076/449: Guess which Org TODO is related to this message, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 856da2b 077/449: Improve `gnorb-gnus-outgoing-make-todo', Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5812648 078/449: FUNCTION RENAMING, I'M VERY SORRY, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 582c111 080/449: Let gnorb-gnus-check-outgoing-headers handle news, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 92354d0 082/449: Allow use of some org-mime properties, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b81f3e2 083/449: Don't assume any ID references on incoming messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 1cdec4b 086/449: New option gnorb-org-find-candidates-match, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c2a3793 087/449: Don't prompt for action if todo is not possible, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 78e1e2b 090/449: Use custom refile targets in re-attaching files,
Stefan Monnier <=
- [elpa] externals/gnorb 7950d3a 091/449: Comment and indentation changes only, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f5d451e 092/449: New nngnorb mail backend, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e62587f 095/449: Yeesh, assigning to global variable by accident, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8fef972 097/449: Gnorb nnir engine doesn't take extra criteria, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7f67221 098/449: Allow for more "query" types in nnir-run-gnorb, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d394ed3 099/449: Let nnir-run-gnorb handle gnus version 5.13, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e3db6ae 111/449: Return visit candidates correctly., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4a845bd 116/449: Who knew there's actually a version= function?, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 85797d0 120/449: Be more careful about what MIME parts we attach, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e4ab4d5 122/449: Finer control over how attachments are saved, Stefan Monnier, 2020/11/27