[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undo weirdness with insert-file-contents
From: |
Stefan Monnier |
Subject: |
Re: undo weirdness with insert-file-contents |
Date: |
Thu, 28 Feb 2008 16:35:08 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> 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;
But this patch is clearly problematic, if one believe the comment: it
would cause the generation of undo info during the decoding step.
I understand that this info will be thrown away later, but we don't want
to pay the corresponding price.
Stefan
- undo weirdness with insert-file-contents, Miles Bader, 2008/02/28
- Re: undo weirdness with insert-file-contents, martin rudalics, 2008/02/28
- Re: undo weirdness with insert-file-contents, Miles Bader, 2008/02/28
- Re: undo weirdness with insert-file-contents, martin rudalics, 2008/02/28
- Re: undo weirdness with insert-file-contents, Stefan Monnier, 2008/02/28
- Re: undo weirdness with insert-file-contents, martin rudalics, 2008/02/28
- Re: undo weirdness with insert-file-contents, Miles Bader, 2008/02/28
- Re: undo weirdness with insert-file-contents, martin rudalics, 2008/02/28
- Re: undo weirdness with insert-file-contents,
Stefan Monnier <=
- Re: undo weirdness with insert-file-contents, martin rudalics, 2008/02/28
Re: undo weirdness with insert-file-contents, Glenn Morris, 2008/02/28
Re: undo weirdness with insert-file-contents, Bill Wohler, 2008/02/29