]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Remove the notmuch-hellow-jump-to-search variable.
authorCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 01:17:06 +0000 (18:17 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 01:40:55 +0000 (18:40 -0700)
Instead, make notmuch-hello unconditionally jump to the first widget
in the buffer. By default this will be the search bar anyway.

emacs/notmuch-hello.el

index 1b33ef75ac22e5b687ecf7802efded4982d2360c..033a30a93189e5e86a4e3575c16e152388b1e2bb 100644 (file)
   "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)))))
 
 ;;