Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 46 / 84d20d51583dce67c23b51027e8fce9bd92440
1 Return-Path: <dmitry.kurochkin@gmail.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 D7C7F421186\r
6         for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 14:27:13 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id IOZBMAE9euMz for <notmuch@notmuchmail.org>;\r
17         Wed, 29 Jun 2011 14:27:13 -0700 (PDT)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 36A5F429E5F\r
22         for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 14:27:13 -0700 (PDT)\r
23 Received: by bwg12 with SMTP id 12so1534231bwg.26\r
24         for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 14:27:11 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
27         :message-id:mime-version:content-type;\r
28         bh=WnBi/QqsClBHJyo3qbQaJfKrPsykuG7JV3PtNu8289w=;\r
29         b=rqvugcYAJnPnJ8mWoFKIEpDe8Yt3QcZuKnWY3y/GCLTxHf/OJdtzA+mM4k+fqi6aRl\r
30         dK+13ZjQ1a26X/Z5wyH3cpSfkenjXKvEkFmi5yw/CGDnRuIU7MfFszwItSdxGxgJxcDK\r
31         0s6zr628p72Sc1wtl8sX1C1hNZ0klA1ChFQSo=\r
32 Received: by 10.204.8.89 with SMTP id g25mr1236389bkg.10.1309382831787;\r
33         Wed, 29 Jun 2011 14:27:11 -0700 (PDT)\r
34 Received: from localhost ([91.144.186.21])\r
35         by mx.google.com with ESMTPS id o3sm1493205bka.12.2011.06.29.14.27.10\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Wed, 29 Jun 2011 14:27:10 -0700 (PDT)\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
39 To: Jim Paris <jim@jtan.com>\r
40 Subject: Re: [PATCH 1/6] test: run emacs inside screen\r
41 In-Reply-To: <20110629201640.GA19216@psychosis.jim.sh>\r
42 References: <1309376558-26284-1-git-send-email-dmitry.kurochkin@gmail.com>\r
43         <20110629201640.GA19216@psychosis.jim.sh>\r
44 User-Agent: Notmuch/0.5-297-gfb148d8 (http://notmuchmail.org) Emacs/23.3.1\r
45         (x86_64-pc-linux-gnu)\r
46 Date: Thu, 30 Jun 2011 01:27:06 +0400\r
47 Message-ID: <87r56cuy51.fsf@gmail.com>\r
48 MIME-Version: 1.0\r
49 Content-Type: text/plain; charset=us-ascii\r
50 Cc: notmuch@notmuchmail.org\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Wed, 29 Jun 2011 21:27:14 -0000\r
64 \r
65 On Wed, 29 Jun 2011 16:16:40 -0400, Jim Paris <jim@jtan.com> wrote:\r
66 > Dmitry Kurochkin wrote:\r
67 > > Before the change, emacs run in daemon mode without any visible\r
68 > > buffers.  Turns out that this affects emacs behavior in some\r
69 > > cases.  In particular, `window-end' function returns `point-max'\r
70 > > instead of the last visible position.  That makes it hard or\r
71 > > impossible to implement some tests.  The patch runs emacs in a\r
72 > > detached screen(1) session.  So that it works exactly as if it\r
73 > > has a visible window.\r
74 > > \r
75 > > Note: screen terminates when emacs exits.  So the patch does not\r
76 > > introduce new "running processes left behind" issues.\r
77 > > ---\r
78 > >  test/test-lib.sh |   10 ++++++++--\r
79 > >  1 files changed, 8 insertions(+), 2 deletions(-)\r
80 > > \r
81 > > diff --git a/test/test-lib.sh b/test/test-lib.sh\r
82 > > index 079d7db..8d7c98d 100755\r
83 > > --- a/test/test-lib.sh\r
84 > > +++ b/test/test-lib.sh\r
85 > > @@ -873,10 +873,16 @@ EOF\r
86 > >  test_emacs () {\r
87 > >     if [ -z "$EMACS_SERVER" ]; then\r
88 > >             EMACS_SERVER="notmuch-test-suite-$$"\r
89 > > -           "$TMP_DIRECTORY/run_emacs" \\r
90 > > -                   --daemon \\r
91 > > +           # start a detached screen session with an emacs server\r
92 > > +           screen -S "$EMACS_SERVER" -d -m "$TMP_DIRECTORY/run_emacs" \\r
93\r
94 > To avoid problems with ~/.screenrc or /etc/screenrc, you might want e.g.\r
95 >   env SYSSCREENRC=/dev/null SCREENRC=/dev/null screen -S ...\r
96\r
97 \r
98 Thanks for the suggestion, Jim.  I sent a patch to fix that.\r
99 \r
100 Regards,\r
101   Dmitry\r
102 \r
103 > -jim\r
104\r
105 > > +                   --no-window-system \\r
106 > >                     --eval "(setq server-name \"$EMACS_SERVER\")" \\r
107 > > +                   --eval '(server-start)' \\r
108 > >                     --eval "(orphan-watchdog $$)" || return\r
109 > > +           # wait until the emacs server is up\r
110 > > +           until test_emacs '()'; do\r
111 > > +                   sleep 1\r
112 > > +           done\r
113 > >     fi\r
114 > >  \r
115 > >     emacsclient --socket-name="$EMACS_SERVER" --eval "(progn $@)"\r
116 > > -- \r
117 > > 1.7.5.4\r
118 > > \r
119 > > _______________________________________________\r
120 > > notmuch mailing list\r
121 > > notmuch@notmuchmail.org\r
122 > > http://notmuchmail.org/mailman/listinfo/notmuch\r