bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#12833: 24.2.50; Avoid questions asked in the echo area to be ove


From: Sebastien Vauban
Subject: Re: bug#12833: 24.2.50; Avoid questions asked in the echo area to be overridden by messages
Date: Thu, 13 Dec 2012 12:17:49 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.90 (windows-nt)

Hi Stefan,

Stefan Monnier wrote:
>>> (defadvice read-from-minibuffer (before crush-message activate)
>>>   (message nil))
>>
>> Thanks for the tip!  However, no, it did not change anything...
>
> My guess is that the advice is not run, then. Probably because the
> minibuffer is setup via completing-read which is coded in C and calls
> Fread_from_minibuffer directly, thus bypassing advice.
>
> You can try adding
>
>    (defadvice completing-read (before crush-message activate)
>      (message nil))
>
> [ tho Fcompleting_read is also called a few times from the C code, so that
> advice will also be bypassed in various occasions. ]

Thanks again...

I now have added this to my .emacs:

--8<---------------cut here---------------start------------->8---
(defadvice read-from-minibuffer (before crush-message activate)
  (message nil))

(defadvice completing-read (before crush-message activate)
  (message nil))
--8<---------------cut here---------------end--------------->8---

However, that still does not solve this override problem...

Best regards,
  Seb

--
Sebastien Vauban


reply via email to

[Prev in Thread] Current Thread [Next in Thread]