From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Bognar Newsgroups: gmane.emacs.help Subject: Re: recentf-mode works 'by hand' but not if started from .emacs Date: Mon, 15 Jan 2007 22:22:45 -0500 Organization: Harvard University Message-ID: References: <1168614875.355310.217590@q2g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1168918856 25382 80.91.229.12 (16 Jan 2007 03:40:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2007 03:40:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 16 04:40:54 2007 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 1H6fBs-0004Nb-LG for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 04:40:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6fBr-0007gV-Kb for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jan 2007 22:40:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!elk.ncren.net!news.purdue.edu!purdue!news.harvard.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: dhcp-186-23.harvard.edu Original-X-Trace: plato.harvard.edu 1168917765 22723 128.103.186.23 (16 Jan 2007 03:22:45 GMT) Original-X-Complaints-To: news@plato.harvard.edu Original-NNTP-Posting-Date: Tue, 16 Jan 2007 03:22:45 +0000 (UTC) User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Original-Xref: shelby.stanford.edu gnu.emacs.help:144747 Original-To: help-gnu-emacs@gnu.org 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 Xref: news.gmane.org gmane.emacs.help:40351 Archived-At: On Mon, 15 Jan 2007 18:44:14 -0500, Roland Rau wrote: > Greg Bognar wrote: >> On Mon, 15 Jan 2007 12:41:00 -0500, Roland Rau wrote: >> >>> Greg Bognar wrote: >>>> I have this: >>>> >>>> (recentf-mode 1) >>>> (setq recentf-save-file "~/.Emacs/.recentfiles" >>>> recentf-max-menu-items 18 >>>> recentf-menu-filter 'recentf-show-basenames-ascending) >>>> (load recentf-save-file) >>>> >> Why do you want to bind it to any key? You should just put the code in >> your .emacs, and use the submenu of the file menu to open recent files. >> Does that work? > > When I included the aforementioned code snipped in my .emacs file, I had > the same behavior again as I had in my initial post. So I decided to map > it to one key and then, surprisingly, everything works... Do you have the file that holds the list of recent files, that is, ~/.Emacs/.recentfiles (or whatever you set that variable or, if you don't set it, ~/.recentf, which I think is that default)? Have you modified the menus? What happens if you run Emacs with an ~/.emacs which only contains the line (recentf-mode 1)? Do you get the submenu in the File menu?