From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: read-buffer-completion-ignore-case Date: Tue, 5 May 2009 19:38:19 -0700 Message-ID: <000e01c9cdf3$b810b720$0200a8c0@us.oracle.com> References: <002501c9cda9$68ef7360$0200a8c0@us.oracle.com> <87k54vhskw.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241577527 10625 80.91.229.12 (6 May 2009 02:38:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2009 02:38:47 +0000 (UTC) To: "'Miles Bader'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 06 04:38:37 2009 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 1M1X1m-0006iZ-8U for ged-emacs-devel@m.gmane.org; Wed, 06 May 2009 04:38:34 +0200 Original-Received: from localhost ([127.0.0.1]:59557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1X1l-0000Vg-PY for ged-emacs-devel@m.gmane.org; Tue, 05 May 2009 22:38:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1X1b-0000T7-HK for emacs-devel@gnu.org; Tue, 05 May 2009 22:38:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1X1X-0000Pq-Is for emacs-devel@gnu.org; Tue, 05 May 2009 22:38:23 -0400 Original-Received: from [199.232.76.173] (port=48084 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1X1X-0000Ph-DX for emacs-devel@gnu.org; Tue, 05 May 2009 22:38:19 -0400 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:23286 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1X1V-0007Y0-3n; Tue, 05 May 2009 22:38:17 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n462cTLv027245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 6 May 2009 02:38:30 GMT Original-Received: from abhmt001.oracle.com (abhmt001.oracle.com [141.146.116.10]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n462cDsC003931; Wed, 6 May 2009 02:38:13 GMT Original-Received: from dradamslap1 (/98.210.250.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 05 May 2009 19:38:11 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87k54vhskw.fsf@catnip.gol.com> Thread-Index: AcnN8pAXtPHYYx5yQRiZEjtTRFJq6wAAFcPg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: abhmt001.oracle.com [141.146.116.10] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A01020A.4A00F814.01B4:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:110707 Archived-At: > > There is no real use of > > `read-buffer-completion-ignore-case' in the Emacs Lisp > > files, and I haven't bothered to download the C source code > > to check all the places it might be used (besides `read-buffer'). > > > > Question: How can Emacs-Lisp code know whether completion > > involves buffer names? > > > > Suppose I want to do something depending on the value of > > `read-buffer-completion-ignore-case', but only when > > completion is for buffer names - how can I test that? > > It's relatively easy to test for file-name > > completion, but how to do that for buffer-name completion? > > Do you really need to know explicitly? Could you instead just test > `completion-ignore-case', which is let-bound to the value of > read-buffer-completion-ignore-case inside of read-buffer? Not sure I follow you. Do you mean compare the values of `completion-ignore-case' and `read-buffer-completion-ignore-case', and assume that a buffer name is being read if (and only if) they are different? For what I have in mind that test wouldn't be sufficient. I really want to know whether buffer-name completion is happening. But I wouldn't go so far as to say I "need" this. I don't really need any particular feature - or Emacs itself, for that matter. ;-)