Function: org-agenda-copy-local-variable

org-agenda-copy-local-variable is a byte-compiled function defined in org-agenda.el.gz.

Signature

(org-agenda-copy-local-variable VAR)

Documentation

Get a variable from a referenced buffer and install it here.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-copy-local-variable (var)
  "Get a variable from a referenced buffer and install it here."
  (let ((m (org-get-at-bol 'org-marker)))
    (when (and m (buffer-live-p (marker-buffer m)))
      (set (make-local-variable var)
	   (with-current-buffer (marker-buffer m)
	     (symbol-value var))))))