Forwarding a mail, with a non-ASCII signature

2014-11-28 Thread Lele Gaifax
David Bremner  writes:

> Lele Gaifax  writes:
>
>> Hi all,
>>
>> as you can see below, my signature contains some non-ASCII characters,
>> and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my
>> .emacs.el) in my home as ~/.signature.
>
> This bug should be fixed in commit
>
>  0.19+3-g7585e8ca (as of this moment, notmuch master)
>

Thanks a lot, waiting to see it landing on the MELPA archive.

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivr? di quello che ho pensato ieri
real: Emanuele Gaifas | comincer? ad aver paura di chi mi copia.
lele at metapensiero.it  | -- Fortunato Depero, 1929.



[PATCH] emacs: Added "is:" style completion to notmuch-read-query.

2014-11-28 Thread Charles Celerier
The notmuch-search-terms man page states that "tag:" is equivalent
to "is:". Completion for "is:" style searches is now supported
in the Emacs interface.

Signed-off-by: Charles Celerier 
---
 emacs/notmuch.el | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 218486a..e4b77c7 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -855,13 +855,15 @@ See `notmuch-tag' for information on the format of 
TAG-CHANGES."
   "Read a notmuch-query from the minibuffer with completion.

 PROMPT is the string to prompt with."
+  (setq all-tags
+(mapcar (lambda (tag) (notmuch-escape-boolean-term tag))
+(process-lines notmuch-command "search" "--output=tags" "*")))
   (lexical-let
   ((completions
(append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:"
  "subject:" "attachment:")
-   (mapcar (lambda (tag)
- (concat "tag:" (notmuch-escape-boolean-term tag)))
-   (process-lines notmuch-command "search" "--output=tags" 
"*")
+   (mapcar (lambda (tag) (concat "tag:" tag)) all-tags)
+   (mapcar (lambda (tag) (concat "is:" tag)) all-tags
 (let ((keymap (copy-keymap minibuffer-local-map))
  (current-query (case major-mode
   (notmuch-search-mode (notmuch-search-get-query))
-- 
2.1.2



Forwarding a mail, with a non-ASCII signature

2014-11-28 Thread David Bremner
Lele Gaifax  writes:

> Hi all,
>
> as you can see below, my signature contains some non-ASCII characters,
> and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my
> .emacs.el) in my home as ~/.signature.

This bug should be fixed in commit

 0.19+3-g7585e8ca (as of this moment, notmuch master)

d


[PATCH v1] emacs: `with-current-notmuch-show-message' should not leak `coding-system-for-read'

2014-11-28 Thread David Bremner
David Edmondson  writes:

>  When a message is forwarded, the `no-conversion' coding
> system was applied to the reading of the .signature file, resulting in
> raw rather than UTF-8 interpretation of the data.
> ---
>
> Fix for id:87ioifb55d.fsf at nautilus.nautilus.

pushed

d


Re: Forwarding a mail, with a non-ASCII signature

2014-11-28 Thread Lele Gaifax
David Bremner da...@tethera.net writes:

 Lele Gaifax l...@metapensiero.it writes:

 Hi all,

 as you can see below, my signature contains some non-ASCII characters,
 and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my
 .emacs.el) in my home as ~/.signature.

 This bug should be fixed in commit

  0.19+3-g7585e8ca (as of this moment, notmuch master)


Thanks a lot, waiting to see it landing on the MELPA archive.

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  | -- Fortunato Depero, 1929.

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] emacs: Added is:tag style completion to notmuch-read-query.

2014-11-28 Thread Charles Celerier
The notmuch-search-terms man page states that tag:tag is equivalent
to is:tag. Completion for is:tag style searches is now supported
in the Emacs interface.

Signed-off-by: Charles Celerier ccel...@cs.stanford.edu
---
 emacs/notmuch.el | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 218486a..e4b77c7 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -855,13 +855,15 @@ See `notmuch-tag' for information on the format of 
TAG-CHANGES.
   Read a notmuch-query from the minibuffer with completion.
 
 PROMPT is the string to prompt with.
+  (setq all-tags
+(mapcar (lambda (tag) (notmuch-escape-boolean-term tag))
+(process-lines notmuch-command search --output=tags *)))
   (lexical-let
   ((completions
(append (list folder: path: thread: id: date: from: to:
  subject: attachment:)
-   (mapcar (lambda (tag)
- (concat tag: (notmuch-escape-boolean-term tag)))
-   (process-lines notmuch-command search --output=tags 
*)
+   (mapcar (lambda (tag) (concat tag: tag)) all-tags)
+   (mapcar (lambda (tag) (concat is: tag)) all-tags
 (let ((keymap (copy-keymap minibuffer-local-map))
  (current-query (case major-mode
   (notmuch-search-mode (notmuch-search-get-query))
-- 
2.1.2

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: Forwarding a mail, with a non-ASCII signature

2014-11-28 Thread David Bremner
Lele Gaifax l...@metapensiero.it writes:


 Thanks a lot, waiting to see it landing on the MELPA archive.

 ciao, lele.

Just be aware that people have had problems in the past using versions
from MELPA because they ship only the elisp and not the corresponding C
code.  Hopefully it works better now, or at least detects dangerous
version mismatches between the elisp and C code.

d
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: Added is:tag style completion to notmuch-read-query.

2014-11-28 Thread David Edmondson
On Sat, Nov 29 2014, Charles Celerier wrote:
 The notmuch-search-terms man page states that tag:tag is equivalent
 to is:tag. Completion for is:tag style searches is now supported
 in the Emacs interface.

 Signed-off-by: Charles Celerier ccel...@cs.stanford.edu
 ---
  emacs/notmuch.el | 8 +---
  1 file changed, 5 insertions(+), 3 deletions(-)

 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
 index 218486a..e4b77c7 100644
 --- a/emacs/notmuch.el
 +++ b/emacs/notmuch.el
 @@ -855,13 +855,15 @@ See `notmuch-tag' for information on the format of 
 TAG-CHANGES.
Read a notmuch-query from the minibuffer with completion.
  
  PROMPT is the string to prompt with.
 +  (setq all-tags
 +(mapcar (lambda (tag) (notmuch-escape-boolean-term tag))
 +(process-lines notmuch-command search
  --output=tags *)))

Should use a `let' binding rather than `setq'. Otherwise, looks good.

(lexical-let
((completions
   (append (list folder: path: thread: id: date: from: to:
 subject: attachment:)
 - (mapcar (lambda (tag)
 -   (concat tag: (notmuch-escape-boolean-term tag)))
 - (process-lines notmuch-command search --output=tags 
 *)
 + (mapcar (lambda (tag) (concat tag: tag)) all-tags)
 + (mapcar (lambda (tag) (concat is: tag)) all-tags
  (let ((keymap (copy-keymap minibuffer-local-map))
 (current-query (case major-mode
  (notmuch-search-mode (notmuch-search-get-query))
 -- 
 2.1.2

 ___
 notmuch mailing list
 notmuch@notmuchmail.org
 http://notmuchmail.org/mailman/listinfo/notmuch
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch