* Wrapping up the 0.3 release
@ 2010-04-24 15:37 Carl Worth
2010-04-24 16:53 ` Dirk Hohndel
` (4 more replies)
0 siblings, 5 replies; 12+ messages in thread
From: Carl Worth @ 2010-04-24 15:37 UTC (permalink / raw)
To: notmuch
[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]
I pushed hard to get most everything we wanted for 0.3 done yesterday,
(which was one week since 0.2). I think we're still within the tolerance
of my published "about a week" schedule, but I would like to wrap things
up soon.
Here are the features that I still have left in my queue at this point:
* improve from-header guessing
Dirk is looking into fixing a segfault found by the test suite here
* Fcc, Maildir, and Emacs message-mode -- a bit of code
This is next on my list to apply. Thanks for the extra testing!
There are a few other features that people had proposed but that didn't
pass review yet. If people follow-up with those quickly, they can still
go in. Otherwise, there's another new merge window coming up soon!
Meanwhile, I'm aware of two regressions I'd like to see fixed before
0.3:
* Reply is now splitting the window
We're copying the original message into the new reply buffer, so
what's the advantage of splitting here?
* Composing a new message with 'm' brings up headers in a scrambled
order.
A minor point, but it would be nice to fix this.
Finally, any of the tweaks I suggested to notmuch-hello mode would be
quite welcome. I might take a whack at some of these.
Then, there's the task of writing up NEWS. Dirk started helping with
that, which I appreciate. If anyone else wants to write up descriptions
of their favorite features that have been merged, that would be great.
-Carl
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-24 15:37 Wrapping up the 0.3 release Carl Worth
@ 2010-04-24 16:53 ` Dirk Hohndel
2010-04-24 19:01 ` David Edmondson
2010-04-24 21:45 ` Carl Worth
2010-04-26 6:21 ` Aneesh Kumar K. V
` (3 subsequent siblings)
4 siblings, 2 replies; 12+ messages in thread
From: Dirk Hohndel @ 2010-04-24 16:53 UTC (permalink / raw)
To: Carl Worth, notmuch
On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth <cworth@cworth.org> wrote:
> I pushed hard to get most everything we wanted for 0.3 done yesterday,
> (which was one week since 0.2). I think we're still within the tolerance
> of my published "about a week" schedule, but I would like to wrap things
> up soon.
>
> Here are the features that I still have left in my queue at this point:
>
> * improve from-header guessing
>
> Dirk is looking into fixing a segfault found by the test suite here
I sent a patch last night - but it's not realtive to the last thing that
I sent, instead relative to last night's master. Do you want me to
create another one?
Basically, the way I was trying to do concatenation of Received headers
earlier was fundamentally broken - it made assumptions about being able
to continue reading the headers even after we closed the file already.
Not so good.
> * Fcc, Maildir, and Emacs message-mode -- a bit of code
>
> This is next on my list to apply. Thanks for the extra testing!
>
> There are a few other features that people had proposed but that didn't
> pass review yet. If people follow-up with those quickly, they can still
> go in. Otherwise, there's another new merge window coming up soon!
I'll be working on notmuch for the next few hours and once my git trees
are straightened out again, I'll look into what's missing from my wish
list
> Meanwhile, I'm aware of two regressions I'd like to see fixed before
> 0.3:
>
> * Reply is now splitting the window
>
> We're copying the original message into the new reply buffer, so
> what's the advantage of splitting here?
I'll voice my "don't like" of this feature as well, I guess.
> * Composing a new message with 'm' brings up headers in a scrambled
> order.
>
> A minor point, but it would be nice to fix this.
It doesn't for me with origin/master. Or let me double check... what do
you think would be the correct order (as this is a matter of taste for
some people)...
> Finally, any of the tweaks I suggested to notmuch-hello mode would be
> quite welcome. I might take a whack at some of these.
>
> Then, there's the task of writing up NEWS. Dirk started helping with
> that, which I appreciate. If anyone else wants to write up descriptions
> of their favorite features that have been merged, that would be great.
I think we should make this a "requirement" for patches to include a
little NEWS blurb and either a test case or an explanation why there
isn't a test case...
/D
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-24 16:53 ` Dirk Hohndel
@ 2010-04-24 19:01 ` David Edmondson
2010-04-24 21:45 ` Carl Worth
1 sibling, 0 replies; 12+ messages in thread
From: David Edmondson @ 2010-04-24 19:01 UTC (permalink / raw)
To: Dirk Hohndel, Carl Worth, notmuch
On Sat, 24 Apr 2010 09:53:17 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:
> > * Reply is now splitting the window
> >
> > We're copying the original message into the new reply buffer, so
> > what's the advantage of splitting here?
>
> I'll voice my "don't like" of this feature as well, I guess.
This depends at least somewhat on the setting of `pop-up-windows'. Maybe
we should:
(let ((pop-up-windows nil))
...)
in the reply code?
I think that notmuch window handling generally needs some consideration
and improvement.
> > Finally, any of the tweaks I suggested to notmuch-hello mode would be
> > quite welcome. I might take a whack at some of these.
Hopefully early next week for me.
dme.
--
David Edmondson, http://dme.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-24 16:53 ` Dirk Hohndel
2010-04-24 19:01 ` David Edmondson
@ 2010-04-24 21:45 ` Carl Worth
2010-04-24 22:05 ` Dirk Hohndel
1 sibling, 1 reply; 12+ messages in thread
From: Carl Worth @ 2010-04-24 21:45 UTC (permalink / raw)
To: Dirk Hohndel, notmuch
[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]
On Sat, 24 Apr 2010 09:53:17 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:
> On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth <cworth@cworth.org> wrote:
>
> I sent a patch last night - but it's not realtive to the last thing that
> I sent, instead relative to last night's master. Do you want me to
> create another one?
No, what you sent last night is perfect. That will be easier for me.
> It doesn't for me with origin/master. Or let me double check... what do
> you think would be the correct order (as this is a matter of taste for
> some people)...
The order in the reply buffer is fine. But with "m" I get the User-Agent
first which looks a bit strange.
Dirk also mentioned in IRC that there's a regression with the signature
being mispositioned before the quoted text with a reply buffer. Now that
I've added a signature, I'm noticing this as well.
> I think we should make this a "requirement" for patches to include a
> little NEWS blurb and either a test case or an explanation why there
> isn't a test case...
I've asked for these, but I haven't been pushing hard on this.
Review for some of these simple things would be much appreciated from
anybody on the list, (and would help ensure that patches are more likely
to be ready-to-go once I get them). So let's see more of things like
this from anyone on the list:
Looks like a great feature---now it just needs a test case.
I've tested this and it does just what I want. Here's a
follow-on patch that adds an item to the NEWS file for this.
I can't common on the specific logic of the patch, but I did
notice some trailing whitespace. You'll want to clean that up
and resubmit so the patch won't be rejected.
Thanks,
-Carl
--
carl.d.worth@intel.com
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-24 21:45 ` Carl Worth
@ 2010-04-24 22:05 ` Dirk Hohndel
2010-04-24 22:50 ` Dirk Hohndel
0 siblings, 1 reply; 12+ messages in thread
From: Dirk Hohndel @ 2010-04-24 22:05 UTC (permalink / raw)
To: Carl Worth, notmuch
On Sat, 24 Apr 2010 14:45:45 -0700, Carl Worth <cworth@cworth.org> wrote:
> > It doesn't for me with origin/master. Or let me double check... what do
> > you think would be the correct order (as this is a matter of taste for
> > some people)...
>
> The order in the reply buffer is fine. But with "m" I get the User-Agent
> first which looks a bit strange.
Yep, same here.
> Dirk also mentioned in IRC that there's a regression with the signature
> being mispositioned before the quoted text with a reply buffer. Now that
> I've added a signature, I'm noticing this as well.
Well - we don't seem to be adding the signature ourselves anymore... I
still don't quite understand where and how we hand over to the existing
message-mode functions - I why those decide to insert a signature at
point.
Here's a trivial patch that ALSO adds a signature at the end of the
message buffer (where it belongs). But I haven't figured out how to get
rid of the one above the reply...
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index acb7dbf..493cd0e 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -63,6 +63,7 @@
;; line and then the body.
(with-temp-buffer
(call-process notmuch-command nil t nil "reply" query-string)
+ (message-insert-signature)
(goto-char (point-min))
(if (re-search-forward "^$" nil t)
(save-excursion
> > I think we should make this a "requirement" for patches to include a
> > little NEWS blurb and either a test case or an explanation why there
> > isn't a test case...
>
> I've asked for these, but I haven't been pushing hard on this.
I will start playing the nagger
> Review for some of these simple things would be much appreciated from
> anybody on the list, (and would help ensure that patches are more likely
> to be ready-to-go once I get them). So let's see more of things like
> this from anyone on the list:
>
> Looks like a great feature---now it just needs a test case.
>
> I've tested this and it does just what I want. Here's a
> follow-on patch that adds an item to the NEWS file for this.
>
> I can't common on the specific logic of the patch, but I did
> notice some trailing whitespace. You'll want to clean that up
> and resubmit so the patch won't be rejected.
I can do all of those.
/D
--
Dirk Hohndel
Intel Open Source Technology Center
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-24 22:05 ` Dirk Hohndel
@ 2010-04-24 22:50 ` Dirk Hohndel
0 siblings, 0 replies; 12+ messages in thread
From: Dirk Hohndel @ 2010-04-24 22:50 UTC (permalink / raw)
To: Carl Worth, notmuch
On Sat, 24 Apr 2010 15:05:55 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:
> > Dirk also mentioned in IRC that there's a regression with the signature
> > being mispositioned before the quoted text with a reply buffer. Now that
> > I've added a signature, I'm noticing this as well.
>
> Well - we don't seem to be adding the signature ourselves anymore... I
> still don't quite understand where and how we hand over to the existing
> message-mode functions - I why those decide to insert a signature at
> point.
Learning elisp every day. I think I now understand at least somewhat
what's happening there...
> Here's a trivial patch that ALSO adds a signature at the end of the
> message buffer (where it belongs). But I haven't figured out how to get
> rid of the one above the reply...
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index acb7dbf..493cd0e 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -63,6 +63,7 @@
> ;; line and then the body.
> (with-temp-buffer
> (call-process notmuch-command nil t nil "reply" query-string)
> + (message-insert-signature)
> (goto-char (point-min))
> (if (re-search-forward "^$" nil t)
> (save-excursion
This patch is of course completely bogus. But understanding why it was
bogus helped me come up with this patch, that hopefully makes more
sense. People who ACTUALLY understand elisp - please take a look
(I could have sworn there was a variable somewhere that gives me the
correct regex to search for a signature separator... but I can't find
it. so please replace '-- ' with that if you know)
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index acb7dbf..05c9603 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -82,7 +82,13 @@
(message-hide-headers)
(save-excursion
(goto-char (point-max))
- (insert body))
+ (if (re-search-backward "-- " nil t)
+ (progn
+ (forward-line -1)
+ (insert body))
+ (progn
+ (goto-char (point-max))
+ (insert body))))
(set-buffer-modified-p nil)))
(defun notmuch-mua-forward-message ()
--
Dirk Hohndel
Intel Open Source Technology Center
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-24 15:37 Wrapping up the 0.3 release Carl Worth
2010-04-24 16:53 ` Dirk Hohndel
@ 2010-04-26 6:21 ` Aneesh Kumar K. V
2010-04-26 10:53 ` Jameson Rollins
2010-04-26 11:19 ` [PATCH] emacs: Suppress window creation when replying David Edmondson
` (2 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Aneesh Kumar K. V @ 2010-04-26 6:21 UTC (permalink / raw)
To: Carl Worth, notmuch
On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth <cworth@cworth.org> wrote:
> I pushed hard to get most everything we wanted for 0.3 done yesterday,
> (which was one week since 0.2). I think we're still within the tolerance
> of my published "about a week" schedule, but I would like to wrap things
> up soon.
>
> Here are the features that I still have left in my queue at this point:
>
> * improve from-header guessing
>
> Dirk is looking into fixing a segfault found by the test suite here
>
> * Fcc, Maildir, and Emacs message-mode -- a bit of code
>
> This is next on my list to apply. Thanks for the extra testing!
>
> There are a few other features that people had proposed but that didn't
> pass review yet. If people follow-up with those quickly, they can still
> go in. Otherwise, there's another new merge window coming up soon!
>
> Meanwhile, I'm aware of two regressions I'd like to see fixed before
> 0.3:
>
> * Reply is now splitting the window
>
> We're copying the original message into the new reply buffer, so
> what's the advantage of splitting here?
This actually have a disadvantage that after sending the mail i have to
explicitly kill the buffer
>
> * Composing a new message with 'm' brings up headers in a scrambled
> order.
>
> A minor point, but it would be nice to fix this.
>
> Finally, any of the tweaks I suggested to notmuch-hello mode would be
> quite welcome. I might take a whack at some of these.
>
> Then, there's the task of writing up NEWS. Dirk started helping with
> that, which I appreciate. If anyone else wants to write up descriptions
> of their favorite features that have been merged, that would be great.
Another issue i found was
* A thread with only one message doesn't show the message body by
default. I need to use 'h' key binding to show the message
body. Multiple message thread seems to work fine.
-aneesh
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-26 6:21 ` Aneesh Kumar K. V
@ 2010-04-26 10:53 ` Jameson Rollins
0 siblings, 0 replies; 12+ messages in thread
From: Jameson Rollins @ 2010-04-26 10:53 UTC (permalink / raw)
To: Aneesh Kumar K. V, Carl Worth, notmuch
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
On Mon, 26 Apr 2010 11:51:46 +0530, "Aneesh Kumar K. V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
> * A thread with only one message doesn't show the message body by
> default. I need to use 'h' key binding to show the message
> body. Multiple message thread seems to work fine.
Yeah, I've been noticing this as well.
jamie.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] emacs: Suppress window creation when replying
2010-04-24 15:37 Wrapping up the 0.3 release Carl Worth
2010-04-24 16:53 ` Dirk Hohndel
2010-04-26 6:21 ` Aneesh Kumar K. V
@ 2010-04-26 11:19 ` David Edmondson
2010-04-26 11:22 ` [PATCH] emacs: Sort headers when composing David Edmondson
2010-04-26 11:28 ` Wrapping up the 0.3 release David Edmondson
4 siblings, 0 replies; 12+ messages in thread
From: David Edmondson @ 2010-04-26 11:19 UTC (permalink / raw)
To: notmuch
The buffer used to edit a reply should overlay the original
message. Encourage this by setting `same-window-regexps' locally.
---
emacs/notmuch-mua.el | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 305275e..b69e31c 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -73,12 +73,16 @@
(setq headers (mail-header-extract)))))
(forward-line 1)
(setq body (buffer-substring (point) (point-max))))
- (notmuch-mua-mail (mail-header 'to headers)
- (mail-header 'subject headers)
- (loop for header in headers
- if (not (or (eq 'to (car header))
- (eq 'subject (car header))))
- collect header))
+ (let
+ ;; Overlay the composition window on that being used to read
+ ;; the original message.
+ ((same-window-regexps '("\\*mail .*")))
+ (notmuch-mua-mail (mail-header 'to headers)
+ (mail-header 'subject headers)
+ (loop for header in headers
+ if (not (or (eq 'to (car header))
+ (eq 'subject (car header))))
+ collect header)))
(message-sort-headers)
(message-hide-headers)
(save-excursion
--
1.7.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH] emacs: Sort headers when composing
2010-04-24 15:37 Wrapping up the 0.3 release Carl Worth
` (2 preceding siblings ...)
2010-04-26 11:19 ` [PATCH] emacs: Suppress window creation when replying David Edmondson
@ 2010-04-26 11:22 ` David Edmondson
2010-04-26 11:28 ` Wrapping up the 0.3 release David Edmondson
4 siblings, 0 replies; 12+ messages in thread
From: David Edmondson @ 2010-04-26 11:22 UTC (permalink / raw)
To: notmuch
Always sort the headers in the message composition window.
---
emacs/notmuch-mua.el | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index b69e31c..004b50a 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -112,6 +112,7 @@
(message-mail to subject other-headers continue
switch-function yank-action send-actions)
+ (message-sort-headers)
(message-hide-headers))
(defun notmuch-mua-send-and-exit (&optional arg)
--
1.7.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-24 15:37 Wrapping up the 0.3 release Carl Worth
` (3 preceding siblings ...)
2010-04-26 11:22 ` [PATCH] emacs: Sort headers when composing David Edmondson
@ 2010-04-26 11:28 ` David Edmondson
2010-04-26 14:17 ` Carl Worth
4 siblings, 1 reply; 12+ messages in thread
From: David Edmondson @ 2010-04-26 11:28 UTC (permalink / raw)
To: Carl Worth, notmuch
On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth <cworth@cworth.org> wrote:
> Meanwhile, I'm aware of two regressions I'd like to see fixed before
> 0.3:
>
> * Reply is now splitting the window
>
> We're copying the original message into the new reply buffer, so
> what's the advantage of splitting here?
Patch sent.
> * Composing a new message with 'm' brings up headers in a scrambled
> order.
>
> A minor point, but it would be nice to fix this.
Patch sent.
dme.
--
David Edmondson, http://dme.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Wrapping up the 0.3 release
2010-04-26 11:28 ` Wrapping up the 0.3 release David Edmondson
@ 2010-04-26 14:17 ` Carl Worth
0 siblings, 0 replies; 12+ messages in thread
From: Carl Worth @ 2010-04-26 14:17 UTC (permalink / raw)
To: David Edmondson, notmuch
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
> On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth <cworth@cworth.org> wrote:
> > * Reply is now splitting the window
>
> Patch sent.
> > * Composing a new message with 'm' brings up headers in a scrambled
> > order.
>
> Patch sent.
Perfect!
Both of these are pushed now.
Thanks for the quick fixes.
-Carl
--
carl.d.worth@intel.com
On Mon, 26 Apr 2010 12:28:29 +0100, David Edmondson <dme@dme.org> wrote:
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-04-26 14:17 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-24 15:37 Wrapping up the 0.3 release Carl Worth
2010-04-24 16:53 ` Dirk Hohndel
2010-04-24 19:01 ` David Edmondson
2010-04-24 21:45 ` Carl Worth
2010-04-24 22:05 ` Dirk Hohndel
2010-04-24 22:50 ` Dirk Hohndel
2010-04-26 6:21 ` Aneesh Kumar K. V
2010-04-26 10:53 ` Jameson Rollins
2010-04-26 11:19 ` [PATCH] emacs: Suppress window creation when replying David Edmondson
2010-04-26 11:22 ` [PATCH] emacs: Sort headers when composing David Edmondson
2010-04-26 11:28 ` Wrapping up the 0.3 release David Edmondson
2010-04-26 14:17 ` Carl Worth
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).