org-agenda: Remove unnecessary visibility modification

* lisp/org.el (org-show-context-detail): Change default visibility span
  for agenda context.

* lisp/org-agenda.el (org-agenda-goto):
(org-agenda-todo):
(org-agenda-add-note):
(org-agenda-priority):
(org-agenda-set-tags):
(org-agenda-set-property):
(org-agenda-set-effort):
(org-agenda-toggle-archive-tag):
(org-agenda-clock-in): Special visibility is taken care of by
`org-show-context'.  Do not hard-code anything else.

* contrib/lisp/org-contacts.el (org-contacts-gnus-article-from-goto):
Special visibility is taken care of by `org-show-context'.  Do not
hard-code anything else.
This commit is contained in:
Nicolas Goaziou 2016-04-29 11:35:49 +02:00
parent f02da8b4de
commit 27bec00a60

View file

@ -675,12 +675,7 @@ description."
(when marker (when marker
(switch-to-buffer-other-window (marker-buffer marker)) (switch-to-buffer-other-window (marker-buffer marker))
(goto-char marker) (goto-char marker)
(when (eq major-mode 'org-mode) (when (eq major-mode 'org-mode) (org-show-context 'agenda)))))
(org-show-context 'agenda)
(save-excursion
(and (outline-next-heading)
;; show the next heading
(org-flag-heading nil)))))))
(org-no-warnings (defvar date)) ;; unprefixed, from calendar.el (org-no-warnings (defvar date)) ;; unprefixed, from calendar.el
(defun org-contacts-anniversaries (&optional field format) (defun org-contacts-anniversaries (&optional field format)