mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: Autoload notmuch-jump-search only once
This function is being autoloaded using an autoload cookie, so it shouldn't additionally be autoloaded using an `autoload' form. When building libraries we don't actually load the autoloads file and dropping the `autoload' form results in an error, which reveals a so far unspecified dependency: `notmuch-tree' needs `notmuch-jump'. Before this commit compiling (or even just loading) `notmuch-tree' resulted in `notmuch-jump' being loaded because the former requires `notmuch-lib', which autoloaded `notmuch-jump-search'. The bug was that this dependency was not explicitly specified, which we fix by adding the respective `require' form.
This commit is contained in:
parent
e63f37a4a9
commit
c2e9ec17fd
2 changed files with 1 additions and 3 deletions
|
@ -35,9 +35,6 @@
|
||||||
(defconst notmuch-emacs-version "unknown"
|
(defconst notmuch-emacs-version "unknown"
|
||||||
"Placeholder variable when notmuch-version.el[c] is not available."))
|
"Placeholder variable when notmuch-version.el[c] is not available."))
|
||||||
|
|
||||||
(autoload 'notmuch-jump-search "notmuch-jump"
|
|
||||||
"Jump to a saved search by shortcut key." t)
|
|
||||||
|
|
||||||
(defgroup notmuch nil
|
(defgroup notmuch nil
|
||||||
"Notmuch mail reader for Emacs."
|
"Notmuch mail reader for Emacs."
|
||||||
:group 'mail)
|
:group 'mail)
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
(require 'notmuch-show)
|
(require 'notmuch-show)
|
||||||
(require 'notmuch-tag)
|
(require 'notmuch-tag)
|
||||||
(require 'notmuch-parser)
|
(require 'notmuch-parser)
|
||||||
|
(require 'notmuch-jump)
|
||||||
|
|
||||||
(declare-function notmuch-search "notmuch"
|
(declare-function notmuch-search "notmuch"
|
||||||
(&optional query oldest-first target-thread target-line))
|
(&optional query oldest-first target-thread target-line))
|
||||||
|
|
Loading…
Reference in a new issue