aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2003-02-24 12:15:23 +0000
committerDavid Aspinall2003-02-24 12:15:23 +0000
commitfb6a4c9549b270393e97fb78dda19ab50b3bb7fe (patch)
tree843acb0bddcbdfd946e68637790ece748333a939
parenta226f10e9ca3053df88f7692f1f5c524d85a647c (diff)
Fix proofdefinvisible, proofdefshortcut to work in compiled version
-rw-r--r--generic/proof-menu.el28
1 files changed, 14 insertions, 14 deletions
diff --git a/generic/proof-menu.el b/generic/proof-menu.el
index 9b95a9b5..18b4126e 100644
--- a/generic/proof-menu.el
+++ b/generic/proof-menu.el
@@ -458,13 +458,13 @@ If in three window or multiple frame mode, display two buffers."
This is intended for defining proof assistant specific functions.
STRING is inserted using `proof-insert', which see.
KEY is added onto proof-assistant map."
- (if key
- (eval ;; eval-after-load "proof" ?
- `(define-key (proof-ass keymap) (quote ,key) (quote ,fn))))
- `(defun ,fn ()
- ,(concat "Shortcut command to insert " string " into the current buffer.")
- (interactive)
- (proof-insert ,string)))
+ `(progn
+ (if ,key
+ (define-key (proof-ass keymap) (quote ,key) (quote ,fn)))
+ (defun ,fn ()
+ ,(concat "Shortcut command to insert " string " into the current buffer.")
+ (interactive)
+ (proof-insert ,string))))
;;;###autoload
(defmacro proof-definvisible (fn string &optional key)
@@ -472,13 +472,13 @@ KEY is added onto proof-assistant map."
This is intended for defining proof assistant specific functions.
STRING is sent using proof-shell-invisible-command, which see.
KEY is added onto proof-assistant map."
- (if key
- (eval ;; eval-after-load "proof" ?
- `(define-key (proof-ass keymap) (quote ,key) (quote ,fn))))
- `(defun ,fn ()
- ,(concat "Command to send " string " to the proof assistant.")
- (interactive)
- (proof-shell-invisible-command ,string)))
+ `(progn
+ (if ,key
+ (define-key (proof-ass keymap) (quote ,key) (quote ,fn)))
+ (defun ,fn ()
+ ,(concat "Command to send " string " to the proof assistant.")
+ (interactive)
+ (proof-shell-invisible-command ,string))))
(defun proof-def-favourite (command inscript menuname &optional key new)
"Define and a \"favourite\" proof assisant function.