Kaynağa Gözat

Fix org-attach dispatch enhancement

Bastien 5 yıl önce
ebeveyn
işleme
04e9d848ed
1 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3 4
      lisp/org-attach.el

+ 3 - 4
lisp/org-attach.el

@@ -290,11 +290,10 @@ Shows a list of commands and prompts for another key to execute a command."
 		                "\n")))))
 	  (org-fit-window-to-buffer (get-buffer-window "*Org Attach*"))
 	  (let ((msg (format "Select command: [%s]"
-			     (concat (mapcar #'caar org-attach-commands))))
-		key)
+			     (concat (mapcar #'caar org-attach-commands)))))
 	    (message msg)
-	    (while (and (setq key (read-char-exclusive))
-		        (memq key '(14 16 22 134217846)))
+	    (while (and (setq c (read-char-exclusive))
+		        (memq c '(14 16 22 134217846)))
 	      (org-scroll key t)))
 	  (and (get-buffer "*Org Attach*") (kill-buffer "*Org Attach*"))))
       (let ((command (cl-some (lambda (entry)