emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: improving query-replace and query-replace-regexp


From: Stefan Monnier
Subject: Re: improving query-replace and query-replace-regexp
Date: 01 Jun 2004 20:10:59 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> The standard emacs syntax for prompt defaults seems to be "(default ...)"; is
> there any reason to use some different syntax here?  [I know, things are not
> exactly consistent as it is, but let's not make it worse.]

I've seen both (default foo) and [foo] used and I personally prefer the
second form because it is shorter.  BTW, here is a suggested patch
to deal with this second form in minibuffer-eldef.


        Stefan


--- orig/lisp/minibuf-eldef.el
+++ mod/lisp/minibuf-eldef.el
@@ -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, 01, 2004  Free Software Foundation, Inc.
 ;;
 ;; Author: Miles Bader <address@hidden>
 ;; 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]