]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
Merge branch 'release'
authorDavid Bremner <david@tethera.net>
Mon, 23 Nov 2015 12:40:40 +0000 (08:40 -0400)
committerDavid Bremner <david@tethera.net>
Mon, 23 Nov 2015 12:40:40 +0000 (08:40 -0400)
Merge bugfixes applied directly to release

emacs/notmuch-hello.el
emacs/notmuch-lib.el

index 8bde808fae6cc09fffb7631be2bf8f3fb67aec4c..b42e0f24148a01201c12468e584e20d0740649f8 100644 (file)
@@ -652,8 +652,12 @@ with `notmuch-hello-query-counts'."
 
 (defvar notmuch-hello-mode-map
   (let ((map (if (fboundp 'make-composed-keymap)
-                ;; Inherit both widget-keymap and notmuch-common-keymap
-                (make-composed-keymap widget-keymap)
+                ;; Inherit both widget-keymap and
+                ;; notmuch-common-keymap. We have to use
+                ;; make-sparse-keymap to force this to be a new
+                ;; keymap (so that when we modify map it does not
+                ;; modify widget-keymap).
+                (make-composed-keymap (list (make-sparse-keymap) widget-keymap))
               ;; Before Emacs 24, keymaps didn't support multiple
               ;; inheritance,, so just copy the widget keymap since
               ;; it's unlikely to change.
index 1c3a9fe1865f13048c23dbc1b00b702cf15f1081..89c01a578ccdfe331599f21fc3174d1e15807923 100644 (file)
@@ -243,8 +243,9 @@ depending on the value of `notmuch-poll-script'."
   (interactive)
   (if (stringp notmuch-poll-script)
       (unless (string= notmuch-poll-script "")
-       (call-process notmuch-poll-script nil nil))
-    (call-process notmuch-command nil nil nil "new")))
+       (unless (equal (call-process notmuch-poll-script nil nil) 0)
+         (error "Notmuch: poll script `%s' failed!" notmuch-poll-script)))
+    (notmuch-call-notmuch-process "new")))
 
 (defun notmuch-bury-or-kill-this-buffer ()
   "Undisplay the current buffer.