Mercurial > emacs
comparison lisp/term/mac-win.el @ 83676:27d11c1d4e46
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 857-862)
- Update from CVS
- Merge from emacs--rel--22
- Update from CVS: lisp/emacs-lisp/avl-tree.el: New file.
* emacs--rel--22 (patch 97-100)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 246-247)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-38
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 27 Aug 2007 09:21:49 +0000 |
parents | 2a69b973fae2 273d8da82439 |
children | 727d03075a75 |
comparison
equal
deleted
inserted
replaced
83675:67601f702028 | 83676:27d11c1d4e46 |
---|---|
1799 ;;; Converted Carbon Events | 1799 ;;; Converted Carbon Events |
1800 (defun mac-handle-toolbar-switch-mode (event) | 1800 (defun mac-handle-toolbar-switch-mode (event) |
1801 "Toggle visibility of tool-bars in response to EVENT. | 1801 "Toggle visibility of tool-bars in response to EVENT. |
1802 With no keyboard modifiers, it toggles the visibility of the | 1802 With no keyboard modifiers, it toggles the visibility of the |
1803 frame where the tool-bar toggle button was pressed. With some | 1803 frame where the tool-bar toggle button was pressed. With some |
1804 modifiers, it changes global tool-bar visibility setting." | 1804 modifiers, it changes the global tool-bar visibility setting." |
1805 (interactive "e") | 1805 (interactive "e") |
1806 (let ((ae (mac-event-ae event))) | 1806 (let ((ae (mac-event-ae event))) |
1807 (if (mac-ae-keyboard-modifiers ae) | 1807 (if (mac-ae-keyboard-modifiers ae) |
1808 ;; Globally toggle tool-bar-mode if some modifier key is pressed. | 1808 ;; Globally toggle tool-bar-mode if some modifier key is pressed. |
1809 (tool-bar-mode) | 1809 (tool-bar-mode 'toggle) |
1810 (let ((frame (mac-ae-frame ae))) | 1810 (let ((frame (mac-ae-frame ae))) |
1811 (set-frame-parameter frame 'tool-bar-lines | 1811 (set-frame-parameter frame 'tool-bar-lines |
1812 (if (= (frame-parameter frame 'tool-bar-lines) 0) | 1812 (if (= (frame-parameter frame 'tool-bar-lines) 0) |
1813 1 0)))))) | 1813 1 0)))))) |
1814 | 1814 |