Mercurial > emacs
annotate msdos/sedleim.inp @ 92055:373b00a4775c
Merge from Dave Love's 2008-01-20 version.
Require sym-comp. Add Python buffer to same-window-buffer-names.
Fixup whitespaces.
(python-font-lock-keywords): Add highlighting for Python builtins.
(python-font-lock-syntactic-keywords): Rewrite.
(python-quote-syntax): Use syntax-ppss-context instead of parsing
ppss directly.
(python-mode-map): Add binding for python-find-function.
(python-calculate-indentation): Clean up the logic.
(python-beginning-of-defun): Explicitly set return value.
(python-beginning-of-statement): Stop looping if we get stuck
going backwards.
(python-next-statement): Stop looping if we somehow end up inside
a string while advancing.
(python-preoutput-continuation, python-version-checked): New vars.
(python-check-version): New function.
(run-python): Set default command to python-command instead of
python-python-command.
(run-python): Use python-check-version. Give PYTHONPATH
precedence over data-directory in the process environment. Load
function definitions in python process after.
(python-check-comint-prompt): New function.
(python-send-command, python-send-receive): Use it.
(python-complete-symbol, python-try-complete): Functions deleted.
Use symbol-complete instead of python-complete-symbol throughout.
(python-fill-paragraph): Further refine the fenced-string regexp.
(def-python-skeleton): Expand to the original abbrev instead if in
a comment or string. Tweak skeletons for `if', `while', `for',
`try/except', `try/finally', `name'.
(python-pea-hook, python-abbrev-pc-hook): New functions.
(python-abbrev-syntax-table): New var.
(python-mode): Add python-pea-hook to pre-abbrev-expand-hook. Use
symbol-completion-try-complete for hippie expansion. Turn on font
lock unconditionally.
(python-mode-hook): Defcustom it. No need to use make-local
variable on indent-tabs-mode in "Turn off Indent Tabs mode"
option, since it's buffer-local.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 21 Feb 2008 17:03:47 +0000 |
parents | 319d87609e42 |
children | 606f2d163a64 dc97fcf1ed7e |
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, |
79742 | 6 # 2005, 2006, 2007, 2008 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 |