ソースを参照

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 6 年 前
コミット
fe72a05ba5
1 ファイル変更4 行追加1 行削除
  1. 4 1
      lisp/org.el

+ 4 - 1
lisp/org.el

@@ -13051,7 +13051,10 @@ 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
+					(case what
+					  ('deadline "DEADLINE")
+					  ('scheduled "SCHEDULED"))
 					default-time default-input)))))
 
       (org-with-wide-buffer