[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: |
John Shahid |
Subject: |
Re: [Emacs-diffs] emacs-26 35e0305: Avoid turning on the global-minor-mode recursively |
Date: |
Tue, 10 Jul 2018 20:07:40 +0000 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
Stefan Monnier <address@hidden> writes:
>> + (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
Should I submit a patch ?