delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/08/04/05:58:17

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5749wGu41470668
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5749wGu41470668
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ajIs/tmx
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F074B385841F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1754301495;
bh=DlBik0bqDNeU0MfMPwqYcGjDrAG79rSYCAnZvCb1zfc=;
h=Resent-From:Resent-Date:Resent-To:Date:To:Subject:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=ajIs/tmxaa6o+/VrqA50NIVG/tTc0N6NjsOmV4N1Gq2cx+rwsXfR25mxjZWGofPer
v+S0fE+vkyD3j+wkQnEO+tIhaZoF7ylnmUFAmNfG31XKL72DiomGpdcMNHNt5hp+Xb
DmUOCYnaFLSKylPRVmKY1+TDZGxtr0KRrH0s66+g=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A70C03858D37
Resent-From: root <root AT server2 DOT sourceware DOT org>
Resent-Date: Mon, 4 Aug 2025 09:57:12 +0000
Resent-Message-ID: <aJCD+A9RXabqDAyu AT server2 DOT sourceware DOT org>
Resent-To: cygwin AT cygwin DOT com
X-Original-To: spam AT localhost
Delivered-To: spam AT localhost
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4E7113858D32
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4E7113858D32
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1754287500; cv=none;
b=oN+q9Y/fumL/SSEq55zFYYZ3iyxxz4Q+WTFYaEtWnP3cU5uPxlXL4v9p213O/bwjiqKyihSNEyku2AE5GzsPYqxvgf2optOBdoWPFUtNK6/RaNal83+i5zSBUkA2dIFeyr0TTczHwnlfK6ZmQ28cdXZ2uB3MDzLzhSQgjezbB1g=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1754287500; c=relaxed/simple;
bh=LV7VVA+Xi6rjc2VNSzV5vHc4LKEZC1nyh9pZvtClgyg=;
h=Date:Message-ID:From:To:Subject:MIME-Version;
b=h9EKpiRE/7oxKQBfsXPBqlM6Cuqtw1dyeud1eLx8hqKdBbj2AgIKgQBCvz+Ib6q7vOFWXcC47hEDfDSO8mB8iVtYMbfap8c1r9xVPEnJH4pgy9uqmgk83N4sMo8Ob/bEbppMCCOHwxq8Yiw3Km2uh8xv2kFp56KfI+o+7ftXf/A=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E7113858D32
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1754287499; x=1754892299;
h=mime-version:organization:subject:to:from:message-id:date
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=dtC09A20fQxTXDzxeSc3ehBJk3jPlMgxa5Cm0ga3BkY=;
b=I7jD7v9ZuWBpe7AM3DwIJPz5xM5Y/1PEkG34GzeWuMQ0+a9iCo87pNIYJSmZ09Jwkl
TjfnHpmRWPXvqnvaK8+rjmz6VhPo+hlUtJXmaWQD8p0Okvg3Q4lzefz6uEYBtvCTqt7J
thZxS8KO19qzgTiAwbxiGfgAmYq8H4KXZCKoqIah/neQQUdTmOS0jyEsou7yV6WIA2aA
k6nR8mFVNFT2fGYbvJSojs+5uUAC8ZY6ZQYpXPZsLvMCngsNMCqIiYnw4Q5LugeP1OtC
aJQr3jWGsGbRs8jj1GllzMrix5bXCthF4djHHRXZ/VC1gNMUHwzsQZcIlIu0MIEuXngx
LsJw==
X-Gm-Message-State: AOJu0YwOh382qCrDqxqsYezyYKHFQGHLlFukEQBqM2bhnHTfg1B9neXU
Crz7V1aK2U76XQvL45+qyVPFN7Z9hDRgffe/Iz11SsctMmQVqMfKO6DPFK2os54=
X-Gm-Gg: ASbGnctjv9XsXDtY67CtH9hmtF/Wuz9LO/qyyeZoz8BISb4YQWqX5JX4XEgRufm8nfm
eBnASp61trtWXUVyM5NuOo93Q4jmCFbyioofbKEv3He1yIWJI315hvyrB1VUZJC89443s2cZBs4
qaf87D3xTE734/iLbqqfO3XpbNFBBfvYPjPSQJLGPdI2IYYM5ALBfHt77HIR4QpB4QlsE6ipAcU
nIVVNRVV1LTUyprX1GxHhi7fpdMKPnaSxKZS+KI1AFASkzuip4xz1xoaG8IshmEz9V0eOnj4Gip
GM646hKR1HhGohsu/Yt8QwwwxeA4SV9QN0pU6K8HgaUqKOITyJ2OUlWzdLwI3NM8AkJXqL12NKN
b32YL5yM/42sbxAQn5AuPBUM/RCA2urxd31uvwHua
X-Google-Smtp-Source: AGHT+IH4p1dnog7vMVzJR0QHyQnet2xvvERAVWzIDZdNAs25G96VnAK//h4T0m39FjPtfhSCqB2cDg==
X-Received: by 2002:a17:902:c409:b0:240:a222:2312 with SMTP id
d9443c01a7336-24247040f84mr119052515ad.44.1754287499216;
Sun, 03 Aug 2025 23:04:59 -0700 (PDT)
Date: Mon, 04 Aug 2025 15:04:55 +0900
Message-ID: <b4ma54fd3lk.fsf@jpl.org>
To: cygwin AT cygwin DOT com
Subject: [PATCH] emacs-anthy outdated
Organization: Emacsen advocacy group
X-Face: #kKnN,xUnmKia.'[pp`;
Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk
B#Fu[*?MZZH AT IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw=
L&i*6&(
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Katsumi Yamaoka via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Katsumi Yamaoka <yamaoka AT jpl DOT org>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

--=-=-=

Hi,

  The emacs-anthy package, that runs with the anthy package, is
probably one of the easiest ways to do writing Japanese text
with Emacs even now.  A thing a user needs to add to the Emacs
init file is just: (require 'anthy)
  However, some modules are outdated and do not work with the
modern Emacs like what Cygwin distributes.  So, I post a minimal
patch to make the emacs-anthy package work.  Where `minimal'
means that it doesn't contain feature modifications of any kind,
and leaves some warnings that Emacs issues when compiling.

Regards,

Note: anthy.elc and anthy-dic.elc should be rebuilt after
applying the patch by M-x byte-compile-file .


--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: attachment
Content-Transfer-Encoding: quoted-printable

--- a/anthy-dic.el	2013-11-01 06:55:43 +0000
+++ b/anthy-dic.el	2025-08-04 05:44:06 +0000
@@ -70,7 +70,7 @@
 (defun anthy-dic-get-special-noun-category (word)
   (let=20
       ((res '())
-       (cat (string-to-int
+       (cat (string-to-number
 	     (read-from-minibuffer "1:=E4=BA=BA=E5=90=8D 2:=E5=9C=B0=E5=90=8D: ")=
)))
     (cond ((=3D cat 1)
 	   (setq res '(("=E5=93=81=E8=A9=9E" "=E4=BA=BA=E5=90=8D"))))
@@ -113,7 +113,7 @@
     (and (string=3D word "")
 	 (setq word (read-from-minibuffer "=E5=8D=98=E8=AA=9E(=E8=AA=9E=E5=B9=B9=
=E3=81=AE=E3=81=BF): ")))
     (setq yomi (read-from-minibuffer (concat "=E8=AA=AD=E3=81=BF (" word "=
): ")))
-    (setq cat (string-to-int
+    (setq cat (string-to-number
 	       (read-from-minibuffer
 		"=E3=82=AB=E3=83=86=E3=82=B4=E3=83=AA=E3=83=BC 1:=E4=B8=80=E8=88=AC=E5=
=90=8D=E8=A9=9E 2:=E3=81=9D=E3=81=AE=E4=BB=96=E3=81=AE=E5=90=8D=E8=A9=9E 3:=
=E5=BD=A2=E5=AE=B9=E8=A9=9E 4:=E5=89=AF=E8=A9=9E: ")))
     (cond ((=3D cat 1)
--- a/anthy.el	2013-11-01 06:55:43 +0000
+++ b/anthy.el	2025-08-04 05:44:06 +0000
@@ -71,7 +71,7 @@
 (defvar anthy-highlight-face nil)
 (defvar anthy-underline-face nil)
 (copy-face 'highlight 'anthy-highlight-face)
-(set-face-underline-p 'anthy-highlight-face t)
+(set-face-attribute 'anthy-highlight-face nil :underline t)
 (copy-face 'underline 'anthy-underline-face)
=20
 ;;
@@ -161,11 +161,11 @@
=20
 ;; From skk-macs.el From viper-util.el.  Welcome!
 (defmacro anthy-deflocalvar (var default-value &optional documentation)
-  (` (progn
-       (defvar (, var) (, default-value)
-	 (, (format "%s\n\(buffer local\)" documentation)))
-       (make-variable-buffer-local '(, var))
-       )))
+  `(progn
+     (defvar ,var ,default-value
+       ,(format "%s\n(buffer local)" documentation))
+     (make-variable-buffer-local ',var)
+     ))
=20
 ;; buffer local variables
 (anthy-deflocalvar anthy-context-id nil "=E3=82=B3=E3=83=B3=E3=83=86=E3=82=
=AD=E3=82=B9=E3=83=88=E3=81=AEid")
@@ -745,7 +745,7 @@
 	(if anthy-agent-process
 	    (kill-process anthy-agent-process))
 	(setq anthy-agent-process proc)
-	(process-kill-without-query proc)
+	(set-process-query-on-exit-flag proc nil)
 	(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 =E3=81=AE 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=E3=81=AE=E3=83=90=E3=82=B0=E9=81=BF=E3=81=91=E3=82=89=E3=81=97=E3=
=81=84=E3=81=A7=E3=81=99
 ;;
 (defun anthy-leim-exit-from-minibuffer ()
-  (inactivate-input-method)
+  (deactivate-input-method)
   (when (<=3D (minibuffer-depth) 1)
     (remove-hook 'minibuffer-exit-hook 'anthy-leim-exit-from-minibuffer)))
=20

--=-=-=
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

--=-=-=--




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019