Ver código fonte

Fix last commit

* lisp/org-agenda.el (org-agenda-mode):
* lisp/org.el (org-clone-local-variables): Fix match pattern.
Nicolas Goaziou 7 anos atrás
pai
commit
faace6f05d
2 arquivos alterados com 6 adições e 6 exclusões
  1. 4 4
      lisp/org-agenda.el
  2. 2 2
      lisp/org.el

+ 4 - 4
lisp/org-agenda.el

@@ -2134,7 +2134,7 @@ The following commands are available:
 	   (mapc #'make-local-variable org-agenda-local-vars)
 	   (dolist (elem save)
 	     (pcase elem
-	       (`(,var ,val)		;ignore unbound variables
+	       (`(,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))
@@ -2163,9 +2163,9 @@ The following commands are available:
   (add-hook 'pre-command-hook 'org-unhighlight nil 'local)
   ;; Make sure properties are removed when copying text
   (add-hook 'filter-buffer-substring-functions
-		(lambda (fun start end delete)
-		  (substring-no-properties (funcall fun start end delete)))
-		nil t)
+	    (lambda (fun start end delete)
+	      (substring-no-properties (funcall fun start end delete)))
+	    nil t)
   (unless org-agenda-keep-modes
     (setq org-agenda-follow-mode org-agenda-start-with-follow-mode
 	  org-agenda-entry-text-mode org-agenda-start-with-entry-text-mode))

+ 2 - 2
lisp/org.el

@@ -9620,10 +9620,10 @@ auto-fill\\|normal-auto-fill\\|fill-paragraph\\|indent-\\)"
 Optional argument REGEXP selects variables to clone."
   (dolist (pair (buffer-local-variables from-buffer))
     (pcase pair
-      (`(,name ,_)			;ignore unbound variables
+      (`(,name . ,value)		;ignore unbound variables
        (when (and (not (memq name org-unique-local-variables))
 		  (or (null regexp) (string-match-p regexp (symbol-name name))))
-	 (set (make-local-variable name) (cdr pair)))))))
+	 (set (make-local-variable name) value))))))
 
 ;;;###autoload
 (defun org-run-like-in-org-mode (cmd)