From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.devel Subject: Is it possible to use tooltips only for some modes Date: Fri, 05 Aug 2005 11:57:47 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123236479 3034 80.91.229.2 (5 Aug 2005 10:07:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2005 10:07:59 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 05 12:07:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0z7E-00056W-DR for ged-emacs-devel@m.gmane.org; Fri, 05 Aug 2005 12:07:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0z6R-0008Hs-R0 for ged-emacs-devel@m.gmane.org; Fri, 05 Aug 2005 06:06:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E0z2t-0007Xk-9f for emacs-devel@gnu.org; Fri, 05 Aug 2005 06:03:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E0z2p-0007WD-Ps for emacs-devel@gnu.org; Fri, 05 Aug 2005 06:03:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0z2p-0007TG-LF for emacs-devel@gnu.org; Fri, 05 Aug 2005 06:03:15 -0400 Original-Received: from [192.11.222.161] (helo=ihemail1.lucent.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E0zAa-0001qn-Tl for emacs-devel@gnu.org; Fri, 05 Aug 2005 06:11:17 -0400 Original-Received: from nbgif1.de.lucent.com (h135-246-31-82.lucent.com [135.246.31.82]) by ihemail1.lucent.com (8.12.11/8.12.11) with ESMTP id j759vnB5012514 for ; Fri, 5 Aug 2005 04:57:49 -0500 (CDT) Original-Received: from sfsws1.de.lucent.com (sfsws1 [135.246.31.38]) by nbgif1.de.lucent.com (8.11.7p1+Sun/8.11.7) with ESMTP id j759vmp28387 for ; Fri, 5 Aug 2005 11:57:48 +0200 (MEST) Original-Received: from sfsw51.de.lucent.com (sfsw51 [135.246.72.99]) by sfsws1.de.lucent.com (8.11.7p1+Sun/8.8.5) with ESMTP id j759vla10161 for ; Fri, 5 Aug 2005 11:57:48 +0200 (MEST) Original-Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7p1+Sun/8.8.8) id j759vlp18668; Fri, 5 Aug 2005 11:57:47 +0200 (MEST) X-Authentication-Warning: sfsw51.de.lucent.com: kzeitler set sender to kzeitler@lucent.com using -f Original-To: emacs-devel@gnu.org X-Kibo-Says: Let's eat! User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v) 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:41527 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41527 While I think tooltips are good for the toolbar icons and great for the modeline, I find them sometimes annoying, especially in occur buffer. e.g. when I move the cursor in the occur buffer emacs keeps hiding lines behind the tooltip "mouse-2: go to this occurence". Showing the tooltip once when one enters the buffer would be ok. Maybe I missed something, but it seems that one can only globally enable/disable tooltips. I think one should be able to make them buffer local or, even better, be able to enable/disable tooltips for some features (like modeline etc.). I've toyed with this idea and tried (add-hook 'occur-mode-hook (lambda () (make-variable-buffer-local 'show-help-function) (setq show-help-function nil))) This sort of works, but of course it also disables the tooltips for toolbar and modeline of this buffer. -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kzeitler@lucent.com | ------------------------------------------ --- A fool with a tool is still a fool -- Grady Booch