diff options
| author | Stefan Monnier | 2003-05-24 16:13:06 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-05-24 16:13:06 +0000 |
| commit | c3ef508488e28614aa0028ae548848a33512ff49 (patch) | |
| tree | 7018d7e1a56e15577aae85a128db93feca539954 /lisp | |
| parent | 3db7df063f7f80e212a8f32deb13d3731ae23012 (diff) | |
| download | emacs-c3ef508488e28614aa0028ae548848a33512ff49.tar.gz emacs-c3ef508488e28614aa0028ae548848a33512ff49.zip | |
(iconify-or-deiconify-frame): Move to frame.el.
Turn on mouse-wheel support by default.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/term/x-win.el | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index f1708d9ccc6..e49836f0c2b 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -243,8 +243,8 @@ This function returns ARGS minus the arguments that have been processed." | |||
| 243 | x-invocation-args (cdr x-invocation-args))) | 243 | x-invocation-args (cdr x-invocation-args))) |
| 244 | 244 | ||
| 245 | (defvar emacs-save-session-functions nil | 245 | (defvar emacs-save-session-functions nil |
| 246 | "Functions to run when a save-session event occurs. | 246 | "Special hook run when a save-session event occurs. |
| 247 | The functions does not get any argument. | 247 | The functions do not get any argument. |
| 248 | Functions can return non-nil to inform the session manager that the | 248 | Functions can return non-nil to inform the session manager that the |
| 249 | window system shutdown should be aborted. | 249 | window system shutdown should be aborted. |
| 250 | 250 | ||
| @@ -1159,13 +1159,6 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp") | |||
| 1159 | 1159 | ||
| 1160 | ;;;; Function keys | 1160 | ;;;; Function keys |
| 1161 | 1161 | ||
| 1162 | (defun iconify-or-deiconify-frame () | ||
| 1163 | "Iconify the selected frame, or deiconify if it's currently an icon." | ||
| 1164 | (interactive) | ||
| 1165 | (if (eq (cdr (assq 'visibility (frame-parameters))) t) | ||
| 1166 | (iconify-frame) | ||
| 1167 | (make-frame-visible))) | ||
| 1168 | |||
| 1169 | (substitute-key-definition 'suspend-emacs 'iconify-or-deiconify-frame | 1162 | (substitute-key-definition 'suspend-emacs 'iconify-or-deiconify-frame |
| 1170 | global-map) | 1163 | global-map) |
| 1171 | 1164 | ||
| @@ -2367,11 +2360,14 @@ This is in addition to, but in preference to, the primary selection." | |||
| 2367 | ;; Don't show the frame name; that's redundant with X. | 2360 | ;; Don't show the frame name; that's redundant with X. |
| 2368 | (setq-default mode-line-frame-identification " ") | 2361 | (setq-default mode-line-frame-identification " ") |
| 2369 | 2362 | ||
| 2370 | ;;; Motif direct handling of f10 wasn't working right, | 2363 | ;; Motif direct handling of f10 wasn't working right, |
| 2371 | ;;; So temporarily we've turned it off in lwlib-Xm.c | 2364 | ;; So temporarily we've turned it off in lwlib-Xm.c |
| 2372 | ;;; and turned the Emacs f10 back on. | 2365 | ;; and turned the Emacs f10 back on. |
| 2373 | ;;; ;; Motif normally handles f10 itself, so don't try to handle it a second time. | 2366 | ;; ;; Motif normally handles f10 itself, so don't try to handle it a second time. |
| 2374 | ;;; (if (featurep 'motif) | 2367 | ;; (if (featurep 'motif) |
| 2375 | ;;; (global-set-key [f10] 'ignore)) | 2368 | ;; (global-set-key [f10] 'ignore)) |
| 2369 | |||
| 2370 | ;; Turn on support for mouse wheels. | ||
| 2371 | (mouse-wheel-mode 1) | ||
| 2376 | 2372 | ||
| 2377 | ;;; x-win.el ends here | 2373 | ;;; x-win.el ends here |