From nobody@FreeBSD.org  Wed May  8 06:41:29 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id B08C63A2
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 May 2013 06:41:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id A3D1493D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 May 2013 06:41:29 +0000 (UTC)
Received: from oldred.FreeBSD.org ([127.0.1.6])
	by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r486fTsJ028372
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 May 2013 06:41:29 GMT
	(envelope-from nobody@oldred.FreeBSD.org)
Received: (from nobody@localhost)
	by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r486fTMY028371;
	Wed, 8 May 2013 06:41:29 GMT
	(envelope-from nobody)
Message-Id: <201305080641.r486fTMY028371@oldred.FreeBSD.org>
Date: Wed, 8 May 2013 06:41:29 GMT
From: Yuichiro NAITO <naito.yuichiro@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: japanese/anthy doesn't work on emacs-24.3
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178413
>Category:       ports
>Synopsis:       japanese/anthy doesn't work on emacs-24.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    nobutaka
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 08 06:50:00 UTC 2013
>Closed-Date:    Tue May 14 17:07:09 UTC 2013
>Last-Modified:  Tue May 14 17:10:00 UTC 2013
>Originator:     Yuichiro NAITO
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD kitt 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I'm using anthy for Japanese Kanji input method.
'last-command-char' emacs lisp function is used in anthy.el.
But it is obsoleted on emacs-24.
Emacs-24 shows an error message "Symbol's value as variable is void: last-command-char",
when I input Kana letters to translate Kanji.

>How-To-Repeat:
Install emacs-24 and japanese/anthy.
Add following emacs lisp in ~/.emacs.

(set-language-environment "Japanese")
(load-library "anthy")
(set-input-method 'japanese-anthy)

Input Kana letters to translate Kanji on emacs-24.

>Fix:
Replace function name from 'last-command-char' to 'last-command-event'.


Patch attached with submission follows:

--- src-util/anthy.el.org	2012-02-28 17:16:08.000000000 +0900
+++ src-util/anthy.el	2013-05-08 15:10:37.000000000 +0900
@@ -892,7 +892,7 @@
 	 ((event-matches-key-specifier-p event 'backspace) 8)
 	 (t
 	  (char-to-int (event-to-character event)))))
-    last-command-char))
+    last-command-event))
 
 ;;
 ;;


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->nobutaka 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed May 8 06:50:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178413 
State-Changed-From-To: open->closed 
State-Changed-By: nobutaka 
State-Changed-When: Tue May 14 17:06:44 UTC 2013 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178413 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/178413: commit references a PR
Date: Tue, 14 May 2013 17:06:14 +0000 (UTC)

 Author: nobutaka
 Date: Tue May 14 17:06:06 2013
 New Revision: 318179
 URL: http://svnweb.freebsd.org/changeset/ports/318179
 
 Log:
   Fix incompatibility of anthy.el with Emacs 24.
   
   PR:		ports/178413
   Submitted by:	Yuichiro NAITO <naito.yuichiro@gmail.com>
 
 Added:
   head/japanese/anthy/files/
   head/japanese/anthy/files/patch-src-util_anthy.el   (contents, props changed)
 Modified:
   head/japanese/anthy/Makefile   (contents, props changed)
 
 Modified: head/japanese/anthy/Makefile
 ==============================================================================
 --- head/japanese/anthy/Makefile	Tue May 14 16:51:16 2013	(r318178)
 +++ head/japanese/anthy/Makefile	Tue May 14 17:06:06 2013	(r318179)
 @@ -3,6 +3,7 @@
  
  PORTNAME=	anthy
  PORTVERSION=	9100h
 +PORTREVISION=	1
  CATEGORIES=	japanese
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_JP}
  MASTER_SITE_SUBDIR=	${PORTNAME}/37536
 
 Added: head/japanese/anthy/files/patch-src-util_anthy.el
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/japanese/anthy/files/patch-src-util_anthy.el	Tue May 14 17:06:06 2013	(r318179)
 @@ -0,0 +1,11 @@
 +--- src-util/anthy.el.orig	2013-05-15 01:57:21.000000000 +0900
 ++++ src-util/anthy.el	2013-05-15 01:58:25.000000000 +0900
 +@@ -892,7 +892,7 @@
 + 	 ((event-matches-key-specifier-p event 'backspace) 8)
 + 	 (t
 + 	  (char-to-int (event-to-character event)))))
 +-    last-command-char))
 ++    last-command-event))
 + 
 + ;;
 + ;;
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
