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 22:06:45 -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 1291958444 18313 80.91.229.12 (10 Dec 2010 05:20:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 05:20:44 +0000 (UTC) Cc: 7567@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 06:20:39 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 1PQvP6-0005ZO-4Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 06:20:39 +0100 Original-Received: from localhost ([127.0.0.1]:56442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQvP4-0005lx-3c for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 00:20:22 -0500 Original-Received: from [140.186.70.92] (port=40959 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQtSy-0000Ar-Vs for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 22:16:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQtSo-0005YS-16 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 22:16:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQtSn-0005YO-Vc for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 22:16:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PQtEE-0007TS-Ez; Thu, 09 Dec 2010 22:01: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: Fri, 10 Dec 2010 03:01: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.129195004728710 (code B ref 7567); Fri, 10 Dec 2010 03:01:02 +0000 Original-Received: (at 7567) by debbugs.gnu.org; 10 Dec 2010 03:00:47 +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 1PQtDz-0007T0-4A for submit@debbugs.gnu.org; Thu, 09 Dec 2010 22:00:47 -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 1PQtDw-0007So-Pl for 7567@debbugs.gnu.org; Thu, 09 Dec 2010 22:00:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As0JACIoAU3O+KIs/2dsb2JhbACiZYEZeb9/hUoEhGSOBQ X-IronPort-AV: E=Sophos;i="4.59,322,1288584000"; d="scan'208";a="85082403" Original-Received: from 206-248-162-44.dsl.teksavvy.com (HELO ceviche.home) ([206.248.162.44]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 09 Dec 2010 22:06:45 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 9FB87660DC; Thu, 9 Dec 2010 22:06:45 -0500 (EST) In-Reply-To: (Drew Adams's message of "Thu, 9 Dec 2010 09:43:16 -0800") 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 22:01: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:42376 Archived-At: >> 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). > Let INITIAL-INPUT be. -- John Lennon > No one is forced to use it. What did it ever do to you? ;-) It's too low-level: better provide a DEFAULT-VALUE and then the function can decide to do as we do (i.e. put default in prompt and in M-n) or as they do (put it as the initial contents, selected so that delete-selection-mode can get rid of it in a pinch). Stefan