unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id
@ 2010-02-12 17:10 Jesse Rosenthal
  2010-02-12 18:57 ` Jameson Rollins
  2010-02-12 22:19 ` [PATCH v2] " Jesse Rosenthal
  0 siblings, 2 replies; 12+ messages in thread
From: Jesse Rosenthal @ 2010-02-12 17:10 UTC (permalink / raw)
  To: notmuch


Change the buffer name to the subject of the thread instead of
the thread-id. This is more meaningful to the user, and will make it easier
to scroll through numerous open buffers.

Note that this patch adds a required `buffer-name' argument to notmuch-show.

Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
---
 notmuch.el |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 040997e..fbf547e 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1041,7 +1041,7 @@ All currently available key bindings:
 	  (lambda()
 	    (hl-line-mode 1) ))
 
-(defun notmuch-show (thread-id &optional parent-buffer query-context)
+(defun notmuch-show (thread-id buffer-name &optional parent-buffer query-context)
   "Run \"notmuch show\" with the given thread ID and display results.
 
 The optional PARENT-BUFFER is the notmuch-search buffer from
@@ -1051,7 +1051,7 @@ thread from that buffer can be show when done with this one).
 The optional QUERY-CONTEXT is a notmuch search term. Only messages from the thread
 matching this search term are shown if non-nil. "
   (interactive "sNotmuch show: ")
-  (let ((buffer (get-buffer-create (concat "*notmuch-show-" thread-id "*"))))
+  (let ((buffer (get-buffer-create buffer-name)))
     (switch-to-buffer buffer)
     (notmuch-show-mode)
     (set (make-local-variable 'notmuch-show-parent-buffer) parent-buffer)
@@ -1063,8 +1063,10 @@ matching this search term are shown if non-nil. "
       (erase-buffer)
       (goto-char (point-min))
       (save-excursion
-	(let* ((basic-args (list notmuch-command nil t nil "show" "--entire-thread" thread-id))
-		(args (if query-context (append basic-args (list "and (" query-context ")")) basic-args)))
+	(let* ((basic-args (list notmuch-command nil t nil "show" "--entire-thread" "\'" thread-id))
+		(args (if query-context
+			  (append basic-args (list "and (" query-context ")\'"))
+			(append basic-args (list "\'")))))
 	  (apply 'call-process args)
 	  (when (and (eq (buffer-size) 0) query-context)
 	    (apply 'call-process basic-args)))
@@ -1242,9 +1244,19 @@ Complete list of currently available key bindings:
 (defun notmuch-search-show-thread ()
   "Display the currently selected thread."
   (interactive)
-  (let ((thread-id (notmuch-search-find-thread-id)))
+  (let ((thread-id (notmuch-search-find-thread-id))
+	(subject (notmuch-search-find-subject))
+	buffer-name)
+    (when (string-match "^[ \t]*$" subject)
+      (setq subject "[No Subject]"))
+    (setq buffer-name (concat "*"
+			      (truncate-string-to-width subject 32 nil nil t)
+			      "*"))
     (if (> (length thread-id) 0)
-	(notmuch-show thread-id (current-buffer) notmuch-search-query-string)
+	(notmuch-show thread-id
+		      buffer-name
+		      (current-buffer)
+		      notmuch-search-query-string)
       (error "End of search results"))))
 
 (defun notmuch-search-reply-to-thread ()
-- 
1.6.5.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id
  2010-02-12 17:10 [PATCH] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id Jesse Rosenthal
@ 2010-02-12 18:57 ` Jameson Rollins
  2010-02-12 22:19 ` [PATCH v2] " Jesse Rosenthal
  1 sibling, 0 replies; 12+ messages in thread
From: Jameson Rollins @ 2010-02-12 18:57 UTC (permalink / raw)
  To: Jesse Rosenthal, notmuch

[-- Attachment #1: Type: text/plain, Size: 427 bytes --]

On Fri, 12 Feb 2010 12:10:41 -0500, Jesse Rosenthal <jrosenthal@jhu.edu> wrote:
> Change the buffer name to the subject of the thread instead of
> the thread-id. This is more meaningful to the user, and will make it easier
> to scroll through numerous open buffers.

Wow, what a great idea.  I was getting annoyed that I couldn't find the
email I was composing without shuffling through all my open buffers.
Well done.

jamie.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id
  2010-02-12 17:10 [PATCH] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id Jesse Rosenthal
  2010-02-12 18:57 ` Jameson Rollins
@ 2010-02-12 22:19 ` Jesse Rosenthal
  2010-02-15  7:52   ` Sebastian Spaeth
                     ` (2 more replies)
  1 sibling, 3 replies; 12+ messages in thread
From: Jesse Rosenthal @ 2010-02-12 22:19 UTC (permalink / raw)
  To: notmuch


Change the buffer name to a uniquified subject of the thread (i.e. the
subject of the first message in the thread) instead of the thread-id. This
is more meaningful to the user, and will make it easier to scroll through
numerous open buffers.

Note that this patch adds an optionsal `buffer-name' argument to notmuch
show.

This version of the patch improves on the first version by ensuring that
the buffer names are unique, and that the `notmuch-show' command can
still be used interactively.

Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
---
 notmuch.el |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 040997e..9667320 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1041,7 +1041,7 @@ All currently available key bindings:
 	  (lambda()
 	    (hl-line-mode 1) ))
 
-(defun notmuch-show (thread-id &optional parent-buffer query-context)
+(defun notmuch-show (thread-id &optional parent-buffer query-context buffer-name)
   "Run \"notmuch show\" with the given thread ID and display results.
 
 The optional PARENT-BUFFER is the notmuch-search buffer from
@@ -1051,7 +1051,8 @@ thread from that buffer can be show when done with this one).
 The optional QUERY-CONTEXT is a notmuch search term. Only messages from the thread
 matching this search term are shown if non-nil. "
   (interactive "sNotmuch show: ")
-  (let ((buffer (get-buffer-create (concat "*notmuch-show-" thread-id "*"))))
+  (let* ((thread-buffer-name (generate-new-buffer-name buffer-name))
+	 (buffer (get-buffer-create thread-buffer-name)))
     (switch-to-buffer buffer)
     (notmuch-show-mode)
     (set (make-local-variable 'notmuch-show-parent-buffer) parent-buffer)
@@ -1063,8 +1064,10 @@ matching this search term are shown if non-nil. "
       (erase-buffer)
       (goto-char (point-min))
       (save-excursion
-	(let* ((basic-args (list notmuch-command nil t nil "show" "--entire-thread" thread-id))
-		(args (if query-context (append basic-args (list "and (" query-context ")")) basic-args)))
+	(let* ((basic-args (list notmuch-command nil t nil "show" "--entire-thread" "\'" thread-id))
+		(args (if query-context
+			  (append basic-args (list "and (" query-context ")\'"))
+			(append basic-args (list "\'")))))
 	  (apply 'call-process args)
 	  (when (and (eq (buffer-size) 0) query-context)
 	    (apply 'call-process basic-args)))
@@ -1242,9 +1245,19 @@ Complete list of currently available key bindings:
 (defun notmuch-search-show-thread ()
   "Display the currently selected thread."
   (interactive)
-  (let ((thread-id (notmuch-search-find-thread-id)))
+  (let ((thread-id (notmuch-search-find-thread-id))
+	(subject (notmuch-search-find-subject))
+	buffer-name)
+    (when (string-match "^[ \t]*$" subject)
+      (setq subject "[No Subject]"))
+    (setq buffer-name (concat "*"
+			      (truncate-string-to-width subject 32 nil nil t)
+			      "*"))
     (if (> (length thread-id) 0)
-	(notmuch-show thread-id (current-buffer) notmuch-search-query-string)
+	(notmuch-show thread-id
+		      (current-buffer)
+		      notmuch-search-query-string
+		      buffer-name)
       (error "End of search results"))))
 
 (defun notmuch-search-reply-to-thread ()
-- 
1.6.5.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id
  2010-02-12 22:19 ` [PATCH v2] " Jesse Rosenthal
@ 2010-02-15  7:52   ` Sebastian Spaeth
  2010-02-23 15:21   ` [PATCH V3] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1 and V2) Jesse Rosenthal
  2010-04-07 17:46   ` [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id Carl Worth
  2 siblings, 0 replies; 12+ messages in thread
From: Sebastian Spaeth @ 2010-02-15  7:52 UTC (permalink / raw)
  To: notmuch

May I propose this patch for fast-track inclusion? It makes notmuching
much more pleasantly. Thanks for that patch. 

Sebastian

ps. if someone could propose a strategy for a "forward to next unread
message" keybinding in a thread, I would be (nearly) completely happy :).

pps. I included this one in my feature-all branch.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH V3] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1 and V2)
  2010-02-12 22:19 ` [PATCH v2] " Jesse Rosenthal
  2010-02-15  7:52   ` Sebastian Spaeth
@ 2010-02-23 15:21   ` Jesse Rosenthal
  2010-03-06 14:20     ` [PATCH V4] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1--3) Jesse Rosenthal
  2010-04-07 17:46   ` [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id Carl Worth
  2 siblings, 1 reply; 12+ messages in thread
From: Jesse Rosenthal @ 2010-02-23 15:21 UTC (permalink / raw)
  To: notmuch

Change the buffer name to a uniquified subject of the thread (i.e. the
subject of the first message in the thread) instead of the thread-id. This
is more meaningful to the user, and will make it easier to scroll through
numerous open buffers.

Note that this patch adds an optional `buffer-name' argument to notmuch
show.

This version supersedes V1 and V2 of this patch. It is rebased on HEAD,
ensures that the buffer names are unique, and that the `notmuch-show'
command can still be used interactively (fixing a clumsy bug in V2 which
prevented that).

Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
---
 notmuch.el |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 6482170..685b2cd 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1162,7 +1162,7 @@ All currently available key bindings:
 	  (lambda()
 	    (hl-line-mode 1) ))
 
-(defun notmuch-show (thread-id &optional parent-buffer query-context)
+(defun notmuch-show (thread-id &optional parent-buffer query-context buffer-name)
   "Run \"notmuch show\" with the given thread ID and display results.
 
 The optional PARENT-BUFFER is the notmuch-search buffer from
@@ -1172,7 +1172,10 @@ thread from that buffer can be show when done with this one).
 The optional QUERY-CONTEXT is a notmuch search term. Only messages from the thread
 matching this search term are shown if non-nil. "
   (interactive "sNotmuch show: ")
-  (let ((buffer (get-buffer-create (concat "*notmuch-show-" thread-id "*"))))
+  (when (null (buffer-name))
+    (setq buffer-name (concat "*notmuch-" thread-id "*")))
+  (let* ((thread-buffer-name (generate-new-buffer-name buffer-name))
+	 (buffer (get-buffer-create thread-buffer-name)))
     (switch-to-buffer buffer)
     (notmuch-show-mode)
     (set (make-local-variable 'notmuch-show-parent-buffer) parent-buffer)
@@ -1363,9 +1366,19 @@ Complete list of currently available key bindings:
 (defun notmuch-search-show-thread ()
   "Display the currently selected thread."
   (interactive)
-  (let ((thread-id (notmuch-search-find-thread-id)))
+  (let ((thread-id (notmuch-search-find-thread-id))
+	(subject (notmuch-search-find-subject))
+	buffer-name)
+    (when (string-match "^[ \t]*$" subject)
+      (setq subject "[No Subject]"))
+    (setq buffer-name (concat "*"
+			      (truncate-string-to-width subject 32 nil nil t)
+			      "*"))
     (if (> (length thread-id) 0)
-	(notmuch-show thread-id (current-buffer) notmuch-search-query-string)
+	(notmuch-show thread-id
+		      (current-buffer)
+		      notmuch-search-query-string
+		      buffer-name)
       (error "End of search results"))))
 
 (defun notmuch-search-reply-to-thread ()
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH V4] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1--3)
  2010-02-23 15:21   ` [PATCH V3] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1 and V2) Jesse Rosenthal
@ 2010-03-06 14:20     ` Jesse Rosenthal
  2010-04-06  7:59       ` Sebastian Spaeth
  0 siblings, 1 reply; 12+ messages in thread
From: Jesse Rosenthal @ 2010-03-06 14:20 UTC (permalink / raw)
  To: notmuch

(Embarassing -- this should be the last fix.)

Change the buffer name to a uniquified subject of the thread (i.e. the
subject of the first message in the thread) instead of the thread-id. This
is more meaningful to the user, and will make it easier to scroll through
numerous open buffers.

Note that this patch adds an optional `buffer-name' argument to notmuch
show.

This version supersedes V1--3 of this patch. It is rebased on HEAD,
ensures that the buffer names are unique, and that the `notmuch-show'
command can still be used interactively (fixing embarassing bugs in V2
and V3 which prevented that)

Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
---
 notmuch.el |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 5577dde..5a893da 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1172,7 +1172,7 @@ All currently available key bindings:
 	  (lambda()
 	    (hl-line-mode 1) ))
 
-(defun notmuch-show (thread-id &optional parent-buffer query-context)
+(defun notmuch-show (thread-id &optional parent-buffer query-context buffer-name)
   "Run \"notmuch show\" with the given thread ID and display results.
 
 The optional PARENT-BUFFER is the notmuch-search buffer from
@@ -1180,9 +1180,14 @@ which this notmuch-show command was executed, (so that the next
 thread from that buffer can be show when done with this one).
 
 The optional QUERY-CONTEXT is a notmuch search term. Only messages from the thread
-matching this search term are shown if non-nil. "
+matching this search term are shown if non-nil. 
+
+The optional BUFFER-NAME provides the neame of the buffer in which the message thread is shown. If it is nil (which occurs when the command is called interactively) the argument to the function is used. "
   (interactive "sNotmuch show: ")
-  (let ((buffer (get-buffer-create (concat "*notmuch-show-" thread-id "*"))))
+  (when (null buffer-name)
+    (setq buffer-name (concat "*notmuch-" thread-id "*")))
+  (let* ((thread-buffer-name (generate-new-buffer-name buffer-name))
+	 (buffer (get-buffer-create thread-buffer-name)))
     (switch-to-buffer buffer)
     (notmuch-show-mode)
     (set (make-local-variable 'notmuch-show-parent-buffer) parent-buffer)
@@ -1373,9 +1378,19 @@ Complete list of currently available key bindings:
 (defun notmuch-search-show-thread ()
   "Display the currently selected thread."
   (interactive)
-  (let ((thread-id (notmuch-search-find-thread-id)))
+  (let ((thread-id (notmuch-search-find-thread-id))
+	(subject (notmuch-search-find-subject))
+	buffer-name)
+    (when (string-match "^[ \t]*$" subject)
+      (setq subject "[No Subject]"))
+    (setq buffer-name (concat "*"
+			      (truncate-string-to-width subject 32 nil nil t)
+			      "*"))
     (if (> (length thread-id) 0)
-	(notmuch-show thread-id (current-buffer) notmuch-search-query-string)
+	(notmuch-show thread-id
+		      (current-buffer)
+		      notmuch-search-query-string
+		      buffer-name)
       (error "End of search results"))))
 
 (defun notmuch-search-reply-to-thread ()
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH V4] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1--3)
  2010-03-06 14:20     ` [PATCH V4] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1--3) Jesse Rosenthal
@ 2010-04-06  7:59       ` Sebastian Spaeth
  2010-04-06  7:59         ` [PATCH] " Sebastian Spaeth
  0 siblings, 1 reply; 12+ messages in thread
From: Sebastian Spaeth @ 2010-04-06  7:59 UTC (permalink / raw)
  To: Jesse Rosenthal, notmuch

On Sat, 06 Mar 2010 09:20:21 -0500, Jesse Rosenthal <jrosenthal@jhu.edu> wrote:
> Change the buffer name to a uniquified subject of the thread (i.e. the
> subject of the first message in the thread) instead of the thread-id. This
> is more meaningful to the user, and will make it easier to scroll through
> numerous open buffers.

I have been using this patch since it was posted and find it very
useful. However, it won't apply anymore due to the code shuffling. I'll
reply to this message and send a rebased version that applies to current
cworth/master.

Sebastian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1--3)
  2010-04-06  7:59       ` Sebastian Spaeth
@ 2010-04-06  7:59         ` Sebastian Spaeth
  0 siblings, 0 replies; 12+ messages in thread
From: Sebastian Spaeth @ 2010-04-06  7:59 UTC (permalink / raw)
  To: notmuch

From: Jesse Rosenthal <jrosenthal@jhu.edu>

Change the buffer name to a uniquified subject of the thread (i.e. the
subject of the first message in the thread) instead of the thread-id. This
is more meaningful to the user, and will make it easier to scroll through
numerous open buffers.

Note that this patch adds an optional `buffer-name' argument to notmuch
show.

This version supersedes V1--3 of this patch. It ensures that the buffer
names are unique, and that the `notmuch-show' command can still be used
 interactively (fixing embarassing bugs in V2 and V3 which prevented that)

Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
---
 emacs/notmuch-show.el |   11 ++++++++---
 emacs/notmuch.el      |   14 ++++++++++++--
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index cc1f905..ed95afb 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -959,7 +959,7 @@ All currently available key bindings:
 	  (lambda()
 	    (hl-line-mode 1) ))
 
-(defun notmuch-show (thread-id &optional parent-buffer query-context)
+(defun notmuch-show (thread-id &optional parent-buffer query-context buffer-name)
   "Run \"notmuch show\" with the given thread ID and display results.
 
 The optional PARENT-BUFFER is the notmuch-search buffer from
@@ -967,9 +967,14 @@ which this notmuch-show command was executed, (so that the next
 thread from that buffer can be show when done with this one).
 
 The optional QUERY-CONTEXT is a notmuch search term. Only messages from the thread
-matching this search term are shown if non-nil. "
+matching this search term are shown if non-nil.
+
+The optional BUFFER-NAME provides the neame of the buffer in which the message thread is shown. If it is nil (which occurs when the command is called interactively) the argument to the function is used. "
   (interactive "sNotmuch show: ")
-  (let ((buffer (get-buffer-create (concat "*notmuch-show-" thread-id "*"))))
+  (when (null buffer-name)
+    (setq buffer-name (concat "*notmuch-" thread-id "*")))
+  (let* ((thread-buffer-name (generate-new-buffer-name buffer-name))
+	 (buffer (get-buffer-create thread-buffer-name)))
     (switch-to-buffer buffer)
     (notmuch-show-mode)
     (set (make-local-variable 'notmuch-show-parent-buffer) parent-buffer)
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 5e479d6..ca0b6e0 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -404,9 +404,19 @@ Complete list of currently available key bindings:
 (defun notmuch-search-show-thread ()
   "Display the currently selected thread."
   (interactive)
-  (let ((thread-id (notmuch-search-find-thread-id)))
+  (let ((thread-id (notmuch-search-find-thread-id))
+	(subject (notmuch-search-find-subject))
+	buffer-name)
+    (when (string-match "^[ \t]*$" subject)
+      (setq subject "[No Subject]"))
+    (setq buffer-name (concat "*"
+			      (truncate-string-to-width subject 32 nil nil t)
+			      "*"))
     (if (> (length thread-id) 0)
-	(notmuch-show thread-id (current-buffer) notmuch-search-query-string)
+	(notmuch-show thread-id
+		      (current-buffer)
+		      notmuch-search-query-string
+		      buffer-name)
       (error "End of search results"))))
 
 (defun notmuch-search-reply-to-thread ()
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id
  2010-02-12 22:19 ` [PATCH v2] " Jesse Rosenthal
  2010-02-15  7:52   ` Sebastian Spaeth
  2010-02-23 15:21   ` [PATCH V3] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1 and V2) Jesse Rosenthal
@ 2010-04-07 17:46   ` Carl Worth
  2010-04-09 14:01     ` Jesse Rosenthal
  2 siblings, 1 reply; 12+ messages in thread
From: Carl Worth @ 2010-04-07 17:46 UTC (permalink / raw)
  To: Jesse Rosenthal, notmuch

[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]

On Fri, 12 Feb 2010 17:19:23 -0500, Jesse Rosenthal <jrosenthal@jhu.edu> wrote:
> Change the buffer name to a uniquified subject of the thread (i.e. the
> subject of the first message in the thread) instead of the thread-id. This
> is more meaningful to the user, and will make it easier to scroll through
> numerous open buffers.

A very lovely change, Jesse! Thanks for this (which is now pushed). And
again, thanks to Sebastian for guiding the patch through the file
renaming.

There is one minor issue with this patch which is that viewing an
identical thread more than once will bring up a new buffer rather than
re-using the existing buffer. But of course, we *want* a separate buffer
if the thread-ID is different but the (abbreviated) subject just happens
to match. So there would have to be something clever to do the right
thing here. I'm not making this minor regression block the patch, since
it's so nice otherwise.

> This version of the patch improves on the first version by ensuring that
> the buffer names are unique, and that the `notmuch-show' command can
> still be used interactively.
> 
> Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
> ---
>  notmuch.el |   25 +++++++++++++++++++------
>  1 files changed, 19 insertions(+), 6 deletions(-)

That last paragraph above is good guidance for understanding the patch,
but not useful as part of the permanent commit history. So I removed it
before pushing the commit. In the future, you can put text like that
*after* the "---" just below your Signed-off-by and then "git am" will
automatically ignore it.

-Carl

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id
  2010-04-07 17:46   ` [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id Carl Worth
@ 2010-04-09 14:01     ` Jesse Rosenthal
  2010-04-09 23:23       ` Carl Worth
  2010-04-10 13:48       ` Sebastian Spaeth
  0 siblings, 2 replies; 12+ messages in thread
From: Jesse Rosenthal @ 2010-04-09 14:01 UTC (permalink / raw)
  To: Carl Worth, notmuch

On Wed, 07 Apr 2010 10:46:01 -0700, Carl Worth <cworth@cworth.org> wrote:
> A very lovely change, Jesse! Thanks for this (which is now pushed). And
> again, thanks to Sebastian for guiding the patch through the file
> renaming.

Great to hear! Sorry I've been off of email, and still only have
sporadic access. However, one question: it looks like it was V2 of the
patch that you pushed -- was it? Unfortunately, there was a subtle bug
that kept on popping up (when you call notmuch-show interactively, which
rarely happens). Later in this same thread, I offered V4 (yep, there was
a problematic V3 too) which fixes this:

id:876359cz16.fsf@jhu.edu

Sorry for posting numerous versions. Quite embarassing. The only
difference, as you'll see, is how it deals with the case when
buffer-name is not given to notmuch-show as an argument.

Thanks for all the pushes, and apologies for the trouble.

Best,
Jesse

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id
  2010-04-09 14:01     ` Jesse Rosenthal
@ 2010-04-09 23:23       ` Carl Worth
  2010-04-10 13:48       ` Sebastian Spaeth
  1 sibling, 0 replies; 12+ messages in thread
From: Carl Worth @ 2010-04-09 23:23 UTC (permalink / raw)
  To: Jesse Rosenthal, notmuch

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

On Fri, 09 Apr 2010 10:01:09 -0400, Jesse Rosenthal <jrosenthal@jhu.edu> wrote:
> Great to hear! Sorry I've been off of email, and still only have
> sporadic access. However, one question: it looks like it was V2 of the
> patch that you pushed -- was it? Unfortunately, there was a subtle bug
> that kept on popping up (when you call notmuch-show interactively, which
> rarely happens). Later in this same thread, I offered V4 (yep, there was
> a problematic V3 too) which fixes this:

I do remember seeing several versions of this patch. And I *think* that
I did reply v4.

> id:876359cz16.fsf@jhu.edu

Looking at this patch carefully, I don't see any difference compared to
what I applied in commit 9bee20aed34a9ed035b1a0dc89de89af1c65fd1b

It seems to work for me on current master when called interactively.

But do let me know if there are any additional changes I should apply
here.

-Carl




[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id
  2010-04-09 14:01     ` Jesse Rosenthal
  2010-04-09 23:23       ` Carl Worth
@ 2010-04-10 13:48       ` Sebastian Spaeth
  1 sibling, 0 replies; 12+ messages in thread
From: Sebastian Spaeth @ 2010-04-10 13:48 UTC (permalink / raw)
  To: Jesse Rosenthal, Carl Worth, notmuch

On 2010-04-09, Jesse Rosenthal wrote:
> sporadic access. However, one question: it looks like it was V2 of the
> patch that you pushed -- was it? Unfortunately, there was a subtle bug
> that kept on popping up (when you call notmuch-show interactively, which
> rarely happens). Later in this same thread, I offered V4 (yep, there was
> a problematic V3 too) which fixes this:

I think I picked v4 for merging, however removing the comment
(supercedes v1-3) from the commit messages. I hope that was ok with you.

Sebastian

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-04-10 13:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-12 17:10 [PATCH] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id Jesse Rosenthal
2010-02-12 18:57 ` Jameson Rollins
2010-02-12 22:19 ` [PATCH v2] " Jesse Rosenthal
2010-02-15  7:52   ` Sebastian Spaeth
2010-02-23 15:21   ` [PATCH V3] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1 and V2) Jesse Rosenthal
2010-03-06 14:20     ` [PATCH V4] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1--3) Jesse Rosenthal
2010-04-06  7:59       ` Sebastian Spaeth
2010-04-06  7:59         ` [PATCH] " Sebastian Spaeth
2010-04-07 17:46   ` [PATCH v2] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id Carl Worth
2010-04-09 14:01     ` Jesse Rosenthal
2010-04-09 23:23       ` Carl Worth
2010-04-10 13:48       ` Sebastian Spaeth

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).