Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coq/coq.el
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ Otherwise propose identifier at point if any."
(t (coq-id-or-notation-at-point)))))
(read-string
(if guess (concat s " (default " guess "): ") (concat s ": "))
nil 'proof-minibuffer-history guess)))
nil 'proof-minibuffer-history guess t)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this related to the repeat-mode?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, it is not. This is just an unrelated change I had commuted and accidentally pushed in this PR. Should I remove it, because I would have also wanted to submit it as well anyway.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is probably better to do another PR. But we can leave it here. What is the recommended policy for this?



(defun coq-ask-do (ask do &optional dontguess postformatcmd wait)
Expand Down
9 changes: 9 additions & 0 deletions generic/proof-menu.el
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ without adjusting window layout."
;; NB: C-c ` is next-error in universal-keys
(proof-define-keys map proof-universal-keys))

(defvar proof-repeat-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-n") #'proof-assert-next-command-interactive)
(define-key map (kbd "C-u") #'proof-undo-last-successful-command)
map))

;; support for `repeat-mode' (≥Emacs 28)
(put #'proof-assert-next-command-interactive 'repeat-map 'proof-repeat-map)
(put #'proof-undo-last-successful-command 'repeat-map 'proof-repeat-map)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down
Loading