diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index ea822da3d..f2eac9982 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -2266,6 +2266,8 @@ 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) + (error "Can only append from within agenda buffer")) (let ((org-agenda-multi t)) (org-agenda) (widen)))