Mercurial > emacs
annotate msdos/sed1.inp @ 106239:0ac473df1bd1
Provide additional default values (file name at point or at the
current Dired line) via M-n for file reading minibuffers. (Bug#5010)
* minibuffer.el (read-file-name-defaults): New function.
(read-file-name): Reset `minibuffer-default' to nil when
it duplicates initial input `insdef'.
Bind `minibuffer-default-add-function' to lambda that
calls `read-file-name-defaults' in `minibuffer-selected-window'.
(minibuffer-insert-file-name-at-point): New command.
* files.el (file-name-at-point-functions): New defcustom.
(find-file-default): Remove defvar.
(find-file-read-args): Don't use `find-file-default'.
Move `minibuffer-with-setup-hook' that sets `minibuffer-default'
to `read-file-name'.
(find-file-literally): Use `read-file-name' with
`confirm-nonexistent-file-or-buffer'.
* ffap.el (ffap-guess-file-name-at-point): New autoloaded function.
* dired.el (dired-read-dir-and-switches):
Move `minibuffer-with-setup-hook' that sets `minibuffer-default'
to `read-file-name'.
(dired-file-name-at-point): New function.
(dired-mode): Add hook `dired-file-name-at-point' to
`file-name-at-point-functions'.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Wed, 25 Nov 2009 17:11:29 +0000 |
parents | dc97fcf1ed7e |
children | 1d1d5d9bd884 |
rev | line source |
---|---|
7202
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
1 # -sed1.inp------------------------------------------------------------- |
7229
520d3d20651f
Don't comment out the inc-vers run as that does not exist anymore.
Richard M. Stallman <rms@gnu.org>
parents:
7202
diff
changeset
|
2 # Configuration script for src/makefile |
7202
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
3 # ---------------------------------------------------------------------- |
15041
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
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) 1993, 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003, |
100956 | 6 # 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
36219 | 7 # |
8 # This file is part of GNU Emacs. | |
9 # | |
36461
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
36220
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:
36220
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:
36220
diff
changeset
|
12 # modifications, as long as this notice is preserved. |
36219 | 13 # |
36461
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
36220
diff
changeset
|
14 # This program is distributed in the hope that it will be useful, |
36219 | 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
36461
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
36220
diff
changeset
|
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
36219 | 17 # |
36461
a4fb0c9be609
Add copyright notices for all files. README is a new file, mainly
Eli Zaretskii <eliz@gnu.org>
parents:
36220
diff
changeset
|
18 # ---------------------------------------------------------------------- |
15041
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
19 # In case src/Makefile needs to rebuild `make-doc.exe' (might happen under |
15829 | 20 # Windows 95), make sure it gets built with commands that DOS |
15041
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
21 # understands (one command per line). |
7202
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
22 s/^#.*// |
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
23 s/^[ \f\t][ \f\t]*$// |
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
24 s/^ / / |
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
25 s/\.h\.in/.h-in/ |
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
26 s!^ \./temacs! go32 temacs! |
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
27 s!/bin/sh!command.com! |
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
28 /^MAKE *=/s/^/# / |
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
29 /^SHELL *=/s/^/# / |
7513
4010eca772d4
Don't use `+' in regexps as different stream
Richard M. Stallman <rms@gnu.org>
parents:
7229
diff
changeset
|
30 /^srcdir *=/s/@[^@\n]*@/./ |
4010eca772d4
Don't use `+' in regexps as different stream
Richard M. Stallman <rms@gnu.org>
parents:
7229
diff
changeset
|
31 /^VPATH *=/s/@[^@\n]*@/./ |
4010eca772d4
Don't use `+' in regexps as different stream
Richard M. Stallman <rms@gnu.org>
parents:
7229
diff
changeset
|
32 /^CC *=/s/@[^@\n]*@/gcc/ |
4010eca772d4
Don't use `+' in regexps as different stream
Richard M. Stallman <rms@gnu.org>
parents:
7229
diff
changeset
|
33 /^CPP *=/s/@[^@\n]*@/gcc -e/ |
4010eca772d4
Don't use `+' in regexps as different stream
Richard M. Stallman <rms@gnu.org>
parents:
7229
diff
changeset
|
34 /^CFLAGS *=/s/@[^@\n]*@/-O2 -g/ |
28587 | 35 /^LIBS *=/s/@[^@\n]*@// |
36 /^LIBOBJS *=/s/@[^@\n]*@// | |
7513
4010eca772d4
Don't use `+' in regexps as different stream
Richard M. Stallman <rms@gnu.org>
parents:
7229
diff
changeset
|
37 /^LN_S *=/s/@[^@\n]*@/ln -s/ |
8197
d6a441681fb4
Use "m/intel386" instead of "m/dos386.h".
Richard M. Stallman <rms@gnu.org>
parents:
7623
diff
changeset
|
38 /^M_FILE *=/s!@[^@\n]*@!m/intel386.h! |
7513
4010eca772d4
Don't use `+' in regexps as different stream
Richard M. Stallman <rms@gnu.org>
parents:
7229
diff
changeset
|
39 /^S_FILE *=/s!@[^@\n]*@!s/msdos.h! |
7202
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
40 /^@SET_MAKE@$/s/@SET_MAKE@// |
13176
af414e792977
Call make-doc.exe instead of make-docfile.
Kim F. Storm <storm@cua.dk>
parents:
10386
diff
changeset
|
41 /^.\${libsrc}make-docfile.*>/s!make-docfile!make-doc.exe -o ../etc/DOC! |
7202
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
42 /^.\${libsrc}make-doc/s!>.*$!! |
15041
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
43 /^\${libsrc}make-docfile:/c\ |
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
44 ${libsrc}make-doc.exe:\ |
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
45 cd ..\ |
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
46 cd lib-src\ |
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
47 $(MAKE) ${MFLAGS} make-docfile -W make-docfile.c\ |
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
48 cd ..\ |
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
49 cd src |
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
50 /^ cd \${libsrc}; \${MAKE} \${MFLAGS} make-docfile/d |
88d5940d524e
Replace `make-docfile' with `make-doc.exe'. In case
Richard M. Stallman <rms@gnu.org>
parents:
15026
diff
changeset
|
51 /\${libsrc}make-docfile/s/-docfile[ ]/-doc.exe / |
7202
9f8b6ebe1d7e
Set CFLAGS=-O2, not -g. Handle the new
Richard M. Stallman <rms@gnu.org>
parents:
5485
diff
changeset
|
52 /^[ ]*$/d |
9572 | 53 /^temacs:/s/prefix-args// |
18769
48fd714b8115
Remove `stamp-oldxmenu' dependency, so
Richard M. Stallman <rms@gnu.org>
parents:
15829
diff
changeset
|
54 /^temacs:/s/stamp-oldxmenu// |
9572 | 55 /^ #/d |
52401 | 56 |
57 # arch-tag: 246725c1-79de-4d03-a080-8f19329fa35e |