From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Emacs development... Date: Sun, 22 Aug 2021 04:15:07 +0200 Message-ID: References: <56B1C272-CB13-4793-930C-9F6B96F9856B@traduction-libre.org> <83r1enz453.fsf@gnu.org> <87h7fjuuva.fsf@gnu.org> <351DF59E-BFE0-4CC2-8A40-B4E7CB73D81E@traduction-libre.org> <2281ccca2d439b935535197d931c1ccf41b0f86f.camel@yandex.ru> <3AA2DD3C-EDEC-4180-9180-AE84D6705BE8@traduction-libre.org> <87fsv26eu1.fsf@gmail.com> <5587433C-396F-4230-A81D-21CC33FAF901@traduction-libre.org> <87bl5q5n8b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11325"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Jean-Christophe Helary , emacs-devel@gnu.org To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 22 04:16:14 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mHd1w-0002hh-Qm for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 04:16:13 +0200 Original-Received: from localhost ([::1]:50402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHd1v-0001Eb-AA for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Aug 2021 22:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHd16-0000Sz-1E for emacs-devel@gnu.org; Sat, 21 Aug 2021 22:15:20 -0400 Original-Received: from mail-oln040092073093.outbound.protection.outlook.com ([40.92.73.93]:24635 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHd11-0004Le-Tt for emacs-devel@gnu.org; Sat, 21 Aug 2021 22:15:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G5mmZvB98wRwGpGJ4LZBRDZfvCg0jGFu31YjiKQq980jgzLDptFaL2WqE/glo795mE0pn/IutSHAskwJ5lz0UwckM9gsWdFGCaIbAm4AK9SN3cNAtNh7fjq5837Ds0u0azoGmj9+BWTI/IWwKUERlv+JOU4Uem53VMiVvx+DD1ZmUBA/uV+BcpRtHV+OmEMh/4WZx2V/5KXhXIf2Dn+LV3HVztQbUFqep0+VGSwcLlD/LbFwo95pZdwndaw2A2kbr7hnq3qetsK8GG7s56XFhFdXOePZRWgg6XjehORDADYN9PMPBV+dcK0gKTPaiybS7hZoiA2cXCCJKZR0BfgcrA== 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=2OTHwwXwIJjJP2oCZQXJ1q6ZLvkHgjnsUkET/G9//fM=; b=mUsrNzHy8fDuNVflqDOHe3LzKFNmdKMbxTq+CwN2rOBRMP00hT4Q8lhlBNQ1Uhdi+LvVqgIRd8VLU4vaeXm4gLvlhSayVLA3/bDNCh2hW6DGUX/O/9iQhYPaZhWKJOpmQG7QRWl+bYsyKyzxJkypjepPMtefNRwaq+LhO4i/SZYbRwrBiZ0HEILKZBTBWbGTlAhi7rYuGakWkDZbenA8U8lBQZ26B8U+fqb4og9gURof48oYH5FmVWwmJW3mEs0bQ8WmaH1B6P2XPuYamXq2oPVuVt3LNEBoPNAUC9Z5bf6G/FfTHgN1URmu7goBzajq7hTFJr6OKTo1rvvN0U4dbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2OTHwwXwIJjJP2oCZQXJ1q6ZLvkHgjnsUkET/G9//fM=; b=oSXD2HoNEp6hOOXhClDJcwASrakfcTfzGNIv01KlBW309LZ2rOzUEB+Cb729Dq5IG9jMSGPppmNGrvmBTL+ZatUh3T05rkLpin7qeaFY5MleUSB0Nvh94urgMihA1BHh0hia72hQgU9XuJoTLsBT2R5pfWH8ESqKZmhZG1YCECYReJHBOX7aXdanM/sM34fdvaCVv/hjw4Ue+5LTm7mIaI70ZvSiQZC6iiPJBOnriHHJO+V/QuAQgIc2yFMbumePcyScIYqhpf6qYUZoM6ETQyDT+/e3qxKI5ifH5yLVK5qIq/uCLF8QrsdakHiQpgx12ioLZVLrVsaBQMEMvDYnSw== Original-Received: from HE1EUR04FT024.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::53) by HE1EUR04HT030.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::312) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Sun, 22 Aug 2021 02:15:08 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0d::4d) by HE1EUR04FT024.mail.protection.outlook.com (2a01:111:e400:7e0d::283) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Sun, 22 Aug 2021 02:15:08 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3C0BC5CDD1D9F8C0E4917E181A4FF59ECC75D520405459F5ACB6202988F0D6CC; UpperCasedChecksum:5D949402EE8B2D2548747F1D604EF1A7E6FA53DE7B8ED57FA4D6F2AE66E82313; SizeAsReceived:7868; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39%2]) with mapi id 15.20.4436.023; Sun, 22 Aug 2021 02:15:08 +0000 In-Reply-To: <87bl5q5n8b.fsf@gmail.com> (Tim Cross's message of "Sun, 22 Aug 2021 09:09:49 +1000") X-TMN: [AqNIW8SS9J39gZLwnXOYhetOa0a1GmHU] X-ClientProxiedBy: AM5PR0601CA0043.eurprd06.prod.outlook.com (2603:10a6:203:68::29) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87a6la9qdw.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM5PR0601CA0043.eurprd06.prod.outlook.com (2603:10a6:203:68::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Sun, 22 Aug 2021 02:15:08 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 603f1873-a48a-4325-e006-08d96512a9df X-MS-TrafficTypeDiagnostic: HE1EUR04HT030: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5DYpJI7P7w0//MHu0/VbYdquOlXGaMAOJacnsAHGlPS/XNeVTp6LeK7lSKDzFs7umh7Sit3Rsq2RORAs6fXaG4Y4LFl7bmu0ZMEtkArY4wEIhCmBACJFj8hr2vDq4Py/ZICo/mcQMNwl09XmIHXsD6aRnk0aJjQ+uuBaMKJZK/lBSCIsM+efPrSpSD9O4gANSLGqyqgae8UU9vM6kZ0JRpuZmTFnqbc65gmOj0y22TWbX9mVSipvi28vX2ky5VApqP4/y1k3TWizV9FRuCN3NvGp9VwumjyHZSImcmfg2yQDC/9yedsQomKtI60g+JeaD/Kj8jXIfXLD2zrgVPpTwd7WoRQdtq0eCkjYjPDbnY48z9+pC6olDjOi/qJb6DyVAK3KIgG6shUsCBkkPc48nhzU6EyFEmoMs7+drDmQAvK0qMIyHObIYxJqPP0lUnt5 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bJB08KUZQTJeMM8DNCHhsNf8py9VBL+2WmUeNzPOjcAh52hjmo73zW81zArTydA6XlAA12EqKmSxAMk1ZkYfsmgspbINUR3Lc7Nwrhbx7Y3dQVAolTYqAWau4uYZPexEdGz0s+3t0AhRBcqzZ/gwvg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 603f1873-a48a-4325-e006-08d96512a9df X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2021 02:15:08.7436 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR04FT024.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR04HT030 Received-SPF: pass client-ip=40.92.73.93; envelope-from=arthur.miller@live.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272814 Archived-At: Tim Cross writes: > Jean-Christophe Helary writes: > >>> On Aug 21, 2021, at 23:08, Tim Cross wrote: >>> >>> I would also recommend getting comfortable with ielm (M-x ielm), an >>> Interactive Emacs Lisp Mode, as well as learning how to evaluate >>> expressions in the source buffer. >> >> Thank you Tim for the suggestion. I like ielm a lot, when I use it. >> >> What I am trying to do now is fix a bug in package.el and I don't see how I can >> use ielm for that. Do you have suggestions ? > > The relevance of ielm is that it is a powerful and useful tool you have > at hand when doing development or bug fixing in elisp. It provides the > REPL where you can test/evaluate bits of code. How useful it is for a > specific issue will depend on that issue. What does ielm offer over M-: (eval-expression)? I use a lot M-: so I am interested to know if I can improve on my workflow. > The main limitation with edebug (with debuggers generally), is that it > doesn't really help with understanding the logic and intention of the > code. It can help with understanding the 'mechanics' - what gets run > when and what gets set to what value at what point etc. However, this > rarely helps explain why. You may identify when a variable gets set to > the wrong value, but not why it ended up with the wrong value. Knowing > when it gets set to the wrong value can be useful, but often, if you > really understand the code, you can already see this by just running the > steps through mentally. You have a point there, but in many cases people are not really sure what value is passed into variable, so they will printf or message in elisp, something just to see the value so they can identify which piece of code it gets. In that particular case, I would suggest that debugger is to prefer, instead of adding a printf statememnt which will go away in a seconds after. Before I learned to use a debugger it could have being a lot of System.out.println statements, to the point I needed to search the output in a text editor. It was many years ago when even grep was an esoteric command for me :).