From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: recentf exclude question
Date: Wed, 09 Sep 2009 20:07:09 -0500 [thread overview]
Message-ID: <5YqdnQ4NdMGpzDXXnZ2dnUVZ_sSdnZ2d@sysmatrix.net> (raw)
In-Reply-To: <mailman.6340.1252539848.2239.help-gnu-emacs@gnu.org>
Andreas Politz wrote:
> "B. T. Raven" <nihil@nihilo.net> 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
next prev parent reply other threads:[~2009-09-10 1:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-09 21:19 recentf exclude question B. T. Raven
2009-09-09 23:43 ` Andreas Politz
[not found] ` <mailman.6340.1252539848.2239.help-gnu-emacs@gnu.org>
2009-09-10 1:07 ` B. T. Raven [this message]
2009-09-10 8:00 ` Peter Dyballa
2009-09-10 12:32 ` Andreas Politz
[not found] ` <mailman.6383.1252585965.2239.help-gnu-emacs@gnu.org>
2009-09-10 17:39 ` B. T. Raven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5YqdnQ4NdMGpzDXXnZ2dnUVZ_sSdnZ2d@sysmatrix.net \
--to=nihil@nihilo.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).