(require 'notmuch-lib)
(require 'notmuch-hello)
+(eval-and-compile
+ (unless (fboundp 'window-body-width)
+ ;; Compatibility for Emacs pre-24
+ (defalias 'window-body-width 'window-width)))
+
;;;###autoload
(defun notmuch-jump-search ()
"Jump to a saved search by shortcut key.
(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)))))
(exit-minibuffer))))
map))
-(unless (fboundp 'window-body-width)
- ;; Compatibility for Emacs pre-24
- (defun window-body-width (&optional window)
- (let ((edges (window-inside-edges window)))
- (- (caddr edges) (car edges)))))
+;;
+
+(provide 'notmuch-jump)