Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 77 / a0ad33604cbe0d63033bc21d757bc4ec40f3ec
1 Return-Path: <tomi.ollila@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 9A83F429E21\r
6         for <notmuch@notmuchmail.org>; Thu, 17 Nov 2011 04:30:27 -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 w-+oL8mnwUpO for <notmuch@notmuchmail.org>;\r
16         Thu, 17 Nov 2011 04:30:24 -0800 (PST)\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\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 C81BF431FD0\r
21         for <notmuch@notmuchmail.org>; Thu, 17 Nov 2011 04:30:23 -0800 (PST)\r
22 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
23         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
24         pAHCUCuQ012847; Thu, 17 Nov 2011 14:30:12 +0200\r
25 From: Tomi Ollila <tomi.ollila@nixu.com>\r
26 To: Tomi Ollila <tomi.ollila@iki.fi>,\r
27         Jameson Graef Rollins <jrollins@finestructure.net>,\r
28         Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org\r
29 Subject: Re: [PATCH 0/9] test: (hopefully) better test prerequisites\r
30 In-Reply-To: <yf64ny3gcu4.fsf@taco2.nixu.fi>\r
31 References: <1321494986-18998-1-git-send-email-dmitry.kurochkin@gmail.com>\r
32         <874ny36rhc.fsf@servo.finestructure.net>\r
33         <yf64ny3gcu4.fsf@taco2.nixu.fi>\r
34 User-Agent: Notmuch/0.9+73~ged20210 (http://notmuchmail.org) Emacs/23.3.1\r
35         (i686-pc-linux-gnu)\r
36 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
37         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
38         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
39 Date: Thu, 17 Nov 2011 14:30:12 +0200\r
40 Message-ID: <yf6zkfvext7.fsf@taco2.nixu.fi>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain; charset=us-ascii\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Thu, 17 Nov 2011 12:30:27 -0000\r
56 \r
57 On Thu, 17 Nov 2011 14:20:19 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
58 \r
59 FIXES INLINE; sorry about the duplication.\r
60 \r
61 > On Thu, 17 Nov 2011 01:14:07 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
62 > > \r
63 > > However, when I tried to test the tests with the patch applied I ran\r
64 > > into one problem.  If I try to run the test suite with dtach\r
65 > > uninstalled, it looks like I'm experiencing a hang on\r
66 > > emacs_deliver_message call.  I wonder if either emacs_deliver_message or\r
67 > > test_emacs is not doing the right thing in the case of no dtach.  I\r
68 > > think emacs_deliver_message should somehow not require dtach, since it's\r
69 > > not actually testing any display stuff, but because it's currently using\r
70 > > test_emacs, it is somehow implicitly depending on it.  Any thoughts on\r
71 > > how to fix that?\r
72\r
73 > Quick thought\r
74\r
75 > mk_skip_test_emacs () \r
76 > { test_emacs () \r
77 >   { \r
78 >       echo SKIPPED\r
79 >       false\r
80 >   }\r
81 >   test_emacs\r
82 > }\r
83\r
84 > mk_run_test_emacs () \r
85 > { test_emacs () \r
86 >   {\r
87 >       emacsclient --socket-name="$EMACS_SERVER" --eval "(progn $@)"\r
88 >   }\r
89 >   test_emacs\r
90     test_emacs "$@"\r
91 > }\r
92\r
93 > test_emacs ()\r
94 > {\r
95 >       which dtach >/dev/null 2>&1 || { mk_skip_test_emacs; return; }\r
96 >       which emacs >/dev/null 2>&1 || { mk_skip_test_emacs; return; }\r
97 >       which emacsclient >/dev/null 2>&1 || { mk_skip_test_emacs; return; }\r
98\r
99 >       EMACS_SERVER="notmuch-test-suite-$$"\r
100 >       # start a detached session with an emacs server\r
101 >       # user's TERM is given to dtach which assumes a minimally\r
102 >       # VT100-compatible terminal -- and emacs inherits that\r
103 >       TERM=$ORIGINAL_TERM dtach -n "$TMP_DIRECTORY/emacs-dtach-socket.$$" \\r
104 >               sh -c "stty rows 24 cols 80; exec '$TMP_DIRECTORY/run_emacs' \\r
105 >                       --no-window-system \\r
106 >                       --eval '(setq server-name \"$EMACS_SERVER\")' \\r
107 >                       --eval '(server-start)' \\r
108 >                       --eval '(orphan-watchdog $$)'" ||\r
109 >                         { mk_skip_test_emacs; return; }\r
110 >       # wait until the emacs server is up\r
111 >       for _ in 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 20 1 2 3 4 5 6 7 8 9 30\r
112 >       do \r
113 >               if test_emacs '()' 2>/dev/null\r
114 >                 then\r
115 >                         mk_run_test_emacs\r
116                           mk_run_test_emacs "$@"\r
117 >                         return\r
118 >                 fi\r
119 >       done\r
120 >       mk_skip_test_emacs\r
121 > }\r
122\r
123 > I.e. dynamically, at run-time, re-create test_emacs function...\r
124\r
125 > > \r
126 > > jamie.\r
127\r
128 > Tomi\r
129 \r
130 Tomi\r