summaryrefslogtreecommitdiff
path: root/lisp/term
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-02-13 08:27:47 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-02-13 08:27:47 +0000
commite5a4ac9d70f0d6feaa1d6456693d698c8939571e (patch)
tree5ecf0b9d4e40355041c796566877cc66279aae3b /lisp/term
parent2613d012473b6cf451a4d854b455e62c06de01a4 (diff)
downloademacs-e5a4ac9d70f0d6feaa1d6456693d698c8939571e.tar.gz
Change all uses of
mac-set-font-panel-visibility to mac-set-font-panel-visible-p. (mac-ae-number): Return integer 0 if coerced result is float 0.0. (mac-ae-get-url): Call select-frame-set-input-focus. (mac-dnd-handle-drag-n-drop-event): Don't call select-frame-set-input-focus.
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/mac-win.el18
1 files changed, 11 insertions, 7 deletions
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index be4c978dd28..51274e6f5be 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -1585,7 +1585,10 @@ in `selection-converter-alist', which see."
(if (and type-data
(setq str (mac-coerce-ae-data (car type-data)
(cdr type-data) "TEXT")))
- (string-to-number str)
+ (let ((num (string-to-number str)))
+ ;; Mac OS Classic may return "0e+0" as the coerced value for
+ ;; the type "magn" and the data "\000\000\000\000".
+ (if (= num 0.0) 0 num))
nil)))
(defun mac-bytes-to-integer (bytes &optional from to)
@@ -1750,7 +1753,9 @@ Currently the `mailto' scheme is supported."
(let* ((ae (mac-event-ae event))
(parsed-url (url-generic-parse-url (mac-ae-text ae))))
(if (string= (url-type parsed-url) "mailto")
- (url-mailto parsed-url)
+ (progn
+ (url-mailto parsed-url)
+ (select-frame-set-input-focus (selected-frame)))
(mac-resume-apple-event ae t))))
(setq mac-apple-event-map (make-sparse-keymap))
@@ -1796,7 +1801,7 @@ modifiers, it changes global tool-bar visibility setting."
'mac-handle-toolbar-switch-mode)
;;; Font panel
-(when (fboundp 'mac-set-font-panel-visibility)
+(when (fboundp 'mac-set-font-panel-visible-p)
(define-minor-mode mac-font-panel-mode
"Toggle use of the font panel.
@@ -1804,7 +1809,7 @@ With numeric ARG, display the font panel if and only if ARG is positive."
:init-value nil
:global t
:group 'mac
- (mac-set-font-panel-visibility mac-font-panel-mode))
+ (mac-set-font-panel-visible-p mac-font-panel-mode))
(defun mac-handle-font-panel-closed (event)
"Update internal status in response to font panel closed EVENT."
@@ -1839,7 +1844,7 @@ With numeric ARG, display the font panel if and only if ARG is positive."
"Show the font panel as a floating dialog")
'showhide-speedbar)
-) ;; (fboundp 'mac-set-font-panel-visibility)
+) ;; (fboundp 'mac-set-font-panel-visible-p)
;;; Text Services
(defvar mac-ts-active-input-buf ""
@@ -2273,8 +2278,7 @@ See also `mac-dnd-known-types'."
(dolist (item (mac-ae-list ae))
(if (not (equal (car item) "null"))
(mac-dnd-drop-data event (selected-frame) window
- (cdr item) (car item) action))))
- (select-frame-set-input-focus (selected-frame)))
+ (cdr item) (car item) action)))))
;;; Do the actual Windows setup here; the above code just defines
;;; functions and variables that we use now.