From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: read-regexp Date: Sat, 18 Oct 2008 17:47:52 -0400 Message-ID: References: <87iqrp7wgm.fsf@jurta.org> <87ljwlr8ch.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224366487 16283 80.91.229.12 (18 Oct 2008 21:48:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Oct 2008 21:48:07 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 18 23:49:11 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KrJfY-0008KH-Ap for ged-emacs-devel@m.gmane.org; Sat, 18 Oct 2008 23:49:08 +0200 Original-Received: from localhost ([127.0.0.1]:59990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrJeT-0006M2-8V for ged-emacs-devel@m.gmane.org; Sat, 18 Oct 2008 17:48:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrJeP-0006Lx-9r for emacs-devel@gnu.org; Sat, 18 Oct 2008 17:47:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrJeM-0006Ll-O0 for emacs-devel@gnu.org; Sat, 18 Oct 2008 17:47:55 -0400 Original-Received: from [199.232.76.173] (port=35558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrJeM-0006Li-Jr for emacs-devel@gnu.org; Sat, 18 Oct 2008 17:47:54 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:6606) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrJeL-0006NT-Bh; Sat, 18 Oct 2008 17:47:53 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUFAAT2+UhMCpQ6/2dsb2JhbACBcr8Og2yBCg X-IronPort-AV: E=Sophos;i="4.33,441,1220241600"; d="scan'208";a="28560562" Original-Received: from 76-10-148-58.dsl.teksavvy.com (HELO ceviche.home) ([76.10.148.58]) by ironport2-out.teksavvy.com with ESMTP; 18 Oct 2008 17:47:52 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 76C29B4144; Sat, 18 Oct 2008 17:47:52 -0400 (EDT) In-Reply-To: <87ljwlr8ch.fsf@jurta.org> (Juri Linkov's message of "Sat, 18 Oct 2008 22:55:22 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104611 Archived-At: >>> The problem is in the ambiguous name of the argument DEFAULT. >>> It was intended to provide exactly the same functionality as the >>> argument STRING-DESCRIBING-DEFAULT of the function `read-face-name', >>> i.e. to display in the minibuffer prompt what default the function >>> will use if the user types RET. >> >> The question is rather: why isn't that string available via M-n as >> defaults usually do? I think adding that regexp to M-n is a better >> option, and that makes the use of the name `default' >> completely justified. > This string is not available via M-n due to historical requirements of > `occur'. It used to display the last element of regexp-history > in the prompt and use it when the user types RET. Other commands > that use read-regexp historically don't require such a string. I still don't understand. Your occur explanation explains why it's displayed in the prompt and used as default value, but not why it's not in the M-n. Stefan