From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS native subrs Date: Wed, 26 Jun 2024 09:00:14 +0200 Message-ID: References: <87v823xvq1.fsf@localhost> <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> <8734p09pw7.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="14197"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org, larsi@gnus.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 26 09:01:31 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 1sMMen-0003XU-VH for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jun 2024 09:01:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMMeL-0005dS-2v; Wed, 26 Jun 2024 03:01:01 -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 1sMMeE-0005cD-NT for emacs-devel@gnu.org; Wed, 26 Jun 2024 03:00:57 -0400 Original-Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMMeC-000750-1i; Wed, 26 Jun 2024 03:00:54 -0400 Original-Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a72477a6096so422430766b.1; Wed, 26 Jun 2024 00:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719385246; x=1719990046; 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=OhxQhmPtGxaJRisVxtvEUmWoNTxyJWSl4Xiqv0EHcCc=; b=T719Evcxw0SILnyOXbDlhIa4FWF60L5kXSVNaEFrhsuU0QNwlGzEDkjCirmUwPpJwM Wy+mLUfSsTq4aph1FAY9OhhtUmbrY8y6/D2ZgxKogxPARyWqLDPHvD58PutETgxoWXWW TtJ0ZqTqm6hA2+chu1uZ1iBJgpAh/24SA4ZXMp+yjqbpMRL6TBLfO5NQEWeTYv0vKEAw zZdcE8TYMhLbCTUXsydT/zcEJRZZncc3TOGuiOkdOynet7XWxFpWKeKaeUrwitWNJu0/ +dk5Rxm1sUeO1S1H1vwaKH0KIBGfU99Xa578pRt1oILyGiPyESEAe7r5uNok1gsjPARN FPBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719385246; x=1719990046; 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=OhxQhmPtGxaJRisVxtvEUmWoNTxyJWSl4Xiqv0EHcCc=; b=wsg2T0yNhG+FW1ksl56+xdXIITpak7eNCRgeH4x5EYpQ27JU2TwH32L8b6jAZZwEu+ G8qgGLT7yRBMNOq+pv5ZZsV9knc6C8fozbfrMZKWw1Eo6HpmRy/8Huiba8bnHM/LopaG QadKWQvfnNfRK302YtIyVdyt6Qr81M1rrWaN4LqWOSyR4sufwFA1QDd9iRm6EGTRgHut sRibDYHha8zMAzDPd2a813LKYGfWIgW1q/lyocNg3/PWK+sz2XZ2QLa9Idk1N3HR5i9m XTVEUp4kVQGXkd2Y43wiOF0R/t3p8bnwlQaOr1gfnbuVkiwkRosaQQlrBFwq4tIry2UC uYTg== X-Forwarded-Encrypted: i=1; AJvYcCWFd9Hs2WTMONxEcKcHtLv6x8EcSLac5aznAaB17TyXINi3vD1PFbrALE4AHw44VgzbqwMl0fOUPFFx5ujGIFGZejKh X-Gm-Message-State: AOJu0YzjjBJjx579PPFt5mNO66ZvTVtUIxrkI9/WPF54YsWf4a+8yrjl LNGtfHNhf/zdSZ0dHXXZllNXzaYmBlps4qM/YnJWlRPbJ59GQnFtVFZFsQ== X-Google-Smtp-Source: AGHT+IGYb3y3KdOI0t1qJQusKCkPsPaq6bh+P5mHFmxfcw7Hpwe3QaBipgQqnE5ebKgwt+GJIzzDnw== X-Received: by 2002:a17:906:ba8a:b0:a72:8fe5:9c5f with SMTP id a640c23a62f3a-a728fe59dc3mr19448666b.75.1719385216067; Wed, 26 Jun 2024 00:00:16 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e360b7.dip0.t-ipconnect.de. [217.227.96.183]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7243cd3908sm396863366b.192.2024.06.26.00.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 00:00:15 -0700 (PDT) In-Reply-To: <8734p09pw7.fsf@gmail.com> (Helmut Eller's message of "Wed, 26 Jun 2024 08:31:04 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x633.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:320667 Archived-At: Helmut Eller writes: > 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.=20=20 Right. I've added Lars in CC, maybe he can say something. I personally don't remember anything about this being discussed or something. > 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 Agree 100%. > 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. And it would again greatly simplify things. Maybe we should just do it :-)