GNU bug report logs - #12321
24.2.50; `read-regexp' parameter DEFAULT-VALUE and the calculated defaults

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 31 Aug 2012 22:41:02 UTC

Severity: normal

Found in version 24.2.50

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> jurta.org>
Cc: 12321 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: bug#12321: 24.2.50; `read-regexp' parameter PROMPT
Date: Thu, 20 Sep 2012 08:46:10 -0400
> -	   (if default-value
> -	       (format "%s (default %s): " prompt
> -		       (query-replace-descr default-value))
> -	     (format "%s: " prompt))
> +	   (if (string-match-p ":[ \t]*\\'" prompt)
> +	       prompt
> +	     (if default-value
> +		 (format "%s (default %s): " prompt
> +			 (query-replace-descr default-value))
> +	       (format "%s: " prompt)))

That looks OK, tho please use `cond' then.


        Stefan




This bug report was last modified 12 years and 306 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.