annotate lisp/generic-x.el @ 61580:9bd7f8042aa3

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