From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#2495: 23.0.91; regression in M-x flush-lines Date: Fri, 27 Feb 2009 16:41:10 -0500 Message-ID: References: <874oyg8198.fsf@gate450.dyndns.org> Reply-To: Glenn Morris , 2495@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235772500 27684 80.91.229.12 (27 Feb 2009 22:08:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2009 22:08:20 +0000 (UTC) Cc: 2495@emacsbugs.donarmstrong.com To: Andreas Seltenreich Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 23:09:37 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LdAtk-0001m1-3R for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2009 23:09:36 +0100 Original-Received: from localhost ([127.0.0.1]:34242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdAsP-0007TX-AC for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2009 17:08:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdAo2-0003aZ-Vx for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 17:03:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdAo1-0003YM-8p for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 17:03:42 -0500 Original-Received: from [199.232.76.173] (port=35781 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdAo0-0003Xt-Vt for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 17:03:41 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51560) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LdAo0-0005Fh-91 for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 17:03:40 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1RM3c7r012974; Fri, 27 Feb 2009 14:03:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1RLo4kM009492; Fri, 27 Feb 2009 13:50:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 27 Feb 2009 21:50:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2495 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2495-submit@emacsbugs.donarmstrong.com id=B2495.12357710168103 (code B ref 2495); Fri, 27 Feb 2009 21:50:03 +0000 Original-Received: (at 2495) by emacsbugs.donarmstrong.com; 27 Feb 2009 21:43:36 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1RLhUGu008097 for <2495@emacsbugs.donarmstrong.com>; Fri, 27 Feb 2009 13:43:32 -0800 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LdASF-0004Bf-1z; Fri, 27 Feb 2009 16:41:11 -0500 X-Spook: pre-emptive Roswell Watergate infowar BLU-114/B gamma X-Ran: 23SmM!36s=iszG`Z-\~:~]|gV>""v=NKd (Andreas Seltenreich's message of "Fri, 27 Feb 2009 14:20:35 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 27 Feb 2009 17:03:42 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25807 Archived-At: Andreas Seltenreich wrote: > emacs -Q > M-< ; beginning of *scratch* buffer > M-x flush-lines RET RET In 22.3, this used read-from-minibuffer, which returns the empty string in case of no input. Now it used read-regexp, which returns nil in case of no input (if no default is supplied). That doesn't seem right. Perhaps this: *** replace.el 9 Jan 2009 05:01:00 -0000 1.282 --- replace.el 27 Feb 2009 21:41:59 -0000 *************** *** 556,562 **** (format "%s: " prompt)) nil nil nil 'regexp-history defaults t))) (if (equal input "") ! default-value (prog1 input (add-to-history 'regexp-history input))))) --- 556,562 ---- (format "%s: " prompt)) nil nil nil 'regexp-history defaults t))) (if (equal input "") ! (or default-value input) (prog1 input (add-to-history 'regexp-history input)))))