From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.bugs Subject: Re: bug#12833: 24.2.50; Avoid questions asked in the echo area to be overridden by messages Date: Wed, 05 Dec 2012 09:49:41 +0100 Organization: Sebastien Vauban Message-ID: <80txs03mu2.fsf@somewhere.org> References: <80liec1dea.fsf@somewhere.org> <1354662544.WXHGMQZGWMUF@spammotel.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354697409 30675 80.91.229.3 (5 Dec 2012 08:50:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2012 08:50:09 +0000 (UTC) To: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Wed Dec 05 09:50:22 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TgAgQ-00038Z-1a for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2012 09:50:22 +0100 Original-Received: from localhost ([::1]:44962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgAgD-0005rX-Tn for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2012 03:50:09 -0500 Original-Received: by 10.180.87.170 with SMTP id az10mr272216wib.0.1354697382489; Wed, 05 Dec 2012 00:49:42 -0800 (PST) Original-Path: usenet.stanford.edu!m1no10775612wiv.0!news-out.google.com!i11ni22772wiw.0!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!feeder.ecngs.de!ecngs!feeder2.ecngs.de!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 56 Injection-Info: mx04.eternal-september.org; posting-host="368fa3c7dc5c1bbe516391bd65bd1ab2"; logging-data="14514"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX1/lyN9slXplA0n/zEivXE0M" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:mx/YjhFuY6Lwd356bHsVAxaJlVE= sha1:3hc4q+sfyQtTZJzA06S2hDCrqpc= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.bug:94327 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:67961 Archived-At: Hi Stefan, Stefan Monnier wrote: >> What does that change in case of interactive question? >> >> If I do 1 require before asking a question to the user, the message about >> that require should hardly be visible (if visible at all -- because >> actions happen so quickly). The question should use the space of the >> information message, point. > > I see, yes, that would make sense. Does that mean it will be fixed that way? BTW, I tested a workaround in the meanwhile: let-binding `minibuffer-message-timeout' to 0. --8<---------------cut here---------------start------------->8--- (defadvice require (around require-around) "Leave a trace of packages being loaded." (let* ((feature (ad-get-arg 0)) (require-depth (or (and (boundp 'require-depth) require-depth) 0)) (prefix (concat (make-string (* 2 require-depth) ? ) "+-> ")) (minibuffer-message-timeout 0)) (cond ((featurep feature) (message "(info) %sRequiring `%s'... already loaded" prefix feature) (setq ad-return-value feature)) (t (let ((lvn/time-start)) (message "(info) %sRequiring `%s'..." prefix feature) (setq lvn/time-start (float-time)) (let ((require-depth (1+ require-depth))) ad-do-it) (message "(info) %sRequiring `%s'... %s (loaded in %.2f s)" prefix feature (locate-library (symbol-name feature)) (- (float-time) lvn/time-start))))))) (ad-activate 'require)) --8<---------------cut here---------------end--------------->8--- However, that does not work: questions are still overridden for 2 seconds by old messages. Setting it globally, in my .emacs, to 0 does well work. Am I missing something? Best regards, Seb -- Sebastien Vauban