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: Why is defun not executed during load-file? Date: Sun, 30 May 2021 22:48:07 +0000 Message-ID: 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="35853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emanuel Berg To: "Help-Gnu-Emacs (help-gnu-emacs@gnu.org)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 31 00:49:18 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 1lnUFB-00096T-EB for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 00:49:17 +0200 Original-Received: from localhost ([::1]:59384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnUFA-00012u-H3 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 18:49:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnUEC-00012B-St for help-gnu-emacs@gnu.org; Sun, 30 May 2021 18:48:17 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:55330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnUEA-0000ND-Mo for help-gnu-emacs@gnu.org; Sun, 30 May 2021 18:48:16 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14UMepUD060155; Sun, 30 May 2021 22:48:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=231RvA5kdouuYlPlr2iE7tbUFpAUpIl5ZS8hnpzQLUs=; b=uNNQJAmhhDOs347rbspu2ARvDqugO5tFZM418Db7ix1AtuPcVWVYfK9haDefbCz6oqH4 oD3PFELPAx+xJ/sGhAjylkQbLrNEML4TnCjRLjSmAW/OrpsdcED5EqQoek9DFs9OMNJT EhTGlppOvhXP2dV196O0bRhiF5UY4MOjgut8FpOqhZrDD9ykZiIMQ75kNPvAGS8beITp qmjMIOfbxa/w/1sc108hOLRPcAmI4GGQaUBHJLJM4X3zkQat0F4GYIL0MOcFTfIxA/y1 InBgSaDFxmZ4KYFCN4XVtTgwNhI7k57/zIBtxyx2TNnGqLOHZ1ruZdE3Y4QEyETFGhWw Hg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 38ub4chsqr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 30 May 2021 22:48:10 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14UMexBx020950; Sun, 30 May 2021 22:48:09 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by aserp3020.oracle.com with ESMTP id 38ude4w7j9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 30 May 2021 22:48:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bn94m2qUguzUW+hZFchImmu/GS2m71IjztDBYnMqe6MQ4dnZ1cgi+2qemLvX0h1ajW8q48AU1VCshRz4Z5D0ZOOfbcaRRwgZ+of2oRefHoNPSM3ErI9M0fF77HDXhUHnNRCz9xUg/hIBVBikbfdh32IUTHCFs2YKRo7uHxFe0mQVChpPQZz5ckwjMKCiNlJYiiFM3eIe+dItMseHomLeT7Gh7lDlgAGH9TiZDsbsJxNxcECsACNdPwy0vGmiMSZ7fEcnCcL+Gjsl+vbKLfZcEZY/0AENlCpkxT1GIjuCc8/BVmW9zlcbI7b4ogysxnbrqzKus5gyzDSNrhehxmmAbg== 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=231RvA5kdouuYlPlr2iE7tbUFpAUpIl5ZS8hnpzQLUs=; b=kinnbw03thM4FCvJUxhXvEhJsryndVLbxAREJEf+jdR2mVlx1HtC6a3BIdmBaG+qN5xP4nBMrhrj2cokmU3z0nDxMV6gIvMwDVdHSu8tnbg7X/ywSEeeW/aRx4uT9KfRFod7d+rB8Qh6f2SpLaKKSQMJXSvyEtqiAStp6ZTKtrZn7tttSoXPFwilPzqCGs45G+JBglzlE/nxrUiCxXwOEZqv5RIWRP3Jq6/iTAsGKZ0mXhjIW1hM7hB9awvc2d2zZvwk6WhUC8F9vofAokw9dh4Y6EBMhKVWjIRblF1KIO9l05hEMA8+e38TS4owJY0kg94MIR/O6QDyE4AxVZL7uQ== 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=231RvA5kdouuYlPlr2iE7tbUFpAUpIl5ZS8hnpzQLUs=; b=wmnkWRZzt5CiymA8vAMwnv8XcU1I8qv2QCMG77qWMAbRu9Jyk3rMfQiHHuJpdLN6KmpbGEaRX1QS2VvEpH2xGlRCyCY1If3JTiZuJ9VqNHt5QQh72Z7g5+3yLL9bHQDQpAFax3hAnIlYICLbccCXSdWEYopQCNZiCsMnuOjVXnA= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4810.namprd10.prod.outlook.com (2603:10b6:806:11c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20; Sun, 30 May 2021 22:48:07 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494%6]) with mapi id 15.20.4173.029; Sun, 30 May 2021 22:48:07 +0000 Thread-Topic: Why is defun not executed during load-file? Thread-Index: AddVpdICvxPK58feSUm11ESIonIyOg== Accept-Language: en-US Content-Language: en-US authentication-results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fbb0fb37-f724-4ea5-65e1-08d923bcfe12 x-ms-traffictypediagnostic: SA2PR10MB4810: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8O/j7JwYuPI8Tsv0p0HeRKwF/QQ258pm0uxyXn4NTBQsQ0Xd/irfP7hduOKT/jKYRxiOXnFlS718+oMt7rKCRsmWgBsPnM9zTLbExh06tVgpXIjWuZCLuK36hkEIdHuFyb9BbZoAKiCrr9Tou6liP8Ll+a14K8CL9fGdrOtqvYYs/AtViapuMGC8F94dyrFdMrXT2IOoAbENzT0eshCMmR3q7RM8zJrZ6BJ4wcsq1cP5Z+xCpAybD58n0oUa69zZqjt5Gu7q1byj9GpS+Fo+apoSvjPuOzqPU80JZZ+psyCt5Ef6/8jWl5lBXxskjzrrzGVlZAhQ7nm18P7P9pBxaAusY5u6e8EyN4YfU7y7PPrJZqemdWTgpFOqJsqivyYaHaRpMXlNjJ38L7Dnm1c/kAMvpiKB+Ax6TWWyCsN45yWMPe/G0SVhXp33Sz/XnnkWVzGB3fXpUP7HaPGh2F+iSrgeDJqhPxn3j1dmrJ+Sz1ZV/6CE0UegKFT1jOMq4dlbUgBbOhnY/1M/4sgHICD2rgtBoBLigAV38j2c1bfSd+v1KxNNHum3+Zn84wmjmXfJYpQ7OnFf+kSkYheqhE2ASpt8R7n3SL2SQTqN4xA9K3c= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(136003)(346002)(39860400002)(396003)(26005)(33656002)(38100700002)(66946007)(64756008)(44832011)(52536014)(9686003)(8676002)(66476007)(66556008)(8936002)(122000001)(76116006)(4744005)(86362001)(5660300002)(71200400001)(2906002)(478600001)(4326008)(66446008)(316002)(55016002)(6506007)(7696005)(6916009)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?MIjB3XPkr2IdIAQ/EG9hU2PUcYtzRGk3NnIGYtQY7UJac2qXowjn3LqllZ7o?= =?us-ascii?Q?dxnp/1K0dTg2nFSKTM4Ey8ONgDO3tG/8sGJg261elxDzG8n3tbP6vN1eyxLq?= =?us-ascii?Q?ead+/uH1h+Z4pTE0Q4bWa9ZVsGBw0pQnz8s35NxkPj3cJg2CDLBLnffKAh2e?= =?us-ascii?Q?Vuw+1kgaTHedJo/dqL2PTvSoMZjr1jPKGL5z2xuN4GdZlqBgQEBuLlz2AV3K?= =?us-ascii?Q?+x6UX7calKN3mxYsgFCmmlI8G127aZ1zJjLZZxvlzBbA085m0eb/IW/UlFlJ?= =?us-ascii?Q?UyewrApYUmhMvFIqorBxRNskWG4lN1Kg5KhEcnESeFWJWKid3go0W9HtYfSV?= =?us-ascii?Q?J+HYhHiaxP3P4XEweX9fcFY5dBdFb/tgOOr5v4tz7qy6c7Vp7B8PP1gKB8hU?= =?us-ascii?Q?vNyBnZ3wJ1LIQggoD+UJKwlLq8YktiUkK7lK/kmSjgITDVFK4lhqFx5ew5aQ?= =?us-ascii?Q?1MdtAe/Gm+oaPoPtPAqcHqa1TddPscyz4QqC+u+VTKpZw9WtZBEBLPa+vwEe?= =?us-ascii?Q?WqMovOxDZ2vMAlzkMDKCSXO1XwqVNPlrggwTNpXUrkbUTE99LSKBHe+F5Mx9?= =?us-ascii?Q?5Dn3mXuUkENxCPrpSFuiq5oA5N3i/lhOhsWs9FLKNRCttgT1mSmoG0lllpSH?= =?us-ascii?Q?vv2m x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbb0fb37-f724-4ea5-65e1-08d923bcfe12 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2021 22:48:07.2480 (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: o3H8Bazl0Lszd+0ZVWGNaX1+MwmqmcKCHdJLkuqeLxlda4K1o40iQHunT2xI1LOUBgvxITrfdQmEmnde4SJuxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4810 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10000 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 phishscore=0 suspectscore=0 spamscore=0 mlxlogscore=754 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105300181 X-Proofpoint-GUID: VahmisFtg5yFUHprv3CAUCWSQY3XrXhe X-Proofpoint-ORIG-GUID: VahmisFtg5yFUHprv3CAUCWSQY3XrXhe X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10000 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105300181 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_PASS=-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:130363 Archived-At: > Macros are much more difficult to debug... `macroexpand` and `macroexpand-1` are your friends. Separate that first step, which is just reduction (aka rewriting / reduction semantics), from the subsequent step of Lisp-evaluating the sexp that results from it. So debug the macro-expansion step, to ensure you get the sexp you want. And debug evaluation of that sexp - separately.