]> git.notmuchmail.org Git - notmuch/commit
Revert "emacs: notmuch-search: avoid wiping out buffer-local variables"
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 8 Nov 2020 17:49:29 +0000 (18:49 +0100)
committerDavid Bremner <david@tethera.net>
Fri, 25 Dec 2020 18:32:56 +0000 (14:32 -0400)
commit0251cab3ab5021bd085fcbd8602c2f45ee4cdee3
treeb038283edd3284c46897508438719797baa75a62
parent133188837472dacef2ef72ca8416ccd12896c189
Revert "emacs: notmuch-search: avoid wiping out buffer-local variables"

This reverts commit f9fbd1ee3bfd679175d88af403752d87a730349f.

Emacs provides a mechanism for avoiding wiping out buffer-local
variables: marking them as "permanent local", which essentially
means "don't wip out the local value when enabling major-mode".

  (put 'the-variable 'permanent-local t)

See (info "(elisp)Creating Buffer-Local").

Whether refreshing the buffer contents should involve re-enable the
mode is a different question, which should not be decided based on
the fact that we want keep the value of some random variable, not
least because some other (e.g. cache) variables are likely expected
to be wiped.
emacs/notmuch.el