Function: org-agenda-show-and-scroll-up

org-agenda-show-and-scroll-up is an interactive and byte-compiled function defined in org-agenda.el.gz.

Signature

(org-agenda-show-and-scroll-up &optional ARG)

Documentation

Display the Org file which contains the item at point.

When called repeatedly, scroll the window that is displaying the buffer.

With a C-u (universal-argument) prefix argument, display the item, but fold drawers.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-show-and-scroll-up (&optional arg)
  "Display the Org file which contains the item at point.

When called repeatedly, scroll the window that is displaying the buffer.

With a `\\[universal-argument]' prefix argument, display the item, but \
fold drawers."
  (interactive "P")
  (let ((win (selected-window)))
    (if (and (window-live-p org-agenda-show-window)
	     (eq this-command last-command))
	(progn
	  (select-window org-agenda-show-window)
	  (ignore-errors (scroll-up)))
      (org-agenda-goto t)
      (org-fold-show-entry 'hide-drawers)
      (if arg (org-cycle-hide-drawers 'children)
	(org-with-wide-buffer
	 (narrow-to-region (org-entry-beginning-position)
			   (org-entry-end-position))
	 (org-fold-show-all '(drawers))))
      (setq org-agenda-show-window (selected-window)))
    (select-window win)))