annotate lisp/generic-x.el @ 88336:f6a3624b4de6

*** empty log message ***
author Alex Schroeder <alex@gnu.org>
date Tue, 11 Apr 2006 13:29:07 +0000
parents d7ddb3e565de
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1 ;;; generic-x.el --- A collection of generic modes
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
3 ;; Copyright (C) 1997, 1998, 2002, 2003, 2004,
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
4 ;; 2005 Free Software Foundation, Inc.
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 ;; Author: Peter Breton <pbreton@cs.umb.edu>
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 ;; Created: Tue Oct 08 1996
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 ;; Keywords: generic, comment, font-lock
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 ;; This file is part of GNU Emacs.
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 ;; GNU Emacs is free software; you can redistribute it and/or modify
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 ;; it under the terms of the GNU General Public License as published by
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 ;; the Free Software Foundation; either version 2, or (at your option)
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 ;; any later version.
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 ;; GNU Emacs is distributed in the hope that it will be useful,
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 ;; GNU General Public License for more details.
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 ;; You should have received a copy of the GNU General Public License
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
25 ;; Boston, MA 02110-1301, USA.
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 ;;; Commentary:
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 ;;
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
29 ;; This file contains a collection generic modes.
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
30 ;;
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 ;; INSTALLATION:
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 ;;
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 ;; Add this line to your .emacs file:
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 ;;
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 ;; (require 'generic-x)
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 ;;
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 ;; You can decide which modes to load by setting the variable
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
38 ;; `generic-extras-enable-list'. Its default value is platform-
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
39 ;; specific. The recommended way to set this variable is through
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
40 ;; customize:
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
41 ;;
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
42 ;; M-x customize-option RET generic-extras-enable-list RET
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
43 ;;
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
44 ;; This lets you select generic modes from the list of available
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
45 ;; modes. If you manually set `generic-extras-enable-list' in your
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
46 ;; .emacs, do it BEFORE loading generic-x with (require 'generic-x).
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
47 ;;
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
48 ;; You can also send in new modes; if the file types are reasonably
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
49 ;; common, we would like to install them.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
50 ;;
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
51 ;; DEFAULT GENERIC MODE:
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
52 ;;
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
53 ;; This file provides a hook which automatically puts a file into
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
54 ;; `default-generic-mode' if the first few lines of a file in
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
55 ;; fundamental mode start with a hash comment character. To disable
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
56 ;; this functionality, set the variable `generic-use-find-file-hook'
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
57 ;; to nil BEFORE loading generic-x. See the variables
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
58 ;; `generic-lines-to-scan' and `generic-find-file-regexp' for
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
59 ;; customization options.
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 ;;
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 ;; PROBLEMS WHEN USED WITH FOLDING MODE:
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 ;;
24036
ba60301081e8 Commentary clarification.
Dave Love <fx@gnu.org>
parents: 23375
diff changeset
63 ;; [The following relates to the obsolete selective-display technique.
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
64 ;; Folding mode should use invisible text properties instead. -- Dave
24036
ba60301081e8 Commentary clarification.
Dave Love <fx@gnu.org>
parents: 23375
diff changeset
65 ;; Love]
ba60301081e8 Commentary clarification.
Dave Love <fx@gnu.org>
parents: 23375
diff changeset
66 ;;
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 ;; From Anders Lindgren <andersl@csd.uu.se>
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
68 ;;
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 ;; Problem summary: Wayne Adams has found a problem when using folding
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
70 ;; mode in conjunction with font-lock for a mode defined in
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 ;; `generic-x.el'.
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 ;;
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 ;; The problem, as Wayne described it, was that error messages of the
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 ;; following form appeared when both font-lock and folding are used:
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
75 ;;
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76 ;; > - various msgs including "Fontifying region...(error Stack
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 ;; > overflow in regexp matcher)" appear
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
78 ;;
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
79 ;; I have just tracked down the cause of the problem. The regexp's in
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
80 ;; `generic-x.el' do not take into account the way that folding hides
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
81 ;; sections of the buffer. The technique is known as
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 ;; `selective-display' and has been available for a very long time (I
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
83 ;; started using it back in the good old Emacs 18 days). Basically, a
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 ;; section is hidden by creating one very long line were the newline
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 ;; character (C-j) is replaced by a linefeed (C-m) character.
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
86 ;;
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 ;; Many other hiding packages, besides folding, use the same technique,
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 ;; the problem should occur when using them as well.
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
89 ;;
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
90 ;; The erroneous lines in `generic-x.el' look like the following (this
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 ;; example is from the `ini' section):
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
92 ;;
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
93 ;; '(("^\\(\\[.*\\]\\)" 1 'font-lock-constant-face)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 ;; ("^\\(.*\\)=" 1 'font-lock-variable-name-face)
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
95 ;;
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 ;; The intention of these lines is to highlight lines of the following
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 ;; form:
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
98 ;;
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 ;; [foo]
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 ;; bar = xxx
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
101 ;;
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
102 ;; However, since the `.' regexp symbol matches the linefeed character
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
103 ;; the entire folded section is searched, resulting in a regexp stack
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 ;; overflow.
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
105 ;;
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
106 ;; Solution suggestion: Instead of using ".", use the sequence
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
107 ;; "[^\n\r]". This will make the rules behave just as before, but
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
108 ;; they will work together with selective-display.
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 ;;; Code:
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
112 (eval-when-compile (require 'font-lock))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
114 (defgroup generic-x nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
115 "A collection of generic modes."
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
116 :prefix "generic-"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
117 :group 'data
22110
47ffa41d5ed5 *** empty log message ***
Dan Nicolaescu <done@ece.arizona.edu>
parents: 21947
diff changeset
118 :version "20.3")
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
119
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
120 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
121 ;; Default-Generic mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
122 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
123
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
124 (defcustom generic-use-find-file-hook t
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
125 "*If non-nil, add a hook to enter `default-generic-mode' automatically.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
126 This is done if the first few lines of a file in fundamental mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
127 start with a hash comment character."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
128 :group 'generic-x
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
129 :type 'boolean)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
130
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
131 (defcustom generic-lines-to-scan 3
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
132 "*Number of lines that `generic-mode-find-file-hook' looks at.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
133 Relevant when deciding whether to enter Default-Generic mode automatically.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
134 This variable should be set to a small positive number."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
135 :group 'generic-x
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
136 :type 'integer)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
137
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
138 (defcustom generic-find-file-regexp "^#"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
139 "*Regular expression used by `generic-mode-find-file-hook'.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
140 Files in fundamental mode whose first few lines contain a match
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
141 for this regexp, should be put into Default-Generic mode instead.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
142 The number of lines tested for the matches is specified by the
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
143 value of the variable `generic-lines-to-scan', which see."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
144 :group 'generic-x
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
145 :type 'regexp)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
146
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
147 (defcustom generic-ignore-files-regexp "[Tt][Aa][Gg][Ss]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
148 "*Regular expression used by `generic-mode-find-file-hook'.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
149 Files whose names match this regular expression should not be put
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
150 into Default-Generic mode, even if they have lines which match
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
151 the regexp in `generic-find-file-regexp'. If the value is nil,
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
152 `generic-mode-find-file-hook' does not check the file names."
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153 :group 'generic-x
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
154 :type '(choice (const :tag "Don't check file names" nil) regexp))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
156 ;; This generic mode is always defined
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
157 (define-generic-mode default-generic-mode (list ?#) nil nil nil nil)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
158
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
159 ;; A more general solution would allow us to enter generic-mode for
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
160 ;; *any* comment character, but would require us to synthesize a new
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
161 ;; generic-mode on the fly. I think this gives us most of what we
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
162 ;; want.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
163 (defun generic-mode-find-file-hook ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
164 "Hook function to enter Default-Generic mode automatically.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
165
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
166 Done if the first few lines of a file in Fundamental mode start
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
167 with a match for the regexp in `generic-find-file-regexp', unless
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
168 the file's name matches the regexp which is the value of the
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
169 variable `generic-ignore-files-regexp'.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
170
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
171 This hook will be installed if the variable
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
172 `generic-use-find-file-hook' is non-nil. The variable
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
173 `generic-lines-to-scan' determines the number of lines to look at."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
174 (when (and (eq major-mode 'fundamental-mode)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
175 (or (null generic-ignore-files-regexp)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
176 (not (string-match
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
177 generic-ignore-files-regexp
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
178 (file-name-sans-versions buffer-file-name)))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
179 (save-excursion
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
180 (goto-char (point-min))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
181 (when (re-search-forward generic-find-file-regexp
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
182 (save-excursion
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
183 (forward-line generic-lines-to-scan)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
184 (point)) t)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
185 (goto-char (point-min))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
186 (default-generic-mode)))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
187
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
188 (and generic-use-find-file-hook
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
189 (add-hook 'find-file-hook 'generic-mode-find-file-hook))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
190
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
191 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
192 ;; Other Generic modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
193 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
194
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
195 ;; If you add a generic mode to this file, put it in one of these four
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
196 ;; lists as well.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
197
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
198 (defconst generic-default-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
199 '(apache-conf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
200 apache-log-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
201 hosts-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
202 java-manifest-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
203 java-properties-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
204 javascript-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
205 show-tabs-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
206 vrml-generic-mode)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
207 "List of generic modes that are defined by default.")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
208
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
209 (defconst generic-mswindows-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
210 '(bat-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
211 inf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
212 ini-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
213 rc-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
214 reg-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
215 rul-generic-mode)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
216 "List of generic modes that are defined by default on MS-Windows.")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
217
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
218 (defconst generic-unix-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
219 '(alias-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
220 etc-fstab-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
221 etc-modules-conf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
222 etc-passwd-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
223 etc-services-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
224 fvwm-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
225 inetd-conf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
226 mailagent-rules-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
227 mailrc-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
228 named-boot-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
229 named-database-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
230 prototype-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
231 resolve-conf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
232 samba-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
233 x-resource-generic-mode)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
234 "List of generic modes that are defined by default on Unix.")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
235
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
236 (defconst generic-other-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
237 '(astap-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
238 ibis-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
239 pkginfo-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
240 spice-generic-mode)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
241 "List of generic mode that are not defined by default.")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
242
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
243 (defcustom generic-define-mswindows-modes
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
244 (memq system-type '(windows-nt ms-dos))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
245 "*Non-nil means the modes in `generic-mswindows-modes' will be defined.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
246 This is a list of MS-Windows specific generic modes. This variable
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
247 only effects the default value of `generic-extras-enable-list'."
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
248 :group 'generic-x
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
249 :type 'boolean
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
250 :version "22.1")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
251 (make-obsolete-variable 'generic-define-mswindows-modes 'generic-extras-enable-list "22.1")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
252
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
253 (defcustom generic-define-unix-modes
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
254 (not (memq system-type '(windows-nt ms-dos)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
255 "*Non-nil means the modes in `generic-unix-modes' will be defined.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
256 This is a list of Unix specific generic modes. This variable only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
257 effects the default value of `generic-extras-enable-list'."
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
258 :group 'generic-x
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
259 :type 'boolean
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
260 :version "22.1")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
261 (make-obsolete-variable 'generic-define-unix-modes 'generic-extras-enable-list "22.1")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
262
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
263 (defcustom generic-extras-enable-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
264 (append generic-default-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
265 (if generic-define-mswindows-modes generic-mswindows-modes)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
266 (if generic-define-unix-modes generic-unix-modes)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
267 nil)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
268 "List of generic modes to define.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
269 Each entry in the list should be a symbol. If you set this variable
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
270 directly, without using customize, you must reload generic-x to put
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
271 your changes into effect."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
272 :group 'generic-x
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
273 :type (let (list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
274 (dolist (mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
275 (sort (append generic-default-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
276 generic-mswindows-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
277 generic-unix-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
278 generic-other-modes
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
279 nil)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
280 (lambda (a b)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
281 (string< (symbol-name b)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
282 (symbol-name a))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
283 (cons 'set list))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
284 (push `(const ,mode) list)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
285 :set (lambda (s v)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
286 (set-default s v)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
287 (unless load-in-progress
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
288 (load "generic-x")))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
289 :version "22.1")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
290
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
291 ;;; Apache
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
292 (when (memq 'apache-conf-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
293
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
294 (define-generic-mode apache-conf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
295 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
296 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
297 '(("^\\s-*\\(<.*>\\)" 1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
298 ("^\\s-*\\(\\sw+\\)\\s-" 1 font-lock-variable-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
299 '("srm\\.conf\\'" "httpd\\.conf\\'" "access\\.conf\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
300 (list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
301 (function
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
302 (lambda ()
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
303 (setq imenu-generic-expression
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
304 '((nil "^\\([-A-Za-z0-9_]+\\)" 1)
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
305 ("*Directories*" "^\\s-*<Directory\\s-*\\([^>]+\\)>" 1)
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
306 ("*Locations*" "^\\s-*<Location\\s-*\\([^>]+\\)>" 1))))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
307 "Generic mode for Apache or HTTPD configuration files."))
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
308
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
309 (when (memq 'apache-log-generic-mode generic-extras-enable-list)
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
310
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
311 (define-generic-mode apache-log-generic-mode
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
312 nil
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
313 nil
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
314 ;; Hostname ? user date request return-code number-of-bytes
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
315 '(("^\\([-a-zA-z0-9.]+\\) - [-A-Za-z]+ \\(\\[.*\\]\\)"
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
316 (1 font-lock-constant-face)
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
317 (2 font-lock-variable-name-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
318 '("access_log\\'")
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
319 nil
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
320 "Mode for Apache log files"))
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
321
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
322 ;;; Samba
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
323 (when (memq 'samba-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
324
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
325 (define-generic-mode samba-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
326 '(?\; ?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
327 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
328 '(("^\\(\\[.*\\]\\)" 1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
329 ("^\\s-*\\(.+\\)=\\([^\r\n]*\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
330 (1 font-lock-variable-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
331 (2 font-lock-type-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
332 '("smb\\.conf\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
333 '(generic-bracket-support)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
334 "Generic mode for Samba configuration files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
335
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
336 ;;; Fvwm
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
337 ;; This is pretty basic. Also, modes for other window managers could
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
338 ;; be defined as well.
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
339 (when (memq 'fvwm-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
340
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
341 (define-generic-mode fvwm-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
342 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
343 '("AddToMenu"
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
344 "AddToFunc"
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
345 "ButtonStyle"
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
346 "EndFunction"
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
347 "EndPopup"
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
348 "Function"
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
349 "IconPath"
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
350 "Key"
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
351 "ModulePath"
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
352 "Mouse"
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
353 "PixmapPath"
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
354 "Popup"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
355 "Style")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
356 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
357 '("\\.fvwmrc\\'" "\\.fvwm2rc\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
358 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
359 "Generic mode for FVWM configuration files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
360
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
361 ;;; X Resource
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
362 ;; I'm pretty sure I've seen an actual mode to do this, but I don't
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
363 ;; think it's standard with Emacs
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
364 (when (memq 'x-resource-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
365
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
366 (define-generic-mode x-resource-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
367 '(?!)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
368 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
369 '(("^\\([^:\n]+:\\)" 1 font-lock-variable-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
370 '("\\.Xdefaults\\'" "\\.Xresources\\'" "\\.Xenvironment\\'" "\\.ad\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
371 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
372 "Generic mode for X Resource configuration files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
373
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
374 ;;; Hosts
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
375 (when (memq 'hosts-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
376
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
377 (define-generic-mode hosts-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
378 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
379 '("localhost")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
380 '(("\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 font-lock-constant-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
381 '("[hH][oO][sS][tT][sS]\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
382 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
383 "Generic mode for HOSTS files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
384
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
385 ;;; Windows INF files
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
386 (when (memq 'inf-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
387
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
388 (define-generic-mode inf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
389 '(?\;)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
390 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
391 '(("^\\(\\[.*\\]\\)" 1 font-lock-constant-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
392 '("\\.[iI][nN][fF]\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
393 '(generic-bracket-support)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
394 "Generic mode for MS-Windows INF files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
395
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
396 ;;; Windows INI files
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
397 ;; Should define escape character as well!
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
398 (when (memq 'ini-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
399
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
400 (define-generic-mode ini-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
401 '(?\;)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
402 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
403 '(("^\\(\\[.*\\]\\)" 1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
404 ("^\\([^=\n\r]*\\)=\\([^\n\r]*\\)$"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
405 (1 font-lock-function-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
406 (2 font-lock-variable-name-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
407 '("\\.[iI][nN][iI]\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
408 (list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
409 (function
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
410 (lambda ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
411 (setq imenu-generic-expression
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
412 '((nil "^\\[\\(.*\\)\\]" 1)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
413 ("*Variables*" "^\\s-*\\([^=]+\\)\\s-*=" 1))))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
414 "Generic mode for MS-Windows INI files.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
415 You can use `ini-generic-mode-find-file-hook' to enter this mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
416 automatically for INI files whose names do not end in \".ini\".")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
417
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
418 (defun ini-generic-mode-find-file-hook ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
419 "Hook function to enter Ini-Generic mode automatically for INI files.
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
420 Done if the first few lines of a file in Fundamental mode look
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
421 like an INI file. You can add this hook to `find-file-hook'."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
422 (and (eq major-mode 'fundamental-mode)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
423 (save-excursion
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
424 (goto-char (point-min))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
425 (and (looking-at "^\\s-*\\[.*\\]")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
426 (ini-generic-mode)))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
427 (defalias 'generic-mode-ini-file-find-file-hook 'ini-generic-mode-find-file-hook))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
428
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
429 ;;; Windows REG files
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
430 ;;; Unfortunately, Windows 95 and Windows NT have different REG file syntax!
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
431 (when (memq 'reg-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
432
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
433 (define-generic-mode reg-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
434 '(?\;)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
435 '("key" "classes_root" "REGEDIT" "REGEDIT4")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
436 '(("\\(\\[.*]\\)" 1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
437 ("^\\([^\n\r]*\\)\\s-*=" 1 font-lock-variable-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
438 '("\\.[rR][eE][gG]\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
439 (list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
440 (function
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
441 (lambda ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
442 (setq imenu-generic-expression
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
443 '((nil "^\\s-*\\(.*\\)\\s-*=" 1))))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
444 "Generic mode for MS-Windows Registry files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
445
23375
2656333fd35e (bat-generic-mode): Fix regexps for keywords and
Eli Zaretskii <eliz@gnu.org>
parents: 22110
diff changeset
446 ;;; DOS/Windows BAT files
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
447 (when (memq 'bat-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
448
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
449 (define-generic-mode bat-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
450 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
451 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
452 (eval-when-compile
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
453 (list
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
454 ;; Make this one first in the list, otherwise comments will
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
455 ;; be over-written by other variables
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
456 '("^[@ \t]*\\([rR][eE][mM][^\n\r]*\\)" 1 font-lock-comment-face t)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
457 '("^[ \t]*\\(::.*\\)" 1 font-lock-comment-face t)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
458 '("^[@ \t]*\\([bB][rR][eE][aA][kK]\\|[vV][eE][rR][iI][fF][yY]\\)[ \t]+\\([oO]\\([nN]\\|[fF][fF]\\)\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
459 (1 font-lock-builtin-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
460 (2 font-lock-constant-face t t))
23375
2656333fd35e (bat-generic-mode): Fix regexps for keywords and
Eli Zaretskii <eliz@gnu.org>
parents: 22110
diff changeset
461 ;; Any text (except ON/OFF) following ECHO is a string.
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
462 '("^[@ \t]*\\([eE][cC][hH][oO]\\)[ \t]+\\(\\([oO]\\([nN]\\|[fF][fF]\\)\\)\\|\\([^>|\r\n]+\\)\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
463 (1 font-lock-builtin-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
464 (3 font-lock-constant-face t t)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
465 (5 font-lock-string-face t t))
23375
2656333fd35e (bat-generic-mode): Fix regexps for keywords and
Eli Zaretskii <eliz@gnu.org>
parents: 22110
diff changeset
466 ;; These keywords appear as the first word on a line. (Actually, they
2656333fd35e (bat-generic-mode): Fix regexps for keywords and
Eli Zaretskii <eliz@gnu.org>
parents: 22110
diff changeset
467 ;; can also appear after "if ..." or "for ..." clause, but since they
2656333fd35e (bat-generic-mode): Fix regexps for keywords and
Eli Zaretskii <eliz@gnu.org>
parents: 22110
diff changeset
468 ;; are frequently used in simple text, we punt.)
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
469 ;; In `generic-bat-mode-setup-function' we make the keywords
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
470 ;; case-insensitive
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
471 (generic-make-keywords-list
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
472 '("for"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
473 "if")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
474 font-lock-keyword-face "^[@ \t]*")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
475 ;; These keywords can be anywhere on a line
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
476 ;; In `generic-bat-mode-setup-function' we make the keywords
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
477 ;; case-insensitive
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
478 (generic-make-keywords-list
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
479 '("do"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
480 "exist"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
481 "errorlevel"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
482 "goto"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
483 "not")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
484 font-lock-keyword-face)
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
485 ;; These are built-in commands. Only frequently-used ones are listed.
23375
2656333fd35e (bat-generic-mode): Fix regexps for keywords and
Eli Zaretskii <eliz@gnu.org>
parents: 22110
diff changeset
486 (generic-make-keywords-list
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
487 '("CALL" "call" "Call"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
488 "CD" "cd" "Cd"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
489 "CLS" "cls" "Cls"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
490 "COPY" "copy" "Copy"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
491 "DEL" "del" "Del"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
492 "ECHO" "echo" "Echo"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
493 "MD" "md" "Md"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
494 "PATH" "path" "Path"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
495 "PAUSE" "pause" "Pause"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
496 "PROMPT" "prompt" "Prompt"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
497 "RD" "rd" "Rd"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
498 "REN" "ren" "Ren"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
499 "SET" "set" "Set"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
500 "START" "start" "Start"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
501 "SHIFT" "shift" "Shift")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
502 font-lock-builtin-face "[ \t|\n]")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
503 '("^[ \t]*\\(:\\sw+\\)" 1 font-lock-function-name-face t)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
504 '("\\(%\\sw+%\\)" 1 font-lock-variable-name-face t)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
505 '("\\(%[0-9]\\)" 1 font-lock-variable-name-face t)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
506 '("\\(/[^/ \"\t\n]+\\)" 1 font-lock-type-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
507 '("[\t ]+\\([+-][^\t\n\" ]+\\)" 1 font-lock-type-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
508 '("[ \t\n|]\\<\\([gG][oO][tT][oO]\\)\\>[ \t]*\\(\\sw+\\)?"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
509 (1 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
510 (2 font-lock-function-name-face nil t))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
511 '("[ \t\n|]\\<\\([sS][eE][tT]\\)\\>[ \t]*\\(\\sw+\\)?[ \t]*=?"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
512 (1 font-lock-builtin-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
513 (2 font-lock-variable-name-face t t))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
514 '("\\.[bB][aA][tT]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
515 "\\`[cC][oO][nN][fF][iI][gG]\\."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
516 "\\`[aA][uU][tT][oO][eE][xX][eE][cC]\\.")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
517 '(generic-bat-mode-setup-function)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
518 "Generic mode for MS-Windows BAT files.")
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
519
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
520 (defvar bat-generic-mode-syntax-table nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
521 "Syntax table in use in `bat-generic-mode' buffers.")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
522
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
523 (defvar bat-generic-mode-keymap (make-sparse-keymap)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
524 "Keymap for bet-generic-mode.")
26045
03ebfe42764f (bat-generic-mode-keymap): Added thio variable
Peter Breton <pbreton@attbi.com>
parents: 26044
diff changeset
525
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
526 (defun bat-generic-mode-compile ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
527 "Run the current BAT file in a compilation buffer."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
528 (interactive)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
529 (let ((compilation-buffer-name-function
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
530 (function
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
531 (lambda(ign)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
532 (concat "*" (buffer-file-name) "*")))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
533 (compile
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
534 (concat (w32-shell-name) " -c " (buffer-file-name)))))
26045
03ebfe42764f (bat-generic-mode-keymap): Added thio variable
Peter Breton <pbreton@attbi.com>
parents: 26044
diff changeset
535
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
536 (eval-when-compile (require 'comint))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
537 (defun bat-generic-mode-run-as-comint ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
538 "Run the current BAT file in a comint buffer."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
539 (interactive)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
540 (require 'comint)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
541 (let* ((file (buffer-file-name))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
542 (buf-name (concat "*" file "*")))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
543 (save-excursion
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
544 (set-buffer
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
545 (get-buffer-create buf-name))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
546 (erase-buffer)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
547 (comint-mode)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
548 (comint-exec
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
549 buf-name
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
550 file
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
551 (w32-shell-name)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
552 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
553 (list "-c" file))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
554 (display-buffer buf-name))))
26045
03ebfe42764f (bat-generic-mode-keymap): Added thio variable
Peter Breton <pbreton@attbi.com>
parents: 26044
diff changeset
555
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
556 (define-key bat-generic-mode-keymap "\C-c\C-c" 'bat-generic-mode-compile)
26045
03ebfe42764f (bat-generic-mode-keymap): Added thio variable
Peter Breton <pbreton@attbi.com>
parents: 26044
diff changeset
557
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
558 ;; Make underscores count as words
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
559 (unless bat-generic-mode-syntax-table
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
560 (setq bat-generic-mode-syntax-table (make-syntax-table))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
561 (modify-syntax-entry ?_ "w" bat-generic-mode-syntax-table))
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
562
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
563 ;; bat-generic-mode doesn't use the comment functionality of
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
564 ;; define-generic-mode because it has a three-letter comment-string,
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
565 ;; so we do it here manually instead
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
566 (defun generic-bat-mode-setup-function ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
567 (make-local-variable 'parse-sexp-ignore-comments)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
568 (make-local-variable 'comment-start)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
569 (make-local-variable 'comment-start-skip)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
570 (make-local-variable 'comment-end)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
571 (setq imenu-generic-expression '((nil "^:\\(\\sw+\\)" 1))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
572 parse-sexp-ignore-comments t
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
573 comment-end ""
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
574 comment-start "REM "
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
575 comment-start-skip "[Rr][Ee][Mm] *")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
576 (set-syntax-table bat-generic-mode-syntax-table)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
577 ;; Make keywords case-insensitive
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
578 (setq font-lock-defaults '(generic-font-lock-keywords nil t))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
579 (use-local-map bat-generic-mode-keymap)))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
580
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
581 ;;; Mailagent
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
582 ;; Mailagent is a Unix mail filtering program. Anyone wanna do a
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
583 ;; generic mode for procmail?
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
584 (when (memq 'mailagent-rules-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
585
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
586 (define-generic-mode mailagent-rules-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
587 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
588 '("SAVE" "DELETE" "PIPE" "ANNOTATE" "REJECT")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
589 '(("^\\(\\sw+\\)\\s-*=" 1 font-lock-variable-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
590 ("\\s-/\\([^/]+\\)/[i, \t\n]" 1 font-lock-constant-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
591 '("\\.rules\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
592 (list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
593 (function
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
594 (lambda ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
595 (setq imenu-generic-expression
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
596 '((nil "\\s-/\\([^/]+\\)/[i, \t\n]" 1))))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
597 "Mode for Mailagent rules files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
598
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
599 ;; Solaris/Sys V prototype files
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
600 (when (memq 'prototype-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
601
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
602 (define-generic-mode prototype-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
603 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
604 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
605 '(("^\\([0-9]\\)?\\s-*\\([a-z]\\)\\s-+\\([A-Za-z_]+\\)\\s-+\\([^\n\r]*\\)$"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
606 (2 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
607 (3 font-lock-keyword-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
608 ("^\\([a-z]\\) \\([A-Za-z_]+\\)=\\([^\n\r]*\\)$"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
609 (1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
610 (2 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
611 (3 font-lock-variable-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
612 ("^\\(!\\s-*\\(search\\|include\\|default\\)\\)\\s-*\\([^\n\r]*\\)$"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
613 (1 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
614 (3 font-lock-variable-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
615 ("^\\(!\\s-*\\sw+\\)=\\([^\n\r]*\\)$"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
616 (1 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
617 (2 font-lock-variable-name-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
618 '("prototype\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
619 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
620 "Mode for Sys V prototype files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
621
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
622 ;; Solaris/Sys V pkginfo files
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
623 (when (memq 'pkginfo-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
624
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
625 (define-generic-mode pkginfo-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
626 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
627 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
628 '(("^\\([A-Za-z_]+\\)=\\([^\n\r]*\\)$"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
629 (1 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
630 (2 font-lock-variable-name-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
631 '("pkginfo\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
632 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
633 "Mode for Sys V pkginfo files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
634
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
635 ;; Javascript mode
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
636 ;; Includes extra keywords from Armando Singer [asinger@MAIL.COLGATE.EDU]
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
637 (when (memq 'javascript-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
638
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
639 (define-generic-mode javascript-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
640 '("//" ("/*" . "*/"))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
641 '("break"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
642 "case"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
643 "continue"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
644 "default"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
645 "delete"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
646 "do"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
647 "else"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
648 "export"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
649 "for"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
650 "function"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
651 "if"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
652 "import"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
653 "in"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
654 "new"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
655 "return"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
656 "switch"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
657 "this"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
658 "typeof"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
659 "var"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
660 "void"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
661 "while"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
662 "with"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
663 ;; words reserved for ECMA extensions below
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
664 "catch"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
665 "class"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
666 "const"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
667 "debugger"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
668 "enum"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
669 "extends"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
670 "finally"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
671 "super"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
672 "throw"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
673 "try"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
674 ;; Java Keywords reserved by JavaScript
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
675 "abstract"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
676 "boolean"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
677 "byte"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
678 "char"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
679 "double"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
680 "false"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
681 "final"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
682 "float"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
683 "goto"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
684 "implements"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
685 "instanceof"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
686 "int"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
687 "interface"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
688 "long"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
689 "native"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
690 "null"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
691 "package"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
692 "private"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
693 "protected"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
694 "public"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
695 "short"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
696 "static"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
697 "synchronized"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
698 "throws"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
699 "transient"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
700 "true")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
701 '(("^\\s-*function\\s-+\\([A-Za-z0-9_]+\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
702 (1 font-lock-function-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
703 ("^\\s-*var\\s-+\\([A-Za-z0-9_]+\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
704 (1 font-lock-variable-name-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
705 '("\\.js\\'")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
706 (list
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
707 (function
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
708 (lambda ()
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
709 (setq imenu-generic-expression
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
710 '((nil "^function\\s-+\\([A-Za-z0-9_]+\\)" 1)
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
711 ("*Variables*" "^var\\s-+\\([A-Za-z0-9_]+\\)" 1))))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
712 "Mode for JavaScript files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
713
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
714 ;; VRML files
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
715 (when (memq 'vrml-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
716
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
717 (define-generic-mode vrml-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
718 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
719 '("DEF"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
720 "NULL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
721 "USE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
722 "Viewpoint"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
723 "ambientIntensity"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
724 "appearance"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
725 "children"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
726 "color"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
727 "coord"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
728 "coordIndex"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
729 "creaseAngle"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
730 "diffuseColor"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
731 "emissiveColor"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
732 "fieldOfView"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
733 "geometry"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
734 "info"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
735 "material"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
736 "normal"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
737 "orientation"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
738 "position"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
739 "shininess"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
740 "specularColor"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
741 "texCoord"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
742 "texture"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
743 "textureTransform"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
744 "title"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
745 "transparency"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
746 "type")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
747 '(("USE\\s-+\\([-A-Za-z0-9_]+\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
748 (1 font-lock-constant-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
749 ("DEF\\s-+\\([-A-Za-z0-9_]+\\)\\s-+\\([A-Za-z0-9]+\\)\\s-*{"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
750 (1 font-lock-type-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
751 (2 font-lock-constant-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
752 ("^\\s-*\\([-A-Za-z0-9_]+\\)\\s-*{"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
753 (1 font-lock-function-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
754 ("^\\s-*\\(geometry\\|appearance\\|material\\)\\s-+\\([-A-Za-z0-9_]+\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
755 (2 font-lock-variable-name-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
756 '("\\.wrl\\'")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
757 (list
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
758 (function
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
759 (lambda ()
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
760 (setq imenu-generic-expression
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
761 '((nil "^\\([A-Za-z0-9_]+\\)\\s-*{" 1)
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
762 ("*Definitions*"
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
763 "DEF\\s-+\\([-A-Za-z0-9_]+\\)\\s-+\\([A-Za-z0-9]+\\)\\s-*{"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
764 1))))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
765 "Generic Mode for VRML files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
766
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
767 ;; Java Manifests
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
768 (when (memq 'java-manifest-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
769
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
770 (define-generic-mode java-manifest-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
771 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
772 '("Name"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
773 "Digest-Algorithms"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
774 "Manifest-Version"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
775 "Required-Version"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
776 "Signature-Version"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
777 "Magic"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
778 "Java-Bean"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
779 "Depends-On")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
780 '(("^Name:\\s-+\\([^\n\r]*\\)$"
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
781 (1 font-lock-variable-name-face))
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
782 ("^\\(Manifest\\|Required\\|Signature\\)-Version:\\s-+\\([^\n\r]*\\)$"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
783 (2 font-lock-constant-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
784 '("[mM][aA][nN][iI][fF][eE][sS][tT]\\.[mM][fF]\\'")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
785 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
786 "Mode for Java Manifest files"))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
787
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
788 ;; Java properties files
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
789 (when (memq 'java-properties-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
790
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
791 (define-generic-mode java-properties-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
792 '(?! ?#)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
793 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
794 (eval-when-compile
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
795 (let ((java-properties-key
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
796 "\\(\\([-A-Za-z0-9_\\./]\\|\\(\\\\[ =:]\\)\\)+\\)")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
797 (java-properties-value
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
798 "\\([^\r\n]*\\)"))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
799 ;; Property and value can be separated in a number of different ways:
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
800 ;; * whitespace
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
801 ;; * an equal sign
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
802 ;; * a colon
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
803 (mapcar
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
804 (function
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
805 (lambda (elt)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
806 (list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
807 (concat "^" java-properties-key elt java-properties-value "$")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
808 '(1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
809 '(4 font-lock-variable-name-face))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
810 ;; These are the separators
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
811 '(":\\s-*" "\\s-+" "\\s-*=\\s-*"))))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
812 nil
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
813 (list
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
814 (function
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
815 (lambda ()
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
816 (setq imenu-generic-expression
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
817 '((nil "^\\([^#! \t\n\r=:]+\\)" 1))))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
818 "Mode for Java properties files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
819
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
820 ;; C shell alias definitions
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
821 (when (memq 'alias-generic-mode generic-extras-enable-list)
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
822
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
823 (define-generic-mode alias-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
824 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
825 '("alias" "unalias")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
826 '(("^alias\\s-+\\([-A-Za-z0-9_]+\\)\\s-+"
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
827 (1 font-lock-variable-name-face))
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
828 ("^unalias\\s-+\\([-A-Za-z0-9_]+\\)\\s-*$"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
829 (1 font-lock-variable-name-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
830 '("alias\\'")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
831 (list
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
832 (function
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
833 (lambda ()
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
834 (setq imenu-generic-expression
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
835 '((nil "^\\(alias\\|unalias\\)\\s-+\\([-a-zA-Z0-9_]+\\)" 2))))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
836 "Mode for C Shell alias files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
837
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
838 ;;; Windows RC files
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
839 ;; Contributed by ACorreir@pervasive-sw.com (Alfred Correira)
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
840 (when (memq 'rc-generic-mode generic-extras-enable-list)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
841
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
842 (define-generic-mode rc-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
843 ;; '(?\/)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
844 '("//")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
845 '("ACCELERATORS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
846 "AUTO3STATE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
847 "AUTOCHECKBOX"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
848 "AUTORADIOBUTTON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
849 "BITMAP"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
850 "BOTTOMMARGIN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
851 "BUTTON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
852 "CAPTION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
853 "CHARACTERISTICS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
854 "CHECKBOX"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
855 "CLASS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
856 "COMBOBOX"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
857 "CONTROL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
858 "CTEXT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
859 "CURSOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
860 "DEFPUSHBUTTON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
861 "DESIGNINFO"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
862 "DIALOG"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
863 "DISCARDABLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
864 "EDITTEXT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
865 "EXSTYLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
866 "FONT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
867 "GROUPBOX"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
868 "GUIDELINES"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
869 "ICON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
870 "LANGUAGE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
871 "LEFTMARGIN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
872 "LISTBOX"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
873 "LTEXT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
874 "MENUITEM SEPARATOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
875 "MENUITEM"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
876 "MENU"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
877 "MOVEABLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
878 "POPUP"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
879 "PRELOAD"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
880 "PURE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
881 "PUSHBOX"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
882 "PUSHBUTTON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
883 "RADIOBUTTON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
884 "RCDATA"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
885 "RIGHTMARGIN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
886 "RTEXT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
887 "SCROLLBAR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
888 "SEPARATOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
889 "STATE3"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
890 "STRINGTABLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
891 "STYLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
892 "TEXTINCLUDE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
893 "TOOLBAR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
894 "TOPMARGIN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
895 "VERSIONINFO"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
896 "VERSION")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
897 ;; the choice of what tokens go where is somewhat arbitrary,
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
898 ;; as is the choice of which value tokens are included, as
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
899 ;; the choice of face for each token group
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
900 (eval-when-compile
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
901 (list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
902 (generic-make-keywords-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
903 '("FILEFLAGSMASK"
32117
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
904 "FILEFLAGS"
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
905 "FILEOS"
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
906 "FILESUBTYPE"
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
907 "FILETYPE"
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
908 "FILEVERSION"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
909 "PRODUCTVERSION")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
910 font-lock-type-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
911 (generic-make-keywords-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
912 '("BEGIN"
32117
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
913 "BLOCK"
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
914 "END"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
915 "VALUE")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
916 font-lock-function-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
917 '("^#[ \t]*include[ \t]+\\(<[^>\"\n]+>\\)" 1 font-lock-string-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
918 '("^#[ \t]*define[ \t]+\\(\\sw+\\)(" 1 font-lock-function-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
919 '("^#[ \t]*\\(elif\\|if\\)\\>"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
920 ("\\<\\(defined\\)\\>[ \t]*(?\\(\\sw+\\)?" nil nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
921 (1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
922 (2 font-lock-variable-name-face nil t)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
923 '("^#[ \t]*\\(\\sw+\\)\\>[ \t]*\\(\\sw+\\)?"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
924 (1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
925 (2 font-lock-variable-name-face nil t))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
926 '("\\.[rR][cC]\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
927 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
928 "Generic mode for MS-Windows Resource files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
929
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
930 ;; InstallShield RUL files
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
931 ;; Contributed by Alfred.Correira@Pervasive.Com
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
932 ;; Bugfixes by "Rolf Sandau" <Rolf.Sandau@marconi.com>
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
933 (when (memq 'rul-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
934
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
935 (eval-when-compile
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
936
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
937 ;;; build the regexp strings using regexp-opt
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
938 (defconst installshield-statement-keyword-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
939 '("abort"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
940 "begin"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
941 "call"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
942 "case"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
943 "declare"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
944 "default"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
945 "downto"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
946 "elseif"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
947 "else"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
948 "endfor"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
949 "endif"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
950 "endswitch"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
951 "endwhile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
952 "end"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
953 "exit"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
954 "external"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
955 "for"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
956 "function"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
957 ;; "goto" -- handled elsewhere
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
958 "if"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
959 "program"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
960 "prototype"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
961 "repeat"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
962 "return"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
963 "step"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
964 "switch"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
965 "then"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
966 "to"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
967 "typedef"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
968 "until"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
969 "void"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
970 "while")
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
971 "Statement keywords used in InstallShield 3 and 5.")
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
972
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
973 (defconst installshield-system-functions-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
974 '("AddFolderIcon"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
975 "AddProfString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
976 "AddressString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
977 "AppCommand"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
978 "AskDestPath"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
979 "AskOptions"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
980 "AskPath"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
981 "AskText"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
982 "AskYesNo"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
983 "BatchDeleteEx"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
984 "BatchFileLoad"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
985 "BatchFileSave"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
986 "BatchFind"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
987 "BatchGetFileName"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
988 "BatchMoveEx"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
989 "BatchSetFileName"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
990 "ChangeDirectory"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
991 "CloseFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
992 "CmdGetHwndDlg"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
993 "ComponentAddItem" ; differs between IS3 and IS5
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
994 "ComponentCompareSizeRequired" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
995 "ComponentDialog"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
996 "ComponentError" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
997 "ComponentFileEnum" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
998 "ComponentFileInfo" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
999 "ComponentFilterLanguage" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1000 "ComponentFilterOS" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1001 "ComponentGetData" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1002 "ComponentGetItemInfo" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1003 "ComponentGetItemSize" ; differs between IS3 and IS5
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1004 "ComponentIsItemSelected" ; differs between IS3 and IS5
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1005 "ComponentListItems"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1006 "ComponentMoveData" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1007 "ComponentSelectItem" ; differs between IS3 and IS5
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1008 "ComponentSetData" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1009 "ComponentSetItemInfo" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1010 "ComponentSetTarget" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1011 "ComponentSetupTypeEnum" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1012 "ComponentSetupTypeGetData" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1013 "ComponentSetupTypeSet" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1014 "ComponentTotalSize"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1015 "ComponentValidate" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1016 "CompressAdd" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1017 "CompressDel" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1018 "CompressEnum" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1019 "CompressGet" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1020 "CompressInfo" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1021 "CopyFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1022 "CreateDir"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1023 "CreateFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1024 "CreateProgramFolder"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1025 "DeinstallSetReference" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1026 "DeinstallStart"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1027 "Delay"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1028 "DeleteDir"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1029 "DeleteFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1030 "DialogSetInfo"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1031 "Disable"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1032 "DoInstall"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1033 "Do"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1034 "Enable"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1035 "EnterDisk"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1036 "ExistsDir"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1037 "ExistsDisk"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1038 "ExitProgMan"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1039 "EzBatchAddPath"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1040 "EzBatchAddString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1041 "EzBatchReplace"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1042 "EzConfigAddDriver"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1043 "EzConfigAddString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1044 "EzConfigGetValue"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1045 "EzConfigSetValue"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1046 "EzDefineDialog"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1047 "FileCompare"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1048 "FileDeleteLine"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1049 "FileGrep"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1050 "FileInsertLine"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1051 "FileSetBeginDefine" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1052 "FileSetEndDefine" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1053 "FileSetPerformEz" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1054 "FileSetPerform" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1055 "FileSetReset" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1056 "FileSetRoot" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1057 "FindAllDirs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1058 "FindAllFiles"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1059 "FindFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1060 "FindWindow"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1061 "GetDiskSpace"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1062 "GetDisk"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1063 "GetEnvVar"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1064 "GetExtents"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1065 "GetFileInfo"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1066 "GetLine"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1067 "GetProfInt"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1068 "GetProfString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1069 "GetSystemInfo"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1070 "GetValidDrivesList"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1071 "GetVersion"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1072 "GetWindowHandle"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1073 "InstallationInfo"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1074 "Is"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1075 "LaunchApp"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1076 "LaunchAppAndWait"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1077 "ListAddItem"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1078 "ListAddString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1079 "ListCount"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1080 "ListCreate"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1081 "ListDestroy"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1082 "ListFindItem"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1083 "ListFindString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1084 "ListGetFirstItem"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1085 "ListGetFirstString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1086 "ListGetNextItem"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1087 "ListGetNextString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1088 "ListReadFromFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1089 "ListSetCurrentItem"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1090 "ListSetNextItem"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1091 "ListSetNextString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1092 "ListSetIndex"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1093 "ListWriteToFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1094 "LongPathToQuote"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1095 "LongPathToShortPath"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1096 "MessageBox"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1097 "NumToStr"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1098 "OpenFileMode"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1099 "OpenFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1100 "ParsePath"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1101 "PathAdd"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1102 "PathDelete"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1103 "PathFind"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1104 "PathGet"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1105 "PathMove"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1106 "PathSet"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1107 "Path"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1108 "PlaceBitmap"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1109 "PlaceWindow"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1110 "PlayMMedia" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1111 "ProgDefGroupType"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1112 "RegDBCreateKeyEx"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1113 "RegDBDeleteValue"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1114 "RegDBGetItem"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1115 "RegDBKeyExist"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1116 "RegDBSetItem"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1117 "RegDBGetKeyValueEx"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1118 "RegDBSetKeyValueEx"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1119 "RegDBSetDefaultRoot"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1120 "RenameFile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1121 "ReplaceFolderIcon"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1122 "ReplaceProfString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1123 "SdAskDestPath"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1124 "SdAskOptions"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1125 "SdAskOptionsList"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1126 "SdBitmap"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1127 "SdCloseDlg"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1128 "SdComponentAdvCheckSpace"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1129 "SdComponentAdvInit"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1130 "SdComponentAdvUpdateSpace"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1131 "SdComponentDialog"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1132 "SdComponentDialog2"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1133 "SdComponentDialogAdv"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1134 "SdComponentDialogEx"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1135 "SdComponentDlgCheckSpace"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1136 "SdComponentMult"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1137 "SdConfirmNewDir"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1138 "SdConfirmRegistration"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1139 "SdDiskSpace"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1140 "SdDisplayTopics"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1141 "SdDoStdButton"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1142 "SdEnablement"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1143 "SdError"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1144 "SdFinish"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1145 "SdFinishInit32"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1146 "SdFinishReboot"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1147 "SdGeneralInit"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1148 "SdGetItemName"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1149 "SdGetTextExtent"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1150 "SdGetUserCompanyInfo"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1151 "SdInit"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1152 "SdIsShellExplorer"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1153 "SdIsStdButton"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1154 "SdLicense"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1155 "SdMakeName"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1156 "SdOptionInit"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1157 "SdOptionSetState"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1158 "SdOptionsButtons"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1159 "SdOptionsButtonsInit"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1160 "SdPlugInProductName"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1161 "SdProductName"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1162 "SdRegEnableButton"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1163 "SdRegExEnableButton"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1164 "SdRegisterUser"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1165 "SdRegisterUserEx"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1166 "SdRemoveEndSpace"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1167 "SdSelectFolder"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1168 "SdSetSequentialItems"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1169 "SdSetStatic"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1170 "SdSetupTypeEx" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1171 "SdSetupType"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1172 "SdShowAnyDialog"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1173 "SdShowDlgEdit1"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1174 "SdShowDlgEdit2"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1175 "SdShowDlgEdit3"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1176 "SdShowFileMods"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1177 "SdShowInfoList"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1178 "SdShowMsg"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1179 "SdStartCopy"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1180 "SdUnInit"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1181 "SdUpdateComponentSelection"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1182 "SdWelcome"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1183 "SendMessage"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1184 "SetColor"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1185 "SetFont"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1186 "SetDialogTitle"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1187 "SetDisplayEffect" ; IS5 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1188 "SetFileInfo"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1189 "SetForegroundWindow"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1190 "SetStatusWindow"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1191 "SetTitle"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1192 "SetupType"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1193 "ShowProgramFolder"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1194 "Split" ; IS3 only
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1195 "SprintfBox"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1196 "Sprintf"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1197 "StatusUpdate"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1198 "StrCompare"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1199 "StrFind"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1200 "StrGetTokens"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1201 "StrLength"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1202 "StrRemoveLastSlash"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1203 "StrToLower"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1204 "StrToNum"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1205 "StrToUpper"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1206 "StrSub"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1207 "VarRestore"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1208 "VarSave"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1209 "VerCompare"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1210 "VerGetFileVersion"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1211 "WaitOnDialog"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1212 "Welcome"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1213 "WriteLine"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1214 "WriteProfString"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1215 "XCopyFile")
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
1216 "System functions defined in InstallShield 3 and 5.")
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
1217
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1218 (defconst installshield-system-variables-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1219 '("BATCH_INSTALL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1220 "CMDLINE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1221 "COMMONFILES"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1222 "CORECOMPONENTHANDLING"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1223 "DIALOGCACHE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1224 "ERRORFILENAME"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1225 "FOLDER_DESKTOP"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1226 "FOLDER_PROGRAMS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1227 "FOLDER_STARTMENU"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1228 "FOLDER_STARTUP"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1229 "INFOFILENAME"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1230 "ISRES"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1231 "ISUSER"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1232 "ISVERSION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1233 "MEDIA"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1234 "MODE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1235 "PROGRAMFILES"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1236 "SELECTED_LANGUAGE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1237 "SRCDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1238 "SRCDISK"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1239 "SUPPORTDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1240 "TARGETDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1241 "TARGETDISK"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1242 "UNINST"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1243 "WINDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1244 "WINDISK"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1245 "WINMAJOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1246 "WINSYSDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1247 "WINSYSDISK")
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
1248 "System variables used in InstallShield 3 and 5.")
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
1249
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1250 (defconst installshield-types-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1251 '("BOOL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1252 "BYREF"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1253 "CHAR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1254 "HIWORD"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1255 "HWND"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1256 "INT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1257 "LIST"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1258 "LONG"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1259 "LOWORD"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1260 "LPSTR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1261 "NUMBER"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1262 "NUMBERLIST"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1263 "POINTER"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1264 "QUAD"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1265 "RGB"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1266 "SHORT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1267 "STRINGLIST"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1268 "STRING")
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
1269 "Type keywords used in InstallShield 3 and 5.")
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
1270
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
1271 ;;; some might want to skip highlighting these to improve performance
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1272 (defconst installshield-funarg-constants-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1273 '("AFTER"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1274 "APPEND"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1275 "ALLCONTENTS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1276 "BACKBUTTON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1277 "BACKGROUNDCAPTION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1278 "BACKGROUND"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1279 "BACK"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1280 "BASEMEMORY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1281 "BEFORE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1282 "BIOS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1283 "BITMAPICON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1284 "BK_BLUE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1285 "BK_GREEN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1286 "BK_RED"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1287 "BLUE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1288 "BOOTUPDRIVE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1289 "CANCEL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1290 "CDROM_DRIVE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1291 "CDROM"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1292 "CHECKBOX95"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1293 "CHECKBOX"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1294 "CHECKLINE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1295 "CHECKMARK"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1296 "COLORS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1297 "COMMANDEX"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1298 "COMMAND"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1299 "COMP_NORMAL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1300 "COMP_UPDATE_DATE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1301 "COMP_UPDATE_SAME"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1302 "COMP_UPDATE_VERSION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1303 "COMPACT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1304 "CONTINUE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1305 "CPU"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1306 "CUSTOM"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1307 "DATE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1308 "DEFWINDOWMODE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1309 "DIR_WRITEABLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1310 "DIRECTORY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1311 "DISABLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1312 "DISK_TOTALSPACE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1313 "DISK"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1314 "DLG_OPTIONS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1315 "DLG_PATH"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1316 "DLG_TEXT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1317 "DLG_ASK_YESNO"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1318 "DLG_ENTER_DISK"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1319 "DLG_ERR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1320 "DLG_INFO_ALTIMAGE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1321 "DLG_INFO_CHECKSELECTION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1322 "DLG_INFO_KUNITS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1323 "DLG_INFO_USEDECIMAL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1324 "DLG_MSG_INFORMATION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1325 "DLG_MSG_SEVERE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1326 "DLG_MSG_WARNING"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1327 "DLG_STATUS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1328 "DLG_WARNING"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1329 "DLG_USER_CAPTION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1330 "DRIVE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1331 "ENABLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1332 "END_OF_FILE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1333 "END_OF_LIST"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1334 "ENVSPACE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1335 "EQUALS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1336 "EXCLUDE_SUBDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1337 "EXCLUSIVE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1338 "EXISTS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1339 "EXIT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1340 "EXTENDED_MEMORY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1341 "EXTENSION_ONLY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1342 "FAILIFEXISTS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1343 "FALSE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1344 "FEEDBACK_FULL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1345 "FILE_ATTR_ARCHIVED"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1346 "FILE_ATTR_DIRECTORY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1347 "FILE_ATTR_HIDDEN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1348 "FILE_ATTR_NORMAL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1349 "FILE_ATTR_READONLY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1350 "FILE_ATTR_SYSTEM"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1351 "FILE_ATTRIBUTE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1352 "FILE_DATE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1353 "FILE_LINE_LENGTH"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1354 "FILE_MODE_APPEND"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1355 "FILE_MODE_BINARYREADONLY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1356 "FILE_MODE_BINARY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1357 "FILE_MODE_NORMAL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1358 "FILE_NO_VERSION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1359 "FILE_NOT_FOUND"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1360 "FILE_SIZE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1361 "FILE_TIME"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1362 "FILENAME_ONLY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1363 "FILENAME"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1364 "FIXED_DRIVE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1365 "FOLDER_DESKTOP"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1366 "FOLDER_PROGRAMS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1367 "FOLDER_STARTMENU"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1368 "FOLDER_STARTUP"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1369 "FREEENVSPACE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1370 "FULLWINDOWMODE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1371 "FULL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1372 "FONT_TITLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1373 "GREATER_THAN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1374 "GREEN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1375 "HKEY_CLASSES_ROOT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1376 "HKEY_CURRENT_USER"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1377 "HKEY_LOCAL_MACHINE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1378 "HKEY_USERS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1379 "HOURGLASS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1380 "INCLUDE_SUBDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1381 "INDVFILESTATUS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1382 "INFORMATION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1383 "IS_WINDOWSNT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1384 "IS_WINDOWS95"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1385 "IS_WINDOWS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1386 "IS_WIN32S"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1387 "ISTYPE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1388 "LANGUAGE_DRV"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1389 "LANGUAGE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1390 "LESS_THAN"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1391 "LIST_NULL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1392 "LISTFIRST"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1393 "LISTNEXT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1394 "LOCKEDFILE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1395 "LOGGING"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1396 "LOWER_LEFT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1397 "LOWER_RIGHT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1398 "MAGENTA"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1399 "MOUSE_DRV"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1400 "MOUSE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1401 "NETWORK_DRV"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1402 "NETWORK"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1403 "NEXT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1404 "NONEXCLUSIVE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1405 "NORMALMODE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1406 "NOSET"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1407 "NOTEXISTS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1408 "NOWAIT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1409 "NO"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1410 "OFF"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1411 "ONLYDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1412 "ON"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1413 "OSMAJOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1414 "OSMINOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1415 "OS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1416 "OTHER_FAILURE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1417 "PARALLEL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1418 "PARTIAL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1419 "PATH_EXISTS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1420 "PATH"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1421 "RED"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1422 "REGDB_APPPATH_DEFAULT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1423 "REGDB_APPPATH"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1424 "REGDB_BINARY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1425 "REGDB_ERR_CONNECTIONEXISTS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1426 "REGDB_ERR_CORRUPTEDREGSITRY"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1427 "REGDB_ERR_INITIALIZATION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1428 "REGDB_ERR_INVALIDHANDLE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1429 "REGDB_ERR_INVALIDNAME"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1430 "REGDB_NUMBER"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1431 "REGDB_STRING_EXPAND"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1432 "REGDB_STRING_MULTI"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1433 "REGDB_STRING"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1434 "REGDB_UNINSTALL_NAME"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1435 "REMOTE_DRIVE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1436 "REMOVALE_DRIVE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1437 "REPLACE_ITEM"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1438 "REPLACE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1439 "RESET"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1440 "RESTART"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1441 "ROOT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1442 "SELFREGISTER"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1443 "SERIAL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1444 "SET"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1445 "SEVERE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1446 "SHAREDFILE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1447 "SHARE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1448 "SILENTMODE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1449 "SRCTARGETDIR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1450 "STATUSBAR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1451 "STATUSDLG"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1452 "STATUSOLD"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1453 "STATUS"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1454 "STYLE_NORMAL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1455 "SW_MAXIMIZE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1456 "SW_MINIMIZE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1457 "SW_RESTORE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1458 "SW_SHOW"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1459 "SYS_BOOTMACHINE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1460 "TIME"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1461 "TRUE"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1462 "TYPICAL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1463 "UPPER_LEFT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1464 "UPPER_RIGHT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1465 "VALID_PATH"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1466 "VERSION"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1467 "VIDEO"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1468 "VOLUMELABEL"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1469 "YELLOW"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1470 "YES"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1471 "WAIT"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1472 "WARNING"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1473 "WINMAJOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1474 "WINMINOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1475 "WIN32SINSTALLED"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1476 "WIN32SMAJOR"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1477 "WIN32SMINOR")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1478 "Function argument constants used in InstallShield 3 and 5."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1479
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1480 (defvar rul-generic-mode-syntax-table nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1481 "Syntax table to use in `rul-generic-mode' buffers.")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1482
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1483 (setq rul-generic-mode-syntax-table
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1484 (make-syntax-table c++-mode-syntax-table))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1485
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1486 (modify-syntax-entry ?\r "> b" rul-generic-mode-syntax-table)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1487 (modify-syntax-entry ?\n "> b" rul-generic-mode-syntax-table)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1488
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1489 (modify-syntax-entry ?/ ". 124b" rul-generic-mode-syntax-table)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1490 (modify-syntax-entry ?* ". 23" rul-generic-mode-syntax-table)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1491
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1492 ;; here manually instead
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1493 (defun generic-rul-mode-setup-function ()
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1494 (make-local-variable 'parse-sexp-ignore-comments)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1495 (make-local-variable 'comment-start)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1496 (make-local-variable 'comment-start-skip)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1497 (make-local-variable 'comment-end)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1498 (setq imenu-generic-expression
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1499 '((nil "^function\\s-+\\([A-Za-z0-9_]+\\)" 1))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1500 parse-sexp-ignore-comments t
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1501 comment-end "*/"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1502 comment-start "/*"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1503 ;;; comment-end ""
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1504 ;;; comment-start "//"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1505 ;;; comment-start-skip ""
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1506 )
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1507 ;; (set-syntax-table rul-generic-mode-syntax-table)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1508 (setq font-lock-syntax-table rul-generic-mode-syntax-table))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1509
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1510 ;; moved mode-definition behind defun-definition to be warning-free - 15.11.02/RSan
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1511 (define-generic-mode rul-generic-mode
21947
18722fb8716f (generic-x): Added defgroup declaration.
Richard M. Stallman <rms@gnu.org>
parents: 21345
diff changeset
1512 ;; Using "/*" and "*/" doesn't seem to be working right
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1513 '("//" ("/*" . "*/" ))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1514 (eval-when-compile installshield-statement-keyword-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1515 (eval-when-compile
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1516 (list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1517 ;; preprocessor constructs
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1518 '("#[ \t]*include[ \t]+\\(<[^>\"\n]+>\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1519 1 font-lock-string-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1520 '("#[ \t]*\\(\\sw+\\)\\>[ \t]*\\(\\sw+\\)?"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1521 (1 font-lock-reference-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1522 (2 font-lock-variable-name-face nil t))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1523 ;; indirect string constants
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1524 '("\\(@[A-Za-z][A-Za-z0-9_]+\\)" 1 font-lock-builtin-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1525 ;; gotos
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1526 '("[ \t]*\\(\\sw+:\\)" 1 font-lock-reference-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1527 '("\\<\\(goto\\)\\>[ \t]*\\(\\sw+\\)?"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1528 (1 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1529 (2 font-lock-reference-face nil t))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1530 ;; system variables
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1531 (generic-make-keywords-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1532 installshield-system-variables-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1533 font-lock-variable-name-face "[^_]" "[^_]")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1534 ;; system functions
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1535 (generic-make-keywords-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1536 installshield-system-functions-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1537 font-lock-function-name-face "[^_]" "[^_]")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1538 ;; type keywords
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1539 (generic-make-keywords-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1540 installshield-types-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1541 font-lock-type-face "[^_]" "[^_]")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1542 ;; function argument constants
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1543 (generic-make-keywords-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1544 installshield-funarg-constants-list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1545 font-lock-variable-name-face "[^_]" "[^_]"))) ; is this face the best choice?
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1546 '("\\.[rR][uU][lL]\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1547 '(generic-rul-mode-setup-function)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1548 "Generic mode for InstallShield RUL files.")
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1549
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1550 (define-skeleton rul-if
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1551 "Insert an if statement."
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1552 "condition: "
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1553 "if(" str ") then" \n
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1554 > _ \n
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1555 ( "other condition, %s: "
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1556 > "elseif(" str ") then" \n
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1557 > \n)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1558 > "else" \n
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1559 > \n
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1560 resume:
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1561 > "endif;")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1562
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1563 (define-skeleton rul-function
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1564 "Insert a function statement."
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1565 "function: "
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1566 "function " str " ()" \n
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1567 ( "local variables, %s: "
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1568 > " " str ";" \n)
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1569 > "begin" \n
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1570 > _ \n
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1571 resume:
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1572 > "end;"))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1573
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1574 ;; Additions by ACorreir@pervasive-sw.com (Alfred Correira)
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1575 (when (memq 'mailrc-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1576
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1577 (define-generic-mode mailrc-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1578 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1579 '("alias"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1580 "else"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1581 "endif"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1582 "group"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1583 "if"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1584 "ignore"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1585 "set"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1586 "source"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1587 "unset")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1588 '(("^\\s-*\\(alias\\|group\\)\\s-+\\([-A-Za-z0-9_]+\\)\\s-+\\([^\n\r#]*\\)\\(#.*\\)?$"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1589 (2 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1590 (3 font-lock-variable-name-face))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1591 ("^\\s-*\\(unset\\|set\\|ignore\\)\\s-+\\([-A-Za-z0-9_]+\\)=?\\([^\n\r#]*\\)\\(#.*\\)?$"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1592 (2 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1593 (3 font-lock-variable-name-face))
41393
8c295b635eb8 (mailrc-generic-mode): Highlight the `source' keyword.
Francesco Potortì <pot@gnu.org>
parents: 32282
diff changeset
1594 ("^\\s-*\\(source\\)\\s-+\\([^\n\r#]*\\)\\(#.*\\)?$"
8c295b635eb8 (mailrc-generic-mode): Highlight the `source' keyword.
Francesco Potortì <pot@gnu.org>
parents: 32282
diff changeset
1595 (2 font-lock-variable-name-face)))
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1596 '("\\.mailrc\\'")
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1597 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1598 "Mode for mailrc files."))
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1599
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1600 ;; Inetd.conf
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1601 (when (memq 'inetd-conf-generic-mode generic-extras-enable-list)
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1602
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1603 (define-generic-mode inetd-conf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1604 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1605 '("stream"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1606 "dgram"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1607 "tcp"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1608 "udp"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1609 "wait"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1610 "nowait"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1611 "internal")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1612 '(("^\\([-A-Za-z0-9_]+\\)" 1 font-lock-type-face))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1613 '("/etc/inetd.conf\\'")
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1614 (list
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1615 (function
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1616 (lambda ()
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1617 (setq imenu-generic-expression
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1618 '((nil "^\\([-A-Za-z0-9_]+\\)" 1))))))))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1619
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1620 ;; Services
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1621 (when (memq 'etc-services-generic-mode generic-extras-enable-list)
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1622
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1623 (define-generic-mode etc-services-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1624 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1625 '("tcp"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1626 "udp"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1627 "ddp")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1628 '(("^\\([-A-Za-z0-9_]+\\)\\s-+\\([0-9]+\\)/"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1629 (1 font-lock-type-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1630 (2 font-lock-variable-name-face)))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1631 '("/etc/services\\'")
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1632 (list
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1633 (function
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1634 (lambda ()
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1635 (setq imenu-generic-expression
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1636 '((nil "^\\([-A-Za-z0-9_]+\\)" 1))))))))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1637
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1638 ;; Password and Group files
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1639 (when (memq 'etc-passwd-generic-mode generic-extras-enable-list)
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1640
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1641 (define-generic-mode etc-passwd-generic-mode
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1642 nil ;; No comment characters
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1643 '("root") ;; Only one keyword
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1644 (eval-when-compile
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1645 (list
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1646 (list
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1647 (concat
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1648 "^"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1649 ;; User name -- Never blank!
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1650 "\\([^:]+\\)"
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1651 ":"
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1652 ;; Password, UID and GID
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1653 (mapconcat
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1654 'identity
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1655 (make-list 3 "\\([^:]+\\)")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1656 ":")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1657 ":"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1658 ;; GECOS/Name -- might be blank
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1659 "\\([^:]*\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1660 ":"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1661 ;; Home directory and shell
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1662 "\\([^:]+\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1663 ":?"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1664 "\\([^:]*\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1665 "$")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1666 '(1 font-lock-type-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1667 '(5 font-lock-variable-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1668 '(6 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1669 '(7 font-lock-warning-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1670 '("^\\([^:]+\\):\\([^:]*\\):\\([0-9]+\\):\\(.*\\)$"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1671 (1 font-lock-type-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1672 (4 font-lock-variable-name-face))))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1673 '("/etc/passwd\\'" "/etc/group\\'")
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1674 (list
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1675 (function
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1676 (lambda ()
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1677 (setq imenu-generic-expression
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1678 '((nil "^\\([-A-Za-z0-9_]+\\):" 1))))))))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1679
32117
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
1680 ;; Fstab
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1681 (when (memq 'etc-fstab-generic-mode generic-extras-enable-list)
32117
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
1682
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1683 (define-generic-mode etc-fstab-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1684 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1685 '("adfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1686 "affs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1687 "autofs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1688 "coda"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1689 "coherent"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1690 "cramfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1691 "devpts"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1692 "efs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1693 "ext2"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1694 "ext3"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1695 "hfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1696 "hpfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1697 "iso9660"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1698 "jfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1699 "minix"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1700 "msdos"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1701 "ncpfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1702 "nfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1703 "ntfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1704 "proc"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1705 "qnx4"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1706 "reiserfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1707 "romfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1708 "smbfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1709 "sysv"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1710 "tmpfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1711 "udf"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1712 "ufs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1713 "umsdos"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1714 "vfat"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1715 "xenix"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1716 "xfs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1717 "swap"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1718 "auto"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1719 "ignore")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1720 '(("^\\([/-A-Za-z0-9_]+\\)\\s-+\\([/-A-Za-z0-9_]+\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1721 (1 font-lock-type-face t)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1722 (2 font-lock-variable-name-face t)))
32117
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
1723 '("/etc/[v]*fstab\\'")
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
1724 (list
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
1725 (function
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
1726 (lambda ()
20c617dc8696 * generic-x.el (apache-conf-generic-mode):
Peter Breton <pbreton@attbi.com>
parents: 26045
diff changeset
1727 (setq imenu-generic-expression
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1728 '((nil "^\\([/-A-Za-z0-9_]+\\)\\s-+" 1))))))))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1729
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1730 ;; From Jacques Duthen <jacques.duthen@sncf.fr>
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1731 (when (memq 'show-tabs-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1732
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1733 (eval-when-compile
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1734
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1735 (defconst show-tabs-generic-mode-font-lock-defaults-1
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1736 '(;; trailing spaces must come before...
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1737 ("[ \t]+$" . 'show-tabs-space)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1738 ;; ...embedded tabs
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1739 ("[^\n\t]\\(\t+\\)" (1 'show-tabs-tab))))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1740
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1741 (defconst show-tabs-generic-mode-font-lock-defaults-2
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1742 '(;; trailing spaces must come before...
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1743 ("[ \t]+$" . 'show-tabs-space)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1744 ;; ...tabs
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1745 ("\t+" . 'show-tabs-tab))))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1746
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1747 (defface show-tabs-tab
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1748 '((((class grayscale) (background light)) (:background "DimGray" :weight bold))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1749 (((class grayscale) (background dark)) (:background "LightGray" :weight bold))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1750 (((class color) (min-colors 88)) (:background "red1"))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1751 (((class color)) (:background "red"))
42456
8a4077ab418c (various face definitions): Use :weight, not :bold.
Richard M. Stallman <rms@gnu.org>
parents: 41393
diff changeset
1752 (t (:weight bold)))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1753 "Font Lock mode face used to highlight TABs."
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1754 :group 'generic-x)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1755 ;; backward-compatibility alias
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1756 (put 'show-tabs-tab-face 'face-alias 'show-tabs-tab)
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1757
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1758 (defface show-tabs-space
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1759 '((((class grayscale) (background light)) (:background "DimGray" :weight bold))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1760 (((class grayscale) (background dark)) (:background "LightGray" :weight bold))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1761 (((class color) (min-colors 88)) (:background "yellow1"))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1762 (((class color)) (:background "yellow"))
42456
8a4077ab418c (various face definitions): Use :weight, not :bold.
Richard M. Stallman <rms@gnu.org>
parents: 41393
diff changeset
1763 (t (:weight bold)))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1764 "Font Lock mode face used to highlight spaces."
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1765 :group 'generic-x)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1766 ;; backward-compatibility alias
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1767 (put 'show-tabs-space-face 'face-alias 'show-tabs-space)
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1768
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1769 (define-generic-mode show-tabs-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1770 nil ;; no comment char
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1771 nil ;; no keywords
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1772 (eval-when-compile show-tabs-generic-mode-font-lock-defaults-1)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1773 nil ;; no auto-mode-alist
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1774 ;; '(show-tabs-generic-mode-hook-fun)
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1775 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1776 "Generic mode to show tabs and trailing spaces"))
25603
db167bb5dfd8 (generic-define-unix-modes): Added new modes:
Richard M. Stallman <rms@gnu.org>
parents: 24036
diff changeset
1777
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1778 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1779 ;; DNS modes
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1780 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1781
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1782 (when (memq 'named-boot-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1783
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1784 (define-generic-mode named-boot-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1785 ;; List of comment characters
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1786 '(?\;)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1787 ;; List of keywords
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1788 '("cache" "primary" "secondary" "forwarders" "limit" "options"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1789 "directory" "check-names")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1790 ;; List of additional font-lock-expressions
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1791 '(("\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1792 ("^directory\\s-+\\(.*\\)" 1 font-lock-variable-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1793 ("^\\(primary\\|cache\\)\\s-+\\([.A-Za-z]+\\)\\s-+\\(.*\\)"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1794 (2 font-lock-variable-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1795 (3 font-lock-constant-face)))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1796 ;; List of additional automode-alist expressions
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1797 '("/etc/named.boot\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1798 ;; List of set up functions to call
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1799 nil))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1800
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1801 (when (memq 'named-database-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1802
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1803 (define-generic-mode named-database-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1804 ;; List of comment characters
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1805 '(?\;)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1806 ;; List of keywords
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1807 '("IN" "NS" "CNAME" "SOA" "PTR" "MX" "A")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1808 ;; List of additional font-lock-expressions
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1809 '(("\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 font-lock-constant-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1810 ("^\\([.A-Za-z0-9]+\\)" 1 font-lock-variable-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1811 ;; List of additional auto-mode-alist expressions
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1812 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1813 ;; List of set up functions to call
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1814 nil)
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1815
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1816 (defvar named-database-time-string "%Y%m%d%H"
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1817 "Timestring for named serial numbers.")
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1818
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1819 (defun named-database-print-serial ()
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1820 "Print a serial number based on the current date."
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1821 (interactive)
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1822 (insert (format-time-string named-database-time-string (current-time)))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1823
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1824 (when (memq 'resolve-conf-generic-mode generic-extras-enable-list)
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1825
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1826 (define-generic-mode resolve-conf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1827 ;; List of comment characters
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1828 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1829 ;; List of keywords
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1830 '("nameserver" "domain" "search" "sortlist" "options")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1831 ;; List of additional font-lock-expressions
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1832 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1833 ;; List of additional auto-mode-alist expressions
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1834 '("/etc/resolv[e]?.conf\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1835 ;; List of set up functions to call
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1836 nil))
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1837
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1838 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1839 ;; Modes for spice and common electrical engineering circuit netlist formats
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1840 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1841
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1842 (when (memq 'spice-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1843
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1844 (define-generic-mode spice-generic-mode
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1845 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1846 '("and"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1847 "cccs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1848 "ccvs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1849 "delay"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1850 "nand"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1851 "nor"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1852 "npwl"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1853 "or"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1854 "par"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1855 "ppwl"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1856 "pwl"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1857 "vccap"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1858 "vccs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1859 "vcr"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1860 "vcvs")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1861 '(("^\\s-*\\([*].*\\)" 1 font-lock-comment-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1862 (" \\(\\$ .*\\)$" 1 font-lock-comment-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1863 ("^\\(\\$ .*\\)$" 1 font-lock-comment-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1864 ("\\([*].*\\)" 1 font-lock-comment-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1865 ("^\\([+]\\)" 1 font-lock-string-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1866 ("^\\s-*\\([.]\\w+\\>\\)" 1 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1867 ("\\(\\([.]\\|_\\|\\w\\)+\\)\\s-*=" 1 font-lock-variable-name-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1868 ("\\('[^']+'\\)" 1 font-lock-string-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1869 ("\\(\"[^\"]+\"\\)" 1 font-lock-string-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1870 '("\\.[sS][pP]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1871 "\\.[sS][pP][iI]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1872 "\\.[sS][pP][iI][cC][eE]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1873 "\\.[iI][nN][cC]\\'")
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1874 (list
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1875 'generic-bracket-support
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1876 ;; Make keywords case-insensitive
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1877 (function
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1878 (lambda()
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1879 (setq font-lock-defaults '(generic-font-lock-keywords nil t)))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1880 "Generic mode for SPICE circuit netlist files."))
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1881
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1882 (when (memq 'ibis-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1883
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1884 (define-generic-mode ibis-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1885 '(?|)
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1886 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1887 '(("[[]\\([^]]*\\)[]]" 1 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1888 ("\\(\\(_\\|\\w\\)+\\)\\s-*=" 1 font-lock-variable-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1889 '("\\.[iI][bB][sS]\\'")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1890 '(generic-bracket-support)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1891 "Generic mode for IBIS circuit netlist files."))
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1892
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1893 (when (memq 'astap-generic-mode generic-extras-enable-list)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1894
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1895 (define-generic-mode astap-generic-mode
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1896 nil
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1897 '("analyze"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1898 "description"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1899 "elements"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1900 "execution"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1901 "features"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1902 "functions"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1903 "ground"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1904 "model"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1905 "outputs"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1906 "print"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1907 "run"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1908 "controls"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1909 "table")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1910 '(("^\\s-*\\([*].*\\)" 1 font-lock-comment-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1911 (";\\s-*\\([*].*\\)" 1 font-lock-comment-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1912 ("^\\s-*\\([.]\\w+\\>\\)" 1 font-lock-keyword-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1913 ("\\('[^']+'\\)" 1 font-lock-string-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1914 ("\\(\"[^\"]+\"\\)" 1 font-lock-string-face)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1915 ("[(,]\\s-*\\(\\([.]\\|_\\|\\w\\)+\\)\\s-*=" 1 font-lock-variable-name-face))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1916 '("\\.[aA][pP]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1917 "\\.[aA][sS][xX]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1918 "\\.[aA][sS][tT][aA][pP]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1919 "\\.[pP][sS][pP]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1920 "\\.[dD][eE][cC][kK]\\'"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1921 "\\.[gG][oO][dD][aA][tT][aA]")
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1922 (list
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1923 'generic-bracket-support
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1924 ;; Make keywords case-insensitive
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1925 (function
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1926 (lambda()
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1927 (setq font-lock-defaults '(generic-font-lock-keywords nil t)))))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1928 "Generic mode for ASTAP circuit netlist files."))
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1929
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1930 (when (memq 'etc-modules-conf-generic-mode generic-extras-enable-list)
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1931
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1932 (define-generic-mode etc-modules-conf-generic-mode
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1933 ;; List of comment characters
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1934 '(?#)
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1935 ;; List of keywords
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1936 '("above"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1937 "alias"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1938 "below"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1939 "define"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1940 "depfile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1941 "else"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1942 "elseif"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1943 "endif"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1944 "if"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1945 "include"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1946 "insmod_opt"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1947 "install"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1948 "keep"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1949 "options"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1950 "path"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1951 "generic_stringfile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1952 "pcimapfile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1953 "isapnpmapfile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1954 "usbmapfile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1955 "parportmapfile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1956 "ieee1394mapfile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1957 "pnpbiosmapfile"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1958 "probe"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1959 "probeall"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1960 "prune"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1961 "post-install"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1962 "post-remove"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1963 "pre-install"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1964 "pre-remove"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1965 "remove"
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1966 "persistdir")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1967 ;; List of additional font-lock-expressions
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1968 nil
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1969 ;; List of additional automode-alist expressions
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1970 '("/etc/modules.conf" "/etc/conf.modules")
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1971 ;; List of set up functions to call
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1972 nil))
26044
a0f47d3e4a95 Added new InstallShield keywords.
Peter Breton <pbreton@attbi.com>
parents: 25624
diff changeset
1973
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1974 (provide 'generic-x)
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1975
88155
d7ddb3e565de sync with trunk
Henrik Enberg <henrik.enberg@telia.com>
parents: 48791
diff changeset
1976 ;;; arch-tag: cde692a5-9ff6-4506-9999-c67999c2bdb5
21205
f63ba9821988 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1977 ;;; generic-x.el ends here