X-Git-Url: https://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/c1845bf0a430b1d0bda6703246a1bcc8962175ab..694c7b9ba7c83eba10105f0f151884dcdb90426d:/emacs/notmuch-jump.el diff --git a/emacs/notmuch-jump.el b/emacs/notmuch-jump.el index 5eb0949b..20e24b25 100644 --- a/emacs/notmuch-jump.el +++ b/emacs/notmuch-jump.el @@ -25,9 +25,10 @@ (require 'notmuch-lib) (require 'notmuch-hello) -(unless (fboundp 'window-body-width) - ;; Compatibility for Emacs pre-24 - (defalias 'window-body-width 'window-width)) +(eval-and-compile + (unless (fboundp 'window-body-width) + ;; Compatibility for Emacs pre-24 + (defalias 'window-body-width 'window-width))) ;;;###autoload (defun notmuch-jump-search () @@ -51,7 +52,7 @@ fast way to jump to a saved search from anywhere in Notmuch." (case (plist-get saved-search :sort-order) (newest-first nil) (oldest-first t) - (otherwise (default-value notmuch-search-oldest-first))))) + (otherwise (default-value 'notmuch-search-oldest-first))))) (push (list key name `(lambda () (notmuch-search ',query ',oldest-first))) action-map))))) @@ -169,3 +170,7 @@ buffer." (setq notmuch-jump--action ',(third action)) (exit-minibuffer)))) map)) + +;; + +(provide 'notmuch-jump)