unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org
Subject: Re: [RFC PATCH 2/4] emacs: add no-display arg to notmuch-hello-refresh-hook
Date: Tue, 17 Apr 2012 13:31:57 +0400	[thread overview]
Message-ID: <87y5pun1pu.fsf@gmail.com> (raw)
In-Reply-To: <87hawivh73.fsf@nikula.org>

Jani Nikula <jani@nikula.org> writes:

> On Tue, 17 Apr 2012 13:06:13 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
>> Can you please give some explanaition why is this needed?  Would this
>> change break custom hooks that do not expect any arguments?
>
> For patch 3/4. We don't want to display a message if someone calls
> (notmuch-hello-update t) from some script, and notmuch-hello buffer
> isn't even visible.
>
> Yes, it would break custom hooks. And a bunch of tests. But I think it
> would be useful for custom hooks too, for the same reason as above.
>

Makes sense.  I think it should be mentioned in the commit message.
Especially the fact that it breaks existing hooks.  We should mention it
in the NEWS later as well.

Regards,
  Dmitry

> Jani.
>
>
>
>> 
>> Regards,
>>   Dmitry
>> 
>> Jani Nikula <jani@nikula.org> writes:
>> 
>> > ---
>> >  emacs/notmuch-hello.el |    2 +-
>> >  1 files changed, 1 insertions(+), 1 deletions(-)
>> >
>> > diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
>> > index 9cd907a..0596bbe 100644
>> > --- a/emacs/notmuch-hello.el
>> > +++ b/emacs/notmuch-hello.el
>> > @@ -776,7 +776,7 @@ following:
>> >      (widget-setup)
>> >  
>> >      (goto-char final-target-pos))
>> > -  (run-hooks 'notmuch-hello-refresh-hook)
>> > +  (run-hook-with-args 'notmuch-hello-refresh-hook no-display)
>> >    (setq notmuch-hello-first-run nil))
>> >  
>> >  (defun notmuch-folder ()
>> > -- 
>> > 1.7.1
>> >
>> > _______________________________________________
>> > notmuch mailing list
>> > notmuch@notmuchmail.org
>> > http://notmuchmail.org/mailman/listinfo/notmuch

  reply	other threads:[~2012-04-17  9:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17  8:35 [RFC PATCH 1/4] emacs: simplify point placement in notmuch-hello Jani Nikula
2012-04-17  8:35 ` [RFC PATCH 2/4] emacs: add no-display arg to notmuch-hello-refresh-hook Jani Nikula
2012-04-17  9:06   ` Dmitry Kurochkin
2012-04-17  9:30     ` Jani Nikula
2012-04-17  9:31       ` Dmitry Kurochkin [this message]
2012-04-17  8:35 ` [RFC PATCH 3/4] emacs: add notmuch hello refresh hook to display message count change Jani Nikula
2012-04-17  9:13   ` Dmitry Kurochkin
2012-04-17  9:35     ` Jani Nikula
2012-04-17  9:43       ` Dmitry Kurochkin
2012-04-17  8:35 ` [RFC PATCH 4/4] emacs: add notmuch hello refresh hook to place point in a widget Jani Nikula
2012-04-17  9:16   ` Dmitry Kurochkin
2012-04-17  9:38     ` Jani Nikula
2012-04-17  9:04 ` [RFC PATCH 1/4] emacs: simplify point placement in notmuch-hello Dmitry Kurochkin
2012-04-17  9:58   ` Jani Nikula
2012-04-17 14:17     ` Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5pun1pu.fsf@gmail.com \
    --to=dmitry.kurochkin@gmail.com \
    --cc=jani@nikula.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).