Преглед изворни кода

org: Show planning type in prompt when editing

* lisp/org.el (org-add-planning-info): Call `org-read-date' with either
  DEADLINE or SCHEDULED as value for the prompt.
Marco Wahl пре 7 година
родитељ
комит
6e584d06fd
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      lisp/org.el

+ 5 - 1
lisp/org.el

@@ -13051,7 +13051,11 @@ WHAT entry will also be removed."
 			 (org-read-date-analyze
 			  time default-time (decode-time default-time)))
 		;; If necessary, get the time from the user
-		(or time (org-read-date nil 'to-time nil nil
+		(or time (org-read-date nil 'to-time nil
+					(cl-case what
+					  (deadline "DEADLINE")
+					  (scheduled "SCHEDULED")
+					  (otherwise nil))
 					default-time default-input)))))
 
       (org-with-wide-buffer