]> git.eshelyaron.com Git - emacs.git/commitdiff
(mac-ts-unicode-for-key-event): Check if text is available.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 7 May 2007 08:05:55 +0000 (08:05 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 7 May 2007 08:05:55 +0000 (08:05 +0000)
lisp/ChangeLog
lisp/term/mac-win.el

index 363d2510ded6d74d9f7822fa0793112f239f705e..afba0b285ec55820257f1c3226d6560d45068c79 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * term/mac-win.el (mac-ts-unicode-for-key-event): Check if text is
+       available.
+
 2007-05-06  Richard Stallman  <rms@gnu.org>
 
        * emacs-lisp/eldoc.el (turn-on-eldoc-mode): Doc fix.
index 51274e6f5be58ee176e08442c8f2752a00c90546..6370b40d3675a7cc9684b8ac54b73297a444c64d 100644 (file)
@@ -2104,7 +2104,8 @@ either in the current buffer or in the echo area."
         (coding (or (cdr (assq (car script-language)
                                mac-script-code-coding-systems))
                     'mac-roman)))
-    (mac-unread-string (mac-utxt-to-string text coding))))
+    (if text
+       (mac-unread-string (mac-utxt-to-string text coding)))))
 
 ;; kEventClassTextInput/kEventTextInputUpdateActiveInputArea
 (define-key mac-apple-event-map [text-input update-active-input-area]