From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Amin Bandali <bandali@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Show *compilation* only if build did not succeed
Date: Sat, 22 Dec 2018 13:21:31 -0500 [thread overview]
Message-ID: <jwvy38hv2xj.fsf-monnier+INBOX@gnu.org> (raw)
In-Reply-To: <87ftupxxdl.fsf@aminb.org> (Amin Bandali's message of "Sat, 22 Dec 2018 12:52:06 -0500")
> (defadvice compilation-start
> (around inhibit-display
> (command &optional mode name-function highlight-regexp))
> (if (not (string-match "^\\(find\\|grep\\)" command))
> (cl-letf (((symbol-function 'display-buffer) #'ignore)
> ((symbol-function 'set-window-point) #'ignore)
> ((symbol-function 'goto-char) #'ignore))
> (save-window-excursion ad-do-it))
> ad-do-it))
BTW, is the `goto-char` override really effective?
It doesn't affect calls to goto-char made from byte-compiled code, so
there's a good chance that it ends up not doing anything.
Stefan
next prev parent reply other threads:[~2018-12-22 18:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-22 15:12 Show *compilation* only if build did not succeed Amin Bandali
2018-12-22 16:49 ` Stefan Monnier
2018-12-22 17:52 ` Amin Bandali
2018-12-22 18:21 ` Stefan Monnier [this message]
2018-12-22 19:09 ` Amin Bandali
2018-12-23 14:29 ` Stefan Monnier
2018-12-23 14:59 ` Amin Bandali
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://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvy38hv2xj.fsf-monnier+INBOX@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=bandali@gnu.org \
--cc=help-gnu-emacs@gnu.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.
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).