]> git.cworth.org Git - obsolete/notmuch-old/commit
notmuch.el: Refactor citation markup. Variables for minimum size, button text.
authorDavid Bremner <bremner@unb.ca>
Fri, 25 Dec 2009 20:09:07 +0000 (16:09 -0400)
committerCarl Worth <cworth@cworth.org>
Mon, 8 Feb 2010 22:24:11 +0000 (14:24 -0800)
commit24b2f7699f7492d589cff54f06c58693e7207d34
tree24cb7be29471c37419017738b01f71116b8bea11
parent7a9bacac6786729d7f28495b0ef30f9b6ded7696
notmuch.el: Refactor citation markup. Variables for minimum size, button text.

This is a fairly intrusive rewrite.

- I pulled the common code for the signature and citation case out
  into a separate function. This is not so much shorter, but I think it
  will be easier to maintain.

- I replaced the sequence of (looking-at blah) (forward-line)  with a single
  re-search-forward per citation.

New variables

- notmuch-show-signature-button-format, notmuch-show-citation-button-format
  Allow customization of button text.

- notmuch-show-citation-lines-min
  Do not buttonize citations below the given threshold.

Reviewed-by: Kan-Ru Chen <kanru@kanru.info>
notmuch.el