]> git.pld-linux.org Git - packages/uim.git/commitdiff
- use utf8 encoding in emacs (from FC)
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 16 Jul 2011 11:26:01 +0000 (11:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    uim-emacs-utf8.patch -> 1.1

uim-emacs-utf8.patch [new file with mode: 0644]

diff --git a/uim-emacs-utf8.patch b/uim-emacs-utf8.patch
new file mode 100644 (file)
index 0000000..10de01a
--- /dev/null
@@ -0,0 +1,22 @@
+diff -pruN uim-1.5.7.orig/emacs/uim.el uim-1.5.7/emacs/uim.el
+--- uim-1.5.7.orig/emacs/uim.el        2009-11-22 20:43:02.000000000 +0900
++++ uim-1.5.7/emacs/uim.el     2010-03-15 19:36:35.000000000 +0900
+@@ -552,11 +552,13 @@
+ (defun uim-update-imlist (imlist)
+   (setq uim-im-alist 
+       (mapcar '(lambda (x) 
+-                 (let ((im (nth 0 x))
+-                       (lang-uim (nth 2 x)))
+-                   (cons im
+-                         (or (assoc lang-uim uim-lang-code-alist)
+-                             (assoc "Other" uim-lang-code-alist)))))
++                 (let* ((im (nth 0 x))
++                        (lang-uim (nth 2 x))
++                        (entry (or (assoc lang-uim uim-lang-code-alist)
++                                   (assoc "Other" uim-lang-code-alist))))
++                   (cons im (if (string-match ".*utf8" im)
++                                (list (car entry) (cadr entry) 'utf-8 "UTF-8")
++                              entry))))
+               imlist))
+   )
This page took 0.046208 seconds and 4 git commands to generate.