From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: recentf-mode works 'by hand' but not if started from .emacs Date: Fri, 12 Jan 2007 18:09:57 -0600 Organization: UseNetServer.com Message-ID: <60aef$45a82373$49f209d$16398@DIALUPUSA.NET> References: <1168614875.355310.217590@q2g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168648858 27691 80.91.229.12 (13 Jan 2007 00:40:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Jan 2007 00:40:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 13 01:40:56 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 1H5Wx4-0006DO-8q for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jan 2007 01:40:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5Wx4-00038g-5a for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jan 2007 19:40:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 81 Original-X-Trace: 60aef45a82373a13a853816398 Original-Xref: shelby.stanford.edu gnu.emacs.help:144665 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:40271 Archived-At: wrote in message news:1168614875.355310.217590@q2g2000cwa.googlegroups.com... > Dear all, > > I wanted to enable the recentf-mode in GNU Emacs. > If I do > M-x recentf-mode > it works fine. > If I write down > (recentf-mode t) > in a Lisp Interaction Bufffer and 'C-x,C-e' it, it also works. > > If I put, however, the same code at the end of my .emacs file > (recentf-mode t) > I get an error (without it, I have no errors during startup). > > Can somebody tell me what I did wrong? > Thanks, > Roland > > As usual, I guess the following information is required: > a) Emacs version > (version) > "GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600) > of 2006-08-30 on W2ONE" > b) Error Protocol (from *Messages*) > (C:\rolandprogs\Emacs\emacs\bin\emacs.exe > --load=C:/rolandprogs/Emacs/EmacsW32/bin/gnuservauto.el) > Loading encoded-kb...done > Adding c:/rolandprogs/Emacs/EmacsW32/lisp/ to load-path > Loading c:/rolandprogs/auctex/auctex-11.14/tex-site.el (source)...done > Loading c:/rolandprogs/ess/ess-5.3.1/lisp/ess-site.el (source)... > Loading regexp-opt...done > enabling speedbar support > Loading c:/rolandprogs/ess/ess-5.3.1/lisp/ess-site.el (source)...done > Loading pc-select...done > Loading delsel...done > Loading time...done > Loading c:/HOME/nc.el (source)... > Loading advice...done > Loading c:/HOME/nc.el (source)...done > Loading paren...done > Loading c:/HOME/haskell-site-file.el (source)...done > Loading c:/HOME/recentf.el (source)...done > Loading c:/HOME/.recentf...done > Cleaning up the recentf list... > Loading cl-macs...done > Cleaning up the recentf list...done > > > An error has occurred while loading `c:/HOME/.emacs': > > Wrong type argument: keymapp, nil > > To ensure normal operation, you should investigate and remove the > cause of the error in your initialization file. Start Emacs with > the `--debug-init' option to view a complete error backtrace. > Apparently this variable cannot be set directly, only through the Customize menu or the function (or command) (recentf-mode). I think I set these through Customize but I don't understand the syntax. The function and variable have the same name. Anyway it works: (custom-set-variables ... . '(recentf-max-menu-items 20) '(recentf-max-saved-items 40) '(recentf-mode t nil (recentf)) . . . ) This is in 21.3 but I don't see any major differences in this functionality between vers 21 and 22. Ed