Mercurial > emacs
changeset 64396:52c5faa47a88
(pascal-outline-map): Use fboundp, not boundp. Correctly avoid warnings.
(pascal-outline): Likewise.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 16 Jul 2005 18:45:25 +0000 |
parents | 16a2152f8d11 |
children | 876aa7f08950 |
files | lisp/progmodes/pascal.el |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/pascal.el Sat Jul 16 18:42:26 2005 +0000 +++ b/lisp/progmodes/pascal.el Sat Jul 16 18:45:25 2005 +0000 @@ -1493,12 +1493,12 @@ (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 @@ (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