[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb a509ff6 164/449: Still trying to track outgoing m
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb a509ff6 164/449: Still trying to track outgoing messages |
Date: |
Fri, 27 Nov 2020 23:15:31 -0500 (EST) |
branch: externals/gnorb
commit a509ff637149bbae785b1c9cc14a0263b9410804
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Still trying to track outgoing messages
* lisp/gnorb-gnus.el (gnorb-gnus-check-outgoing-headers): Instead of
relying on blanking out `gnorb-gnus-sending-message-info' when we're
done with it, just blank it out before we use it.
(gnorb-gnus-outgoing-make-todo-1): Don't set it to nil
* lisp/gnorb-org.el (gnorb-org-add-id-hash-entry): If we're in capture,
we need the base buffer.
---
lisp/gnorb-gnus.el | 6 ++----
lisp/gnorb-org.el | 2 +-
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index f9b92f6..54ee920 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -251,6 +251,7 @@ information about the outgoing message into
`gnorb-gnus-sending-message-info'."
(save-restriction
(message-narrow-to-headers)
+ (setq gnorb-gnus-sending-message-info nil)
(let* ((org-ids (mail-fetch-field gnorb-mail-header nil nil t))
(msg-id (mail-fetch-field "Message-ID"))
(refs (mail-fetch-field "References"))
@@ -454,10 +455,7 @@ work."
(org-capture nil gnorb-gnus-new-todo-capture-key)
(when msg-id
(org-entry-put (point) gnorb-org-msg-id-key msg-id)
- (gnorb-org-add-id-hash-entry msg-id))
- ;; It would be better to only do this if we knew the capture went
- ;; through, ie wasn't aborted.
- (setq gnorb-gnus-sending-message-info nil)))
+ (gnorb-org-add-id-hash-entry msg-id))))
;;; If an incoming message should trigger state-change for a Org todo,
;;; call this function on it.
diff --git a/lisp/gnorb-org.el b/lisp/gnorb-org.el
index 585140a..0568d3c 100644
--- a/lisp/gnorb-org.el
+++ b/lisp/gnorb-org.el
@@ -568,7 +568,7 @@ current heading."
(list
(file-name-nondirectory
(buffer-file-name
- (current-buffer))))
+ (org-base-buffer (current-buffer)))))
(org-get-outline-path)
(list
(org-no-properties
- [elpa] externals/gnorb d7f6301 123/449: Possibly safer arguments to nnir group creation, (continued)
- [elpa] externals/gnorb d7f6301 123/449: Possibly safer arguments to nnir group creation, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 74c5cef 134/449: Add (probably unnecessary) &optional to prefix args, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 689bdd3 148/449: Use = not eq for numbers, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 31304ac 151/449: Whoops, we were using that, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7cf46c3 149/449: Don't use `read' when there's nothing to read, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ab9b441 147/449: Clearing list of saved attachments, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3b6007a 152/449: Autoload cookies all around, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ecf161e 154/449: Use copy-sequence on message-mode-hook!, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb fc9b6cf 153/449: Use existing functions for mime handles, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f3b9fad 161/449: Split out msg-id to group/link functionality, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a509ff6 164/449: Still trying to track outgoing messages,
Stefan Monnier <=
- [elpa] externals/gnorb ade7ee8 163/449: Make hash entries for new sent-message TODOs, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4d584f1 171/449: Require gnorb-bbdb when popping up bbdb buffer, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 260161b 159/449: Check registry-enabled only after registry is loaded, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f1545cd 162/449: Don't add a 'group key to registry if no group, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d04bf53 178/449: Rename/move the registry-entry function, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 452a3f0 177/449: Basic skeleton of registry usage, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb eaa4bf4 181/449: Begin shifting candidate finding to the registry, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7f4dbed 180/449: Don't check for relevant headings if not tracking, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 093c4ed 185/449: Spurious 'g', Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8121bf5 188/449: Stop creating hash table entries and GNORB_MSG_IDS, Stefan Monnier, 2020/11/27