From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7567: Please add a history variable to read-regexp Date: Thu, 09 Dec 2010 09:28:16 -0500 Message-ID: References: <871v5tqb60.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291915641 26093 80.91.229.12 (9 Dec 2010 17:27:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 17:27:21 +0000 (UTC) Cc: 7567@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 18:27:16 2010 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.69) (envelope-from ) id 1PQkGx-0004jE-Dh for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 18:27:15 +0100 Original-Received: from localhost ([127.0.0.1]:33044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQkGw-0001Ml-Im for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 12:27:14 -0500 Original-Received: from [140.186.70.92] (port=35701 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQhkX-0006oE-A8 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 09:45:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQhkT-0008Tv-10 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 09:45:37 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQhkS-0008Tn-VI for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 09:45:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PQhOg-0005Ta-6d; Thu, 09 Dec 2010 09:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Dec 2010 14:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7567 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7567-submit@debbugs.gnu.org id=B7567.129190454020995 (code B ref 7567); Thu, 09 Dec 2010 14:23:02 +0000 Original-Received: (at 7567) by debbugs.gnu.org; 9 Dec 2010 14:22:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PQhNz-0005Sa-OV for submit@debbugs.gnu.org; Thu, 09 Dec 2010 09:22:19 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PQhNy-0005SO-4F for 7567@debbugs.gnu.org; Thu, 09 Dec 2010 09:22:18 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As0JAA92AE1FpZR3/2dsb2JhbACiYYEZecAMhUoEhGSOBQ X-IronPort-AV: E=Sophos;i="4.59,320,1288584000"; d="scan'208";a="84942732" Original-Received: from 69-165-148-119.dsl.teksavvy.com (HELO ceviche.home) ([69.165.148.119]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 09 Dec 2010 09:28:16 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 78DE6661D7; Thu, 9 Dec 2010 09:28:16 -0500 (EST) In-Reply-To: <871v5tqb60.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 08 Dec 2010 01:57:11 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 09 Dec 2010 09:23:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:42353 Archived-At: >> So after reading the rest of the thread, I think I finally understand >> that you want to "add a history *argument* to read-regexp", right? >> Then it sounds perfectly acceptable. > For consistency, `read-regexp' could have the same function signature > as other minibuffer reading functions, e.g. like `read-string': > (read-string PROMPT &optional INITIAL-INPUT HISTORY DEFAULT-VALUE INHERIT-INPUT-METHOD) > (read-regexp PROMPT &optional INITIAL-INPUT HISTORY DEFAULT-VALUE INHERIT-INPUT-METHOD) No: new such functions should not offer both INITIAL-INPUT and DEFAULT-VALUE. Instead, they should (like read-regexp) only accept DEFAULT-VALUE (and automatically add it to the prompt in the standard format). Stefan