emacs-devel
[Top][All Lists]
Advanced

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

Re: master 5892b4db8de 2/3: Convert dictionary-mode to define-derived-mo


From: Stefan Kangas
Subject: Re: master 5892b4db8de 2/3: Convert dictionary-mode to define-derived-mode
Date: Wed, 16 Aug 2023 21:45:57 +0200

Visuwesh <visuweshm@gmail.com> writes:

> I believe the following function should be faster
>
>     (defun dictionary--count-mode-buffers ()
>       "Return the number of buffers that "
>       (seq-reduce (lambda (count buf)
>                     (if (provided-mode-derived-p (buffer-local-value 
> 'major-mode buf)
>                                                  'dictionary-mode)
>                         (+ count 1)
>                       count))
>                   (buffer-list)
>                   0))

Thanks, pushed to master (commit d96dd127e39).



reply via email to

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