unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <ecinmn@alcisp.com>
Subject: Re: recentf-mode works 'by hand' but not if started from .emacs
Date: Fri, 12 Jan 2007 18:09:57 -0600	[thread overview]
Message-ID: <60aef$45a82373$49f209d$16398@DIALUPUSA.NET> (raw)
In-Reply-To: 1168614875.355310.217590@q2g2000cwa.googlegroups.com


<roland.rau@gmail.com> 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

  reply	other threads:[~2007-01-13  0:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12 15:14 recentf-mode works 'by hand' but not if started from .emacs roland.rau
2007-01-13  0:09 ` B. T. Raven [this message]
2007-01-15 17:40   ` Roland Rau
2007-01-15  7:38 ` Greg Bognar
2007-01-15 17:41   ` Roland Rau
2007-01-15 20:40     ` Greg Bognar
2007-01-15 23:44       ` Roland Rau
2007-01-16  3:22         ` Greg Bognar
2007-01-16 15:20           ` Roland Rau
2007-01-16 16:53             ` rgb
2007-01-16 17:21               ` Roland Rau
2007-01-16 18:05                 ` rgb
2007-01-16 18:48                   ` Drew Adams
2007-01-16 20:08                   ` Roland Rau
2007-01-17  4:29                     ` Greg Bognar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='60aef$45a82373$49f209d$16398@DIALUPUSA.NET' \
    --to=ecinmn@alcisp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).