diff options
author | Richard M. Stallman <rms@gnu.org> | 2005-07-16 18:45:25 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2005-07-16 18:45:25 +0000 |
commit | ca73a5b4418cde4e8024bab9fc84a6c0f89f4185 (patch) | |
tree | 19125e7daa02b3cdacdac543371228ab4e721f72 /lisp/progmodes/pascal.el | |
parent | 2c948571861839f7f1d65e8bc293e43dd88a805f (diff) | |
download | emacs-ca73a5b4418cde4e8024bab9fc84a6c0f89f4185.tar.gz |
(pascal-outline-map): Use fboundp, not boundp. Correctly avoid warnings.
(pascal-outline): Likewise.
Diffstat (limited to 'lisp/progmodes/pascal.el')
-rw-r--r-- | lisp/progmodes/pascal.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el index ebe37bc1d46..3212107b20d 100644 --- a/lisp/progmodes/pascal.el +++ b/lisp/progmodes/pascal.el @@ -1493,12 +1493,12 @@ The default is a name found in the buffer around point." (if pascal-outline-map nil - (if (boundp 'set-keymap-name) + (if (fboundp 'set-keymap-name) (set-keymap-name pascal-outline-map 'pascal-outline-map)) - (if (not (boundp 'set-keymap-parent)) - (setq pascal-outline-map (copy-keymap pascal-mode-map)) - (setq pascal-outline-map (make-sparse-keymap)) - (set-keymap-parent pascal-outline-map pascal-mode-map)) + (if (fboundp 'set-keymap-parent) + (set-keymap-parent (setq pascal-outline-map (make-sparse-keymap)) + pascal-mode-map) + (setq pascal-outline-map (copy-keymap pascal-mode-map))) (define-key pascal-outline-map "\M-\C-a" 'pascal-outline-prev-defun) (define-key pascal-outline-map "\M-\C-e" 'pascal-outline-next-defun) (define-key pascal-outline-map "\C-c\C-d" 'pascal-outline-goto-defun) @@ -1533,7 +1533,7 @@ Pascal Outline mode provides some additional commands. (interactive "P") (setq pascal-outline-mode (if (null arg) (not pascal-outline-mode) t)) - (if (boundp 'redraw-mode-line) + (if (fboundp 'redraw-mode-line) (redraw-mode-line)) (if pascal-outline-mode (progn |