diff options
author | Glenn Morris <rgm@gnu.org> | 2007-10-13 02:58:56 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-10-13 02:58:56 +0000 |
commit | e430c6239079d297a115b0bed873225b784ac629 (patch) | |
tree | b1c10c9ae41373c805c45ada8757441cf15b46b8 /lisp/progmodes/idlw-toolbar.el | |
parent | 8ffcfb276222faba1f0e6f2eff3d57fd1344e411 (diff) | |
download | emacs-e430c6239079d297a115b0bed873225b784ac629.tar.gz emacs-e430c6239079d297a115b0bed873225b784ac629.tar.bz2 emacs-e430c6239079d297a115b0bed873225b784ac629.zip |
(idlwave-toolbar-add-everywhere)
(idlwave-toolbar-remove-everywhere): Use mapc rather than mapcar.
Diffstat (limited to 'lisp/progmodes/idlw-toolbar.el')
-rw-r--r-- | lisp/progmodes/idlw-toolbar.el | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/lisp/progmodes/idlw-toolbar.el b/lisp/progmodes/idlw-toolbar.el index 2d143a3ddaa..4400c30b09d 100644 --- a/lisp/progmodes/idlw-toolbar.el +++ b/lisp/progmodes/idlw-toolbar.el @@ -916,21 +916,21 @@ static char * file[] = { (idlwave-toolbar-add)) (buffer-list))) ;; For Emacs, add the key definitions to the mode maps - (mapcar (lambda (x) - (let* ((icon (aref x 0)) - (func (aref x 1)) - (show (aref x 2)) - (help (aref x 3)) - (key (vector 'tool-bar func)) - (def (list 'menu-item - "a" - func - :image (symbol-value icon) - :visible show - :help help))) - (define-key idlwave-mode-map key def) - (define-key idlwave-shell-mode-map key def))) - (reverse idlwave-toolbar))) + (mapc (lambda (x) + (let* ((icon (aref x 0)) + (func (aref x 1)) + (show (aref x 2)) + (help (aref x 3)) + (key (vector 'tool-bar func)) + (def (list 'menu-item + "a" + func + :image (symbol-value icon) + :visible show + :help help))) + (define-key idlwave-mode-map key def) + (define-key idlwave-shell-mode-map key def))) + (reverse idlwave-toolbar))) (setq idlwave-toolbar-visible t))) (defun idlwave-toolbar-remove-everywhere () @@ -947,15 +947,15 @@ static char * file[] = { (idlwave-toolbar-remove)) (buffer-list))) ;; For Emacs, remove the key definitions from the mode maps - (mapcar (lambda (x) - (let* (;;(icon (aref x 0)) - (func (aref x 1)) - ;;(show (aref x 2)) - ;;(help (aref x 3)) - (key (vector 'tool-bar func))) - (define-key idlwave-mode-map key nil) - (define-key idlwave-shell-mode-map key nil))) - idlwave-toolbar)) + (mapc (lambda (x) + (let* (;;(icon (aref x 0)) + (func (aref x 1)) + ;;(show (aref x 2)) + ;;(help (aref x 3)) + (key (vector 'tool-bar func))) + (define-key idlwave-mode-map key nil) + (define-key idlwave-shell-mode-map key nil))) + idlwave-toolbar)) (setq idlwave-toolbar-visible nil))) (defun idlwave-toolbar-toggle (&optional force-on) |