From 788bd5f72d97fc75aa68e99f80c19ae07bc22f95 Mon Sep 17 00:00:00 2001 From: MANTANI Nobutaka Date: Sat, 27 Jan 2024 19:46:17 +0900 Subject: [PATCH] japanese/anthy: Fix runtime error of anthy.el with emacs-29.1 PR: 276493 Submitted by: Akira Sasaki --- japanese/anthy/Makefile | 2 +- japanese/anthy/files/patch-src-util_anthy.el | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/japanese/anthy/Makefile b/japanese/anthy/Makefile index f80dd0c3b327..8a66dc494b8e 100644 --- a/japanese/anthy/Makefile +++ b/japanese/anthy/Makefile @@ -1,6 +1,6 @@ PORTNAME= anthy PORTVERSION= 0.4 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= japanese MASTER_SITES= DEBIAN diff --git a/japanese/anthy/files/patch-src-util_anthy.el b/japanese/anthy/files/patch-src-util_anthy.el index e8b6d1da7a6d..db8206b44b7f 100644 --- a/japanese/anthy/files/patch-src-util_anthy.el +++ b/japanese/anthy/files/patch-src-util_anthy.el @@ -18,3 +18,21 @@ (if anthy-xemacs (if (coding-system-p (find-coding-system 'euc-japan)) (set-process-coding-system proc 'euc-japan 'euc-japan)) +@@ -864,7 +864,7 @@ + ;; leim の activate + ;; + (defun anthy-leim-activate (&optional name) +- (setq inactivate-current-input-method-function 'anthy-leim-inactivate) ++ (setq deactivate-current-input-method-function 'anthy-leim-inactivate) + (setq anthy-leim-active-p t) + (anthy-update-mode) + (when (eq (selected-window) (minibuffer-window)) +@@ -874,7 +874,7 @@ + ;; emacsのバグ避けらしいです + ;; + (defun anthy-leim-exit-from-minibuffer () +- (inactivate-input-method) ++ (deactivate-input-method) + (when (<= (minibuffer-depth) 1) + (remove-hook 'minibuffer-exit-hook 'anthy-leim-exit-from-minibuffer))) +