From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: recentf exclude question Date: Wed, 09 Sep 2009 20:07:09 -0500 Message-ID: <5YqdnQ4NdMGpzDXXnZ2dnUVZ_sSdnZ2d@sysmatrix.net> References: <_Kmdna1L97JMhjXXnZ2dnUVZ_jqdnZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252548312 25075 80.91.229.12 (10 Sep 2009 02:05:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2009 02:05:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 10 04:05:06 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MlZ1z-0003t0-Bx for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Sep 2009 04:05:03 +0200 Original-Received: from localhost ([127.0.0.1]:59625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlYxv-0007wA-9Q for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Sep 2009 22:00:51 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 09 Sep 2009 20:06:59 -0500 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-No-Archive: yes Original-Lines: 33 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.129.255 Original-X-Trace: sv3-xTfoYHOEYHRJdmOKjup8QFzriZujxeRpDsqLzyjQIEwHnIdwHvmvck9Z2G/1tDba2g8zS3DsnGWNhyS!+wkay0kymX1ftZRjuG1JIMAvzNZaxC6RrZqQmMpubwXP/xgsbwJl9u4PgdzKWxcBCRwJNthRfvlH!tOtN7B3sWybHTqCicSHYx0F5Hg8sD8s= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:172883 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2009-09-24 Xref: news.gmane.org gmane.emacs.help:68020 Archived-At: Andreas Politz wrote: > "B. T. Raven" writes: > >> I want only .txt, .tex, and the .emacs files listed in recentf (under >> Open Recent). Is there some way to construct a regular expression to >> prevent other opened files from being added to the list? >> >> Thanks, >> Ed > > Try this. > > (setq recentf-exclude nil > recentf-include '("\\.t\\(ex\\|xt\\)\\'" "\\`\\.emacs\\'")) > > -ap > > > I find a recentf-keep variable in vers. 22 and 23 but no recentf-include. Anyway I evaluated the expression but it didn't prevent any types of files from being added to the list. Your first regular expression in the list with bar disjunction doesn't have a backtick to match the tick before the double quote; is this on purpose? I don't see how the first regexp specifies any number of characters before tex or txt and the second no characters. It looks like tex and txt are kept if I change the variable in your expression to recentf-include but .emacs isn't added to the list. ??? Ed