]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-jump.el
test: Test upgrade to ghost messages feature
[notmuch] / emacs / notmuch-jump.el
index 5eb0949be0c3757f2e26c84ad6bb3c42b978062b..05ec57ec5e13aeb2071f5a2a9282ad63bb3af793 100644 (file)
 (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)))))