1 Return-Path: <amdragon@mit.edu>
\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 CCB18429E25
\r
6 for <notmuch@notmuchmail.org>; Tue, 28 Jun 2011 09:23:08 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 8Z7m0xg-LUoU for <notmuch@notmuchmail.org>;
\r
16 Tue, 28 Jun 2011 09:23:08 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id 58C03431FD0
\r
20 for <notmuch@notmuchmail.org>; Tue, 28 Jun 2011 09:23:08 -0700 (PDT)
\r
21 X-AuditID: 1209190e-b7c39ae000000a8c-d8-4e09ffc910d8
\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
\r
23 by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 0C.0D.02700.9CFF90E4; Tue, 28 Jun 2011 12:22:33 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id p5SGN7SC012545;
\r
27 Tue, 28 Jun 2011 12:23:07 -0400
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p5SGN6lg003196
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Tue, 28 Jun 2011 12:23:07 -0400 (EDT)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.72)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1Qbb3x-0002eQ-B6; Tue, 28 Jun 2011 12:22:57 -0400
\r
37 Date: Tue, 28 Jun 2011 12:22:57 -0400
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
40 Subject: Re: [PATCH 2/2] test: use emacsclient(1) for Emacs tests
\r
41 Message-ID: <20110628162257.GD4120@mit.edu>
\r
42 References: <1309132379-24089-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
43 <1309146846-30991-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
44 <1309146846-30991-2-git-send-email-dmitry.kurochkin@gmail.com>
\r
45 <BANLkTi=nwHRndz367K5oh4=tPaU-KNeZ8Q@mail.gmail.com>
\r
46 <87hb7byqge.fsf@gmail.com> <87d3hyzs1c.fsf@gmail.com>
\r
47 <20110628034937.GB4120@mit.edu>
\r
49 Content-Type: text/plain; charset=us-ascii
\r
50 Content-Disposition: inline
\r
51 In-Reply-To: <20110628034937.GB4120@mit.edu>
\r
52 User-Agent: Mutt/1.5.20 (2009-06-14)
\r
53 X-Brightmail-Tracker:
\r
54 H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsUixG6nonvyP6efwb6dehZXt/azW1y/OZPZ
\r
55 gclj56y77B7PVt1iDmCK4rJJSc3JLEst0rdL4MpYc/A4c0EDR8Xd72eZGhjXsnUxcnJICJhI
\r
56 LD+4mh3CFpO4cG89UJyLQ0hgH6PEin2LGCGcDYwS7bu3skA4J5kk3u3YDZVZwihxteEtK0g/
\r
57 i4CqxL0D31lAbDYBDYlt+5czgtgiAoYSty6+YgaxmQWkJb79bmbqYuTgEBZwlLh+GqycV0Bb
\r
58 ouPKUaiZ95kkjn98xASREJQ4OfMJC0SvlsSNfy/BekHmLP/HARLmFNCR2LDtBdg7ogIqEtf2
\r
59 t7NNYBSahaR7FpLuWQjdCxiZVzHKpuRW6eYmZuYUpybrFicn5uWlFuka6+VmluilppRuYgQF
\r
60 Nqck3w7GrweVDjEKcDAq8fAKPOb0E2JNLCuuzD3EKMnBpCTKu+wvUIgvKT+lMiOxOCO+qDQn
\r
61 tfgQowQHs5II71QjoBxvSmJlVWpRPkxKmoNFSZw3yvu/r5BAemJJanZqakFqEUxWhoNDSYK3
\r
62 DxjBQoJFqempFWmZOSUIaSYOTpDhPEDD+UFqeIsLEnOLM9Mh8qcYdTnuPVp5mFGIJS8/L1VK
\r
63 nLfnO1CRAEhRRmke3BxYQnrFKA70ljBvAcgoHmAyg5v0CmgJE9CSslqwJSWJCCmpBsbME87n
\r
64 wyOZA8Nk+i6YN76zWXrhfPx2pw1vN55dxlGVf+rJwt7Zm3smqPa6BbV29JYteL9EUPuaodmM
\r
65 HMZlu/9vXrS6I8ZZ/2Ou3JYJVb1r/dL2dC2c8FuRz2iGF79EItOzorzPm95OfnH7l3BF86rv
\r
66 nSv3hNSy5Kif9vg+9WHMzuV9/x5y3AhXYinOSDTUYi4qTgQAC7ueEyMDAAA=
\r
67 Cc: notmuch@notmuchmail.org
\r
68 X-BeenThere: notmuch@notmuchmail.org
\r
69 X-Mailman-Version: 2.1.13
\r
71 List-Id: "Use and development of the notmuch mail system."
\r
72 <notmuch.notmuchmail.org>
\r
73 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
74 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
75 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
76 List-Post: <mailto:notmuch@notmuchmail.org>
\r
77 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
78 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
79 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
80 X-List-Received-Date: Tue, 28 Jun 2011 16:23:08 -0000
\r
82 Quoth myself on Jun 27 at 11:49 pm:
\r
83 > Quoth Dmitry Kurochkin on Jun 28 at 5:03 am:
\r
84 > EMACSDONE=$TEST_DIRECTORY/emacsdone
\r
86 > coproc emacs --batch --eval '(while t (eval (read)) (write-region "\n" nil "'$EMACSDONE'" t 0))'
\r
87 > EMACSFD=${COPROC[1]}
\r
90 > echo "$1" >&$EMACSFD
\r
94 > test_emacs '(sleep-for 2)'
\r
95 > test_emacs '(message "Hi")'
\r
97 > echo '(kill-emacs)' >&$EMACSFD
\r
99 Oops, got a little overzealous with TEST_DIRECTORY. For reference,
\r
100 the pipe should, of course, have gone in the current directory (or
\r
104 coproc emacs --batch --eval '(while t (eval (read)) (write-region "\n" nil "emacsdone" t 0))'
\r
105 EMACSFD=${COPROC[1]}
\r
108 echo "$1" >&$EMACSFD
\r
113 (I don't really see how that could be either more shell code or more
\r
114 elisp code than using emacsclient plus cleanup code [nor why it
\r
115 matters for five lines of code], but I'm probably missing something.)
\r