From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: MPS native subrs Date: Wed, 26 Jun 2024 08:31:04 +0200 Message-ID: <8734p09pw7.fsf@gmail.com> References: <87v823xvq1.fsf@localhost> <87msne3flr.fsf@gmail.com> <87frt63dvt.fsf@gmail.com> <86o77ulgk8.fsf@gnu.org> <87zfre1p3r.fsf@gmail.com> <87zfreo5u6.fsf@localhost> <87plsa1n8k.fsf@gmail.com> <87wmmio3vq.fsf@localhost> <87jzii1hbs.fsf_-_@gmail.com> <8734p61evv.fsf@gmail.com> <87iky0zvyz.fsf@gmail.com> <87ikxwamor.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16325"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 26 08:32:08 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 1sMMCO-00044k-MB for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jun 2024 08:32:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMMBT-0006Kf-R1; Wed, 26 Jun 2024 02:31:11 -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 1sMMBR-0006KM-JA for emacs-devel@gnu.org; Wed, 26 Jun 2024 02:31:09 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMMBP-0007Ib-V9; Wed, 26 Jun 2024 02:31:09 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-421f4d1c057so49696325e9.3; Tue, 25 Jun 2024 23:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719383466; x=1719988266; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oqZQ1Z5UKfudCX5IT0C3ApEcScO3LvXFqJZ9OhovYM4=; b=bwZqKnjGgCagEtTM7HLofZ16Mu58Nqr+yeNzef0jgn+VJT4RGDaKlD8jOYncA74H4H /9td2n/LLCZhOvBrj/w3ZiPaVlxTPLIUlygUeyjhkpJQXwwUxqWFdOgEVE6IxhRJa7bh QdvM43rzips0HRJZcvG47FsRSBzWjWXvSf5x+yaJl2lGlaOUfTU8WMjvqxJzamepgBea jmV4+c3DgRYEilwnpYhUvL53qp8y5iMblkKTP8yxvOYUOWvHO/+EOAjMGq2GvrzZJFHj Jnrrm0UieBJNe8qt0g8sP2RmDXvN4nW3okEyGVD6//AY8QdeEANA1NvROZO7QU1zCHzN 0cAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719383466; x=1719988266; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=oqZQ1Z5UKfudCX5IT0C3ApEcScO3LvXFqJZ9OhovYM4=; b=OCs/I6zcQ+uDBl2c/Fyv2KaPJLYRIwYM1Rn35DVcbdxXvbYfHStmHhylhInXxbYogd 7/t0vxiPndHC7FIqu4VQ0eiov60ZsZpnbQ0vgva4OUCB8HUypFSIGR/bM/Ot99mJXpmX wKgjoPECdouI1G9VBYLIgczx1c9oQrqVi2PycCmChWfR+SFDpBbXGHI+O8WhC1PCZsWN Fy68TKenUpbXjMLnziCZa5ZKapoXUkydQ7ipm/ic4PSxsUqaHc3OAjnrybDZWDuczVdU Tvs0dCa4BezAjnH3rOeAFUVnv7+TzJC9YW108xYKO/ss9BnIGrG+idepTR5BMZYklCtT xnmw== X-Forwarded-Encrypted: i=1; AJvYcCVJM/BvKQfPOdG4UMrzHC1+GJYr6+1T3WmZKrjURPL8VIERdTnHgKi00+jMN/5XiAYqsiG81FRazeii8eiQmXsbLwxD X-Gm-Message-State: AOJu0Yxeu69twOem+GL+8rLfGBn8eYpoSjrinvSVOQFLcu4a5PyPdJJZ kRy7M1Do3LSqf6CbyomOFGcQW41Nmp65Qv+ofcMnt7NgC87mpmOShhil4Q== X-Google-Smtp-Source: AGHT+IELNyWgKESb9nRoJXVfh9s1NaP3lN49QAyHAfVeqWClNmZCN2/UKstnadFIIktmAOrg9wKlHA== X-Received: by 2002:a05:600c:982:b0:424:a58b:4078 with SMTP id 5b1f17b1804b1-424a58b4162mr24451605e9.32.1719383465302; Tue, 25 Jun 2024 23:31:05 -0700 (PDT) Original-Received: from caladan (dial-187254.pool.broadband44.net. [212.46.187.254]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-424c8246b1dsm13014555e9.6.2024.06.25.23.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 23:31:04 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 25 Jun 2024 22:48:01 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=eller.helmut@gmail.com; helo=mail-wm1-x32c.google.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, 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:320663 Archived-At: On Tue, Jun 25 2024, Gerd M=C3=B6llmann wrote: > Seems to have appeared in > > 58e0c8ee86e2c36245f1c5a1483f1c73600b4914 > Author: Lars Ingebrigtsen > AuthorDate: Sun Feb 14 13:21:24 2021 +0100 > > Extend the syntax of `interactive' to list applicable modes But it's always nil for primitive subrs. To me, this feature seems so rarely used that it would be more than good enough if only named commands can have command-modes. For named commands, the symbols plist seems like the better place to put it than the function itself. If we could get rid of the command_modes field, then we wouldn't need to trace primitives at all. More generally, it seems that the DEFUN macro works much like the DEFVAR macro, in the sense that it creates a struct and puts it in a static variable. So the Lisp_Subrs structs for primitives are, just like the Lisp_Fwd structs, already in the data section. We could re-use them instead of re-creating them in the dump. Of course, only if we can get rid of the command_modes field.