Bladeren bron

org-agenda: Use ARG instead of `current-prefix-arg'

* lisp/org-agenda.el (org-agenda): Use the function argument instead
of `current-prefix-arg' when calling agenda view.  This is safe
because `org-agenda' uses raw "P" interactive spec.

Fixes https://list.orgmode.org/m2pmimnymk.fsf@air.local.mail-host-address-is-not-set/T/#u
Ihor Radchenko 2 jaren geleden
bovenliggende
commit
db12a497d2
1 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  1. 7 7
      lisp/org-agenda.el

+ 7 - 7
lisp/org-agenda.el

@@ -2975,24 +2975,24 @@ Pressing `<' twice means to restrict to the current subtree or region
 	          (mapcar (lambda (binding) (eval (cadr binding) t)) lprops)
 	        (pcase type
 	          (`agenda
-	           (org-agenda-list current-prefix-arg))
+	           (org-agenda-list arg))
 	          (`agenda*
-	           (org-agenda-list current-prefix-arg nil nil t))
+	           (org-agenda-list arg nil nil t))
 	          (`alltodo
-	           (org-todo-list current-prefix-arg))
+	           (org-todo-list arg))
 	          (`search
-	           (org-search-view current-prefix-arg org-match nil))
+	           (org-search-view arg org-match nil))
 	          (`stuck
-	           (org-agenda-list-stuck-projects current-prefix-arg))
+	           (org-agenda-list-stuck-projects arg))
 	          (`tags
-	           (org-tags-view current-prefix-arg org-match))
+	           (org-tags-view arg org-match))
 	          (`tags-todo
 	           (org-tags-view '(4) org-match))
 	          (`todo
 		   (org-todo-list org-match))
 		  (`tags-tree
 		   (org-check-for-org-mode)
-		   (org-match-sparse-tree current-prefix-arg org-match))
+		   (org-match-sparse-tree arg org-match))
 		  (`todo-tree
 		   (org-check-for-org-mode)
 		   (org-occur (concat "^" org-outline-regexp "[ \t]*"