|
@@ -640,11 +640,13 @@ this function appends the default value from
|
|
|
org-refile-target-table))
|
|
|
(completion-ignore-case t)
|
|
|
cdef
|
|
|
- (prompt (concat prompt
|
|
|
- (or (and (car org-refile-history)
|
|
|
- (concat " (default " (car org-refile-history) ")"))
|
|
|
- (and (assoc cbnex tbl) (setq cdef cbnex)
|
|
|
- (concat " (default " cbnex ")"))) ": "))
|
|
|
+ (prompt (let ((default (or (car org-refile-history)
|
|
|
+ (and (assoc cbnex tbl) (setq cdef cbnex)
|
|
|
+ cbnex))))
|
|
|
+ ;; `format-prompt' is new in Emacs 28.1.
|
|
|
+ (if (fboundp 'format-prompt)
|
|
|
+ (format-prompt prompt default)
|
|
|
+ (concat prompt " (default " default ": "))))
|
|
|
pa answ parent-target child parent old-hist)
|
|
|
(setq old-hist org-refile-history)
|
|
|
(setq answ (funcall cfunc prompt tbl nil (not new-nodes)
|