X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-jump.el;h=5eb0949be0c3757f2e26c84ad6bb3c42b978062b;hp=05bbce5eaeadb8d8866749059c90b13b9d76e867;hb=c1845bf0a430b1d0bda6703246a1bcc8962175ab;hpb=f92342cb76fa3e1fa2f1c2e727f8ddf1a5c21b7d diff --git a/emacs/notmuch-jump.el b/emacs/notmuch-jump.el index 05bbce5e..5eb0949b 100644 --- a/emacs/notmuch-jump.el +++ b/emacs/notmuch-jump.el @@ -25,6 +25,10 @@ (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. @@ -165,9 +169,3 @@ buffer." (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)))))