From: Dave Abrahams <dave@boostpro.com>
To: emacs-orgmode@gnu.org
Subject: bugfix for org-agenda-follow-indirect
Date: Sun, 05 Feb 2012 19:27:48 -1000 [thread overview]
Message-ID: <m2sjiosf8r.fsf@boostpro.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 101 bytes --]
Please try/apply enclosed patch:
--8<---------------cut here---------------start------------->8---
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: agenda-fix.patch --]
[-- Type: text/x-patch, Size: 1162 bytes --]
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 780794e..3ae5e0c 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7202,16 +7202,17 @@ use the dedicated frame)."
(if (and current-prefix-arg (listp current-prefix-arg))
(org-agenda-do-tree-to-indirect-buffer)
(let ((agenda-window (selected-window))
- (indirect-window (get-buffer-window org-last-indirect-buffer)))
+ (indirect-window
+ (get-buffer-window org-last-indirect-buffer)))
(save-window-excursion (org-agenda-do-tree-to-indirect-buffer))
(unwind-protect
- (progn
- (unless indirect-window
+ (progn
+ (unless (window-live-p indirect-window)
(setq indirect-window (split-window agenda-window)))
(select-window indirect-window)
(switch-to-buffer org-last-indirect-buffer :norecord)
(fit-window-to-buffer indirect-window))
- (select-window agenda-window)))))
+ (select-window (get-buffer-window org-agenda-buffer-name))))))
(defun org-agenda-do-tree-to-indirect-buffer ()
"Same as `org-agenda-tree-to-indirect-buffer' without saving window."
[-- Attachment #3: Type: text/plain, Size: 129 bytes --]
--8<---------------cut here---------------end--------------->8---
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
next reply other threads:[~2012-02-06 5:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 5:27 Dave Abrahams [this message]
2012-03-16 18:06 ` bugfix for org-agenda-follow-indirect Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2sjiosf8r.fsf@boostpro.com \
--to=dave@boostpro.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).