From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: Re: minor mode recentf: show only *.tex and *.org files?! Date: Tue, 25 Jun 2013 14:39:50 +0200 Message-ID: <51C98F96.9080005@yahoo.fr> References: <1491756.k2ybY6NjeE@linux-ik7b.site> <87li5y8onv.fsf@yahoo.fr> <2970376.3AR5okv97l@linux-ik7b.site> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrSXJ-0007mN-Vu for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 08:39:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrSXH-0000Ij-SX for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 08:39:53 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:55304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrSXH-0000IQ-Mi for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 08:39:51 -0400 In-Reply-To: <2970376.3AR5okv97l@linux-ik7b.site> 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: AW Cc: emacs-orgmode@gnu.org Le 25/06/2013 14:30, AW a écrit : > (setq recentf-exclude '( > "/diary[0-9]\{4\}[a-zA-Z]\{2,4\}$" > )) You have to double the backslashes. Reason is that when lisp reads the string, it translates it into /diary[0-9]{4}[a-zA-Z]{2,4}$ which is not the regexp you want. -- Nico.