Re: [PATCH] Revert "emacs: notmuch-search: avoid wiping out buffer-local variables"

2020-11-08 Thread Sean Whitton
which should not be decided based on > the fact that we want keep the value of some random variable, not > least because some other (e.g. cache) variables are likely expected > to be wiped. Nice, thank you for the info. I've tested that my usecase works after reverting the pat

Re: [PATCH v2] emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

2020-08-22 Thread Sean Whitton
Hello, On Sat 22 Aug 2020 at 12:04PM +03, Tomi Ollila wrote: > On Tue, Aug 11 2020, Sean Whitton wrote: > >> This means that notmuch commands obey display-buffer-alist so the user >> can customize how buffers show up. >> >> It also permits the use of C-x 4 4,

[PATCH v2] emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

2020-08-11 Thread Sean Whitton
This means that notmuch commands obey display-buffer-alist so the user can customize how buffers show up. It also permits the use of C-x 4 4, C-x 5 5 and C-x t t, available in Emacs 28. For example, one can use C-x 4 4 M-x notmuch-jump-search RET to open a saved search in another window rather

[PATCH] emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

2020-08-07 Thread Sean Whitton
This means that notmuch commands obey display-buffer-alist so the user can customize how buffers show up. It also permits the use of C-x 4 4, C-x 5 5 and C-x t t, available in Emacs 28. For example, one can use C-x 4 4 M-x notmuch-jump-search RET to open a saved search in another window rather

Re: [PATCH 07/23] emacs: Use 'and' instead of 'when' when the return value matters

2020-07-27 Thread Sean Whitton
Hello, On Mon 27 Jul 2020 at 12:02AM +02, Jonas Bernoulli wrote: > Sean Whitton writes: > >> On Sun 26 Jul 2020 at 06:58PM +02, Jonas Bernoulli wrote: >> >>> Also do so for some 'if' forms that lack an ELSE part. >>> Even go as far as using 'and' and 'not

Re: [PATCH 07/23] emacs: Use 'and' instead of 'when' when the return value matters

2020-07-26 Thread Sean Whitton
Hello, On Sun 26 Jul 2020 at 06:58PM +02, Jonas Bernoulli wrote: > Also do so for some 'if' forms that lack an ELSE part. > Even go as far as using 'and' and 'not' instead of 'unless'. I don't follow "when the return value matters", could you explain? Thanks.

[PATCH] emacs: notmuch-search: avoid wiping out buffer-local variables

2020-07-22 Thread Sean Whitton
--- emacs/notmuch.el | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index dd18f2e1..c97997fe 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -987,7 +987,11 @@ the configured default sort order." (if no-display

notmuch.el: notmuch-search: avoid wiping out buffer-local variables

2020-07-21 Thread Sean Whitton
-list t) (set 'notmuch-search-query-string query) -- Sean Whitton ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: Lazily loading notmuch into Emacs

2020-06-02 Thread Sean Whitton
-hello, as otherwise I noticed notmuch-config.el doesn't get loaded if you use one of those right after starting Emacs. I think the fix there is to add (require 'notmuch) to the top of notmuch-jump.el and notmuch-hello.el? -- Sean Whitton ___ notmuch mailin

Lazily loading notmuch into Emacs

2020-06-01 Thread Sean Whitton
se of an ELPA package, however. Does anyone have a better approach that does not involve advice-add? I'm using the elpa-notmuch package on Debian. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

[PATCH] emacs: Respect `load-prefer-newer` when loading `notmuch-init-file'

2020-06-01 Thread Sean Whitton
Before this change, `load-prefer-newer' was ignored. Set NOERROR and MUST-SUFFIX arguments of `load' to t, and NOSUFFIX argument to nil, to preserve the behaviour of the deleted `let' form. --- I've observed that the way that the code at the end of notmuch.el loads the user's notmuch-init-file

Re: notmuch and mailing lists

2020-05-03 Thread Sean Whitton
Hello Reto, On Sat 02 May 2020 at 03:13pm +02, Reto wrote: > On Fri, May 01, 2020 at 12:30:28PM -0700, Sean Whitton wrote: >> I've not yet used NNTP to read mailing lists myself, but I think there >> are limitations to the way I currently read lists > > What are you missing

notmuch and mailing lists

2020-05-01 Thread Sean Whitton
exploring the NNTP approach, or trying to come up with notmuch-based workflow improvements. Kindly CC me on replies. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: easy (?) elisp project for notmuch [it's mostly DONE]

2020-04-15 Thread Sean Whitton
Hello, On Wed 15 Apr 2020 at 01:41PM -07, Sean Whitton wrote: > Debian/Ubuntu/etc. you can `apt-get install mailscripts` Oh, and `apt-get install elpa-mailscripts` to get `M-x notmuch-slurp-this-debbug` and `M-x notmuch-slurp-debbug`. -- Sean Whit

Re: easy (?) elisp project for notmuch [it's mostly DONE]

2020-04-15 Thread Sean Whitton
let me know. Kyle, have you considered mirroring >> emacs-devel and the Emacs debbugs as well? > > Sean Whitton (in copy) maintains a script called notmuch-slurp-debbug > that does that. I can't remember if it is tested on the GNU instance of > debbugs. > > https://git.spwhi

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2020-02-29 Thread Sean Whitton
Hello David, On Sun 01 Dec 2019 at 09:01PM +00, David Edmondson wrote: > On Friday, 2019-11-29 at 13:01:00 -07, Sean Whitton wrote: > >> On Wed 27 Nov 2019 at 08:52PM +00, David Edmondson wrote: >>> It's a lot to ask, I know, but if you could provide a specifi

Re: Forcing a sync of maildir flags?

2020-02-21 Thread Sean Whitton
Hello, On Thu 20 Feb 2020 at 08:06PM -04, David Bremner wrote: > Sean Whitton writes: > >> So, your hypothesis is that notmuch is opting not to add the Seen flag >> in order to avoid having to move the message from new to cur, for the >> sake of mutt, but that's a bug

Re: Forcing a sync of maildir flags?

2020-02-20 Thread Sean Whitton
Hello David, Thank you for your reply. On Thu 20 Feb 2020 at 08:22AM -04, David Bremner wrote: > Sean Whitton writes: > >> I have this in my post-new hook: >> >> notmuch tag -unread -- folder:sent >> >> The idea is that copies of my sent mail which ge

Forcing a sync of maildir flags?

2020-02-19 Thread Sean Whitton
+unread -- folder:sent notmuch tag -unread -- folder:sent Is there some more elegant way to force a sync of maildir flags? Am I the only one that has copies of my own mail in my inbox folder, not marked as read from the point of view of anything except notmuch? Please CC me on replies. -- Sean

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-29 Thread Sean Whitton
n that thread IDs have some annoying properties, it would be > convenient to allow the caller to pass an arbitrary query. Yes, I certainly agree that it would be a more useful API. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-27 Thread Sean Whitton
[dropping Org-mode list per David's suggestion] Hello, On Wed 27 Nov 2019 at 01:08PM +00, David Edmondson wrote: > On Tuesday, 2019-11-26 at 16:25:29 -07, Sean Whitton wrote: > >> On Tue 26 Nov 2019 at 10:52PM +00, David Edmondson wrote: >> >>> The poor beha

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread Sean Whitton
scripts design question, not strictly relevant to the issue of ol-notmuch.el causing the notmuch-show-thread-id variable to be mispopulated. Thank you for your engagement with mailscripts, regardless!) -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread Sean Whitton
-patch If `notmuch-show-thread-id' contains a query which returns a single message, the wrong value is passed to notmuch-extract-patch(1), such that it may not extract all of the patches in the thread. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchma

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread Sean Whitton
tmuch:id:f...@bar.baz", the standard notmuch command `notmuch-show-filter-thread' doesn't work. And if you use `C-u c i` to yank the thread ID for pasting into a shell, say, you will yank a value which is not a thread ID. -- Sean Whitton ___ n

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread Sean Whitton
Dear maintainers, On Thu 21 Nov 2019 at 02:37PM -07, Sean Whitton wrote: > The function `org-notmuch-follow-link' in {org,ol}-notmuch.el calls > `notmuch-show' with an arbitrary notmuch search query. However, the > docstring for `notmuch-show' specifies that a notmuch thread ID, rath

Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-21 Thread Sean Whitton
), but it should convert it to a thread ID before passing it to `notmuch-show'. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: Removing notmuch-wash-excerpt-citations from hook breaks fontlocking

2018-07-25 Thread Sean Whitton
ouring cited text (this is an upstream bug: ;; that function does the colouring for performance reasons but the ;; right answer is to use fontlocking, not overlays, for the colouring) (setq notmuch-wash-citation-lines-prefix 1 notmuch-wash-citation-lines-suffix 10000) --

Removing notmuch-wash-excerpt-citations from hook breaks fontlocking

2018-07-24 Thread Sean Whitton
text. Actual result: Quoted text is not fontlocked. Thanks. -- Sean Whitton signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Generalising applying tag changes & resolving

2017-08-10 Thread Sean Whitton
' to add killed, mark as read and then get out of show mode and return to my list of search results. Ideally this wouldn't be a hack. -- Sean Whitton signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https

Maildir sync of seen flag confusing with multiple copies

2017-08-10 Thread Sean Whitton
, because then the message will keep showing as unread in other clients. -- Sean Whitton signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch