comparison lisp/progmodes/vhdl-mode.el @ 64986:e6581ac8240c

(vhdl-emacs-21): Set t for Emacs 21, 22, and so on.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Mon, 15 Aug 2005 13:52:55 +0000
parents a2d841662b3d
children 9c07af802d9a 2d92f5c9d6ae
comparison
equal deleted inserted replaced
64985:293aca58a37e 64986:e6581ac8240c
64 ;; See comment string of function `vhdl-mode' or type `C-c C-h' in Emacs. 64 ;; See comment string of function `vhdl-mode' or type `C-c C-h' in Emacs.
65 65
66 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 66 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
67 ;; Emacs Versions 67 ;; Emacs Versions
68 68
69 ;; supported: GNU Emacs 20.X/21.X, XEmacs 20.X/21.X 69 ;; supported: GNU Emacs 20.X/21.X/22.X, XEmacs 20.X/21.X
70 ;; tested on: GNU Emacs 20.4, XEmacs 21.1 (marginally) 70 ;; tested on: GNU Emacs 20.4, XEmacs 21.1 (marginally)
71 71
72 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 72 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
73 ;; Installation 73 ;; Installation
74 74
75 ;; Prerequisites: GNU Emacs 20.X/21.X, XEmacs 20.X/21.X. 75 ;; Prerequisites: GNU Emacs 20.X/21.X/22.X, XEmacs 20.X/21.X.
76 76
77 ;; Put `vhdl-mode.el' into the `site-lisp' directory of your Emacs installation 77 ;; Put `vhdl-mode.el' into the `site-lisp' directory of your Emacs installation
78 ;; or into an arbitrary directory that is added to the load path by the 78 ;; or into an arbitrary directory that is added to the load path by the
79 ;; following line in your Emacs start-up file `.emacs': 79 ;; following line in your Emacs start-up file `.emacs':
80 80
122 ;;; Code: 122 ;;; Code:
123 123
124 ;; XEmacs handling 124 ;; XEmacs handling
125 (defconst vhdl-xemacs (string-match "XEmacs" emacs-version) 125 (defconst vhdl-xemacs (string-match "XEmacs" emacs-version)
126 "Non-nil if XEmacs is used.") 126 "Non-nil if XEmacs is used.")
127 ;; Emacs 21 handling 127 ;; Emacs 21+ handling
128 (defconst vhdl-emacs-21 (and (= emacs-major-version 21) (not vhdl-xemacs)) 128 (defconst vhdl-emacs-21 (and (<= 21 emacs-major-version) (not vhdl-xemacs))
129 "Non-nil if Emacs 21 is used.") 129 "Non-nil if Emacs 21, 22, ... is used.")
130 130
131 131
132 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 132 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
133 ;;; Variables 133 ;;; Variables
134 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 134 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;