help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: A strange issue with buffer-undo-list


From: Stefan Monnier
Subject: Re: A strange issue with buffer-undo-list
Date: Tue, 23 Feb 2021 23:49:38 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> (defun activate-change-group (handle)
>   "Activate a change group made with `prepare-change-group' (which see)."
>   (dolist (elt handle)
>     (with-current-buffer (car elt)
>       (if (eq buffer-undo-list t)
>         (setq buffer-undo-list nil)
>       ;; [huge comment here]
>         (when (numberp (caar buffer-undo-list)) ;; <--- here
>           (push (cons (caar buffer-undo-list) (caar buffer-undo-list))
>                 buffer-undo-list))))))
>
> I guess that `caar' should be (car-safe (car buffer-undo-list)) or so -
> right?

Yup!


        Stefan




reply via email to

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