From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Re: minor mode recentf: show only *.tex and *.org files?! Date: Tue, 25 Jun 2013 15:21:02 +0200 Message-ID: <1765245.ETjRFNIUMu@linux-ik7b.site> References: <1491756.k2ybY6NjeE@linux-ik7b.site> <2970376.3AR5okv97l@linux-ik7b.site> <51C98F96.9080005@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrT5W-0007H8-N1 for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 09:15:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrT5R-0005XP-Pp for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 09:15:14 -0400 Received: from mailout11.t-online.de ([194.25.134.85]:58099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrT5R-0005XF-Jr for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 09:15:09 -0400 In-Reply-To: <51C98F96.9080005@yahoo.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Richard Cc: emacs-orgmode@gnu.org Am Dienstag, 25. Juni 2013, 14:39:50 schrieb Nicolas Richard: > Le 25/06/2013 14:30, AW a =E9crit : > > (setq recentf-exclude '( > > =20 > > "/diary[0-9]\{4\}[a-zA-Z]\{2,4\}$" > >=20 > > )) >=20 > You have to double the backslashes. Reason is that when lisp reads th= e > string, it translates it into > /diary[0-9]{4}[a-zA-Z]{2,4}$ > which is not the regexp you want. I get lots of lines like "c:/Users/aw/AppData/Local/Temp/diary1234ABc" = ,=20 despite duplication of backlashes. Hm. Tried with leading "/" and without, same result. So I inserted a wh= ole=20 filename including path instead of an regex and this failed as well. It= seems=20 the whole recentf-exclude does not work, at least under windows 7. I cr= eated a=20 testfile Test.org and tried to exclude it in various ways, but without = success. Dammit. Can it be the leading "/"? However, thank you for your very appreciated help! Regards, Alexander