[PATCH 00/11] Improve charset and cid: handling
I added declare-functions for both of these, which should take care of the Emacs 23 warnings and be more robust on Emacs 24. We can't reach the function that calls these unless shr is actually available, but the byte compiler doesn't know that. On Sat, 26 Apr 2014, Mark Walters wrote: > Aside from the minor comments I mentioned in previous emails and one > more comment below this looks good. > > The extra comment is that on emacs23 I get the following when compiling: > > In end of data: > notmuch-show.el:2188:1:Warning: the following functions are not known to be > defined: libxml-parse-html-region, shr-insert-document > > Finally, I have not really tested it as I mainly use emacs23 > > Best wishes > > Mark > > > > > On Mon, 21 Apr 2014, Austin Clements wrote: >> I set out to quickly add support for cid: links in the shr renderer >> and wound up making our charset handling more robust and rewriting our >> content-ID handling. The test introduced in patch 2 passes in all but >> one really obscure case, but only because of many unwritten and >> potentially fragile assumptions that Emacs and the CLI make about each >> other. >> >> The first three patches could reasonably go in to 0.18. The rest of >> this series is certainly post-0.18, but I didn't want to lose track of >> it. >> >> This series comes in three stages. Each depends on the earlier ones, >> but each prefix makes sense on its own and could be pushed without the >> later stages. >> >> Patch 1 is a simple clean up patch. >> >> Patches 2 through 7 robust-ify our charset handling in Emacs, mostly >> by splitting the broken `notmuch-get-bodypart-content' API into >> `notmuch-get-bodypart-binary' and `notmuch-get-bodypart-text' so a >> caller can explicitly convey their requirements. >> >> The remaining patches improve our content-ID handling and add support >> for cid: links for shr. >> >> ___ >> notmuch mailing list >> notmuch at notmuchmail.org >> http://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH 00/11] Improve charset and cid: handling
I added declare-functions for both of these, which should take care of the Emacs 23 warnings and be more robust on Emacs 24. We can't reach the function that calls these unless shr is actually available, but the byte compiler doesn't know that. On Sat, 26 Apr 2014, Mark Walters markwalters1...@gmail.com wrote: Aside from the minor comments I mentioned in previous emails and one more comment below this looks good. The extra comment is that on emacs23 I get the following when compiling: In end of data: notmuch-show.el:2188:1:Warning: the following functions are not known to be defined: libxml-parse-html-region, shr-insert-document Finally, I have not really tested it as I mainly use emacs23 Best wishes Mark On Mon, 21 Apr 2014, Austin Clements amdra...@mit.edu wrote: I set out to quickly add support for cid: links in the shr renderer and wound up making our charset handling more robust and rewriting our content-ID handling. The test introduced in patch 2 passes in all but one really obscure case, but only because of many unwritten and potentially fragile assumptions that Emacs and the CLI make about each other. The first three patches could reasonably go in to 0.18. The rest of this series is certainly post-0.18, but I didn't want to lose track of it. This series comes in three stages. Each depends on the earlier ones, but each prefix makes sense on its own and could be pushed without the later stages. Patch 1 is a simple clean up patch. Patches 2 through 7 robust-ify our charset handling in Emacs, mostly by splitting the broken `notmuch-get-bodypart-content' API into `notmuch-get-bodypart-binary' and `notmuch-get-bodypart-text' so a caller can explicitly convey their requirements. The remaining patches improve our content-ID handling and add support for cid: links for shr. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH 00/11] Improve charset and cid: handling
Aside from the minor comments I mentioned in previous emails and one more comment below this looks good. The extra comment is that on emacs23 I get the following when compiling: In end of data: notmuch-show.el:2188:1:Warning: the following functions are not known to be defined: libxml-parse-html-region, shr-insert-document Finally, I have not really tested it as I mainly use emacs23 Best wishes Mark On Mon, 21 Apr 2014, Austin Clements wrote: > I set out to quickly add support for cid: links in the shr renderer > and wound up making our charset handling more robust and rewriting our > content-ID handling. The test introduced in patch 2 passes in all but > one really obscure case, but only because of many unwritten and > potentially fragile assumptions that Emacs and the CLI make about each > other. > > The first three patches could reasonably go in to 0.18. The rest of > this series is certainly post-0.18, but I didn't want to lose track of > it. > > This series comes in three stages. Each depends on the earlier ones, > but each prefix makes sense on its own and could be pushed without the > later stages. > > Patch 1 is a simple clean up patch. > > Patches 2 through 7 robust-ify our charset handling in Emacs, mostly > by splitting the broken `notmuch-get-bodypart-content' API into > `notmuch-get-bodypart-binary' and `notmuch-get-bodypart-text' so a > caller can explicitly convey their requirements. > > The remaining patches improve our content-ID handling and add support > for cid: links for shr. > > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH 00/11] Improve charset and cid: handling
Aside from the minor comments I mentioned in previous emails and one more comment below this looks good. The extra comment is that on emacs23 I get the following when compiling: In end of data: notmuch-show.el:2188:1:Warning: the following functions are not known to be defined: libxml-parse-html-region, shr-insert-document Finally, I have not really tested it as I mainly use emacs23 Best wishes Mark On Mon, 21 Apr 2014, Austin Clements amdra...@mit.edu wrote: I set out to quickly add support for cid: links in the shr renderer and wound up making our charset handling more robust and rewriting our content-ID handling. The test introduced in patch 2 passes in all but one really obscure case, but only because of many unwritten and potentially fragile assumptions that Emacs and the CLI make about each other. The first three patches could reasonably go in to 0.18. The rest of this series is certainly post-0.18, but I didn't want to lose track of it. This series comes in three stages. Each depends on the earlier ones, but each prefix makes sense on its own and could be pushed without the later stages. Patch 1 is a simple clean up patch. Patches 2 through 7 robust-ify our charset handling in Emacs, mostly by splitting the broken `notmuch-get-bodypart-content' API into `notmuch-get-bodypart-binary' and `notmuch-get-bodypart-text' so a caller can explicitly convey their requirements. The remaining patches improve our content-ID handling and add support for cid: links for shr. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH 00/11] Improve charset and cid: handling
On Mon, Apr 21 2014, Austin Clements wrote: > I set out to quickly add support for cid: links in the shr renderer > and wound up making our charset handling more robust and rewriting our > content-ID handling. The test introduced in patch 2 passes in all but > one really obscure case, but only because of many unwritten and > potentially fragile assumptions that Emacs and the CLI make about each > other. > > The first three patches could reasonably go in to 0.18. The rest of > this series is certainly post-0.18, but I didn't want to lose track of > it. Patches 1-3 looks good and tests pass. I've also (suffessfully) used this 'no-conversion (although I don't remember why ;/ -- this conversion stuff is not something simple to comprehend...) So, +1 for getting 1-3 to 0.18. Tomi > > This series comes in three stages. Each depends on the earlier ones, > but each prefix makes sense on its own and could be pushed without the > later stages. > > Patch 1 is a simple clean up patch. > > Patches 2 through 7 robust-ify our charset handling in Emacs, mostly > by splitting the broken `notmuch-get-bodypart-content' API into > `notmuch-get-bodypart-binary' and `notmuch-get-bodypart-text' so a > caller can explicitly convey their requirements. > > The remaining patches improve our content-ID handling and add support > for cid: links for shr. > > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH 00/11] Improve charset and cid: handling
I set out to quickly add support for cid: links in the shr renderer and wound up making our charset handling more robust and rewriting our content-ID handling. The test introduced in patch 2 passes in all but one really obscure case, but only because of many unwritten and potentially fragile assumptions that Emacs and the CLI make about each other. The first three patches could reasonably go in to 0.18. The rest of this series is certainly post-0.18, but I didn't want to lose track of it. This series comes in three stages. Each depends on the earlier ones, but each prefix makes sense on its own and could be pushed without the later stages. Patch 1 is a simple clean up patch. Patches 2 through 7 robust-ify our charset handling in Emacs, mostly by splitting the broken `notmuch-get-bodypart-content' API into `notmuch-get-bodypart-binary' and `notmuch-get-bodypart-text' so a caller can explicitly convey their requirements. The remaining patches improve our content-ID handling and add support for cid: links for shr.
[PATCH 00/11] Improve charset and cid: handling
I set out to quickly add support for cid: links in the shr renderer and wound up making our charset handling more robust and rewriting our content-ID handling. The test introduced in patch 2 passes in all but one really obscure case, but only because of many unwritten and potentially fragile assumptions that Emacs and the CLI make about each other. The first three patches could reasonably go in to 0.18. The rest of this series is certainly post-0.18, but I didn't want to lose track of it. This series comes in three stages. Each depends on the earlier ones, but each prefix makes sense on its own and could be pushed without the later stages. Patch 1 is a simple clean up patch. Patches 2 through 7 robust-ify our charset handling in Emacs, mostly by splitting the broken `notmuch-get-bodypart-content' API into `notmuch-get-bodypart-binary' and `notmuch-get-bodypart-text' so a caller can explicitly convey their requirements. The remaining patches improve our content-ID handling and add support for cid: links for shr. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH 00/11] Improve charset and cid: handling
On Mon, Apr 21 2014, Austin Clements amdra...@mit.edu wrote: I set out to quickly add support for cid: links in the shr renderer and wound up making our charset handling more robust and rewriting our content-ID handling. The test introduced in patch 2 passes in all but one really obscure case, but only because of many unwritten and potentially fragile assumptions that Emacs and the CLI make about each other. The first three patches could reasonably go in to 0.18. The rest of this series is certainly post-0.18, but I didn't want to lose track of it. Patches 1-3 looks good and tests pass. I've also (suffessfully) used this 'no-conversion (although I don't remember why ;/ -- this conversion stuff is not something simple to comprehend...) So, +1 for getting 1-3 to 0.18. Tomi This series comes in three stages. Each depends on the earlier ones, but each prefix makes sense on its own and could be pushed without the later stages. Patch 1 is a simple clean up patch. Patches 2 through 7 robust-ify our charset handling in Emacs, mostly by splitting the broken `notmuch-get-bodypart-content' API into `notmuch-get-bodypart-binary' and `notmuch-get-bodypart-text' so a caller can explicitly convey their requirements. The remaining patches improve our content-ID handling and add support for cid: links for shr. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch