emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] emacs-26 35e0305: Avoid turning on the global-minor-mo


From: Stefan Monnier
Subject: Re: [Emacs-diffs] emacs-26 35e0305: Avoid turning on the global-minor-mode recursively
Date: Tue, 10 Jul 2018 09:42:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> +         (let ((buffers ,MODE-buffers))
> +           ;; Clear MODE-buffers to avoid scanning the same list of
> +           ;; buffers in recursive calls to MODE-enable-in-buffers.
> +           ;; Otherwise it could lead to infinite recursion.
> +           (setq ,MODE-buffers nil)
> +           (dolist (buf buffers)

Thanks.

BTW, in most other places where we need to "extract the content" of
a worklist like above, we do it with something like:

    (... (prog1 FOO (setq FOO nil)) ...)


-- Stefan



reply via email to

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