| 
					
				 | 
			
			
				@@ -2191,30 +2191,29 @@ The following commands are available: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	   face-remapping-alist)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(save (buffer-local-variables))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (kill-all-local-variables) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    (cond (org-agenda-doing-sticky-redo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   ;; Refreshing sticky agenda-buffer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   ;; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   ;; Preserve the value of `org-agenda-local-vars' variables. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (mapc #'make-local-variable org-agenda-local-vars) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (dolist (elem save) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	     (pcase elem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	       (`(,var . ,val)		;ignore unbound variables 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		(when (and val (memq var org-agenda-local-vars)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		  (set var val))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (setq-local org-agenda-this-buffer-is-sticky t)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	  (org-agenda-sticky 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   ;; Creating a sticky Agenda buffer for the first time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (mapc 'make-local-variable org-agenda-local-vars) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (setq-local org-agenda-this-buffer-is-sticky t)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	  (t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   ;; Creating a non-sticky agenda buffer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (setq-local org-agenda-this-buffer-is-sticky nil))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    (mapc #'make-local-variable agenda-local-vars-to-keep) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    (dolist (elem save) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      (pcase elem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	(`(,var . ,val)		;ignore unbound variables 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	 (when (and val (memq var agenda-local-vars-to-keep)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (set var val)))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    (cl-flet ((reset-saved (var-set) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			   "Reset variables in VAR-SET to possibly stored value in SAVE." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			(dolist (elem save) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			  (pcase elem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			    (`(,var . ,val)		;ignore unbound variables 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			     (when (and val (memq var var-set)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			       (set var val))))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      (cond (org-agenda-doing-sticky-redo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     ;; Refreshing sticky agenda-buffer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     ;; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     ;; Preserve the value of `org-agenda-local-vars' variables. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (mapc #'make-local-variable org-agenda-local-vars) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (reset-saved org-agenda-local-vars) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (setq-local org-agenda-this-buffer-is-sticky t)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	    (org-agenda-sticky 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     ;; Creating a sticky Agenda buffer for the first time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (mapc 'make-local-variable org-agenda-local-vars) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (setq-local org-agenda-this-buffer-is-sticky t)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	    (t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     ;; Creating a non-sticky agenda buffer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (setq-local org-agenda-this-buffer-is-sticky nil))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      (mapc #'make-local-variable agenda-local-vars-to-keep) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      (reset-saved agenda-local-vars-to-keep))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   (setq org-agenda-undo-list nil 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	org-agenda-pending-undo-list nil 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	org-agenda-bulk-marked-entries nil) 
			 |