From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: sandipchitale@yahoo.com (Sandip Chitale) Newsgroups: gmane.emacs.help Subject: Re: recentf.el and listing recently visited files Date: 14 Mar 2003 16:43:04 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1047689293 20323 80.91.224.249 (15 Mar 2003 00:48:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Mar 2003 00:48:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 15 01:48:12 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18tzqN-0005Hf-00 for ; Sat, 15 Mar 2003 01:48:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tzo3-0001Xv-00 for gnu-help-gnu-emacs@m.gmane.org; Fri, 14 Mar 2003 19:45:47 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 70 Original-NNTP-Posting-Host: 208.135.53.4 Original-X-Trace: posting.google.com 1047688984 19630 127.0.0.1 (15 Mar 2003 00:43:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 15 Mar 2003 00:43:04 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:111117 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7617 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7617 Javier, I had hacked the recentf.el so that it takes into account the file-name-history variable. Thus all files opened using the find-file (and it's variants) also get added to the recent files list. My changes were top of the following version of recentf.el : ;; Author: David Ponce ;; Created: July 19 1999 ;; Keywords: customization Here are the changed defuns: (defun recentf-add-file (filename) "Add or move FILENAME at the beginning of `recentf-list'. Does nothing if FILENAME matches one of the `recentf-exclude' regexps." (let ((filename (expand-file-name filename))) (when (recentf-include-p filename) (setq recentf-list (cons filename (delete filename recentf-list))) (setq file-name-history (cons filename (delete filename file-name-history))) (setq recentf-update-menu-p t)))) : : (defun recentf-find-file (filename) "Edit file FILENAME using `find-file'. If FILENAME is not readable it is removed from `recentf-list'." (if (file-readable-p filename) (progn (find-file filename) (setq file-name-history (cons filename file-name-history)) ) (progn (message "File `%s' not found." filename) (setq recentf-list (delete filename recentf-list)) (setq recentf-update-menu-p t)))) : : (defun recentf-add-file (filename) "Add or move FILENAME at the beginning of `recentf-list'. Does nothing if FILENAME matches one of the `recentf-exclude' regexps." (let ((filename (expand-file-name filename))) (when (recentf-include-p filename) (setq recentf-list (cons filename (delete filename recentf-list))) (setq file-name-history (cons filename (delete filename file-name-history))) (setq recentf-update-menu-p t)))) HTH, sandip "Javier Oviedo" wrote in message news:... > Hello all: > > I really like recentf.el and use it quite frequently. I do however have a > few questions: > 1. Would it be possible to make entries timeout after some period of time? > After a few days or something like that, the list would drop files. > > 2. How does the recentf-list update? Is it possible to have recentf-list > update whenever a new file is opened regardless of which emacs window it is > opened in? > > Example: I have one emacs window open. I then open a second emacs window for > some temporary work. I would like the recentf-list to update and show the > file(from second window) in the original window list. Is this possible? > > > > Thanks In Advance.