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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
100556
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
1 # -sedalloc.inp-----------------------------------------------------------
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
2 # Configuration script for SYSTEM_MALLOC/REL_ALLOC in src/config.h
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
3 # ----------------------------------------------------------------------
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
4 #
100956
dc97fcf1ed7e Add 2009 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 100621
diff changeset
5 # Copyright (C) 2008, 2009 Free Software Foundation, Inc.
100556
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
6 #
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
7 # This file is part of GNU Emacs.
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
8 #
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
9 # This file is free software; as a special exception, the author gives
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
10 # unlimited permission to copy and/or distribute it, with or without
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
11 # modifications, as long as this notice is preserved.
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
12 #
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
13 # This program is distributed in the hope that it will be useful,
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
16 #
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
17 # ----------------------------------------------------------------------
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
18 /^#define GNU_MALLOC *1 *$/s|^.*$|/* #undef GNU_MALLOC */|
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
19 /^#define REL_ALLOC.*$/a\
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
20 \
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
21 /* Inserted by the --with-system-malloc switch to config.bat. */\
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
22 #define SYSTEM_MALLOC 1
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
23 /^#define REL_ALLOC *1 *$/s|^.*$|/* #undef REL_ALLOC */|
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
24
100621
c8e80afb3a47 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 100556
diff changeset
25 # arch-tag: 20b3ad5d-fcd7-4751-aa34-e94e770ded87