[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb ac97c90 118/449: Let gnorb-org-view work in the A
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb ac97c90 118/449: Let gnorb-org-view work in the Agenda as well |
Date: |
Fri, 27 Nov 2020 23:15:21 -0500 (EST) |
branch: externals/gnorb
commit ac97c90eb012509dbc764e39f8da60bf97512564
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Let gnorb-org-view work in the Agenda as well
lisp/gnorb-org.el Function `gnorb-org-view' should work in the agenda.
Also, we wanted to use `org-reveal', not `widen'
---
lisp/gnorb-org.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lisp/gnorb-org.el b/lisp/gnorb-org.el
index d1463d2..82a4ffa 100644
--- a/lisp/gnorb-org.el
+++ b/lisp/gnorb-org.el
@@ -821,8 +821,19 @@ then show them in an ephemeral group, in gnus.
This won't work unless you've added a \"nngnorb\" server to
your gnus select methods."
+ ;; this should also work on the active region, if there is one.
(interactive)
(setq gnorb-org-window-conf (current-window-configuration))
+ (when (eq major-mode 'org-agenda-mode)
+ (org-agenda-check-type t 'agenda 'timeline 'todo 'tags)
+ (org-agenda-check-no-diary)
+ (let* ((marker (or (org-get-at-bol 'org-hd-marker)
+ (org-agenda-error)))
+ (buffer (marker-buffer marker))
+ (pos (marker-position marker)))
+ (switch-to-buffer buffer)
+ (goto-char pos)
+ (org-reveal)))
(let (id)
(save-excursion
(org-back-to-heading)
- [elpa] externals/gnorb a64f652 094/449: Have gnorb-org-popup-bbdb scan the whole subtree, (continued)
- [elpa] externals/gnorb a64f652 094/449: Have gnorb-org-popup-bbdb scan the whole subtree, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 68f1473 096/449: More robust check for an open nngnorb server, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9fbd947 105/449: Collect attachments on incoming trigger action, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb adba76d 117/449: Rewrite of link-scanning routine, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 522f653 121/449: Declare some function, possibly unneccesary, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 1a40d11 130/449: Checking wishlist items off, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 372986c 132/449: Fix call of key-description, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9ecb0e2 136/449: Use BBDB posting styles in mail composition, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 1d9c710 139/449: Error in following link should be re-raised, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5a86970 109/449: Improvements to outgoing todo handling, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ac97c90 118/449: Let gnorb-org-view work in the Agenda as well,
Stefan Monnier <=
- [elpa] externals/gnorb a512d40 124/449: Largely re-wrote gnorb-gnus-outgoing-do-todo, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb dad66e6 131/449: Better separate triggering for sent/received msgs, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb baf896c 100/449: Cruft! How the hell did that happen?, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3ffcdab 101/449: Create .gitignore file, ignoring *elc files, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9bf56f2 135/449: Refactor extraction of mails from records, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c6b7c04 137/449: Minor README edits, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e44ece6 102/449: Multiple misnamed variables in bbdb posting styles, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9f5466d 103/449: Edits courtesy of byte-compiler warnings, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8fc575c 108/449: Improvements to incoming message handling, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a9d7518 113/449: Make sure we're visiting an id when we cache it, Stefan Monnier, 2020/11/27