* [PATCH] emacs: tree: bare-id in tree
@ 2013-12-19 19:16 Mark Walters
2014-01-01 14:53 ` Tomi Ollila
2014-01-03 11:33 ` David Bremner
0 siblings, 2 replies; 3+ messages in thread
From: Mark Walters @ 2013-12-19 19:16 UTC (permalink / raw)
To: notmuch
Previously notmuch-tree-get-message-id always returned the id
including the prefix "id:". Modify the function to take an optional
`bare' argument saying to return the raw string.
This will be useful later and brings the function in line with
notmuch-show-get-message-id.
---
This functionality will be useful later. I think it reasonable to put
it in now as it does bring notmuch-tree-get-message-id in line with
notmuch-show-get-message-id which already has this option.
Best wishes
Mark
emacs/notmuch-tree.el | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 8d59e65..1dde9a7 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -319,11 +319,13 @@ correct message properties."
"Return the tags of the current message."
(notmuch-tree-get-prop :tags))
-(defun notmuch-tree-get-message-id ()
+(defun notmuch-tree-get-message-id (&optional bare)
"Return the message id of the current message."
(let ((id (notmuch-tree-get-prop :id)))
(if id
- (notmuch-id-to-query id)
+ (if bare
+ id
+ (notmuch-id-to-query id))
nil)))
(defun notmuch-tree-get-match ()
--
1.7.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] emacs: tree: bare-id in tree
2013-12-19 19:16 [PATCH] emacs: tree: bare-id in tree Mark Walters
@ 2014-01-01 14:53 ` Tomi Ollila
2014-01-03 11:33 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: Tomi Ollila @ 2014-01-01 14:53 UTC (permalink / raw)
To: Mark Walters, notmuch
On Thu, Dec 19 2013, Mark Walters <markwalters1009@gmail.com> wrote:
> Previously notmuch-tree-get-message-id always returned the id
> including the prefix "id:". Modify the function to take an optional
> `bare' argument saying to return the raw string.
>
> This will be useful later and brings the function in line with
> notmuch-show-get-message-id.
> ---
LGTM.
Tomi
> This functionality will be useful later. I think it reasonable to put
> it in now as it does bring notmuch-tree-get-message-id in line with
> notmuch-show-get-message-id which already has this option.
>
> Best wishes
>
> Mark
>
>
> emacs/notmuch-tree.el | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
> index 8d59e65..1dde9a7 100644
> --- a/emacs/notmuch-tree.el
> +++ b/emacs/notmuch-tree.el
> @@ -319,11 +319,13 @@ correct message properties."
> "Return the tags of the current message."
> (notmuch-tree-get-prop :tags))
>
> -(defun notmuch-tree-get-message-id ()
> +(defun notmuch-tree-get-message-id (&optional bare)
> "Return the message id of the current message."
> (let ((id (notmuch-tree-get-prop :id)))
> (if id
> - (notmuch-id-to-query id)
> + (if bare
> + id
> + (notmuch-id-to-query id))
> nil)))
>
> (defun notmuch-tree-get-match ()
> --
> 1.7.9.1
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] emacs: tree: bare-id in tree
2013-12-19 19:16 [PATCH] emacs: tree: bare-id in tree Mark Walters
2014-01-01 14:53 ` Tomi Ollila
@ 2014-01-03 11:33 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2014-01-03 11:33 UTC (permalink / raw)
To: Mark Walters, notmuch
Mark Walters <markwalters1009@gmail.com> writes:
> Previously notmuch-tree-get-message-id always returned the id
> including the prefix "id:". Modify the function to take an optional
> `bare' argument saying to return the raw string.
pushed.
d
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-03 11:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 19:16 [PATCH] emacs: tree: bare-id in tree Mark Walters
2014-01-01 14:53 ` Tomi Ollila
2014-01-03 11:33 ` David Bremner
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).