Hi,
I'm trying to use desktop.el. It is in my share/emacs/21.1/lisp dir.
I can't M-x to any of it's functions without editing my .emacs file
to load it first, right?
So I edit my .emacs.
When I add these lines at the bottom of my .emacs file,
(desktop-load-default)
(desktop-read)
And do C-x C-e, I get this:
Debugger entered--Lisp error: (error "too many arguments")
(defvar desktop-buffer-handlers (\` (desktop-buffer-dired
desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) "*List of
functions to call in order to create a buffer. The functions \n are
called without parameters but may access the the major mode as " mam ",
\n the file name as " fn ", the buffer name as " bn ", the default
directory as \n " dd ". If some function returns non-nil no further
functions are called. \n If the function returns t then the buffer
is considered created.")
eval-buffer(#<buffer *load*<3>> nil "desktop" nil t)
load-with-code-conversion("/var/local/jdee2.9/share/emacs/site-lisp/desktop.el"
"desktop" nil nil)
(desktop-read)
eval((desktop-read))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
recursive-edit()
byte-code("�!^� ^� !^\nf?�ed\"Vf4eb^��y^`db^��Zy^\f`|^)�c^eb^��
!^� ^ @�=fK���\"^� ^��!^�����!^S� ^,�?" [debugger-buffer
debugger-args noninteractive debugger-batch-max-lines middlestart
buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer
count-lines 2 "...\n" message buffer-string kill-emacs debug
backtrace-debug 3 t debugger-reenable "" nil recursive-edit
standard-output inhibit-trace] 3)
debug(error (error "too many arguments"))
(defvar desktop-buffer-handlers (\` (desktop-buffer-dired
desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) "*List of
functions to call in order to create a buffer. The functions \n are
called without parameters but may access the the major mode as " mam ",
\n the file name as " fn ", the buffer name as " bn ", the default
directory as \n " dd ". If some function returns non-nil no further
functions are called. \n If the function returns t then the buffer
is considered created.")
eval-buffer(#<buffer *load*<2>> nil "desktop" nil t)
load-with-code-conversion("/var/local/jdee2.9/share/emacs/site-lisp/desktop.el"
"desktop" nil nil)
(desktop-read)
eval((desktop-read))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
recursive-edit()
byte-code("�!^� ^� !^\nf?�ed\"Vf4eb^��y^`db^��Zy^\f`|^)�c^eb^��
!^� ^ @�=fK���\"^� ^��!^�����!^S� ^,�?" [debugger-buffer
debugger-args noninteractive debugger-batch-max-lines middlestart
buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer
count-lines 2 "...\n" message buffer-string kill-emacs debug
backtrace-debug 3 t debugger-reenable "" nil recursive-edit
standard-output inhibit-trace] 3)
debug(error (error "too many arguments"))
(defvar desktop-buffer-handlers (\` (desktop-buffer-dired
desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) "*List of
functions to call in order to create a buffer. The functions \n are
called without parameters but may access the the major mode as " mam ",
\n the file name as " fn ", the buffer name as " bn ", the default
directory as \n " dd ". If some function returns non-nil no further
functions are called. \n If the function returns t then the buffer
is considered created.")
eval-buffer(#<buffer *load*> nil "desktop" nil t)
load-with-code-conversion("/var/local/jdee2.9/share/emacs/site-lisp/desktop.el"
"desktop" nil t)
require(desktop)
eval((require (quote desktop)))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
When I add (require 'desktop) at the bottom of .emacs,
I get this:
Debugger entered--Lisp error: (error "too many arguments")
(defvar desktop-buffer-handlers (\` (desktop-buffer-dired
desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) "*List of
functions to call in order to create a buffer. The functions \n are
called without parameters but may access the the major mode as " mam ",
\n the file name as " fn ", the buffer name as " bn ", the default
directory as \n " dd ". If some function returns non-nil no further
functions are called. \n If the function returns t then the buffer
is considered created.")
eval-buffer(#<buffer *load*<5>> nil "desktop" nil t)
load-with-code-conversion("/var/local/jdee2.9/share/emacs/site-lisp/desktop.el"
"desktop" nil t)
require(desktop)
eval((require (quote desktop)))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
recursive-edit()
byte-code("�!^� ^� !^\nf?�ed\"Vf4eb^��y^`db^��Zy^\f`|^)�c^eb^��
!^� ^ @�=fK���\"^� ^��!^�����!^S� ^,�?" [debugger-buffer
debugger-args noninteractive debugger-batch-max-lines middlestart
buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer
count-lines 2 "...\n" message buffer-string kill-emacs debug
backtrace-debug 3 t debugger-reenable "" nil recursive-edit
standard-output inhibit-trace] 3)
debug(error (error "too many arguments"))
(defvar desktop-buffer-handlers (\` (desktop-buffer-dired
desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) "*List of
functions to call in order to create a buffer. The functions \n are
called without parameters but may access the the major mode as " mam ",
\n the file name as " fn ", the buffer name as " bn ", the default
directory as \n " dd ". If some function returns non-nil no further
functions are called. \n If the function returns t then the buffer
is considered created.")
eval-buffer(#<buffer *load*<4>> nil "desktop" nil t)
load-with-code-conversion("/var/local/jdee2.9/share/emacs/site-lisp/desktop.el"
"desktop" nil t)
require(desktop)
eval((require (quote desktop)))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
recursive-edit()
byte-code("�!^� ^� !^\nf?�ed\"Vf4eb^��y^`db^��Zy^\f`|^)�c^eb^��
!^� ^ @�=fK���\"^� ^��!^�����!^S� ^,�?" [debugger-buffer
debugger-args noninteractive debugger-batch-max-lines middlestart
buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer
count-lines 2 "...\n" message buffer-string kill-emacs debug
backtrace-debug 3 t debugger-reenable "" nil recursive-edit
standard-output inhibit-trace] 3)
debug(error (error "too many arguments"))
(defvar desktop-buffer-handlers (\` (desktop-buffer-dired
desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) "*List of
functions to call in order to create a buffer. The functions \n are
called without parameters but may access the the major mode as " mam ",
\n the file name as " fn ", the buffer name as " bn ", the default
directory as \n " dd ". If some function returns non-nil no further
functions are called. \n If the function returns t then the buffer
is considered created.")
eval-buffer(#<buffer *load*<3>> nil "desktop" nil t)
load-with-code-conversion("/var/local/jdee2.9/share/emacs/site-lisp/desktop.el"
"desktop" nil nil)
(desktop-read)
eval((desktop-read))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
recursive-edit()
byte-code("�!^� ^� !^\nf?�ed\"Vf4eb^��y^`db^��Zy^\f`|^)�c^eb^��
!^� ^ @�=fK���\"^� ^��!^�����!^S� ^,�?" [debugger-buffer
debugger-args noninteractive debugger-batch-max-lines middlestart
buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer
count-lines 2 "...\n" message buffer-string kill-emacs debug
backtrace-debug 3 t debugger-reenable "" nil recursive-edit
standard-output inhibit-trace] 3)
debug(error (error "too many arguments"))
(defvar desktop-buffer-handlers (\` (desktop-buffer-dired
desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) "*List of
functions to call in order to create a buffer. The functions \n are
called without parameters but may access the the major mode as " mam ",
\n the file name as " fn ", the buffer name as " bn ", the default
directory as \n " dd ". If some function returns non-nil no further
functions are called. \n If the function returns t then the buffer
is considered created.")
eval-buffer(#<buffer *load*<2>> nil "desktop" nil t)
load-with-code-conversion("/var/local/jdee2.9/share/emacs/site-lisp/desktop.el"
"desktop" nil nil)
(desktop-read)
eval((desktop-read))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
recursive-edit()
byte-code("�!^� ^� !^\nf?�ed\"Vf4eb^��y^`db^��Zy^\f`|^)�c^eb^��
!^� ^ @�=fK���\"^� ^��!^�����!^S� ^,�?" [debugger-buffer
debugger-args noninteractive debugger-batch-max-lines middlestart
buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer
count-lines 2 "...\n" message buffer-string kill-emacs debug
backtrace-debug 3 t debugger-reenable "" nil recursive-edit
standard-output inhibit-trace] 3)
debug(error (error "too many arguments"))
(defvar desktop-buffer-handlers (\` (desktop-buffer-dired
desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) "*List of
functions to call in order to create a buffer. The functions \n are
called without parameters but may access the the major mode as " mam ",
\n the file name as " fn ", the buffer name as " bn ", the default
directory as \n " dd ". If some function returns non-nil no further
functions are called. \n If the function returns t then the buffer
is considered created.")
eval-buffer(#<buffer *load*> nil "desktop" nil t)
load-with-code-conversion("/var/local/jdee2.9/share/emacs/site-lisp/desktop.el"
"desktop" nil t)
require(desktop)
eval((require (quote desktop)))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
------------
Ugh. Any ideas? Thanks,
Heather
--
Heather M. Buch
Java Analyst Programmer II
Information Systems
[EMAIL PROTECTED]
(617) 253-9801
N42-240K