summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2024-01-29 02:07:04 +0900
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2024-01-29 02:08:14 +0900
commit32ccb6aa01a5591097319fd3d3347bc0859b9313 (patch)
treea87c6ba07c09736e83345b2ec4dd700862e99dcb
parent20fa6b8f412262d3a3ef15a8a548926f94b91810 (diff)
downloadfreebsd-ports-32ccb6aa01a5591097319fd3d3347bc0859b9313.zip
textproc/uim-el: Fix runtime error with emacs-29.1
-rw-r--r--textproc/uim-el/files/patch-emacs_uim-leim.el35
1 files changed, 35 insertions, 0 deletions
diff --git a/textproc/uim-el/files/patch-emacs_uim-leim.el b/textproc/uim-el/files/patch-emacs_uim-leim.el
new file mode 100644
index 000000000000..35a142cf4d8a
--- /dev/null
+++ b/textproc/uim-el/files/patch-emacs_uim-leim.el
@@ -0,0 +1,35 @@
+--- emacs/uim-leim.el.orig 2024-01-27 11:04:16 UTC
++++ emacs/uim-leim.el
+@@ -62,7 +62,7 @@
+
+ (let (im)
+ ;; register inactivation function
+- (setq inactivate-current-input-method-function 'uim-leim-inactivate)
++ (setq deactivate-current-input-method-function 'uim-leim-inactivate)
+
+ ;; get plain IM engine name from LEIM style name
+ ;; ex. "Japanese-anthy-uim" => "anthy"
+@@ -80,7 +80,7 @@
+ (defun uim-leim-reset ()
+ (when uim-leim-active
+ (message "uim.el: uim-leim-reset")
+- (inactivate-input-method)))
++ (deactivate-input-method)))
+
+
+ (defun uim-leim-make-im-name (im)
+@@ -156,12 +156,12 @@
+ (lambda ()
+ (when uim-leim-active
+ (message "uim.el: LEIM inactivated"
+- (inactivate-input-method)))))
++ (deactivate-input-method)))))
+
+ (add-hook 'uim-buffer-init-hook
+ (lambda ()
+ (add-hook 'change-major-mode-hook
+- 'inactivate-input-method nil t)))
++ 'deactivate-input-method nil t)))
+
+ ;;
+ ;;uim-leim-update-label