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: Mon, 6 Dec 2010 15:11:53 -0800 Message-ID: References: <2609D1C2B5E5457EA2582273774B4CE2@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 1291677343 15746 80.91.229.12 (6 Dec 2010 23:15:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 23:15:43 +0000 (UTC) Cc: 7567@debbugs.gnu.org To: "'Lennart Borgman'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 07 00:15:37 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 1PPkHM-0001Qk-CJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Dec 2010 00:15:32 +0100 Original-Received: from localhost ([127.0.0.1]:35560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPkHL-0003Iy-Je for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Dec 2010 18:15:31 -0500 Original-Received: from [140.186.70.92] (port=53312 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPkHF-0003Eg-Fx for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2010 18:15:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPkHD-00028q-NW for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2010 18:15:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPkHD-00028m-Km for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2010 18:15:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PPk97-0001Rq-Vv; Mon, 06 Dec 2010 18:07: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: Mon, 06 Dec 2010 23:07: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.12916768015536 (code B ref 7567); Mon, 06 Dec 2010 23:07:01 +0000 Original-Received: (at 7567) by debbugs.gnu.org; 6 Dec 2010 23:06:41 +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 1PPk8n-0001RF-I6 for submit@debbugs.gnu.org; Mon, 06 Dec 2010 18:06:41 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PPk8l-0001R2-MY for 7567@debbugs.gnu.org; Mon, 06 Dec 2010 18:06:40 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oB6NCUVs012387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Dec 2010 23:12:32 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oB6KbvhS030125; Mon, 6 Dec 2010 23:12:29 GMT Original-Received: from abhmt018.oracle.com by acsmt354.oracle.com with ESMTP id 831028121291677113; Mon, 06 Dec 2010 15:11:53 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 06 Dec 2010 15:11:53 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcuVmXekV9DohQGUTbSSD2QQEGVUmAAAKjlQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 06 Dec 2010 18:07: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:42240 Archived-At: > Thanks for asking, I thought it was clear. You're welcome. > Why should that regexp be used to make buffer names? It is probably a > regexp that has been used for matching strings in buffers. Why is it "probably" that? I use regexps interactively all over the place. Matching text in a buffer is only one use. > (It might of course be a regexp from a search in *Buffer List*, > but that is not the normal case.) IMO, there is no "normal" case. This is a general limitation wrt history vars. But it cannot really be otherwise. You might want some particular values to be available on a given history list in some context, and you (or I) might want them to not be available on that list in another context. We can add more history vars to get finer-grained control, but then you miss out if you want to access something that it was decided should be on another history list. It's impossible to have it both ways, because the user's intention is a variable that cannot easily and always be taken into consideration. IOW, there are some things the programmer can decide when writing the function call that reads input (you can use any history var you want, including new ones), but still you cannot always know what the user really needs/wants.