From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: Replace tool-bar print-buffer with ps-print-buffer-faces? Date: Wed, 04 Apr 2007 20:23:47 +0200 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175711873 27815 80.91.229.12 (4 Apr 2007 18:37:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 18:37:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 04 20:37:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HZAMR-0001e2-6E for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Apr 2007 20:37:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZAPi-0008Hi-Kj for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Apr 2007 14:40:58 -0400 Original-Newsgroups: gnu.emacs.help X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.; yo.b yq4$p; ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) Cancel-Lock: sha1:yCJfKQKVMKgcwr9FiXAD0lejW/Y= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1175711066 134.60.10.123 (4 Apr 2007 20:24:26 +0200) Original-Lines: 35 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-ulm.de!viandante.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:146823 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42427 Archived-At: On Tue, Apr 03 2007, Herbert Euler wrote: > (define-key tool-bar-map > [print-buffer] > '(menu-item "Print Buffer with Faces" > ps-print-buffer-with-faces > (nil) > :enable > (menu-bar-menu-frame-live-and-visible-p) > :help "Print current buffer with faces" > :image (image :type xpm :file > "/usr/local/share/emacs/23.0.0/etc/images/print.xpm"))) Thanks. I hoped that there's a way without hard-coding so many elements. At least the image location can be avoided: (define-key tool-bar-map [print-buffer] `(menu-item "Print Buffer with Faces" ps-print-buffer-with-faces (nil) :enable (menu-bar-menu-frame-live-and-visible-p) :help "Print current buffer with faces" :image (image :type xpm :file ,(image-search-load-path "print.xpm"))) But after glancing through `tool-bar-local-item-from-menu', it doesn't look promising. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/