From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: Eval keymapp in a macros Date: Mon, 2 Aug 2021 20:53:46 +0000 Message-ID: References: <87bl6fy4cf.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39254"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Heerdegen , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 02 22:55:07 2021 Return-path: Envelope-to: geh-help-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 1mAexn-000A07-3o for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Aug 2021 22:55:07 +0200 Original-Received: from localhost ([::1]:35992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAexl-0001gl-5G for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Aug 2021 16:55:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAewa-0001gY-Qu for help-gnu-emacs@gnu.org; Mon, 02 Aug 2021 16:53:52 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:55102) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAewY-0001pm-SV for help-gnu-emacs@gnu.org; Mon, 02 Aug 2021 16:53:52 -0400 Original-Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 172KqbkZ003357; Mon, 2 Aug 2021 20:53:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=SKQn2jw206qYHZr+2HWg/gzRnZuPnbyS9Ortl2VdtDY=; b=bRtDRy9lQJ6GAnQRH0LamBZsuJOyUJUPqTWfdk1MkTZmI5Wj7O5ZNjdHS26njos8RT1b wZWdVQv0vh9aq9QTwMRd1B0V7lXeDRI6zwyfLI30OGLS0SLllX9bvPiItxoAXxqscppb HA+wRXmvfFTwAUzy6xjsKfF9eJxBKN3VovLjdvQJkUuxCwlkW899fV17/0/qqBci6EPR tUfk7/I78enZmf+1KNxDWBnKuhHolYUHIrzUqdgdUATs8nhdjkBjAscMfRIEBXlIBeSg KSA/rptfEVwk/uNGiAD4vC4LHYG4sWVKsCuLLNiv5sGFJzxu0X3fyJIoCOtwKddESSmF qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=SKQn2jw206qYHZr+2HWg/gzRnZuPnbyS9Ortl2VdtDY=; b=cgJxxd+3OiWvbE4j5K4otXgxIwXOLnBF303lCZzFbkL62vk/QwNzNYwVQYFqY08569Ac Z3K+g/PaeluEpDFp4rGzA1j2Hr6ZLC4mCaIS7lzNEmAdHVlYTQM+f4HCwhAnxdlq0cet y7IFbiW9S+UVBoodvryRwOBt7f2RAy90PP419D1TPuv+155o01N6BDJX2KkOghFLqUj1 gSdxYAZDi4A74raGRWO87lONWg3OU06QKmOu+4a9rxSL6TGDoijqVRC2T6+kw5a1Cy9+ yFvOb11iDwDi67zPaSY7xtoKOQDS7IfNv1vHoAp538f/cAj9gWTdKm4QXSAFZ1a2lbom Ug== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3a6fxh9a49-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Aug 2021 20:53:48 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 172Kk3YJ025265; Mon, 2 Aug 2021 20:53:47 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2176.outbound.protection.outlook.com [104.47.58.176]) by aserp3030.oracle.com with ESMTP id 3a4vjcnvek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Aug 2021 20:53:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V3I2NnuQ2DGHoRSwkYqequEMWI+GeqBLaTQcNi7vkclUFEcctSQlFBFRtwkUlgsAxdkfVjZXXtwhzAaGhbrj8OiRgFnCBzRjB44OSyw7Bv6kelMLCBCbX2uumihk2CMoJn/UBZDueDDo8wnVbodgyRq5PZz9xJ95ZWapJTzGJIkl5P6ZQ3dMN7RVETGa5Ju+WxUWS1tNy1yXBjpRS0juaZZrMMXFUC6BRNBwbFwrVG7QtJMPFnrPW+S67aEJi0Jz0X+dGx1Zxr/lEGh5L41kjokyak9HKCXUGL9Rs6PRMjxbFvXGDLdzkHmln/gihrRTX6d+e4sfPwdFtc7VBFE5+A== 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-SenderADCheck; bh=SKQn2jw206qYHZr+2HWg/gzRnZuPnbyS9Ortl2VdtDY=; b=JRbED/nSp1I98g11E4npdV8WODydZEOnGU5D6yhIX/VEWHvhRrkeTcWDHjRik13X9BpNPYCP04gvvk3JSyMauBGwkjxugdxce0HJO0ZXNZ5ZpTjPmYMou49Xroo7DVp91IX2x+Pify0tFNtdhaf8/bAEfmwyVrHpjBiWc0YR7QgQa/BwpwTKk8TsflZpwn56naU02uXVZeIFMjYE25Y2UDVuRz9Zv/4pHSOdBp9KGDkQkwk/L7LKCUKLibzhICgNkmK5nRygx2haRd9ib8anJmcDAt6hvSNw9i/0j5q3F36kAO1alHLh1oDSwGMMPzj9i6m/tLwnF2JGdGTPixPsAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SKQn2jw206qYHZr+2HWg/gzRnZuPnbyS9Ortl2VdtDY=; b=O7WIjtS7gQFKCylDdHu5IStSQW1jrmUW+/yIZI2o/su1r83xB6t59Jj1v68NnkzeA0svhjQEYW0ZfnuL/UB5ytGfQijb8hOGTNqoN1V8xADUQAntavr9IdzymWxs+R3GSItWlUXiu8Kl3ajCKmPzKaqSJF8XnJzWKSEqADxdT4o= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SJ0PR10MB4798.namprd10.prod.outlook.com (2603:10b6:a03:2df::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Mon, 2 Aug 2021 20:53:46 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::1d3c:d31b:8add:1958]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::1d3c:d31b:8add:1958%5]) with mapi id 15.20.4373.026; Mon, 2 Aug 2021 20:53:46 +0000 Thread-Topic: [External] : Re: Eval keymapp in a macros Thread-Index: AQHXh92kqQMxoEqTMUq9RJfW8ICicKtgsRMw In-Reply-To: <87bl6fy4cf.fsf@web.de> Accept-Language: en-US Content-Language: en-US authentication-results: web.de; dkim=none (message not signed) header.d=none;web.de; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 64dbd03e-4c40-4dba-f5f0-08d955f79efb x-ms-traffictypediagnostic: SJ0PR10MB4798: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2089; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xuMOETJVB+hwW493Uyon0D+ASMz73FB7ym3HNOC2y6jpjLDzamtEbfYvRcXYPfOPVmER201c+1YIM7RofXGinJWi/eT1NUz6aTFOwXf3E/NWlWAFNtnxNAFG1wbSjA2IzRGdJa/ygpg//eB+5L4adGeqWoAql5lfKVBSg2IKe/43wL+bgzmrLoPaHazOfLDurXv+yjX/y7VO0ThFdk+90CHsQ0SvX4iUWpbETvh4yzNMm3gjS58xBIU4DgycTAxdnUzTJNsopNAfRtcnDs3rlMeyKGI77rsNiBW9ats2TiZD0A+yaTESLU3s/WDUjpxhEO5/pWDSzY6G8QKiNonRBmIqXT/mIdwRl14ar0pa9g5I9UrMk24By4hYCtyVlhEHXzdByPjafxcAypgiUrrVVTY7YSvGQ2CxeHbuQBHyGxrQ4RD4N1oLzGnPJO0lWP7LVvm2fBW/qIit0D39CTUrxMwbPOTqA+S4B+RjAxJWfb3uD/eUXo0Lh197/a+3UGqlnv4W33vH+p8EefICaAbMTgoCuI9r2wX0vHqYEwM+B/UMCEsAZ4UCstTNYna6ev1xXMkUSuLJNRbTyTzqqWSveR+78kmB5MAiX70fptbK0PMuuRoeufvG/RS2AIctn7kHgQnOETRzxh1mHv93h9wZwTdvCqnFEB7pr46FZpHtxHtHpJgywvpOxOZeU4cow8DgAjFWsMcqgXd3HQfhDAihGw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(366004)(396003)(376002)(39860400002)(136003)(5660300002)(4744005)(71200400001)(110136005)(66946007)(86362001)(33656002)(26005)(55016002)(9686003)(66446008)(66556008)(64756008)(66476007)(76116006)(52536014)(6506007)(186003)(478600001)(122000001)(38100700002)(8936002)(8676002)(2906002)(44832011)(38070700005)(7696005)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?cdzAu1HLACM9EIAahSwVLibrfEgPo2aACIFc71JOoCxDBLMKcBTt+Qm5s/8c?= =?us-ascii?Q?3vJpLsyWcgtQW/YWBDJwl10HG05bARQjJgya+ZphVGVen+Usx4lsrBYwm1Rf?= =?us-ascii?Q?1t4vshZp2X5qkFQ2zZbo8VJiwUu9olf4npvBX/VL1bsfD0aXulodvbZpKOSr?= =?us-ascii?Q?ILkXnrPUqE5KEoJjmLyBzFAPA2OYKNUidVgAOUbpetgwU9jyc8PtJC3U4kgE?= =?us-ascii?Q?3NQSGzAVghgRNNTEejW2+zjFng0JJAkPbHhKEyenLdcGhNvIypsNZ4Sg4zHZ?= =?us-ascii?Q?DZKWI+HQJdsAbAKKWrDwaqnGfwCegF4DYREQFeJ5W+g7RViKzcaDLcr0tpSU?= =?us-ascii?Q?0JplMfGIYtMBBWsV9Znl/iNvnSdEPgme+uNcTwTKNZCT/ifMRUAFxGkiDMGw?= =?us-ascii?Q?zeUkWIzgKqEWYHciWjBUHIIv9R/mrzMdjM5R/480vaUtttKInl/LLlp4TCib?= =?us-ascii?Q?mKyS/EylyJb9mrSEdSxFtagAWpGo4PY7VK03MuwftQmVMxCHxRYadY+EVd5w?= =?us-ascii?Q?Uut/EUn6H4a79j14jJydwvW1+rDZCtyrcoGhBRSCpYhpIOluXJxH//i0S2bl?= =?us-ascii?Q?Sdk3nSD3HjnxA66/UGO2tux2n7wLoBE9FvIfKl9/YPlpBm/MtAvBJR/+U3KP?= =?us-ascii?Q?o1 x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64dbd03e-4c40-4dba-f5f0-08d955f79efb X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2021 20:53:46.1534 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ttlSWs7ozM2IvEtmb9KfLP3iTqDvnIWQ8ga+YmgzfFJZ/461r1v4nwHe9UdrzeVyNqg+lu/an0adYbDrnQ0EVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4798 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10064 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=591 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 mlxscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108020132 X-Proofpoint-GUID: yBBlbFVkL8Rr0_jn7LQ64EF1tJHP9VKj X-Proofpoint-ORIG-GUID: yBBlbFVkL8Rr0_jn7LQ64EF1tJHP9VKj Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132324 Archived-At: > My tip when writing a macro (do you really need one btw?): Write an > example call and then the desired expansion down. Only after that write > down the macro implementation that offers exactly that expansion. You > can later do that in your head, but if you skip that step you get all > the surprises and pitfalls that macros are known for. +1 for this working-backward-from-goal approach.