unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* use text properties rather than overlays
@ 2012-01-24 11:36 David Edmondson
  2012-01-24 11:36 ` [PATCH 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode' David Edmondson
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: David Edmondson @ 2012-01-24 11:36 UTC (permalink / raw)
  To: notmuch

In preparation for changes to support showing and hiding MIME parts on
the fly (general parts, choosing amongst multipart/alternative and
show updated signing/encryption status without redisplay) I'm trying
to clean up some of the `notmuch-show-mode' code. This patch is part
of that, though it stands upon its' own.

Austin provided some code to allow the invisible overlays to be added
to `notmuch-search-mode' buffers lazily. That same approach could be
used here, but it's not implemented yet.

[PATCH 1/2] emacs: Use text properties rather than overlays in
[PATCH 2/2] test: Update test to match previous patch.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [PATCH 0/3] reworked crypto toggle, plus a couple of other toggles
@ 2012-01-25 10:18 David Edmondson
  2012-02-08  8:02 ` [PATCH v8 0/8] reworked crypto toggle, plus a few " David Edmondson
  0 siblings, 1 reply; 15+ messages in thread
From: David Edmondson @ 2012-01-25 10:18 UTC (permalink / raw)
  To: notmuch

The crypto toggle previously worked using an argument to
`notmuch-show' and various other functions and relied on killing and
re-creating the notmuch-show-mode buffer. Various other
pseudo-buffer-local variables were present based on an ad-hoc scheme.

Replace the ad-hoc scheme with real buffer-local variables and then
update `notmuch-show-refresh-view' to erase and re-paint rather than
kill and re-create. Update the crypto switch accordingly.

Add two other toggles:
    - whether non-matching messages are available,
    - the indentation of message contents.
Both of these default to the current behaviour.

A wart in the first patch is the handling of the
`notmuch-show-process-crypto' default. It is set based on
`notmuch-crypto-process-mime', but the users choice of setting for
that variable may not have been applied at the point where
`notmuch-show-process-crypto' inherits it.

My inclination is to remove `notmuch-crypto-process-mime' altogether
(declared it an obsolete variable) and allow users to set a default
for `notmuch-show-process-crypto' directly, but that is not done in
this patchset while awaiting feedback.

`notmuch-crypto-process-mime' is used only in notmuch-show.el, so the
setting really belongs there with an appropriate name.

David Edmondson (3):
  emacs: Rework crypto switch toggle.
  emacs: Allow `notmuch-show-mode' to display only matching messages.
  emacs: Allow the indentation of content to be toggled.

 emacs/notmuch-show.el |  143 +++++++++++++++++++++++++++++--------------------
 emacs/notmuch.el      |    7 +--
 2 files changed, 87 insertions(+), 63 deletions(-)

-- 
1.7.8.3

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-02-12 17:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-24 11:36 use text properties rather than overlays David Edmondson
2012-01-24 11:36 ` [PATCH 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode' David Edmondson
2012-01-24 16:15   ` Austin Clements
2012-01-24 16:46     ` David Edmondson
2012-01-24 11:36 ` [PATCH 2/2] test: Update test to match previous patch David Edmondson
2012-02-06 16:08 ` [PATCH v2 0/2] emacs: Use text properties rather than overlays in `notmuch-show-mode' David Edmondson
2012-02-06 16:08   ` [PATCH v2 1/2] " David Edmondson
2012-02-06 16:13     ` David Edmondson
2012-02-06 16:08   ` [PATCH v2 2/2] test: Update test to match previous patch David Edmondson
2012-02-07  8:46 ` [PATCH v3 0/2] use text properties rather than overlays David Edmondson
2012-02-07  8:46   ` [PATCH v3 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode' David Edmondson
2012-02-11 22:26     ` Mark Walters
2012-02-07  8:46   ` [PATCH v3 2/2] test: Update test to match previous patch David Edmondson
  -- strict thread matches above, loose matches on Subject: below --
2012-01-25 10:18 [PATCH 0/3] reworked crypto toggle, plus a couple of other toggles David Edmondson
2012-02-08  8:02 ` [PATCH v8 0/8] reworked crypto toggle, plus a few " David Edmondson
2012-02-08  8:02   ` [PATCH v3 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode' David Edmondson
2012-02-12 15:47     ` 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).