From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,45d0bab0860e906f,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-25 23:21:23 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!nntp.gmd.de!Germany.EU.net!EU.net!uknet!lyra.csx.cam.ac.uk!doc.ic.ac.uk!cc.ic.ac.uk!news.cc.ic.ac.uk!luchini From: luchini@ic.ac.uk (Dr Marco Luchini) Subject: OSF2.0 emacs has problems with byte-compile Message-ID: Nntp-Posting-Host: femto.ma Organization: Department of Mathematics, Imperial College, London, SW7 2BZ, UK Date: 19 Apr 94 15:25:51 OK, I've narrowed the problem down to a much more basic one. I have singularly failed to byte-compile almost any elisp code using the emacs with OSF2.0. Specifically: [femto|77> emacs -batch -q -f batch-byte-compile prefix-regn.el Compiling /home/luchini/lisp/prefix-regn.el... Compiling /home/luchini/lisp/prefix-regn.el (prefix-region)... >>Error occurred processing prefix-regn.el: Wrong type argument ((symbolp 0)) Wrong type argument: symbolp, 0 [femto|78> which emacs /usr/bin/emacs [femto|79> more prefix-regn.el ;;; prefix-rgn.el ;;; ;;; Obtained from the elisp archive at tut.cis.ohio-state.edu on Sep. 19, 1991. (provide 'prefix-region) (defun prefix-region (begin end prefix) "Prefix every line in the region between BEGIN and END with the string PREFIX ." (interactive "r\nsPrefix: ") (save-excursion (save-restriction (narrow-to-region begin end) (goto-char (point-min)) (while (re-search-forward "^" nil t) (replace-match prefix t t))))) prefix-region.el is the smallest lisp file which I could find which does this. The same error (Wrong type argument: symbolp,0) occurs with every other bit of elisp I try to byte-compile. The debugger shows it occurring in different routines though. (a) Can anybody reproduce this or am I having nightmares? (b) Does anybody know what has happened to emacs? It has just occurred to me to try byte-compiling the elisp files that come with the distribution. The result is in two categories: (1) [femto|115> emacs -batch -q -f batch-byte-compile /usr/lib/emacs/lisp/yow.el Compiling /usr/lib/emacs/lisp/yow.el... Compiling /usr/lib/emacs/lisp/yow.el (yow)... >>Error occurred processing /usr/lib/emacs/lisp/yow.el: Wrong type argument ((symbolp 0)) Wrong type argument: symbolp, 0 or (2) [femto|120> emacs -batch -q -f batch-byte-compile /usr/lib/emacs/lisp/fortran.el Compiling /usr/lib/emacs/lisp/fortran.el... Compiling /usr/lib/emacs/lisp/fortran.el (fortran-mode)... Fatal error (11).Segmentation fault (core dumped) It therefore seems that the elc files were not produced with the emacs that gets distributed. It is possible that they are still the ones produced by OSF1.2 where everything was working OK. Or is there something deeply screwed up with my installation? Thanks, Marco -- ------------------------------------------------------------------------- Marco Luchini Internet : m.luchini@ic.ac.uk Department of Mathematics Telephone: +44 71 589 5111 x5765 Imperial College Fax: +44 71 225 8361 London SW7 2BZ, UK -------------------------------------------------------------------------