Mercurial > emacs
annotate msdos/sedleim.inp @ 106395:f2b36fb84bf7
Enhance `c-parse-state' to run efficiently in "brace desserts".
* progmodes/cc-mode.el (c-basic-common-init): Call
c-state-cache-init.
(c-neutralize-syntax-in-and-mark-CPP): Renamed from
c-extend-and-neutralize-syntax-in-CPP. Mark each CPP construct by
placing `category' properties value 'c-cpp-delimiter at its
boundaries.
* progmodes/cc-langs.el (c-before-font-lock-function):
c-extend-and-neutralize-syntax-in-CPP has been renamed
c-neutralize-syntax-in-and-mark-CPP.
* progmodes/cc-fonts.el (c-cpp-matchers): Mark template brackets
with `category' properties now, not `syntax-table' ones.
* progmodes/cc-engine.el (c-syntactic-end-of-macro): A new
enhanced (but slower) version of c-end-of-macro that won't land
inside a literal or on another awkward character.
(c-state-cache-too-far, c-state-cache-start)
(c-state-nonlit-pos-interval, c-state-nonlit-pos-cache)
(c-state-nonlit-pos-cache-limit, c-state-point-min)
(c-state-point-min-lit-type, c-state-point-min-lit-start)
(c-state-min-scan-pos, c-state-brace-pair-desert)
(c-state-old-cpp-beg, c-state-old-cpp-end): New constants and
buffer local variables.
(c-state-literal-at, c-state-lit-beg)
(c-state-cache-non-literal-place, c-state-get-min-scan-pos)
(c-state-mark-point-min-literal, c-state-cache-top-lparen)
(c-state-cache-top-paren, c-state-cache-after-top-paren)
(c-get-cache-scan-pos, c-get-fallback-scan-pos)
(c-state-balance-parens-backwards, c-parse-state-get-strategy)
(c-renarrow-state-cache)
(c-append-lower-brace-pair-to-state-cache)
(c-state-push-any-brace-pair, c-append-to-state-cache)
(c-remove-stale-state-cache)
(c-remove-stale-state-cache-backwards, c-state-cache-init)
(c-invalidate-state-cache-1, c-parse-state-1)
(c-invalidate-state-cache): New defuns/defmacros/defsubsts.
(c-parse-state): Enhanced and refactored.
(c-debug-parse-state): Amended to deal with all the new variables.
* progmodes/cc-defs.el (c-<-as-paren-syntax, c-mark-<-as-paren)
(c->-as-paren-syntax, c-mark->-as-paren, c-unmark-<->-as-paren):
modify to use category text properties rather than syntax-table
ones.
(c-suppress-<->-as-parens, c-restore-<->-as-parens): new defsubsts
to switch off/on the syntactic paren property of C++ template
delimiters using the category property.
(c-with-<->-as-parens-suppressed): Macro to invoke code with
template delims suppressed.
(c-cpp-delimiter, c-set-cpp-delimiters, c-clear-cpp-delimiters):
New constant/macros which apply category properties to the start
and end of preprocessor constructs.
(c-comment-out-cpps, c-uncomment-out-cpps): defsubsts which
"comment out" the syntactic value of characters in preprocessor
constructs.
(c-with-cpps-commented-out)
(c-with-all-but-one-cpps-commented-out): Macros to invoke code
with characters in all or all but one preprocessor constructs
"commented out".
author | Alan Mackenzie <acm@muc.de> |
---|---|
date | Thu, 03 Dec 2009 16:02:10 +0000 |
parents | dc97fcf1ed7e |
children | 1d1d5d9bd884 |
rev | line source |
---|---|
24020 | 1 # -sedleim.inp----------------------------------------------------------- |
2 # Configuration script for leim/Makefile under DJGPP v2.x | |
3 # ---------------------------------------------------------------------- | |
36461
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
4 # |
75249
4ad431d8e164
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68648
diff
changeset
|
5 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, |
100956 | 6 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
36461
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
7 # |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
8 # This file is part of GNU Emacs. |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
9 # |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
10 # This file is free software; as a special exception, the author gives |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
11 # unlimited permission to copy and/or distribute it, with or without |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
12 # modifications, as long as this notice is preserved. |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
13 # |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
14 # This program is distributed in the hope that it will be useful, |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
17 # |
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
32252
diff
changeset
|
18 # ---------------------------------------------------------------------- |
24020 | 19 /^SHELL *=/c\ |
25099
00af2bda43f0
(SHELL, MAKESHELL): Use /xyzzy/command as the shell.
Eli Zaretskii <eliz@gnu.org>
parents:
24020
diff
changeset
|
20 SHELL=/xyzzy/command\ |
00af2bda43f0
(SHELL, MAKESHELL): Use /xyzzy/command as the shell.
Eli Zaretskii <eliz@gnu.org>
parents:
24020
diff
changeset
|
21 MAKESHELL=/xyzzy/command |
24020 | 22 |
23 /^version=/d | |
24 /^prefix=/d | |
25 /^datadir=/s|@datadir@|../..| | |
37145
e0b7a9135b1d
(srcdir=): Edit @srcdir@ into an absolute file name
Eli Zaretskii <eliz@gnu.org>
parents:
37073
diff
changeset
|
26 /^srcdir=/s|srcdir=@srcdir@|srcdir := $(subst \\,/,$(shell cd))| |
24020 | 27 |
28 /^INSTALLDIR=/c\ | |
29 INSTALLDIR=. | |
30 | |
55523
03f22f05755c
(distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
31 /touch stamp-subdir/s|touch|djecho "stamp-subdir" >| |
03f22f05755c
(distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
32 s|\([ ]\)echo|\1djecho|g |
56661
2e46f6ed4228
Remove the lines which say "<TAB>@true", to avoid
Eli Zaretskii <eliz@gnu.org>
parents:
55523
diff
changeset
|
33 /^ @true *$/d |
55523
03f22f05755c
(distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
34 |
32252
62100be6ca6d
Don't remove the Unix shell invocations.
Eli Zaretskii <eliz@gnu.org>
parents:
25099
diff
changeset
|
35 /RUN-EMACS *=/,/^$/c\ |
62100be6ca6d
Don't remove the Unix shell invocations.
Eli Zaretskii <eliz@gnu.org>
parents:
25099
diff
changeset
|
36 export EMACSLOADPATH=${buildlisppath}\ |
62100be6ca6d
Don't remove the Unix shell invocations.
Eli Zaretskii <eliz@gnu.org>
parents:
25099
diff
changeset
|
37 RUN-EMACS = ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte |
62100be6ca6d
Don't remove the Unix shell invocations.
Eli Zaretskii <eliz@gnu.org>
parents:
25099
diff
changeset
|
38 |
24020 | 39 /^ cd ../c\ |
40 ${MAKE} -C ../src ${MFLAGS} emacs | |
41 | |
42 /else make quail/c\ | |
43 if not exist quail\\nul make quail | |
44 | |
37073
678672a4c40e
Adapt to changes in leim/Makefile.in's $(TIT) target.
Eli Zaretskii <eliz@gnu.org>
parents:
36461
diff
changeset
|
45 /if \[ -f $@ \]\; then true/d |
678672a4c40e
Adapt to changes in leim/Makefile.in's $(TIT) target.
Eli Zaretskii <eliz@gnu.org>
parents:
36461
diff
changeset
|
46 /fi$/s/; fi$// |
678672a4c40e
Adapt to changes in leim/Makefile.in's $(TIT) target.
Eli Zaretskii <eliz@gnu.org>
parents:
36461
diff
changeset
|
47 |
24020 | 48 /^leim-list.el:/,/^$/ { |
49 /^ if/d | |
50 /^ else/,/^ fi/d | |
51 s| *| | | |
52 /^ --eval/,/; \\$/s|\; \\|| | |
53 } | |
54 | |
55 /^install:/,/^$/c\ | |
56 install: all\ | |
57 | |
58 /^ if test -f/d | |
55523
03f22f05755c
(distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
59 /^distclean:/,/^$/ { |
03f22f05755c
(distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
60 s|\(rm -f Makefile\)|\1 stamp-subdir| |
03f22f05755c
(distclean): Remove stamp-subdirs.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
61 } |
52401 | 62 |
63 # arch-tag: 33c5eed1-78bc-4a6e-9d11-cbc7c541b763 |