database error
[notmuch-archives.git] / 1c / 6b5a1be9191ad5a1f4d19b5354f04f02db75ef
1 Return-Path: <tomi.ollila@iki.fi>\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 arlo.cworth.org (Postfix) with ESMTP id 02FCA6DE17FE\r
6  for <notmuch@notmuchmail.org>; Tue, 29 Sep 2015 23:13:32 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 1.15\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.15 tagged_above=-999 required=5 tests=[AWL=-0.246, \r
12  SPF_NEUTRAL=0.652, URIBL_SBL=0.644, URIBL_SBL_A=0.1]\r
13  autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id KwITHwJnlZRf for <notmuch@notmuchmail.org>;\r
17  Tue, 29 Sep 2015 23:13:29 -0700 (PDT)\r
18 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
19  by arlo.cworth.org (Postfix) with ESMTP id 5764A6DE17FD\r
20  for <notmuch@notmuchmail.org>; Tue, 29 Sep 2015 23:13:28 -0700 (PDT)\r
21 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
22  by guru.guru-group.fi (Postfix) with ESMTP id 56AAE100080;\r
23  Wed, 30 Sep 2015 09:13:30 +0300 (EEST)\r
24 From: Tomi Ollila <tomi.ollila@iki.fi>\r
25 To: David Bremner <david@tethera.net>, Jani Nikula <jani@nikula.org>,\r
26  notmuch@notmuchmail.org\r
27 Subject: Re: [PATCH v4 5/5] notmuch-emacs-mua: do not create a frame by\r
28  default with --client\r
29 In-Reply-To: <m2si5xm3tr.fsf@guru.guru-group.fi>\r
30 References: <cover.1439629384.git.jani@nikula.org>\r
31  <455026447d3f75b1038ac11cebe734431604be9d.1439629384.git.jani@nikula.org>\r
32  <m21tepvpm5.fsf@guru.guru-group.fi> <87wpva3j37.fsf@zancas.localnet>\r
33  <m2si5xm3tr.fsf@guru.guru-group.fi>\r
34 User-Agent: Notmuch/0.20.2+68~g0c35549 (http://notmuchmail.org) Emacs/24.3.1\r
35  (x86_64-unknown-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: Wed, 30 Sep 2015 09:13:30 +0300\r
40 Message-ID: <m2pp10wi2d.fsf@guru.guru-group.fi>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.18\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: Wed, 30 Sep 2015 06:13:32 -0000\r
56 \r
57 On Tue, Sep 29 2015, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
58 \r
59 > On Mon, Sep 28 2015, David Bremner <david@tethera.net> wrote:\r
60 >\r
61 >> Tomi Ollila <tomi.ollila@iki.fi> writes:\r
62 >>\r
63 >>\r
64 >>> if [ -n "$AUTO_DAEMON" -a -z "$CREATE_FRAME" ]; then\r
65 >>>     echo "$0: --auto-daemon is only applicable with --create-frame." >&2\r
66 >>>     exit 1       \r
67 >>> fi\r
68 >>>\r
69 >>> without this one may execute ./notmuch-emacs-mua --client --auto-daemon\r
70 >>> which yields starting emacs in daemon mode (in this example it is expected\r
71 >>> emacs is not running; otherwise --auto-daemon has no use in this example)\r
72 >>> -- but no ui to that newly-running emacs is provided. Similar behaviour\r
73 >>> can be observed by the following\r
74 >>>\r
75 >>\r
76 >> I think what you propose is fine for a followup patch; note that the\r
77 >> scenario you worry about also needs --client to be a problem. Apparently\r
78 >> nothing is uncontroversial here, but if auto-daemon only works with\r
79 >> create frame, then perhaps the followup would be to have auto-daemon\r
80 >> imply create-frame\r
81 >\r
82 > Without --client --auto-daemon is no-op (as it is no-op in case emacs\r
83 > server is already running). I am (only) concerned about user experience\r
84 > when one runs --client --auto-daemon and user gets nothing (i.e. emacs\r
85 > server is running in the background w/o any clients connected to it.\r
86 >\r
87 > We could make --auto-daemon imply --create-frame, but then \r
88 >\r
89 > ./notmuch-emacs-mua --auto-daemon (i.e. w/o --client) starts new mail\r
90 > compose window to separate frame (even though user did not request\r
91 > it w/ --create-frame)\r
92 \r
93 Hmm, a few more tests. it now looks like in case the command line is\r
94 \r
95 ./notmuch-emacs-mua --client --auto-daemon\r
96 \r
97 Then the --create-frame should be implied. w/o --client --create-frame\r
98 would ... well, create that (only) emacs frame anyways... oh, the\r
99 combinations; for reference I just paste from my history...\r
100 \r
101 \r
102     1  07:57  0:01  ccd notmuch\r
103     2  07:57  0:06  git pull --rebase\r
104     3  07:57  0:01  git log\r
105     4  07:57  0:04  tig\r
106     5  07:58  0:10  ./notmuch-emacs-mua --auto-daemon\r
107     6  07:58  0:00  ps ax\r
108     8  07:58  0:00  emacs &\r
109     9  07:58  0:07  ./notmuch-emacs-mua --auto-daemon\r
110    10  07:59  0:01  ./notmuch-emacs-mua --client --auto-daemon\r
111    12  08:01  0:03  ./notmuch-emacs-mua --auto-daemon\r
112    13  08:02  0:00  ps ax\r
113    14  08:02  0:00  ls /tmp/emacs1001\r
114    15  08:02  0:00  ./notmuch-emacs-mua -nw --auto-daemon\r
115    16  08:02  0:04  DISPLAY= ./notmuch-emacs-mua  --auto-daemon\r
116    17  08:02  0:05  tig\r
117    18  08:03  0:02  DISPLAY= ./notmuch-emacs-mua --auto-daemon\r
118    19  08:04  0:01  DISPLAY= ./notmuch-emacs-mua --client --auto-daemon\r
119    20  08:04  0:00  ps ax\r
120    21  08:04  0:00  kill 1860\r
121    22  08:04  0:00  ps ax\r
122    23  08:06  0:00   ./notmuch-emacs-mua --client --auto-daemon\r
123    24  08:06  0:00  ps ax\r
124    25  08:06  0:00  kill 1875\r
125    26  08:06  0:00   ./notmuch-emacs-mua --client --auto-daemon\r
126    27  08:06  0:00  ps ax\r
127    28  08:06  0:00  kill 1926\r
128    29  08:06  0:06  ./notmuch-emacs-mua --client --auto-daemon --create-frame\r
129    30  08:07  0:28  ./notmuch-emacs-mua --auto-daemon --create-frame\r
130    31  08:08  0:00  ps x\r
131    32  08:08  0:00  h\r
132 \r
133 So. I'm going w/ the suggestion making --auto-daemon imply --create-frame\r
134 \r
135 \r
136 >\r
137 > (actually I already did the 'imply' option (easy, one line in script,\r
138 > another in namual), just that testing it gave this thought...\r
139 >\r
140 > ... therefore I'd rather make ./notmuch-emacs-mua --auto-daemon\r
141 > spit an error and exit -- but I can be convinced otherwise :)\r
142 >\r
143 > Tomi\r