annotate lisp/generic-x.el @ 87380:cd847b2ba99f

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