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: Why is defun not executed during load-file? Date: Mon, 31 May 2021 02:05:25 +0000 Message-ID: References: <87k0nfesns.fsf@zoho.eu> 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="34415"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Help-Gnu-Emacs \(help-gnu-emacs@gnu.org\)" To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 31 04:06:05 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 1lnXJc-0008m0-IQ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 04:06:05 +0200 Original-Received: from localhost ([::1]:48572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnXJb-0001Oo-Iy for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 22:06:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnXJE-0001Oc-H3 for help-gnu-emacs@gnu.org; Sun, 30 May 2021 22:05:40 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:46912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnXJC-0007Dx-Ac for help-gnu-emacs@gnu.org; Sun, 30 May 2021 22:05:40 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14V25aTm116727; Mon, 31 May 2021 02:05:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=s5sWrq08RmqyZcNNTU+QtM1v7ORafcyeflHd8maU8nw=; b=R92fMp0QY5PJByWbnh+yEqk77mKxm5JzXLdstcu0lj6XLtdNxXA/o+uxBHwjMC3+ZvI2 UydP6+PuPPzaYHygxZKZxLkEPh+eW2dqrxPgIxTIyH6uYMDc9uRqPjr0bWY6ljQ9DmPh QeuMLHy3P+Dx2KBa5IOBhtcKU5oAryCDwoSNzldnJRvvEs9CJrapOU2IncO1pQaNIvwD 6xRKVSzF8p4/SP4E8hudimmkY/YhfVduAvW2NBxMOFGtEzemMzRrskiGQbXMhfCOgftf ktDAxfJL7hPXgop5DWu17iCjQaFIdPVvRm7ey+PQ8kIFpSBGu59BKtzQS7orEuOfEiIL PA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 38udjmhtxy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 31 May 2021 02:05:36 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14V1jrjP057776; Mon, 31 May 2021 02:05:29 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by userp3030.oracle.com with ESMTP id 38uaqv0ky0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 31 May 2021 02:05:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kEQT6PZI5F9VKgj5RLlEewhd5TxJrahjL9fcX4pM/pSuoOAyz5ovofqrRi+ZrTOUmN1zavKxxkltHjy72wGnLHbLqmr1D0YTaDYVJcT2nCm7BX0d2/xBMINYbtppUgSvwTCRuBtbWzuuVZBAdAlU3V30fUom1NwrYNeCuSB0pnUgwTj28DHPjCA6Xl72a+TeBin5jwP2VnAPMGJzEHraDxF2fLHexu01CPdXD6mZQ0VG+4elLRUHqNBnKMFuRN+RfD59ridQ4+5+vfAs87c5UNuTAg7xGe+J6+Vwkft3eVcqHIIl0Ijg0l4DDXJmyODt4s+FCcv+pVWVrILDvsLmvw== 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=s5sWrq08RmqyZcNNTU+QtM1v7ORafcyeflHd8maU8nw=; b=gPEhyvGbB3PKArClXoWDJacUQbyBhBTJ//Z9dY3u4Vo6CuPM29AiJpoDmVvNowRMPHcaWBoav7gGxSAAtcpYZqRC3w+tXW3MQFJ8FKgpqlYPwCVLwpOKcdhGH+JstCoRDnRqCMnNZOYXQPyLZC/15JlLo3HbQmCboxipZ5S/0NA1CAbZz6Wr7GRwC/aZEzUGDdqxCiywldm1PGYZJIGbUUbBRAKHrRCHoGG/udJz+5TwQF21rrKy3LmDrgDY8X/7gKG0d/ab+htY3RL4C8rIso+X6FBNURK0htYIknnSkeUNysFeZaf4sermYMIOlVHVUvLqhJj7+/Pzz0MkRLFqNg== 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=s5sWrq08RmqyZcNNTU+QtM1v7ORafcyeflHd8maU8nw=; b=VL/HUem+f32HzkzN0OHXNnovfsmMXtx25TZxe4ISLorzMaQ/RbK48lmpHnuvY+wm6Ww8s4ThfS6lwPDWvuuM7cWdTK7+fJZG3GRY7wbwupAo1irZJNCnXU1CXbYPkGQV55bS8TlmEfD5j2nI3VKleRlmbiVnJcqyd8Bq04F6nQI= 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; Mon, 31 May 2021 02:05:25 +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.030; Mon, 31 May 2021 02:05:25 +0000 Thread-Topic: [External] : Re: Why is defun not executed during load-file? Thread-Index: AQHXVadGqyM6goPcXU2pct2Z9CqMtKr81BCA In-Reply-To: <87k0nfesns.fsf@zoho.eu> Accept-Language: en-US Content-Language: en-US authentication-results: zoho.eu; dkim=none (message not signed) header.d=none;zoho.eu; 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: 196dea54-576e-478f-ac34-08d923d88e26 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: ZRDknUsEM9EAyg/+HoJZcYefSJzuXSu70hdWGn4A2VTBR+wnP9WqhA54ptp/S4mLpn9t7KrbdBz0C2p+dhtSTBE0jkzDqET8EYItVHZhI1v0fbvgM3Ir0URJ30Z9DMIKJueKBwwc4u2XZI2NhZEkueIGXf7g/41PafK2z/Q+hJHhVq1EPMbUbWfhT2mWrYRr4igdXvh2bvvicDgOkjqdy8ddILv0u/CnJwlfx1nr5Cz8D0xLKvCjIQ5fkcmHP6qKMtWOMh1E96wjDNavMoh+1gr+eWqZk78Ns/2gpjW0CLR7BEIrAZKsgOJ3m6c0VWYnR+CdjWmoQJIoHtv+HyQQ5mvmsYpqz9ICn8apD8GPlFUSSWdy6rxdt8jwA4C6MFxEfVVGuzASRtfvhqNPIfIEzfrU+Sr+G3YNZpkDrT0Eo5XkbjIWQ233mXbc6AITu/ZNBuYaHDPQnnuRPxa4Yqqpt83A6EBxn/pEERH0GsHDTQjqcMMwiYloSK0j/+eaAcNLDPMu83D5bZwuqD/eOpfg6mfKlUpL2DcwPEZuT+tehCDWbOqY84si7iAjLHrKSW/mnP261ouHNS5VVujCQZB/cJh5Axq0Leglo1JUK1rxCzM= 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:(39860400002)(346002)(396003)(136003)(376002)(366004)(478600001)(2906002)(4326008)(66476007)(71200400001)(186003)(66446008)(66556008)(316002)(6916009)(6506007)(7696005)(55016002)(38100700002)(64756008)(66946007)(52536014)(9686003)(26005)(5660300002)(122000001)(4744005)(86362001)(76116006)(33656002)(8676002)(8936002)(44832011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?EIfqEhF0G2eeQ5+Q53dEm16ET2aOxJ3uvqr/RfQYQGk5NH5QYHBkrSHRIuRr?= =?us-ascii?Q?uWwQIz+hUdtlLi5aTr+A47E38UeeC8yfhBuGUCbZ2U0xJruniAnDwWo0Zw4u?= =?us-ascii?Q?QqR2E9jHclsaa6dRtWASiHwd0LcbVMdVCjgrAVMCp3s44zMBlzacBtggRV1a?= =?us-ascii?Q?63YG9kh1+YQvWpeUP6Zc9ncT22iq+VToVkF39yozBWz7WQFr0DAieWjE2n6c?= =?us-ascii?Q?zOW/uLNU4xkZgwAQ/cDnjPDp96WBM97QuJtgIXfVZZ1H3VE/XKORYgv22Tqq?= =?us-ascii?Q?enGRTVAsQcVIAR+Tr5unvVwCR4ZGHzlkDUodjL23OleED2Z4RuB2ucvmdtHg?= =?us-ascii?Q?OVm8aryAbdeaUvVxWFBk1U+YnJPf+oPddtC2M+kWpMrP7rXAX3IbB6k2eQWI?= =?us-ascii?Q?na5THAxjyCmC/Eg1FaruaNDGzHG4koIuxq4TkfBXzBdmBGG/A80d9r8GpZAm?= =?us-ascii?Q?8gfr7tyQ/7cgne360jCH/nqqY4GPC6cXyb2eQKdViqqMwSVUW5SVjiDxwylh?= =?us-ascii?Q?lKe9nnTpgvZZR8jq+bE/CqPdQGrse1+ffedKUBLYotkfB8VrFnRPKarzci95?= =?us-ascii?Q?ktMn2l1aLc2kIVdNYSrKu76ykw+vrEYkPHkQxyHMlOMGKXz5zfWaWfPNhbEp?= =?us-ascii?Q?k1Qe 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: 196dea54-576e-478f-ac34-08d923d88e26 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 May 2021 02:05:25.2840 (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: H2HWy7JxuQPsRlALtHTRfKAXngLhDHrapXp1Mq0u0OvBrXnpkLk/96XI/w8wOd9B26iZjxvQBu/Rm6/KwljjLw== 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 mlxlogscore=896 bulkscore=0 suspectscore=0 spamscore=0 adultscore=0 mlxscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105310014 X-Proofpoint-GUID: i6Eus62aedYE4DLTr4294UDZF29zwc0Q X-Proofpoint-ORIG-GUID: i6Eus62aedYE4DLTr4294UDZF29zwc0Q X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10000 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 adultscore=0 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105310015 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 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, RCVD_IN_MSPIKE_BL=0.01, RCVD_IN_MSPIKE_L3=0.9, 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:130383 Archived-At: > >> Macros are much more difficult to debug... > > > > `macroexpand` and `macroexpand-1` are your friends. >=20 > Also, writing macros compared to writing functions typically > involves more bugs... Why do you think so? Most users write far fewer macros than functions. A relative lack of familiarity/practice might facilitate introduction of bugs. IF what you claim is true. But what evidence is there? Writing code that creates code is its own thing, granted - it's a bit particular. But if you did that as often as you write typical defuns I'm guessing you'd introduce about the same number of bugs. So yes, if "typically" one doesn't write macros then writing macros will perhaps "typically" involve more bugs. But a little perspective hints that there's nothing inherently buggy about writing macros. Is it harder to ride a bike than to skateboard? Depends on how used to each you are.