Re: weird paths in notmuch database
[notmuch-archives.git] / 33 / 39a45696f9086a0822230e14a43d248da9a43f
1 Return-Path: <too@nixu.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 4B7BD429E21\r
6         for <notmuch@notmuchmail.org>; Wed, 11 Jan 2012 06:50:03 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id HeKxkEeO9uhv for <notmuch@notmuchmail.org>;\r
16         Wed, 11 Jan 2012 06:50:01 -0800 (PST)\r
17 Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 6011C431FB6\r
21         for <notmuch@notmuchmail.org>; Wed, 11 Jan 2012 06:50:01 -0800 (PST)\r
22 Received: from pps.filterd (mail-gw3 [127.0.0.1])\r
23         by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id q0BEnlUm030148;\r
24         Wed, 11 Jan 2012 16:49:47 +0200\r
25 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
26         by mail-gw3.nixu.fi with ESMTP id 114cs0yvd2-1\r
27         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
28         Wed, 11 Jan 2012 16:49:47 +0200\r
29 Received: from taco2.nixu.fi (localhost [127.0.0.1])\r
30         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
31         q0BEnkfb025293\r
32         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);\r
33         Wed, 11 Jan 2012 16:49:46 +0200\r
34 Received: (from too@localhost)\r
35         by taco2.nixu.fi (8.14.3/8.14.3/Submit) id q0BEnkiL025292;\r
36         Wed, 11 Jan 2012 16:49:46 +0200\r
37 From: Tomi Ollila <tomi.ollila@iki.fi>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH] make (kill-emacs) from emacsclient work with emacs 23.(1|2)\r
40 Date: Wed, 11 Jan 2012 16:49:38 +0200\r
41 Message-Id: <1326293378-25248-1-git-send-email-tomi.ollila@iki.fi>\r
42 X-Mailer: git-send-email 1.7.7.3\r
43 In-Reply-To: <87d3b01qus.fsf@qmul.ac.uk>\r
44 References: <87d3b01qus.fsf@qmul.ac.uk>\r
45 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110,\r
46  1.0.211,       0.0.0000        definitions=2012-01-11_03:2012-01-11, 2012-01-11,\r
47         1970-01-01 signatures=0\r
48 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0\r
49         ipscore=0 suspectscore=1\r
50         phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0\r
51         reason=mlx\r
52         scancount=1 engine=6.0.2-1012030000 definitions=main-1201110112\r
53 Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Wed, 11 Jan 2012 14:50:03 -0000\r
67 \r
68 emacsclient --eval '(kill-emacs)' doesn't work without interactive\r
69 user input. By removing the hook which asks user input makes things\r
70 work well enough in our test cases.\r
71 ---\r
72  test/test-lib.el |   13 +++++++++++++\r
73  1 files changed, 13 insertions(+), 0 deletions(-)\r
74 \r
75 diff --git a/test/test-lib.el b/test/test-lib.el\r
76 index 3b817c3..c52854e 100644\r
77 --- a/test/test-lib.el\r
78 +++ b/test/test-lib.el\r
79 @@ -26,6 +26,19 @@\r
80  ;; `read' call.\r
81  (setq read-file-name-function (lambda (&rest _) (read)))\r
82  \r
83 +;; Work around a bug in emacs 23.1 and emacs 23.2 which prevents\r
84 +;; noninteractive (kill-emacs) from emacsclient.\r
85 +(when (and (= emacs-major-version 23) (< emacs-minor-version 3))\r
86 +  (require 'server)\r
87 +  (fset 'server-start-real (symbol-function 'server-start))\r
88 +  (defun server-start (&optional leave-dead)\r
89 +    (interactive "P")\r
90 +    (let ((hc (length kill-emacs-hook)))\r
91 +      (unwind-protect\r
92 +         (server-start-real leave-dead)\r
93 +       (if (> (length kill-emacs-hook) hc)\r
94 +           (setq kill-emacs-hook (cdr kill-emacs-hook)))))))\r
95 +\r
96  (defun notmuch-test-wait ()\r
97    "Wait for process completion."\r
98    (while (get-buffer-process (current-buffer))\r
99 -- \r
100 1.7.7.3\r
101 \r