From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bernhard Koenig" Newsgroups: gmane.emacs.devel Subject: Re: enhancement/wish Date: Wed, 29 Oct 2008 03:40:22 -0400 Message-ID: References: <4906BF50.40709@swipnet.se> <49074040.7060102@swipnet.se> <49081026.1040106@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225266047 11892 80.91.229.12 (29 Oct 2008 07:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2008 07:40:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Jan D." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 29 08:41:48 2008 connect(): Connection refused 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.50) id 1Kv5gT-0001q0-TT for ged-emacs-devel@m.gmane.org; Wed, 29 Oct 2008 08:41:42 +0100 Original-Received: from localhost ([127.0.0.1]:47651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kv5fN-0000sJ-G6 for ged-emacs-devel@m.gmane.org; Wed, 29 Oct 2008 03:40:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kv5fH-0000rG-LX for emacs-devel@gnu.org; Wed, 29 Oct 2008 03:40:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kv5fG-0000q9-45 for emacs-devel@gnu.org; Wed, 29 Oct 2008 03:40:26 -0400 Original-Received: from [199.232.76.173] (port=60579 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kv5fF-0000pw-UE for emacs-devel@gnu.org; Wed, 29 Oct 2008 03:40:25 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:18143) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kv5fF-0007O3-EL for emacs-devel@gnu.org; Wed, 29 Oct 2008 03:40:25 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.169]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kv5fE-0007Ad-JM for emacs-devel@gnu.org; Wed, 29 Oct 2008 03:40:24 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 36so574841uga.17 for ; Wed, 29 Oct 2008 00:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Ks4XgpEgdwsN5i7yKe6Fsmza3qjerFhH/oFAThODkjY=; b=ukW3h+2lsLR5ck2NIjrNwnFdeq9QKCyWD4mH0MwEgWZVL1n95vcSg3AcRP1TKQNbT0 8fTlRVVnLER+r93a/TTHCC8pYkplScRVlsybw8PWCYWOgpCTb63ceyjGSEtk6iMFz/1j 6uliB5kNi1RY2xM8zaa/MeMreTiGytoImBYQA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=o0TjxK8CqA2UXuZAU2o8I0GAsvza4XYabkhHEBzViVOt1zRywwjRW+8+/moKAnjRhV Xz0ian1u7pMy4+sI7QIKNwN3TTw/GKCUT8b6ewtpZPSvybGgm3tothQmwiSxqpu+Q67c GrIOzVMmGi4y2xQAMnFuBDdlMBYBKaUBjRCec= Original-Received: by 10.67.16.11 with SMTP id t11mr535953ugi.84.1225266022569; Wed, 29 Oct 2008 00:40:22 -0700 (PDT) Original-Received: by 10.67.31.19 with HTTP; Wed, 29 Oct 2008 00:40:22 -0700 (PDT) In-Reply-To: <49081026.1040106@swipnet.se> Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:105132 Archived-At: > From what I see, LaTeX-mode-hook does not set its own tool bar map. So you > should not have to do anything. It should work. Are you sure recentf-mode > is on when you switch to latex-mode? I found my problem with LaTeX-mode-hook: I had the line (add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar) in my .emacs which overwrites tool-bar-map. But then I commented out this line (I think it might be obsolete) and everything worked. > As for info mode, just put your code in a defun: > > (defun my-tool-bar-addition () > ;; the code you have goes here > ) > > (add-hook 'Info-mode-hook 'my-tool-bar-addition) Yes, I did that, see my mail 30 min earlier. Hmm, is it info-mode-hook or Info-mode-hook? > For other modes, you have to find their hook variable. > AFAIK, there is no way to add an item to "all tool bars", so it > automatically gets added to new tool bars that modes may install. Maybe we > need such a command. It would be nice to have global hook, something that incorporates all hooks, or at least almost all of them. Best, Bernhard