From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77110 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters Date: Tue, 22 Feb 2011 11:28:54 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87aaho0yi1.fsf@lifelogs.com> References: <87ei76yi1x.fsf@lifelogs.com> <87lj1ergg5.fsf@gmx.de> <87ipwi3hjm.fsf@lifelogs.com> <87fwrmr6gf.fsf@gmx.de> <8739nm1u6n.fsf_-_@lifelogs.com> <878vxdxfzw.fsf@lifelogs.com> <87fwrj6j18.fsf@gmx.de> <87zkpp43s2.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298395782 7855 80.91.229.12 (22 Feb 2011 17:29:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 17:29:42 +0000 (UTC) Cc: ding@gnus.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 22 18:29:38 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Prw3H-00068y-Pw for ged-emacs-devel@m.gmane.org; Tue, 22 Feb 2011 18:29:37 +0100 Original-Received: from localhost ([127.0.0.1]:47052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prw37-0006wa-LF for ged-emacs-devel@m.gmane.org; Tue, 22 Feb 2011 12:29:21 -0500 Original-Received: from [140.186.70.92] (port=52986 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prw30-0006w8-G2 for emacs-devel@gnu.org; Tue, 22 Feb 2011 12:29:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Prw2w-0002LD-IP for emacs-devel@gnu.org; Tue, 22 Feb 2011 12:29:14 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:49229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Prw2w-0002KV-50 for emacs-devel@gnu.org; Tue, 22 Feb 2011 12:29:10 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Prw2t-00060K-VK for emacs-devel@gnu.org; Tue, 22 Feb 2011 18:29:07 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2011 18:29:07 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2011 18:29:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 60 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:rspP1GyFTkJNbPyrWzAiphIAijE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136373 gmane.emacs.gnus.general:77110 Archived-At: On Mon, 21 Feb 2011 19:54:21 +0100 Michael Albinus wrote: MA> Ah, yes. I was not aware of `format-mode-line'. It also works with my MA> proposed patch, and the following snippet: MA> (defun blink-mode-line () MA> (let* ((pos (mod count (length mlf)))) MA> (setq count (1+ count)) MA> (concat (substring mlf 0 pos) MA> (propertize (substring mlf pos (1+ pos)) 'face '(:inverse-video t)) MA> (substring mlf (1+ pos) (length mlf))))) MA> (setq count 0 MA> pr (make-progress-reporter 'mode-line-format)) MA> (let ((mlf (format-mode-line mode-line-format t)) MA> (progress-reporter--pulse-characters (vector '(:eval (blink-mode-line))))) MA> (while t (progress-reporter-update pr))) On Fri, 18 Feb 2011 17:33:16 -0500 Stefan Monnier wrote: SM> Ted wrote: >> It would be nice if Gnus showed progress like that, actually. There's >> many Gnus parts that show numeric progress in the minibuffer >> (e.g. nnimap downloads) that could be less noisy. SM> Maybe I misunderstand: for me the authentication part is instantaneous, SM> which is why it doesn't seem to warrant any kind of progress indication. SM> The act of connecting does take time, but this one already has SM> messages telling me what's going on. So maybe the issue is that SM> your authentication steps somehow take up more time? But *if* it takes a long time that indicates problems. The Secrets API backend in auth-source.el, for instance, is much slower than the netrc backend. On Fri, 18 Feb 2011 14:04:14 -0800 Lars Ingebrigtsen wrote: LI> Ted Zlatanov writes: >> It would be nice if Gnus showed progress like that, actually. There's >> many Gnus parts that show numeric progress in the minibuffer >> (e.g. nnimap downloads) that could be less noisy. LI> Yeah, a general progress bar (in the mode line) would be really nice LI> when downloading things or generating a large summary buffer. Showing LI> "25% done" (etc) in the echo area works, but it's kinda more distracting LI> than it needs to be. (And overwrites any "real" messages that may be LI> displayed.) Can you try Michael's patch and example I cited and see if it works for you? I think it's OK and if you are happy with it, should go into Emacs. I brought the discussion back under this thread because the other one's subject ("auth-source-search: annoying messages") was not as appropriate. Sorry for the confusion this may cause. Thanks Ted