emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undo weirdness with insert-file-contents


From: martin rudalics
Subject: Re: undo weirdness with insert-file-contents
Date: Thu, 28 Feb 2008 20:31:48 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

I recommend you compile your Emacs with -DUSE_LISP_UNION_TYPE so the
compiler will explain to you where you're going wrong: XCAR (tem) is
a Lisp_Object, not an integer, so it cannot be compared with ==, but
only with EQ (which doesn't strike me as particularly non-intelligent in
this instance).

Indeed.  Miles please try to debug with the attached patch instead.
*** fileio.c.~1.602.~   Thu Feb 14 20:41:44 2008
--- fileio.c    Thu Feb 28 20:21:18 2008
***************
*** 4674,4680 ****
  
        /* Save old undo list and don't record undo for decoding. */
        old_undo = current_buffer->undo_list;
-       current_buffer->undo_list = Qt;
  
        if (NILP (replace))
        {
--- 4674,4679 ----

reply via email to

[Prev in Thread] Current Thread [Next in Thread]