Posted on 2007-12-07 22:30:38-08 by klevin
Initialization error with XEmacs
After unrolling Sepia 0.95_02 into my src directory, I added the following to my ~/.xemacs/init.el file, as specified in the Sepia.html file:
(add-to-list 'load-path "/home/nromer/src/Sepia-0.95_02") (setq sepia-perl5lib (list (expand-file-name "/home/nromer/src/Sepia-0.95_02/lib"))) (defalias 'perl-mode 'sepia-mode) (require 'sepia)
When I start up XEmacs, I get the following error:
(1) (initialization/error) An error has occurred while loading /home/nromer/.xemacs/init.el: Wrong number of arguments: require, 3
Ideas?
Direct Responses: 6642 | 6643 | Write a response
Posted on 2007-12-07 22:40:52-08 by seano in response to 6641
Re: Initialization error with XEmacs
Yes, apparently XEmacs doesn't have the optional "noerror" and/or "filename" arguments to require. This is easy to fix, so I'll do so in the next release.
Direct Responses: Write a response
Posted on 2007-12-07 23:36:34-08 by seano in response to 6641
Re: Initialization error with XEmacs
Please try the following patch, and tell me what breaks next (this would be easier by email, btw).
--- sepia.el 29 Nov 2007 20:04:25 -0000 1.28 +++ sepia.el 7 Dec 2007 23:57:01 -0000 @@ -21,9 +21,9 @@ (require 'gud) (require 'cl) ;; try optional modules, but don't bitch if we fail: -(require 'sepia-w3m nil t) -(require 'sepia-tree nil t) -(require 'sepia-ido nil t) +(ignore-errors (require 'sepia-w3m)) +(ignore-errors (require 'sepia-tree)) +(ignore-errors (require 'sepia-ido)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Comint communication
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.