]> 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:06:55 +0000 (08:06 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 7 May 2007 08:06:55 +0000 (08:06 +0000)
lisp/ChangeLog
lisp/term/mac-win.el

index ff30935012d1e9c555a3dfdb6babb44888323872..957e975ded7e9723abb3de563a6d0d13d30adfd3 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]