changeset 55890:e046a551c6da

Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-362 Support " [...]" style defaults in minibuffer-electric-default-mode 2004-06-03 Miles Bader <miles@gnu.org> * lisp/minibuf-eldef.el (minibuffer-default-in-prompt-regexps): Add regexp for " [...]" style defaults.
author Miles Bader <miles@gnu.org>
date Wed, 02 Jun 2004 22:43:42 +0000
parents cea57915e138
children 3c32f5d8430f
files lisp/ChangeLog lisp/minibuf-eldef.el
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Jun 02 22:07:42 2004 +0000
+++ b/lisp/ChangeLog	Wed Jun 02 22:43:42 2004 +0000
@@ -1,3 +1,8 @@
+2004-06-03  Miles Bader  <miles@gnu.org>
+
+	* minibuf-eldef.el (minibuffer-default-in-prompt-regexps): Add
+	regexp for " [...]" style defaults.
+
 2004-06-02  Romain Francoise  <romain@orebokech.com>
 
 	* ibuf-ext.el (ibuffer-jump-to-buffer): Add support for filter
--- a/lisp/minibuf-eldef.el	Wed Jun 02 22:07:42 2004 +0000
+++ b/lisp/minibuf-eldef.el	Wed Jun 02 22:43:42 2004 +0000
@@ -1,6 +1,6 @@
 ;;; minibuf-eldef.el --- Only show defaults in prompts when applicable
 ;;
-;; Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+;; Copyright (C) 2000, 2001, 2004 Free Software Foundation, Inc.
 ;;
 ;; Author: Miles Bader <miles@gnu.org>
 ;; Keywords: convenience
@@ -36,7 +36,7 @@
 ;;; Code:
 
 (defvar minibuffer-default-in-prompt-regexps
-  '(("\\( (default\\>.*)\\):? \\'" . 1))
+  '(("\\( (default\\>.*)\\):? \\'" . 1) ("\\( \\[.*\\]\\):? *\\'" . 1))
   "*A list of regexps matching the parts of minibuffer prompts showing defaults.
 When `minibuffer-electric-default-mode' is active, these regexps are
 used to identify the portions of prompts to elide.
@@ -157,5 +157,5 @@
 
 (provide 'minibuf-eldef)
 
-;;; arch-tag: 7e421fae-c275-4729-b0da-7836af377d3d
+;; arch-tag: 7e421fae-c275-4729-b0da-7836af377d3d
 ;;; minibuf-eldef.el ends here