Fix byte compiler warning "Warning: the function `window-body-width'
is not known to be defined." by moving our compatibility wrapper
before its use and simplify the definition to a defalias for the old
name of the function.
(require 'notmuch-lib)
(require 'notmuch-hello)
+(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.
(setq notmuch-jump--action ',(third action))
(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)))))