unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: jxa127@verizon.net
To: 12787@debbugs.gnu.org
Cc: jxa127@verizon.net
Subject: bug#12787: Toolbar regression from Emacs 23 to Emacs 24 -- Save As and Help no longer available
Date: Fri, 02 Nov 2012 12:29:17 -0500 (CDT)	[thread overview]
Message-ID: <8698659.1494633.1351877357323.JavaMail.root@vms170027> (raw)

The "Save As" and "Help" buttons from the tool bar are no longer available in Emacs 24. This change was not identified in the News.

My attempts to replace them fail.

I make the following changes in tool-bar.el:
-------------------------------------------------------------- 
(defun tool-bar-setup ()
  (setq tool-bar-separator-image-expression
    (tool-bar--image-expression "separator"))
(tool-bar-add-item-from-menu 'find-file "new" nil :label "New File"
     :vert-only t)
(tool-bar-add-item-from-menu 'menu-find-file-existing "open" nil
     :label "Open" :vert-only t)
(tool-bar-add-item-from-menu 'dired "diropen" nil :vert-only t)
(tool-bar-add-item-from-menu 'kill-this-buffer "close" nil :vert-only t)
(tool-bar-add-item-from-menu 'save-buffer "save" nil
     :label "Save")

 
;; ---> I add the ?Save As? button here:
(tool-bar-add-item-from-menu 'write-file "saveas" nil
     :label "Save as")

 
(define-key-after (default-value 'tool-bar-map) [separator-1] menu-bar-separator)
(tool-bar-add-item-from-menu 'undo "undo" nil)
(define-key-after (default-value 'tool-bar-map) [separator-2] menu-bar-separator)
(tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [cut])
     "cut" nil :vert-only t)
(tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [copy])
     "copy" nil :vert-only t)
(tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [paste])
     "paste" nil :vert-only t)
(define-key-after (default-value 'tool-bar-map) [separator-3] menu-bar-separator)
(tool-bar-add-item-from-menu 'isearch-forward "search"
     nil :label "Search" :vert-only t)
;;(tool-bar-add-item-from-menu 'ispell-buffer "spell")
;; There's no icon appropriate for News and we need a command rather
;; than a lambda for Read Mail.
;;(tool-bar-add-item-from-menu 'compose-mail "mail/compose")

 
;; ---> I uncomment the help button here:
;; Help button on a tool bar is rather non-standard...
(let ((tool-bar-map (default-value 'tool-bar-map)))
     (tool-bar-add-item "help" (lambda ()
     (interactive)
     (popup-menu menu-bar-help-menu))
          'help
         :help "Pop up the Help menu"))
)
-------------------------------------------------------------- 
I save tool-bar.el, compile it to tool-bar.elc and then restart Emacs, but the buttons are not there.

 
I can evaluate portions of tool-bar.el to make the button appear during one session, but they will not appear at start-up.

 
Thank you,

 
Drew Ames





             reply	other threads:[~2012-11-02 17:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02 17:29 jxa127 [this message]
2012-11-02 18:15 ` bug#12787: Toolbar regression from Emacs 23 to Emacs 24 -- Save As and Help no longer available Glenn Morris
2012-11-02 19:15 ` bug#12787: " jxa127
2012-11-02 20:00   ` Eli Zaretskii
2012-11-02 20:21     ` bug#12787: Re: bug#12787: Toolbar regression from Emacs 23 to Emacs24 " Drew Adams
2012-11-02 19:33 ` bug#12787: Toolbar regression from Emacs 23 to Emacs 24 " Glenn Morris
2012-11-02 20:15 ` bug#12787: " jxa127
2012-11-02 20:27   ` bug#12787: Re: bug#12787: Toolbar regression from Emacs 23 to Emacs24 " Drew Adams
2012-11-02 22:13   ` bug#12787: Toolbar regression from Emacs 23 to Emacs 24 " Glenn Morris
2012-11-24 18:50     ` Glenn Morris
2012-11-02 20:24 ` bug#12787: Re: bug#12787: " jxa127
2012-11-02 20:48 ` bug#12787: RE: bug#12787: Re: bug#12787: Toolbar regression from Emacs 23 to Emacs24 " jxa127
     [not found] ` <handler.12787.D12787.135378310910029.notifdone@debbugs.gnu.org>
2012-11-24 21:04   ` bug#12787: closed (Re: bug#12787: Toolbar regression from Emacs 23 to Emacs 24 -- Save As and Help no longer available) Drew Ames

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8698659.1494633.1351877357323.JavaMail.root@vms170027 \
    --to=jxa127@verizon.net \
    --cc=12787@debbugs.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).