diff options
| author | Simon Marshall | 1998-01-15 16:17:36 +0000 |
|---|---|---|
| committer | Simon Marshall | 1998-01-15 16:17:36 +0000 |
| commit | 24f86c2f5f1c87daae05dddd46e9272ff71a9d98 (patch) | |
| tree | 144a8d04a2bc72103c3a3f70342c42ef34a68ce2 | |
| parent | b9dd672d871cc6c8e4915c368555ff6fd4c5c767 (diff) | |
| download | emacs-24f86c2f5f1c87daae05dddd46e9272ff71a9d98.tar.gz emacs-24f86c2f5f1c87daae05dddd46e9272ff71a9d98.zip | |
Added Print submenu to Edit menu.
| -rw-r--r-- | lisp/menu-bar.el | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 05c887be7fe..e7d795647a1 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -97,17 +97,24 @@ A large number or nil slows down menu responsiveness." | |||
| 97 | (define-key menu-bar-tools-menu [separator-print] | 97 | (define-key menu-bar-tools-menu [separator-print] |
| 98 | '("--")) | 98 | '("--")) |
| 99 | 99 | ||
| 100 | (put 'print-region 'menu-enable 'mark-active) | 100 | (defvar menu-bar-print-menu (make-sparse-keymap "Print")) |
| 101 | (put 'ps-print-region-with-faces 'menu-enable 'mark-active) | ||
| 102 | 101 | ||
| 103 | (define-key menu-bar-tools-menu [ps-print-region] | 102 | (define-key menu-bar-print-menu [ps-print-region] |
| 104 | '("Postscript Print Region" . ps-print-region-with-faces)) | 103 | '("Postscript Print Region" . ps-print-region-with-faces)) |
| 105 | (define-key menu-bar-tools-menu [ps-print-buffer] | 104 | (define-key menu-bar-print-menu [ps-print-buffer] |
| 106 | '("Postscript Print Buffer" . ps-print-buffer-with-faces)) | 105 | '("Postscript Print Buffer" . ps-print-buffer-with-faces)) |
| 107 | (define-key menu-bar-tools-menu [print-region] | 106 | (define-key menu-bar-print-menu [separator-ps-print] |
| 107 | '("--")) | ||
| 108 | (define-key menu-bar-print-menu [print-region] | ||
| 108 | '("Print Region" . print-region)) | 109 | '("Print Region" . print-region)) |
| 109 | (define-key menu-bar-tools-menu [print-buffer] | 110 | (define-key menu-bar-print-menu [print-buffer] |
| 110 | '("Print Buffer" . print-buffer)) | 111 | '("Print Buffer" . print-buffer)) |
| 112 | |||
| 113 | (define-key menu-bar-tools-menu [print] | ||
| 114 | (cons "Print" menu-bar-print-menu)) | ||
| 115 | |||
| 116 | (put 'print-region 'menu-enable 'mark-active) | ||
| 117 | (put 'ps-print-region-with-faces 'menu-enable 'mark-active) | ||
| 111 | 118 | ||
| 112 | (define-key menu-bar-files-menu [exit-emacs] | 119 | (define-key menu-bar-files-menu [exit-emacs] |
| 113 | '("Exit Emacs" . save-buffers-kill-emacs)) | 120 | '("Exit Emacs" . save-buffers-kill-emacs)) |