aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--emacs/notmuch-jump.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/emacs/notmuch-jump.el b/emacs/notmuch-jump.el
index 0193f8cd..05ec57ec 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 ()