]> git.eshelyaron.com Git - emacs.git/commit
Save instantiated gnus-search engines in an alist
authorEric Abrahamsen <eric@ericabrahamsen.net>
Wed, 11 Nov 2020 18:48:37 +0000 (10:48 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Sat, 14 Nov 2020 01:25:46 +0000 (17:25 -0800)
commit31f94e4b1c3dc201646ec436d3e2c477f784ed21
tree9de242880133cc8dd3758fb405e0c49191c787a1
parentbb28f8b9d1ebb4a93c66beca466cb15563075e8c
Save instantiated gnus-search engines in an alist

So we aren't re-instantiating (and potentially configuring) them with
every search.

* lisp/gnus/gnus-search.el (gnus-search-engine-instance-alist): New
variable holding server->engine mapping.
(gnus-search-server-to-engine): See if we've already instantiated this
server. If so, return it. If not, instantiate it and save in the above
variable.
(gnus-search-shutdown): Shutdown function clearing the above alist.
lisp/gnus/gnus-search.el