[PATCH v3 0/5] rst2man.py support and doc-build cleanups

2014-07-20 Thread Tomi Ollila
On Sun, Jul 13 2014, "W. Trevor King" wrote: > On Sun, Jul 13, 2014 at 09:05:41AM +0300, Tomi Ollila wrote: >> I am satisfied with rst-man2any.py, but as being normal picky me I >> wonder whether the command prefix 'rst-' is being too generic >> i.e. is invading that "namespace". If no one else h

[PATCH] config: read user.name from $NAME if set

2014-07-20 Thread Mark Oteiza
Try to read the config parameter user.name from $NAME before taking the user name from /etc/passwd. --- notmuch-config.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index 4886d36..8f1f48d 100644 --- a/notmuch-config.c +++ b/notmuc

[PATCH] config: read user.name from $NAME if set

2014-07-20 Thread Mark Oteiza
Try to read the config parameter user.name from $NAME before taking the user name from /etc/passwd. --- notmuch-config.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index 4886d36..8f1f48d 100644 --- a/notmuch-config.c +++ b/notmuc

Re: [PATCH v3] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
I should also import print_function and unicode_literals from __future__ for Python 2.x compatibility, since I use print() once and never use bytes. I hadn't turned up any problems with 2.x without the __future__ imports, but it's nice to be explicit ;). Cheers, Trevor -- This email may be sign

[PATCH v3] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
GP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140720/7b50c70c/attachment.pgp>

Re: [PATCH v3] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
On Sun, Jul 20, 2014 at 03:59:49PM -0700, W. Trevor King wrote: > +def pull(repository=None, refspecs=None): > +""" > +Pull (merge) remote repository changes to notmuch. > + > +'pull' is equivalent to 'fetch' followed by 'merge'. We use the > +Git-configured repository for your cur

[PATCH v3] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
ded by PEP 257 [1] (for _hex_quote, get_tags, _read_tree, fetch, _index_tags, and _unpack_diff_lines). I'll add those periods in v4. Cheers, Trevor [1]: http://legacy.python.org/dev/peps/pep-0257/#one-line-docstrings -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140720/f7ed883e/attachment.pgp>

Re: [PATCH v3] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
On Sun, Jul 20, 2014 at 03:59:49PM -0700, W. Trevor King wrote: > Most of the user-facing interface is the same, but there are a few > changes, where reproducing the original interface was too difficult > or I saw a change to make the underlying Git UI accessible: It's not listed in the commit mes

[PATCH v3] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
ication/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140720/901cc989/attachment.pgp>

[PATCH v3] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
This allows us to capture stdout and stderr separately, and do other explicit subprocess manipulation without resorting to external packages. It should be compatible with Python 2.6 and later (including the 3.x series), although with 2.6 you'll need the external argparse package. Most of the user

[PATCH v3] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
This allows us to capture stdout and stderr separately, and do other explicit subprocess manipulation without resorting to external packages. It should be compatible with Python 2.6 and later (including the 3.x series), although with 2.6 you'll need the external argparse package. Most of the user

[PATCH v2] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
This allows us to capture stdout and stderr separately, and do other explicit subprocess manipulation without resorting to external packages. It should be compatible with Python 2.6 and later (including the 3.x series), although with 2.6 you'll need the external argparse package. Most of the user

[PATCH v2] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
This allows us to capture stdout and stderr separately, and do other explicit subprocess manipulation without resorting to external packages. It should be compatible with Python 2.6 and later (including the 3.x series), although with 2.6 you'll need the external argparse package. Most of the user

Re: [PATCH] nmbug: Translate to Python

2014-07-20 Thread Jani Nikula
On Jul 21, 2014 12:43 AM, "W. Trevor King" wrote: > > devel/nmbug/nmbug | 1450 - > 1 file changed, 755 insertions(+), 695 deletions(-) See git format-patch --break-rewrites option. BR, Jani. ___ not

[PATCH] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
This allows us to capture stdout and stderr separately, and do other explicit subprocess manipulation without resorting to external packages. It should be compatible with Python 2.6 and later (including the 3.x series), although with 2.6 you'll need the external argparse package. Most of the user

[PATCH] nmbug: Translate to Python

2014-07-20 Thread W. Trevor King
This allows us to capture stdout and stderr separately, and do other explicit subprocess manipulation without resorting to external packages. It should be compatible with Python 2.6 and later (including the 3.x series), although with 2.6 you'll need the external argparse package. Most of the user

Re: nevermore

2014-07-20 Thread Trevor Jim
If you would like to incorporate things into the main branch, that would be great. Here's what I think the status is: The asynchronous mail address harvesting works pretty well. Much better than having to install python etc. It would be better to also update the addresses when sending mail. I

Re: [PATCH v3 0/5] rst2man.py support and doc-build cleanups

2014-07-20 Thread Tomi Ollila
On Sun, Jul 13 2014, "W. Trevor King" wrote: > On Sun, Jul 13, 2014 at 09:05:41AM +0300, Tomi Ollila wrote: >> I am satisfied with rst-man2any.py, but as being normal picky me I >> wonder whether the command prefix 'rst-' is being too generic >> i.e. is invading that "namespace". If no one else h

emacs UI hang: viewing a thread where msg has .tgz attachment with symlink to ..

2014-07-20 Thread Sanjoy Mahajan
Thanks for finding the root cause (hopefully!). -Sanjoy David Bremner writes: > Sanjoy Mahajan writes: > >> David Bremner writes: >> >>> It would be a big help if you could share a message that causes the >>> problem. >> >> I've just managed to make an example that triggers the problem but th

emacs UI hang: viewing a thread where msg has .tgz attachment with symlink to ..

2014-07-20 Thread David Bremner
Sanjoy Mahajan writes: > David Bremner writes: > >> It would be a big help if you could share a message that causes the >> problem. > > I've just managed to make an example that triggers the problem but that > isn't 14MB (the size of the original msg). I'm attaching the message > below. It con

24.3; gnus-recursive-directory-files is fooled by upward symlinks

2014-07-20 Thread David Bremner
Hi Emacs Maintainers; A notmuch-emacs user reported a bug with emacs "hanging" on unpacking a tar file. After some debugging I believe have narrowed the problem down to the following test case, which can be run with e.g. % emacs -Q --script bug.el (require 'gnus-util) (let* ((temp-dir (make-t

Re: emacs UI hang: viewing a thread where msg has .tgz attachment with symlink to ..

2014-07-20 Thread Sanjoy Mahajan
Thanks for finding the root cause (hopefully!). -Sanjoy David Bremner writes: > Sanjoy Mahajan writes: > >> David Bremner writes: >> >>> It would be a big help if you could share a message that causes the >>> problem. >> >> I've just managed to make an example that triggers the problem but th

emacs UI hang: viewing a thread where msg has .tgz attachment with symlink to ..

2014-07-20 Thread Sanjoy Mahajan
: application/octet-stream Size: 28031 bytes Desc: failing message URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140720/46d22359/attachment-0001.obj>

Re: emacs UI hang: viewing a thread where msg has .tgz attachment with symlink to ..

2014-07-20 Thread David Bremner
Sanjoy Mahajan writes: > David Bremner writes: > >> It would be a big help if you could share a message that causes the >> problem. > > I've just managed to make an example that triggers the problem but that > isn't 14MB (the size of the original msg). I'm attaching the message > below. It con

24.3; gnus-recursive-directory-files is fooled by upward symlinks

2014-07-20 Thread David Bremner
Hi Emacs Maintainers; A notmuch-emacs user reported a bug with emacs "hanging" on unpacking a tar file. After some debugging I believe have narrowed the problem down to the following test case, which can be run with e.g. % emacs -Q --script bug.el (require 'gnus-util) (let* ((temp-dir (make-t

Re: emacs UI hang: viewing a thread where msg has .tgz attachment with symlink to ..

2014-07-20 Thread Sanjoy Mahajan
David Bremner writes: > It would be a big help if you could share a message that causes the > problem. I've just managed to make an example that triggers the problem but that isn't 14MB (the size of the original msg). I'm attaching the message below. It contains, as an attachment, a 20KB .tgz