mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:00:49 +00:00
org-agenda: Refactoring
* lisp/org-agenda.el(org-agenda--quit): Removed an unnecessary variable.
This commit is contained in:
parent
9b1c682425
commit
700b8e70f6
|
@ -7232,8 +7232,7 @@ agenda."
|
|||
(defun org-agenda--quit (&optional bury)
|
||||
(if org-agenda-columns-active
|
||||
(org-columns-quit)
|
||||
(let ((buf (current-buffer))
|
||||
(wconf org-agenda-pre-window-conf)
|
||||
(let ((wconf org-agenda-pre-window-conf)
|
||||
(org-agenda-last-indirect-window
|
||||
(and (eq org-indirect-buffer-display 'other-window)
|
||||
org-agenda-last-indirect-buffer
|
||||
|
@ -7256,7 +7255,7 @@ agenda."
|
|||
(delete-window))))
|
||||
(if bury
|
||||
(bury-buffer)
|
||||
(kill-buffer buf)
|
||||
(kill-buffer)
|
||||
(setq org-agenda-archives-mode nil
|
||||
org-agenda-buffer nil)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue