summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-08-28 18:46:57 +0200
committerBastien Guerry <bzg@altern.org>2012-08-28 18:47:12 +0200
commitdb4c1454a3f197e7d2d3734dab364c150435b904 (patch)
tree93c198aec36665069ba44ea0c23bd6f6867a0c62
parent04526ae0de2134e2a9029ece246ff85c0e689add (diff)
downloadorg-mode-db4c1454a3f197e7d2d3734dab364c150435b904.tar.gz
org-agenda.el: Bugfix: correctly check whether we are in org-agenda-mode
* org-agenda.el (org-agenda-append-agenda): Bugfix: correctly check whether we are in org-agenda-mode.
-rw-r--r--lisp/org-agenda.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 60c0b8e..e8da479 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -2571,7 +2571,7 @@ Pressing `<' twice means to restrict to the current subtree or region
This function allows interactive building of block agendas.
Agenda views are separated by `org-agenda-block-separator'."
(interactive)
- (unless (string= (buffer-name) org-agenda-buffer-name)
+ (unless (derived-mode-p 'org-agenda-mode)
(error "Can only append from within agenda buffer"))
(let ((org-agenda-multi t))
(org-agenda)