Quellcode durchsuchen

org-agenda.el (org-agenda-sticky): Don't use a function to set. Add a :version string.

* org-agenda.el (org-agenda-sticky): Don't use a function to
set.  Add a :version string.
Bastien Guerry vor 13 Jahren
Ursprung
Commit
3a11d64d23
1 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen
  1. 2 5
      lisp/org-agenda.el

+ 2 - 5
lisp/org-agenda.el

@@ -1868,11 +1868,8 @@ The buffer is still writable when this hook is called.")
 Agenda commands will then show existing buffer instead of generating new ones.
 Agenda commands will then show existing buffer instead of generating new ones.
 When nil, `q' will kill the single agenda buffer."
 When nil, `q' will kill the single agenda buffer."
   :group 'org-agenda
   :group 'org-agenda
-  :type 'boolean
-  :set (lambda (var val)
-	 (if (boundp var)
-	     (org-toggle-sticky-agenda (if val 1 0))
-	   (set var val))))
+  ;; :version "24.3"
+  :type 'boolean)
 
 
 ;;;###autoload
 ;;;###autoload
 (defun org-toggle-sticky-agenda (&optional arg)
 (defun org-toggle-sticky-agenda (&optional arg)