diff options
| author | RĂ¼diger Sonderfeld | 2012-09-06 17:36:40 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-09-06 17:36:40 +0800 |
| commit | 20367d28f5264cd88dbb4cee821466e34355fad5 (patch) | |
| tree | e344e723aaaf601df912cb8f803e7c64b3752042 | |
| parent | 3424a4f61edc1aac5a5a59c2c8f52c8a7139232a (diff) | |
| download | emacs-20367d28f5264cd88dbb4cee821466e34355fad5.tar.gz emacs-20367d28f5264cd88dbb4cee821466e34355fad5.zip | |
Fix use of obsolete variables in vhdl-mode.el.
* progmodes/vhdl-mode.el (vhdl-speedbar-initialize): Don't use
obsolete alias speedbar-key-map.
(vhdl-doc-variable, vhdl-doc-mode): Use called-interactively-p.
(vhdl-index-menu-init): Don't use obsolete variable font-lock-maximum-size.
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 15 |
2 files changed, 19 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1f5f41c0e35..5a30583a9dc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,17 @@ | |||
| 1 | 2012-09-06 Chong Yidong <cyd@gnu.org> | 1 | 2012-09-06 Chong Yidong <cyd@gnu.org> |
| 2 | 2 | ||
| 3 | * progmodes/vhdl-mode.el | ||
| 4 | |||
| 5 | 2012-09-06 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de> | ||
| 6 | |||
| 7 | * progmodes/vhdl-mode.el (vhdl-speedbar-initialize): Don't use | ||
| 8 | obsolete alias speedbar-key-map. | ||
| 9 | (vhdl-doc-variable, vhdl-doc-mode): Use called-interactively-p. | ||
| 10 | (vhdl-index-menu-init): Don't use obsolete variable | ||
| 11 | font-lock-maximum-size. | ||
| 12 | |||
| 13 | 2012-09-06 Chong Yidong <cyd@gnu.org> | ||
| 14 | |||
| 3 | * frame.el (window-system-version): Mark as obsolete. | 15 | * frame.el (window-system-version): Mark as obsolete. |
| 4 | 16 | ||
| 5 | 2012-09-06 Juri Linkov <juri@jurta.org> | 17 | 2012-09-06 Juri Linkov <juri@jurta.org> |
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 607ccd8b7e7..0ca3439dd60 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -4138,10 +4138,7 @@ STRING are replaced by `-' and substrings are converted to lower case." | |||
| 4138 | (set (make-local-variable 'imenu-generic-expression) | 4138 | (set (make-local-variable 'imenu-generic-expression) |
| 4139 | vhdl-imenu-generic-expression) | 4139 | vhdl-imenu-generic-expression) |
| 4140 | (when (and vhdl-index-menu (fboundp 'imenu)) | 4140 | (when (and vhdl-index-menu (fboundp 'imenu)) |
| 4141 | (if (or (not (boundp 'font-lock-maximum-size)) | 4141 | (imenu-add-to-menubar "Index"))) |
| 4142 | (> font-lock-maximum-size (buffer-size))) | ||
| 4143 | (imenu-add-to-menubar "Index") | ||
| 4144 | (message "Scanning buffer for index...buffer too big")))) | ||
| 4145 | 4142 | ||
| 4146 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 4143 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 4147 | ;; Source file menu (using `easy-menu.el') | 4144 | ;; Source file menu (using `easy-menu.el') |
| @@ -14385,10 +14382,10 @@ if required." | |||
| 14385 | (define-key vhdl-speedbar-key-map (int-to-string key) | 14382 | (define-key vhdl-speedbar-key-map (int-to-string key) |
| 14386 | `(lambda () (interactive) (vhdl-speedbar-set-depth ,key))) | 14383 | `(lambda () (interactive) (vhdl-speedbar-set-depth ,key))) |
| 14387 | (setq key (1+ key))))) | 14384 | (setq key (1+ key))))) |
| 14388 | (define-key speedbar-key-map "h" | 14385 | (define-key speedbar-mode-map "h" |
| 14389 | (lambda () (interactive) | 14386 | (lambda () (interactive) |
| 14390 | (speedbar-change-initial-expansion-list "vhdl directory"))) | 14387 | (speedbar-change-initial-expansion-list "vhdl directory"))) |
| 14391 | (define-key speedbar-key-map "H" | 14388 | (define-key speedbar-mode-map "H" |
| 14392 | (lambda () (interactive) | 14389 | (lambda () (interactive) |
| 14393 | (speedbar-change-initial-expansion-list "vhdl project"))) | 14390 | (speedbar-change-initial-expansion-list "vhdl project"))) |
| 14394 | ;; menu | 14391 | ;; menu |
| @@ -17400,7 +17397,8 @@ to visually support naming conventions.") | |||
| 17400 | "Display VARIABLE's documentation in *Help* buffer." | 17397 | "Display VARIABLE's documentation in *Help* buffer." |
| 17401 | (interactive) | 17398 | (interactive) |
| 17402 | (unless (featurep 'xemacs) | 17399 | (unless (featurep 'xemacs) |
| 17403 | (help-setup-xref (list #'vhdl-doc-variable variable) (interactive-p))) | 17400 | (help-setup-xref (list #'vhdl-doc-variable variable) |
| 17401 | (called-interactively-p 'interactive))) | ||
| 17404 | (with-output-to-temp-buffer | 17402 | (with-output-to-temp-buffer |
| 17405 | (if (fboundp 'help-buffer) (help-buffer) "*Help*") | 17403 | (if (fboundp 'help-buffer) (help-buffer) "*Help*") |
| 17406 | (princ (documentation-property variable 'variable-documentation)) | 17404 | (princ (documentation-property variable 'variable-documentation)) |
| @@ -17412,7 +17410,8 @@ to visually support naming conventions.") | |||
| 17412 | "Display VHDL Mode documentation in *Help* buffer." | 17410 | "Display VHDL Mode documentation in *Help* buffer." |
| 17413 | (interactive) | 17411 | (interactive) |
| 17414 | (unless (featurep 'xemacs) | 17412 | (unless (featurep 'xemacs) |
| 17415 | (help-setup-xref (list #'vhdl-doc-mode) (interactive-p))) | 17413 | (help-setup-xref (list #'vhdl-doc-mode) |
| 17414 | (called-interactively-p 'interactive))) | ||
| 17416 | (with-output-to-temp-buffer | 17415 | (with-output-to-temp-buffer |
| 17417 | (if (fboundp 'help-buffer) (help-buffer) "*Help*") | 17416 | (if (fboundp 'help-buffer) (help-buffer) "*Help*") |
| 17418 | (princ mode-name) | 17417 | (princ mode-name) |