From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: tool bar icons not updated according to :active condition Date: Sun, 26 Feb 2006 20:39:31 +0100 Message-ID: References: <873bi8ok5h.fsf@stupidchicken.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141027202 22408 80.91.229.2 (27 Feb 2006 08:00:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2006 08:00:02 +0000 (UTC) Cc: Chong Yidong , "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 27 08:59:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FDdIT-0002ve-8H for ged-emacs-devel@m.gmane.org; Mon, 27 Feb 2006 08:59:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDdIV-00054y-B2 for ged-emacs-devel@m.gmane.org; Mon, 27 Feb 2006 02:59:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FDT5B-0006tv-5Q for emacs-devel@gnu.org; Sun, 26 Feb 2006 16:05:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FDT4c-0006ee-6x for emacs-devel@gnu.org; Sun, 26 Feb 2006 16:05:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDT4Y-0006bu-4Z for emacs-devel@gnu.org; Sun, 26 Feb 2006 16:04:54 -0500 Original-Received: from [134.60.1.1] (helo=mail.uni-ulm.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FDT55-0005pG-LW for emacs-devel@gnu.org; Sun, 26 Feb 2006 16:05:28 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id k1QL4SpS004145; Sun, 26 Feb 2006 22:04:28 +0100 (MET) Original-Received: from viandante.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by bridgekeeper.physik.uni-ulm.de (Postfix) with SMTP id BDF2B11028; Sun, 26 Feb 2006 22:04:26 +0100 (CET) Original-Received: (nullmailer pid 15971 invoked by uid 170); Sun, 26 Feb 2006 19:39:31 -0000 Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org, "Kim F. Storm" , Chong Yidong X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od (Kim F. Storm's message of "Sun, 26 Feb 2006 00:30:30 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-MessageCare-Metrics: gemini 1108; Body=3 Fuz1=3 Fuz2=3 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:51009 Archived-At: On Sun, Feb 26 2006, Kim F. Storm wrote: > Reiner Steib writes: > >> The following code updates the frame and the tool bar, but I think it >> is too expensive (and maybe irritating for the user) because it >> affects the whole frame, not only the tool bar. Is it possible to >> limit redrawing to the tool bar? > > No, but I think force-window-update is cheaper than redraw-frame. But `force-window-update' doesn't update correctly (with GTK). On Sun, Feb 26 2006, Chong Yidong wrote: > I dunno if we want to redisplay the tool bar every time point moves, > in general. No. Even Gnus Group buffer I found it annoying (e.g. using or repeatedly). When restricted to line changes and evaluated when idle is might be okay. > Maybe using post-command-hook is a good solution for those modes > that need it. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/