Article View: gnu.emacs.bug
Article #98801Re: sendmail/GNUS/c-mode broken in 18.57
From: Joe Wells
Date: Fri, 01 Mar 1991 19:20
Date: Fri, 01 Mar 1991 19:20
74 lines
3963 bytes
3963 bytes
>>> Sending the first message goes fine: I compose the message and hit
>>> ^C^C to send it. The second time I hit ^Xm, however, I get:
>>>
>>> Wrong type argument: symbolp, 0
>>I have seen something like this in trying to reply out of GNUS.
>>Tonight, with another emacs hacker in attendance, I couldn't reproduce
>>it. So rather than get poor paying him to stand next to my terminal,
>I have the same problem, it happens when you try to reply OR to post.
>It also occurs when we set up an electric-c-mode hook, ala:
>
> (setq c-mode-hook 'elec-c-mode)
>
>The same error message is generated in all 4 cases:
> "Wrong type argument: symbolp 0"
All you guys are using my "kill-fix.el" package. There is a bug in 18.57
such that (buffer-local-variables) returns an alist including an invalid
entry. I'm including my workaround version of kill-fix.el.
--
Joe Wells <jbw@bu.edu>
----------------------------------------------------------------------
;; Enhancement to kill-all-local-variables
;; Copyright (C) 1988 Free Software Foundation, Inc.
;; This file is not officially part of GNU Emacs, but is being donated
;; to the Free Software Foundation.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY. No author or distributor
;; accepts responsibility to anyone for the consequences of using it
;; or for whether it serves any particular purpose or works at all,
;; unless he says so in writing. Refer to the GNU Emacs General Public
;; License for full details.
;; Everyone is granted permission to copy, modify and redistribute
;; GNU Emacs, but only under the conditions described in the
;; GNU Emacs General Public License. A copy of this license is
;; supposed to have been given to you along with GNU Emacs so you
;; can know your rights and responsibilities. It should be in a
;; file named COPYING. Among other things, the copyright notice
;; and this notice must be preserved on all copies.
;; Created by: Joe Wells, jbw@bucsf
;; Created on: 1988?
;; Last modified by: Joe Wells, jbw@bigbird
;; Last modified on: Tue Jan 22 22:02:30 1991
;; Filename: kill-fix.el
;; Purpose: make kill-all-local-variables skip certain variables
;; save the original subr function definition of kill-all-local-variables
(or (fboundp 'original-kill-all-local-variables)
(fset 'original-kill-all-local-variables
(symbol-function 'kill-all-local-variables)))
(defun kill-all-local-variables ()
"Eliminate all the buffer-local variable values of the current
buffer. This buffer will then see the default values of all
variables. NOTE: This function has been modified to ignore
buffer-local variables whose preserved property is non-nil."
(let ((oldvars (buffer-local-variables)))
(original-kill-all-local-variables)
(while oldvars
(let ((var (car (car oldvars))))
(cond ((eq var 0)) ; skip over 18.56 bug
((get var 'preserved)
(make-local-variable var)
(set var (cdr (car oldvars))))))
(setq oldvars (cdr oldvars)))))
(provide 'kill-fix)
Technical Details
Message-ID:
<JBW.91Mar1142003@bigbird.bu.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbageReferences:
<JKH.91Feb11070903@bambam.pcs.com> <JR.91Feb23212421@kaos.com> <JKH.91Feb28215047@meepmeep.pcs.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,ecaca4f5edeb5389 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-03-02 02:24:15 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: jbw@BIGBIRD.BU.EDU (Joe Wells) Newsgroups: gnu.emacs.bug Subject: Re: sendmail/GNUS/c-mode broken in 18.57 Message-ID: <JBW.91Mar1142003@bigbird.bu.edu> Date: 1 Mar 91 19:20:03 GMT References: <JKH.91Feb11070903@bambam.pcs.com> <JR.91Feb23212421@kaos.com> <JKH.91Feb28215047@meepmeep.pcs.com> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: Boston University Computer Science Department Lines: 74 Approved: bug-gnu-emacs@prep.ai.mit.edu