From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: completion-ignored-extensions: match full file names Date: Thu, 13 Jan 2011 21:00:57 -0500 Message-ID: <2E854FFB-5FAF-4778-9296-F3E2BBF1E577@gmail.com> References: <7E365780-0E85-4169-98B2-EB53D703A2BA@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294970482 14323 80.91.229.12 (14 Jan 2011 02:01:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 Jan 2011 02:01:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 14 03:01:18 2011 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.69) (envelope-from ) id 1PdYyZ-0000sH-NK for ged-emacs-devel@m.gmane.org; Fri, 14 Jan 2011 03:01:15 +0100 Original-Received: from localhost ([127.0.0.1]:36626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdYyZ-0003I0-2f for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2011 21:01:15 -0500 Original-Received: from [140.186.70.92] (port=35769 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdYyT-0003Hs-Rr for emacs-devel@gnu.org; Thu, 13 Jan 2011 21:01:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdYyR-0005H8-LF for emacs-devel@gnu.org; Thu, 13 Jan 2011 21:01:09 -0500 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:40428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdYyM-0005GP-7R; Thu, 13 Jan 2011 21:01:02 -0500 Original-Received: by vws10 with SMTP id 10so863426vws.0 for ; Thu, 13 Jan 2011 18:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=3yVwbXQQRc7UoNEh/paW42spTphFpeQ+44gX0acNmEQ=; b=w3LUGnv/u5HJQFzo41q+z3PefbU8bj1FDC3LBrmu8OFQet378We2MfvIY8vniJUyVq SB49pkLq1bg9UM1Vp5YcjjFfxDeQIb7Z99A8g5FWSp5/IYTMLI4w4SEopSaQgeog1+vr WtqcDp01T19fWqCnxz/J/wJw2OEDTvPTvKyPE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=p+e8zwADqnUMJNSkGiWx5r446Udo7mWe5pt5LhRJIOs5YOz6IFUYAhoo88dbVITRQf CeFQnypiTaKYRrXe1JKJ6gfRlIahh9Og4X61QxA32yLf7Le9vEoOK+NSFPjbg6hQsRog DVuetFTB2NQxzZUKPyL2yK8ZGlqGJLXuM4L04= Original-Received: by 10.220.182.195 with SMTP id cd3mr102108vcb.3.1294970461340; Thu, 13 Jan 2011 18:01:01 -0800 (PST) Original-Received: from elin.local (pool-72-95-198-253.pitbpa.east.verizon.net [72.95.198.253]) by mx.google.com with ESMTPS id y4sm286031vch.11.2011.01.13.18.00.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Jan 2011 18:01:00 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:134515 Archived-At: On Jan 13, 2011, at 8:51 PM, Eli Zaretskii wrote: > But I think we could make a change whereby if an element of > completion-ignored-extensions begins with a slash, that means match at > the beginning. Then we could have "/.git/" as an element, and that > would ignore only the standard ".git" subdirectories, not any > directory that happens to end in ".git". Yes. I originally thought of "^.git" to mirror regexps, but not to = implement regexps for the reason you state. I like your idea better, given that it really isn't a regexp. The only (minor) issue I see is the name of the customization variable - = at that point, the string no longer represents an extension of the file = name. Perhaps we'd argue that it's an extension (suffix) of the whole = path name. We might want to go through the default set of extension and update it. = "/.bzr/", for instance, and the other VCS directories.=20 BTW, this functionality as well as the Emacs 23 completion mechanism are = very well conceived and quite useful!