diff options
| author | Pierre Courtieu | 2005-03-08 16:41:51 +0000 |
|---|---|---|
| committer | Pierre Courtieu | 2005-03-08 16:41:51 +0000 |
| commit | 87af89b6acfaf48afc3166f10371bf6d190241f0 (patch) | |
| tree | 8c83aa6adfdc6399c430ab5c29d1703cb8ae8b63 /coq | |
| parent | 9595f713345cec80cc03bd09ec0c8c747c7dd6d8 (diff) | |
making holes.el cleaner, with the help of Stefan Monnier. I had to
adapt coq.el to these modifications.
Diffstat (limited to 'coq')
| -rw-r--r-- | coq/coq-abbrev.el | 2 | ||||
| -rw-r--r-- | coq/coq.el | 12 |
2 files changed, 4 insertions, 10 deletions
diff --git a/coq/coq-abbrev.el b/coq/coq-abbrev.el index d2e31539..29fc9b96 100644 --- a/coq/coq-abbrev.el +++ b/coq/coq-abbrev.el @@ -221,7 +221,7 @@ ["fun3 f3<C-BS>" (holes-insert-and-expand "f3") t] ["fun4 f4<C-BS>" (holes-insert-and-expand "f4") t] "" - ["if then else if<C-BS>" (holes-insert-and-expand "li") t] + ["if then else if<C-BS>" (holes-insert-and-expand "if") t] ["let in li<C-BS>" (holes-insert-and-expand "li") t] "" ["match m<C-BS>" (holes-insert-and-expand "m") t] @@ -106,7 +106,7 @@ To disable coqc being called (and use only make), set this to nil." (interactive "sSection name: ") (let ((p (point))) (insert "Section " s ".\n#\nEnd " s ".") - (holes-replace-string-by-holes-backward-move-point 1 holes-empty-hole-string) + (holes-replace-string-by-holes-backward p) (goto-char p) (holes-set-point-next-hole-destroy)) ) @@ -128,10 +128,10 @@ To disable coqc being called (and use only make), set this to nil." (if (string-equal typkind "") (progn (insert mods " " s ".\n#\nEnd " s ".") - (holes-replace-string-by-holes-backward-move-point 1 holes-empty-hole-string) + (holes-replace-string-by-holes-backward p) (goto-char p)) (insert mods " " s " " typkind " #.\n#\nEnd " s ".") - (holes-replace-string-by-holes-backward-move-point 2 holes-empty-hole-string) + (holes-replace-string-by-holes-backward p) (goto-char p) (holes-set-point-next-hole-destroy)) ) @@ -639,12 +639,6 @@ Based on idea mentioned in Coq reference manual." ;; mode: you can use this (C-c C-l) to do what binding below did. ;;(define-key coq-keymap [(control f3)] 'coq-three-b) -; This is arguable, but completion with a three key shortcut is bad, -; and the default meta-/ is bad on some keyboards (especially french ones) -(define-key global-map [(control backspace)] 'expand-abbrev) -;; da: do you also want a key for unexpand-abbrev? (maybe just undo is ok) - - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Indentation ;; |
