From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Quality of life improvements to macroexp.el Date: Thu, 18 Jul 2024 21:04:13 +0800 Message-ID: <87bk2uyhpu.fsf@yahoo.com> References: <87ikx62j5e.fsf@gmail.com> <87frs7da94.fsf@jeremybryant.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16346"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Thuna , emacs-devel@gnu.org To: Jeremy Bryant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 18 15:05:35 2024 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 1sUQpC-00043y-HV for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Jul 2024 15:05:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUQoQ-0003td-Iy; Thu, 18 Jul 2024 09:04:46 -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 1sUQoH-0003t9-Va for emacs-devel@gnu.org; Thu, 18 Jul 2024 09:04:39 -0400 Original-Received: from sonic303-21.consmr.mail.ne1.yahoo.com ([66.163.188.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sUQoE-0007L9-Qb for emacs-devel@gnu.org; Thu, 18 Jul 2024 09:04:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1721307869; bh=4fPFi58VLkTs9Tx272jp3K3F1Sb23r1a5JxiPYp1peA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=QJz7L900zXqAlnWQi3zInFztCPi4u8eITBDbdmBz8ycaS45YArshHEtvf5XiF+c8Kv0M0Owh0yCdCtl6d9QWVJh/J0nDIbNFh8PNQYwBlBb52FPYE+VXmnVDItEhRT62g7DwjzmdbXelc7bq+Bxp1ynyUJfE1fFMKIumpWn96vAIBQds8Xc1qzoHTWnw7/hgYnn03iRzFdf4O8cOQteY8O/93OyihOEiMHfVEmrZqov2aQ3JJE963VWdV2pEamsRXsnCw4HBqKofLpqYjeQTZX2mFZgi8pDmVjtSuawyw90BW+P82MXroG1fr0NX2VfTpIdYPlxp0+ofax4hE2ZCHw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1721307869; bh=VgQiX7C2+sGoidixSGdAnxZvPP6YwTj1sdvGj/g+gM3=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=BD+bA/I51tm9/zuSBRJ9qbl3T3Kne5Hm35y8NuOjTgqgKmOqcKW49wDZwMY2ihybnzUMz83E73YUSmGFv15oavbZFtotsb5SdKWbWcXSXAh0EXV+Hsf5cNH2YB5DwRqNp5sbcZhg4Ge5TL+TkajdzSUTXmOdUksaQcsyX7Dm0CrYL/3FbKsVRggRf4vjaEs0vxHkJrrAm4WInnOFIWPlE3bmGTGfz/bT7wNxBTUpohxLUATlEPwOQL2HPX50R2hnYWMXDz8+IQraqZuDStqEXSJS9/BrO4dlMbA/jdYyIeICd/ih+EdpYC4DMQeFR4AnPqezPqDC62bSgyhk+dyAvQ== X-YMail-OSG: uXl9L9AVM1lBmA7t3RmZzoXsIwa3UWJN5g.B2Qq6cSVo7gjqcwUR2Ou.CDGQIB3 9kU8.fEGP3kRVwTBUJyjfbLd5IlMtgpSnRdvGTnnzIwF6FgbFdKgdpV6rZJvqGHB5YU4Zp0uPkwm 8J_I4JNTLLBcpoE2ri6w3c4v9nujv8dyveSxFMkwpVOO65gSPfSpKJhfibmKCqvFw65a3FhX226c Am3SXkYsaej8FDo.tPKHMxJu8b1qjPu7XtRUkzbx.feJ2SR2miT2srjx9Qb5ctDQj8QNT_m0t6Gh mUXN9U7MvtWAN5R50GaclanO5RGocVJiWVsgc0Rl_L9oE1YohF3iPOBs.uW8t0pJ3l90BL.WOviV 2s0Rx5Qzlc07gHQFsMXWWjsRk7OnWmRgGGHXbkE_7cVd_09GCNLLAFx.LV8uw2FN1cKC.OHNrQR0 HH4DoazjeW5OqskIgCRw5giNVT8lLX7J4pBjwUzxE7Dz2vpevt5o.qLrU5Uq9S5qrhA6WSMP8BHD ycbkK1izBdFHyHx2nG1a3It5FMYzLEUMNtRC1S6R.i4SqtzJnFRFIbyAx_iKGEGO9Y5dkfxC00rp EkG.C59K3nkzdpdAVbjkmqWUZ3roq.tvgP3gblIka42J7bawHubiCyIDtImhIgMbvUs3ZGunuykP P4UOXpkZvKelpBMPsAHDYv8BTuasNk_OM1C5MocuIOA54asQ5H5ju.qPsX60GYQbf.tOuP3f.nUx BD8LzuiKPYtUdM6Lp.I6V7hg3iYtxbuh8Z1yPpRh0LNK.xgugqOqdvI5QMVc_26AFW52Fabx6duF mGZGA.ZMbuOlAMSh0gHaWAKVzA0Y_onHDW9XZbcqOL X-Sonic-MF: X-Sonic-ID: 0467d4bf-2c01-440d-897b-548fcc97f403 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Thu, 18 Jul 2024 13:04:29 +0000 Original-Received: by hermes--production-sg3-85fdb5cfc8-t9jg7 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2e3fd56ec285b2077bb53ee20bdc3064; Thu, 18 Jul 2024 13:04:27 +0000 (UTC) In-Reply-To: <87frs7da94.fsf@jeremybryant.net> (Jeremy Bryant's message of "Wed, 17 Jul 2024 21:38:47 +0100") X-Mailer: WebService/1.1.22501 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.147; envelope-from=luangruo@yahoo.com; helo=sonic303-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321791 Archived-At: Jeremy Bryant writes: > Thuna writes: > >> I was just looking into using macroexp.el and found some features that I >> felt were lacking. These were: 1. accepting multiple forms in >> `macroexp-if' and `macroexp-let*', 2. flattening of `progn's in >> `macroexp-progn' and `macroexp-unprogn', 3. getting rid of branches in >> `macroexp-if' in case the TEST is constant (and consequently a way to >> tell whether a constant form is nil or non-nil). I've went through the >> rest of macroexp.el and haven't found anything else that stood out, >> though I might change my mind as I keep using it. >> >> I've attached a patch for possible implementations of these, though this > > Thanks. For the fastest response and ease of tracking in the bug tracker: > > Every patch must have several pieces of information before we can properly evaluate it. They are described below. > > When you have all these pieces, use the M-x submit-emacs-patch command to send the patch. This is in nowise a cast-iron requirement for submitted patches, especially for small patches such as this is.