help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replace tool-bar print-buffer with ps-print-buffer-faces?


From: Reiner Steib
Subject: Re: Replace tool-bar print-buffer with ps-print-buffer-faces?
Date: Wed, 04 Apr 2007 20:23:47 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]