all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Bernhard Koenig <b.a.koenig@googlemail.com>
Cc: emacs-devel@gnu.org
Subject: Re: enhancement/wish
Date: Tue, 28 Oct 2008 17:39:28 +0100	[thread overview]
Message-ID: <49074040.7060102@swipnet.se> (raw)
In-Reply-To: <de34c09f0810280117h6d135041ib31afd548831fae8@mail.gmail.com>



Bernhard Koenig skrev:
> Thanks Jan, that worked. Can I make it global? (It's currently showing
> up in things like .zshrc, .emacs even in M-x shell but not in the
> Latex environment.)
> 

I guess your latex environment has its own tool bar map.  You must find some 
hook for when that environment starts so you then can add your item to that 
tool bar map.  Normally the variable tool-bar-map should be made buffer local 
if some mode installs its own tool map.  See for example how 
lisp/progmodes/grep.el does it.

	Jan D.

> Bernhard
> 
> 
> On Tue, Oct 28, 2008 at 3:29 AM, Jan D. <jan.h.d@swipnet.se> wrote:
>> Bernhard Koenig skrev:
>>> Yes, I did restart. I found a thread with a similar problem but I
>>> don't know how to resolve it:
>>> http://www.nabble.com/Ciao-on-Intel-Mac-td15000558.html
>>>
>>> In this thread they define a new function ciao-setup-tool-bar-helper,
>>> but I don't understand the syntax. The patch below gives me
>>> (wrong-type-argument listp "Recent"), the same problem from the url.
>>>
>> The syntax below is wrong. '("history" . "Recent") shall be replaced with a
>> name of an icon file to use, such as "open".  See etc/images for available
>> images.  You can of course add your own.
>>
>> Also note that you must have recentf-mode on to see the tool bar item.
>>
>>        Jan D.
>>
>>> Bernhard
>>>
>>>
>>> On Tue, Oct 28, 2008 at 12:12 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>>>>> Date: Mon, 27 Oct 2008 19:38:29 -0400
>>>>> From: "Bernhard Koenig" <b.a.koenig@googlemail.com>
>>>>> Cc: emacs-devel@gnu.org
>>>>>
>>>>>>  (tool-bar-add-item '("history" . "Recent") (lambda ()
>>>>>>                             (interactive)
>>>>>>                             (popup-menu (easy-menu-filter-return
>>>>>>                                          (recentf-make-menu-items)
>>>>>>                                          "Open Recent")))
>>>>>>                    'recent-files
>>>>>>                    :visible '(and (boundp 'recentf-mode) recentf-mode)
>>>>>>                    :help "Pop up the Recent Files menu")
>>>>> Sorry for being a noob here but how do I integrate this into .emacs?
>>>>> "tool-bar-add-item" is not an interactive command so just adding it to
>>>>> .emacs does nothing.
>>>> ??? .emacs is not only for interactive commands.  If adding this to it
>>>> does nothing, then something is wrong.
>>>>
>>>> You did restart Emacs after adding this, did you?
>>>>
>>>
>>




  parent reply	other threads:[~2008-10-28 16:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-25  0:36 enhancement/wish Bernhard Koenig
2008-10-25  8:12 ` enhancement/wish Eli Zaretskii
     [not found]   ` <de34c09f0810250129m5fea708bh78e06f9219fd864@mail.gmail.com>
2008-10-25 10:25     ` enhancement/wish Eli Zaretskii
2008-10-25 15:20 ` enhancement/wish David Reitter
2008-10-25 20:21   ` enhancement/wish Bernhard Koenig
2008-10-27 23:38   ` enhancement/wish Bernhard Koenig
2008-10-28  4:12     ` enhancement/wish Eli Zaretskii
2008-10-28  5:11       ` enhancement/wish Bernhard Koenig
     [not found]         ` <4906BF50.40709@swipnet.se>
2008-10-28  8:17           ` enhancement/wish Bernhard Koenig
2008-10-28  8:38             ` enhancement/wish Bernhard Koenig
2008-10-28 16:39             ` Jan Djärv [this message]
2008-10-28 20:40               ` enhancement/wish Bernhard Koenig
2008-10-29  7:01                 ` enhancement/wish Bernhard Koenig
2008-10-29  7:26                 ` enhancement/wish Jan D.
2008-10-29  7:40                   ` enhancement/wish Bernhard Koenig
2008-10-29 11:21                     ` enhancement/wish Jan D.
2008-10-29 17:01 ` enhancement/wish Chming
2008-10-29 20:10   ` enhancement/wish Bernhard Koenig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49074040.7060102@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=b.a.koenig@googlemail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.