From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Johnathan Mantey Newsgroups: gmane.emacs.bugs Subject: bug#64912: 28.2; insert-kbd-macro creates a unicode character for Alt prefixed keysequences Date: Fri, 28 Jul 2023 07:01:12 -0700 Message-ID: <475a6ec9-694e-140b-cd28-8a101b4c6075@intel.com> References: <5d22fffc-e531-8d12-8f87-77626c337bcf@intel.com> <87y1j0qrye.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4244"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 64912@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 28 17:47:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qPPgW-0000s1-5k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Jul 2023 17:47:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPPaT-00007z-J1; Fri, 28 Jul 2023 11:41:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPPaQ-00005J-Ln for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 11:41:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPPaQ-0001QR-Dk for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPPaQ-00073D-0w for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johnathan Mantey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jul 2023 15:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 64912-submit@debbugs.gnu.org id=B64912.169055885127074 (code B ref 64912); Fri, 28 Jul 2023 15:41:01 +0000 Original-Received: (at 64912) by debbugs.gnu.org; 28 Jul 2023 15:40:51 +0000 Original-Received: from localhost ([127.0.0.1]:45890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPPaD-00072Z-1M for submit@debbugs.gnu.org; Fri, 28 Jul 2023 11:40:51 -0400 Original-Received: from [134.134.136.24] (port=52455 helo=mgamail.intel.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPO4g-00026e-HT for 64912@debbugs.gnu.org; Fri, 28 Jul 2023 10:04:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690553050; x=1722089050; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=x6MlmDNpijDuAELlPDBF4h1UZQ11IHqw/hfZ/n4KO1I=; b=Z07EiWAGmy/e2DwjJl+SNOaatX2YYX2s82cdeEAAgAAjcq5TrJWZ8Qn1 0t2aqLnCOEUIGDXdEd4asT5j+1b82pFWS6PxLVhnWX1ElS0lpFkRSRtEW Z413Aekx3iURaVkOlWClFtyy533JU6wBobx+5GOBGpK0D0mM56kZ8oaP1 Dl1sZrjlubwcks84Sp32CdGqt+c9ZU7JBc1iAgqFAn4BAs/Ecg073Z2kO 6rpbyONSfAxOwFHPgbwqZI4CCNWsHZ4gZH4b+w8KLZTzPgInUOkt4OuIp 5CwsVzymnhIsEXrHdUbAWaQwfgd5fhjS9zsEjxahnuPRfwqwMEZyXcpNg w==; X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="371295072" X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="371295072" Original-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2023 07:01:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="677544758" X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="677544758" Original-Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga003.jf.intel.com with ESMTP; 28 Jul 2023 07:01:22 -0700 Original-Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 28 Jul 2023 07:01:22 -0700 Original-Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 28 Jul 2023 07:01:21 -0700 Original-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Fri, 28 Jul 2023 07:01:21 -0700 Original-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Fri, 28 Jul 2023 07:01:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EV1mnYN+CaAOzJpbdYAiUkQuSGE009cE8sBRUrKxicHK7spfJjPluvL9VMwPUAUzRAduBerlfcvTUhLEJuzDmOKc3JpCImu40hIyG/4o5+mru1yKI+iaevMcKdvg34UdtQRQtYxux/zYGjKN1Z/ia+a8Ygfqb+ohhvpU8LcjjsEdyncFXhSiCbkxWez8JqZhOgPw3nJZBQ69k5qHj0SKbNhV4Hhuc4vBAI1j50vBMiRIJAjVdEZDtO3LZmbFJgvS7kYPM5LDI9/W/eirsK6Bz8LQJa+DO/wtGnVqqhXcAZwIXSZOXSmo5D+OzIRR2gUEzfvqabv2+j21BXFErZXUXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FJdfsrKgZeppZap95nf2eeCVyjSpO1b1q+idD56H9Ao=; b=LBCp11twRcqkwijdr0TjnlChoURNVifWXo+EzeMG/CcN3sOq9vmQ7oI29WZpEo/TApWyAULNxpPlpNQ6NNO8Dod2EVEkc9ldP0Mdio8XVjxqk8LhpiQ+rc8G3UZArbFWMvv+ArsvLyuMqyXLDPVQb50uKFX2SEnGPlz3bOUAUHSLG5i4jFDjCsGcF3ebdqf23p4s/lg6bCJNDcU2pDWZ1R7Qwr/BcHjJBGOzop7EA8k65i6lMm1cZp8P58UBHAUDgpuPM+u3/QT62XFI3wTK4SNCaPK8QwBNO3iCDmU9pYu8K78ykPpX/F/2DXouo2hMhdpFBPcYsQmz//UrnCX0Tw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Original-Received: from BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) by DS0PR11MB8082.namprd11.prod.outlook.com (2603:10b6:8:157::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Fri, 28 Jul 2023 14:01:16 +0000 Original-Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::3729:308d:4f:81c8]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::3729:308d:4f:81c8%3]) with mapi id 15.20.6631.026; Fri, 28 Jul 2023 14:01:15 +0000 Content-Language: en-US In-Reply-To: <87y1j0qrye.fsf@gmail.com> X-ClientProxiedBy: MW4PR03CA0102.namprd03.prod.outlook.com (2603:10b6:303:b7::17) To BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR11MB5978:EE_|DS0PR11MB8082:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e3a23fb-0931-4142-8864-08db8f731bfa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ltITsSK8dkgyXXuSuho5oRDiuWFMNrXSF5NlT/1Bj4FUwy9IMCJwI97fH3NPEQSU0EZk2NGc1LrVHNhcFtHspYCCnOVP7w9hmY2LAHVeSvnO+zx5pUhSM0jnLWGD5bXRUSN5RQhRcA5w6ME11xuTR8L5EoKKbaY3KxHKwadusG9q9KozpxQOwY9nSAou2Jia6YtuNaGLs+N59ZmiArpiap0nj97Jb3fWUzAfiyXYlDu7rzBmS2N8GbfU44Hgavcs8nPdLcFk1whJF6d4xn2DFutVDi/14jIUG9VXtmyj2zqmQK+M47nh3bmnZtosC2m0siPP8hcRqlTLmUg/gtiyJq0r40OHoieR5AMXzfYp/COmpGKs1QEHM4gw1b1O9Cgr6fY6FMxVqvmgD5RYGpOkV5N9VT/t2pqcXEvZzoD2pfyh79ZTLK8ZBI4IW3N+soE9A3w1/IoCZ4EXekjVkFMiik5GvPK0PZprlXNXA83aRBLzOocOQhmASYRqW7YgbQxfmzsMVLMvmwsoCDh5+guSMvO0JDicXkHQ1l785uQv7hdOdpRPFUYUi7JgwxPynC9e+12lGEaDCr0GNibsR08J1B6BSargheY4pZAkeogglc55WGYDXeWspK4O88eRQCQ7hlZ8UIgIPN/fExf/1DgFow== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL1PR11MB5978.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(366004)(39860400002)(346002)(376002)(136003)(451199021)(316002)(6512007)(6666004)(6486002)(38100700002)(478600001)(5660300002)(82960400001)(41300700001)(66556008)(6916009)(8676002)(66476007)(66946007)(8936002)(4326008)(2616005)(83380400001)(26005)(6506007)(186003)(53546011)(86362001)(31696002)(40140700001)(36756003)(2906002)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JkKofung2UAEcY9/AWuaV4/UwVq7VsPlBAMoYP1cHgAHXyxDbM1Qkt2lnHBAdmyaq2QGnK21wNrK0a4RRR5EL5FY0kRkxXjuqTVtO7X3iM05DrT7rW3r3wjhy1eXYI6t+Sz2xHkOuB1kcwvpcHVYsfHh/YnrbynynBXXHQ9ngtyyNHM+uJ8BBsPwe6Y4berCGjG3jWf/zfGDttcAMBUk1ppWWICFBjvzrcRu3Co/tgTbRKC/PIhvZldhrLx/XYic38MWqI7Ey+UYscKMXyEI5Si2OMkeZxx0hgmKwh5hBIvh86CpM8k9qqFZsC+tMtMgtJU1sYNW2j6ShQMVBX5vSEmldM02VWxGPF2lchjjMbqJISJkplHSGcXw65fS8satCiQURxDD5hqA3lPXDRQzd30u7q9oP1KY9Kqmufnmp007OEhCBgl8WTA6rA3xathqvBug8gkUrE7qsf9CG1GZlntYQTEyux8Ae9h0bk27giWCoUMIRNThPGiF/43WvxPH4IYjSL8wBffXv+MTE7ODXiDUz++MRkAEN/hNGgPk2QTpcPoMuAitPH4oP9JiI3vHfQVpM7Sin2B6U0KF2/p7fE2kE6PPg1v0XJzZsEqPR/TVLPQVHQ3DL6lb88DQH9FsSfmFfkst7WJN50CjNx/1hKgA8LIDin5cz2+wJtKVf/keY7yWInNFf0OU68rsn31GiWkvDLkYxapOeP6e6UGyIX0XBt+/YhOyjmfI0trTSFebH3nc7WiCB8rGRm 8KCSz+m6EzQVYtB1dtMGgHbSN07KSaKtp9LECEqmoz96LaEPDSJUDTArSuI4phcVzlvBF5EtWsVKpLMj9Lgz83JyJXODVbH6Wc X-MS-Exchange-CrossTenant-Network-Message-Id: 0e3a23fb-0931-4142-8864-08db8f731bfa X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5978.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2023 14:01:15.8329 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ulxvz2lzTmIZnRuOtDOsJ5cQjjIadusYcwChZPx8NLWwLdrMbqO4ls8Ln4+fVSBYbaHHgQ0jO5qsJpkrjxRtQCGhCNugEl6UH8D0QGDvm4k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8082 X-OriginatorOrg: intel.com X-Mailman-Approved-At: Fri, 28 Jul 2023 11:40:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266285 Archived-At: On 7/28/23 02:57, Robert Pluim wrote: >>>>>> On Thu, 27 Jul 2023 10:47:24 -0700, Johnathan Mantey said: > Johnathan> I created a keyboard macro that used the zap-to-char (Alt-z) keyboard > Johnathan> sequence. > Johnathan> The macro functions correctly in the session in which it was created. > Johnathan> The macro is given a name. > Johnathan> The macro is inserted into an elisp file using insert-kbd-macro. > Johnathan> The macro, abbreviated here, creates an invalid character. > Johnathan>    (fset 'test-macro > Johnathan>    (kmacro-lambda-form [?\C-a ?ú ?\; ?\C-k] 0 "%d")) > Johnathan> Evaluating this form causes the named macro to quit working. > Johnathan> Instead of performing zap-to-char ';' it inserts the unicode char. > Johnathan> Rerecording the macro using ESC, naming, and saving results in: > Johnathan> macro to function correctly. > Johnathan>    (fset 'test-macro > Johnathan>    (kmacro-lambda-form [?\C-a escape ?z ?\; ?\C-k] 0 "%d")) > Johnathan> Re-evaluating this source results in the macro functioning correctly. > > This works correctly in emacs-29, where the resulting macro form now > uses the `key-parse' syntax instead of the internal vector syntax, so > you get: > > (defalias 'test-macro > (kmacro "C-a M-z ; C-k")) > > From etc/NEWS: > > ** Kmacro > Kmacros are now OClosures and have a new constructor 'kmacro' which > uses the 'key-parse' syntax. It replaces the old 'kmacro-lambda-form' > (which is now declared obsolete). I had a saved macro in the kmacro form. It must have been a result of compiling and using source code in active development. I had some issue with using the leading edge, and returned to my distributions 28.2 released version. The two versions aren't in sync, and I forgot how I had an out of cycle Emacs in use, and probably active when I first created that keyboard macro. Thank you for your triage, and response. -- Johnathan Mantey Senior Software Engineer *azad te**chnology partners* Contributing to Technology Innovation since 1992 Phone: (503) 712-6764 Email: johnathanx.mantey@intel.com