From: Carl Worth Date: Tue, 27 Apr 2010 01:17:06 +0000 (-0700) Subject: emacs: Remove the notmuch-hellow-jump-to-search variable. X-Git-Tag: 0.3~30 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=sidebyside;h=1c17dda5d5443aba22a115d0ac16d3e162c1a65f;p=notmuch emacs: Remove the notmuch-hellow-jump-to-search variable. Instead, make notmuch-hello unconditionally jump to the first widget in the buffer. By default this will be the search bar anyway. --- diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 1b33ef75..033a30a9 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -64,12 +64,6 @@ "Background colour for the notmuch logo." :group 'notmuch) -(defcustom notmuch-hello-jump-to-search nil - "Whether `notmuch-hello' should always jump to the search -field." - :type 'boolean - :group 'notmuch) - (defvar notmuch-hello-url "http://notmuchmail.org" "The `notmuch' web site.") @@ -370,9 +364,9 @@ diagonal." (if final-target-pos (goto-char final-target-pos) - (if notmuch-hello-jump-to-search - (notmuch-hello-goto-search) - (goto-char (point-min)))))) + (progn + (goto-char (point-min)) + (widget-forward 1))))) ;;