annotate lisp/generic-x.el @ 61498:af0b365f3c39

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