Mercurial > emacs
annotate msdos/sedalloc.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 |
---|---|
100556 | 1 # -sedalloc.inp----------------------------------------------------------- |
2 # Configuration script for SYSTEM_MALLOC/REL_ALLOC in src/config.h | |
3 # ---------------------------------------------------------------------- | |
4 # | |
100956 | 5 # Copyright (C) 2008, 2009 Free Software Foundation, Inc. |
100556 | 6 # |
7 # This file is part of GNU Emacs. | |
8 # | |
9 # This file is free software; as a special exception, the author gives | |
10 # unlimited permission to copy and/or distribute it, with or without | |
11 # modifications, as long as this notice is preserved. | |
12 # | |
13 # This program is distributed in the hope that it will be useful, | |
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
16 # | |
17 # ---------------------------------------------------------------------- | |
18 /^#define GNU_MALLOC *1 *$/s|^.*$|/* #undef GNU_MALLOC */| | |
19 /^#define REL_ALLOC.*$/a\ | |
20 \ | |
21 /* Inserted by the --with-system-malloc switch to config.bat. */\ | |
22 #define SYSTEM_MALLOC 1 | |
23 /^#define REL_ALLOC *1 *$/s|^.*$|/* #undef REL_ALLOC */| | |
24 | |
100621 | 25 # arch-tag: 20b3ad5d-fcd7-4751-aa34-e94e770ded87 |