unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Wrong type argument:listp, \.\.\.
@ 2005-04-26 17:42 Frank Fredstone
  2005-04-27 16:11 ` Rob Walker
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Fredstone @ 2005-04-26 17:42 UTC (permalink / raw)


I'm using emacs 22.0.50.1. Usually, (after running and quitting gnus,
maybe) I get an error when trying to exit emacs:

Wrong type argument:listp, \.\.\.

Debugging on error gets me:

Debugger entered--Lisp error: (wrong-type-argument listp \.\.\.)
  save-place-forget-unreadable-files()
  save-place-alist-to-file()
  save-place-kill-emacs-hook()
  run-hooks(kill-emacs-hook)
  kill-emacs()
  save-buffers-kill-emacs(nil)
  call-interactively(save-buffers-kill-emacs)

I don't know off hand what to look for. Do you know a solution?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Wrong type argument:listp, \.\.\.
  2005-04-26 17:42 Wrong type argument:listp, \.\.\ Frank Fredstone
@ 2005-04-27 16:11 ` Rob Walker
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Walker @ 2005-04-27 16:11 UTC (permalink / raw)


Try adding this to your .emacs:

(defadvice save-place-alist-to-file
  (around save-place-alist-to-file-force-print-length activate)
  (let ((print-level nil)
        (print-length nil))
    ad-do-it))

Whats happening is that something is setting print-level and
print-length and not clearing them when it's finished (I usually find
it's the elisp debugger).  When save-place writes it's data, it gets
printed out wrongly (i.e. not valid elisp).  This hack forces
save-place to use the correct values of print-level & print-length.

Rob

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-27 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-26 17:42 Wrong type argument:listp, \.\.\ Frank Fredstone
2005-04-27 16:11 ` Rob Walker

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).