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: Tue, 28 Oct 2008 04:38:07 -0400 Message-ID: References: <4906BF50.40709@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 1225183107 5367 80.91.229.12 (28 Oct 2008 08:38:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 08:38:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Jan D." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 09:39:29 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 1Kuk6p-0002ZB-9W for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 09:39:27 +0100 Original-Received: from localhost ([127.0.0.1]:33666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kuk5j-0007x8-5W for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 04:38:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kuk5b-0007v3-G2 for emacs-devel@gnu.org; Tue, 28 Oct 2008 04:38:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kuk5a-0007uB-9N for emacs-devel@gnu.org; Tue, 28 Oct 2008 04:38:10 -0400 Original-Received: from [199.232.76.173] (port=49513 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kuk5a-0007u4-3X for emacs-devel@gnu.org; Tue, 28 Oct 2008 04:38:10 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.174]:37240) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kuk5Z-0005Wq-Mf for emacs-devel@gnu.org; Tue, 28 Oct 2008 04:38:09 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 36so207798uga.17 for ; Tue, 28 Oct 2008 01:38:07 -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=/QQllNoCw43MNurQyJ7/OZO4I+1/BTfNwm3AC1CTxvw=; b=xwGGzPgoU53BnP2Bk1ME/w/V1/Fv5SWRYCrD/o8ol1WV6aPea0RCjod+I7BKWA1Gck zifum350CMQuvngOh8Ti50w0XftVd+jZYmyaLzAzVoeDtnB2YkWettA8khF8jihR6Tbb zrv186PK/gQPobEEMYoj0hBBxU7h6SKEtptqs= 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=a7Ci9ETESDfvwsTIu1YCL+483EucmHgtfz5jRg8wKvoWJeiw6IGYpVumV3CpgeYfjj OBlGZhl5mlfWPdsdXE7btEVL+bEDJ5/Re2Ik7kymr1vSLPxiadaR/f09r0Zpu4tSl3r6 /CHodWX6+hcPCrjyh/T+Rbk9SslwnVT49sFoM= Original-Received: by 10.67.95.4 with SMTP id x4mr2777520ugl.16.1225183087466; Tue, 28 Oct 2008 01:38:07 -0700 (PDT) Original-Received: by 10.67.31.19 with HTTP; Tue, 28 Oct 2008 01:38:07 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:105063 Archived-At: Btw, could we add this as an example to http://www.gnu.org/software/emacs/elisp/html_node/Tool-Bar.html ? I googled 24/7 (no kidding) and found no examples at all, not even in www.dotemacs.org. I would be happy to write a small paragraph about it even though I'm clearly a non-expert. Best, Bernhard On Tue, Oct 28, 2008 at 4:17 AM, Bernhard Koenig wrote: > 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.) > > Bernhard > > > On Tue, Oct 28, 2008 at 3:29 AM, Jan D. 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 wrote: >>>>> >>>>> Date: Mon, 27 Oct 2008 19:38:29 -0400 >>>>> From: "Bernhard Koenig" >>>>> 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? >>>> >>> >>> >> >> >