From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#4836: " is undefined" when using AutoHotKey Date: Sat, 14 Aug 2010 15:57:58 +0800 Message-ID: <4C664C86.6090204@gnu.org> References: <4AEB7897.30005@g.nevcal.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1281773359 2995 80.91.229.12 (14 Aug 2010 08:09:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Aug 2010 08:09:19 +0000 (UTC) To: Glenn Linderman , 4836-done@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 14 10:09:17 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OkBno-0005Dr-LU for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Aug 2010 10:09:16 +0200 Original-Received: from localhost ([127.0.0.1]:33540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkBnn-0004LO-Qf for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Aug 2010 04:09:15 -0400 Original-Received: from [140.186.70.92] (port=46930 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkBnI-0004An-Pu for bug-gnu-emacs@gnu.org; Sat, 14 Aug 2010 04:08:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkBnH-0005NW-CX for bug-gnu-emacs@gnu.org; Sat, 14 Aug 2010 04:08:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42921) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkBnH-0005NN-7W for bug-gnu-emacs@gnu.org; Sat, 14 Aug 2010 04:08:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OkBcw-0001nZ-4b for bug-gnu-emacs@gnu.org; Sat, 14 Aug 2010 03:58:02 -0400 Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Aug 2010 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 4836 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Mail-Followup-To: 4836@debbugs.gnu.org, jasonr@gnu.org Original-Received: via spool by 4836-done@debbugs.gnu.org id=D4836.12817726436902 (code D ref 4836); Sat, 14 Aug 2010 07:58:01 +0000 Original-Received: (at 4836-done) by debbugs.gnu.org; 14 Aug 2010 07:57:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkBcI-0001nH-Ou for submit@debbugs.gnu.org; Sat, 14 Aug 2010 03:57:22 -0400 Original-Received: from mail-pz0-f50.google.com ([209.85.210.50]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkBcH-0001nC-8h for 4836-done@emacsbugs.donarmstrong.com; Sat, 14 Aug 2010 03:57:21 -0400 Original-Received: by pzk28 with SMTP id 28so1490421pzk.37 for <4836-done@emacsbugs.donarmstrong.com>; Sat, 14 Aug 2010 00:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=WMr0XcAojb5fktlXeMAjn0nX3cEP4zfta2OXJG/xbH8=; b=f8xk+9pK3OXPOL5bIiE9RCYwhPOa4YCv9sx57W2NprNh4vd/7bKExKO2aymvsrYXJd xcC2bGbZEDrKE5TuBbzx0sOfwLcSVc1ce1/oN30tE+GH/sb3FLjR4Mh7sdINbDpr+WKj v4UVhEFnLyw0Q/yenUxNMfBNEgRVEqEWSkros= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=eKFCvtVu6zlbgvze84HxoaQbyy3ntHYlMRgcKMu2w5piegIoAd7QZZj4TT1iQyx306 IORYcIy+Q0j2eZAe7i3ockByvsYm3rQYOyKLOguHMLrrdoOg+Cj6xE8M13ZKLcHuE8rS l6C1E0L6DvEeLzVMp06bpm/K1QeeAg6ovTuEY= Original-Received: by 10.114.52.2 with SMTP id z2mr3007813waz.84.1281772694398; Sat, 14 Aug 2010 00:58:14 -0700 (PDT) Original-Received: from [192.168.249.102] ([202.87.221.130]) by mx.google.com with ESMTPS id d39sm6387589wam.16.2010.08.14.00.58.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 14 Aug 2010 00:58:13 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <4AEB7897.30005@g.nevcal.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 14 Aug 2010 03:58:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39474 Archived-At: On 31/10/2009 7:36 AM, Glenn Linderman wrote: > emacs 22.1.1 worked fine with autohotkey. I have macros for > correcting my common typos, and accelerating commonly entered items, > and entering characters not found on the keyboard. > > Seems none of the autohotkey macros works with emacs 23.1, instead > they generate an error " is undefined". Apparently the "packet" key code is special, so we shouldn't treat it as a function key. I have removed it from the list of function keys that Emacs recognizes, so the behaviour should go back to what it was before. However my testing shows that we cannot receive Unicode characters outside the current codepage using VK_PACKET as Windows replaces such characters with '?' by the time we receive them. It appears that a low level keyboard hook may be able to retrieve the original character though, so if we receive Lennart's cleaned up keyboard hook patches I'll try to look at VK_PACKET support again.