From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7567: Please add a history variable to read-regexp Date: Thu, 9 Dec 2010 08:14:01 -0800 Message-ID: <46BEC3D3C42B4832850C14D7C30F7AB3@us.oracle.com> References: <871v5tqb60.fsf@mail.jurta.org><6D10D6F57E0A47DE84ACE050152CD553@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291934524 27618 80.91.229.12 (9 Dec 2010 22:42:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 22:42:04 +0000 (UTC) Cc: 7567@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 23:41:59 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 1PQpBX-0004Ca-8J for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 23:41:59 +0100 Original-Received: from localhost ([127.0.0.1]:38399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQpBW-0005D5-Bb for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 17:41:58 -0500 Original-Received: from [140.186.70.92] (port=50542 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQj9b-0001HW-A8 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 11:15:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQj9Z-0006Yo-40 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 11:15:34 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQj9Y-0006Yf-Qt for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2010 11:15:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PQj3F-0007ug-Qr; Thu, 09 Dec 2010 11:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" 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 16:09:01 +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.129191089530363 (code B ref 7567); Thu, 09 Dec 2010 16:09:01 +0000 Original-Received: (at 7567) by debbugs.gnu.org; 9 Dec 2010 16:08:15 +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 1PQj2V-0007tg-0M for submit@debbugs.gnu.org; Thu, 09 Dec 2010 11:08:15 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PQj2S-0007tS-V6 for 7567@debbugs.gnu.org; Thu, 09 Dec 2010 11:08:13 -0500 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oB9GEBir017982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Dec 2010 16:14:12 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oB98ZDDB029805; Thu, 9 Dec 2010 16:14:10 GMT Original-Received: from abhmt009.oracle.com by acsmt355.oracle.com with ESMTP id 860551691291911248; Thu, 09 Dec 2010 08:14:08 -0800 Original-Received: from dradamslap1 (/10.159.244.236) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 09 Dec 2010 08:14:03 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcuXrc8bR5vXmDR/TU6eKDUEeUY3QAADKT9A X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 09 Dec 2010 11:09:01 -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:42361 Archived-At: > > I agree with that. But I also think that it might be good to use > > `completing-read', to allow (lax) completion against the history. > > IOW, use the history for both completion and the usual > > history access. > > I think this is a bad idea: completing-read is for completion against > "possible answers" which should be kept separate from > history-completion. I generally agree. In this case, there was no (is no) other completion, so there are no other-kind of completion candidates to keep the history separate from. But yes, I agree. > We could/should let TAB perform history > completion for non-completing-reads, but if we do that, it should > be under the control of the user. Agreed, especially the last part. I really meant only that it's good in general to have more use of (lax) completion and less use of things like `read-string' and `read-regexp' that provide what lax completion provides but without any completion. > Personally, I think that M-p should perform history completion, and > that's what my .emacs does. That would be OK. The big advantage of completion vs `M-p' etc. is that you can get more directly to a history entry, no matter how long ago you originally entered it. Another possibility - not at all the same thing, but useful in such a case as well as in others - is what Icicles does: Use another key (`M-o') to let you complete against the history and insert the result into the minibuffer (without committing it). This uses a recursive minibuffer and is available during any minibuffer input - not just during completing reads.