all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleh Krehel <ohwoeowho@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Is there a way to inhibit message3 from Elisp?
Date: Tue, 21 Apr 2015 20:50:59 +0200	[thread overview]
Message-ID: <87a8y1l3ho.fsf@gmail.com> (raw)
In-Reply-To: <jwvvbgp9zqw.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 21 Apr 2015 13:17:15 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> My particular use-case is that I'm doing completion in the minibuffer
>> with ivy.el, calling `shell-command-to-string' in the `post-command-hook'.
>> And when I enable `while-no-input' in my function, my minibuffer
>> contents get rudely interrupted by `call_process_cleanup' saying:
>>> "Waiting for process to die...done"
>> I'm sure that this message is needed and appericated,
>
> Actually, I'm not.  IIUC this message appears if a call-process is
> interrupted before the subprocess dies.   I think this message in not
> desired in general.  It's OK to emit such a message if call-process ends
> up waiting a non-negligible amount of time for the subprocess to die
> (so as to explain to the user why Emacs is not responding), but for the
> usual case where wait_for_termination returns quickly, we should not
> emit any message at all.
>
> Patch welcome to fix this problem.

Please check the scratch/inhibit-message3 branch.
I don't have experience with Emacs C code, let me know if I'm doing
something in a silly way.

I got this code to work as I expect:

(progn
  (setq inhibit-message t)
  (message "foo")
  (setq inhibit-message nil))

However, this doesn't work:

(let ((inhibit-message t))
  (message "foo"))

And I don't know why.

Oleh



  reply	other threads:[~2015-04-21 18:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21 13:37 Is there a way to inhibit message3 from Elisp? Oleh Krehel
2015-04-21 17:17 ` Stefan Monnier
2015-04-21 18:50   ` Oleh Krehel [this message]
2015-04-21 23:25     ` Artur Malabarba
2015-04-22  6:00       ` Oleh Krehel
2015-04-22 10:53     ` Eli Zaretskii
2015-04-22 11:55       ` Oleh Krehel
2015-04-22 12:24         ` Eli Zaretskii
2015-04-22 12:50           ` Oleh Krehel
2015-04-22 13:01             ` Eli Zaretskii
2015-04-22 13:51           ` Stefan Monnier
2015-04-22 13:48             ` Oleh Krehel
2015-04-22 17:39             ` Artur Malabarba
2015-04-22 20:20               ` Stefan Monnier
2015-04-22 12:42         ` Artur Malabarba
2015-04-22 17:22         ` Artur Malabarba
2015-04-22 17:20           ` Oleh Krehel
2015-04-22 13:53     ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=87a8y1l3ho.fsf@gmail.com \
    --to=ohwoeowho@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.