emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/leim/quail/uni-input.el [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/leim/quail/uni-input.el [emacs-unicode-2]
Date: Tue, 21 Sep 2004 05:42:08 -0400

Index: emacs/leim/quail/uni-input.el
diff -c emacs/leim/quail/uni-input.el:1.4.6.2 
emacs/leim/quail/uni-input.el:1.4.6.3
*** emacs/leim/quail/uni-input.el:1.4.6.2       Fri Apr 16 12:49:43 2004
--- emacs/leim/quail/uni-input.el       Tue Sep 21 09:34:07 2004
***************
*** 40,53 ****
  
  (require 'quail)
  
  (defun ucs-input-method (key)
    (if (or buffer-read-only
          (and (/= key ?U) (/= key ?u)))
        (list key)
      (quail-setup-overlays nil)
!     (let ((current-prefix-arg)
!         (last-command-char key))
!       (call-interactively 'self-insert-command))
      (let ((modified-p (buffer-modified-p))
          (buffer-undo-list t)
          (input-method-function nil)
--- 40,55 ----
  
  (require 'quail)
  
+ (defun ucs-input-insert-char (char)
+   (insert char)
+   (move-overlay quail-overlay (overlay-start quail-overlay) (point)))
+ 
  (defun ucs-input-method (key)
    (if (or buffer-read-only
          (and (/= key ?U) (/= key ?u)))
        (list key)
      (quail-setup-overlays nil)
!     (ucs-input-insert-char key)
      (let ((modified-p (buffer-modified-p))
          (buffer-undo-list t)
          (input-method-function nil)
***************
*** 68,76 ****
                                          ?b ?c ?d ?e ?f ?A ?B ?C ?D ?E ?F)))
                      (progn
                        (push key events)
!                       (let ((last-command-char key)
!                             (current-prefix-arg))
!                         (call-interactively 'self-insert-command)))
                    (let ((last-command-char key)
                          (current-prefix-arg))
                      (condition-case nil
--- 70,76 ----
                                          ?b ?c ?d ?e ?f ?A ?B ?C ?D ?E ?F)))
                      (progn
                        (push key events)
!                       (ucs-input-insert-char key))
                    (let ((last-command-char key)
                          (current-prefix-arg))
                      (condition-case nil
***************
*** 98,104 ****
          (< (prefix-numeric-value arg) 0))
        (unwind-protect
          (progn
!           (quail-hide-guidance-buf)
            (quail-delete-overlays)
            (setq describe-current-input-method-function nil))
        (kill-local-variable 'input-method-function))
--- 98,104 ----
          (< (prefix-numeric-value arg) 0))
        (unwind-protect
          (progn
!           (quail-hide-guidance)
            (quail-delete-overlays)
            (setq describe-current-input-method-function nil))
        (kill-local-variable 'input-method-function))
***************
*** 124,131 ****
  
  Input as Unicode: U<hex> or u<hex>, where <hex> is a four-digit hex 
number.")))
  
! (register-input-method "ucs" "UTF-8" 'ucs-input-activate "U+"
!                      "Unicode input as hex in the form Uxxxx.")
  
  (provide 'uni-input)
  
--- 124,132 ----
  
  Input as Unicode: U<hex> or u<hex>, where <hex> is a four-digit hex 
number.")))
  
! ;; The file ../leim-ext.el contains the following call.
! ;; (register-input-method "ucs" "UTF-8" 'ucs-input-activate "U+"
! ;;                   "Unicode input as hex in the form Uxxxx.")
  
  (provide 'uni-input)
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]