From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Inferred function types in the *Help* buffer Date: Tue, 30 May 2023 14:48:52 -0400 Message-ID: References: <83o7manh0e.fsf@gnu.org> 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="4821"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Andrea Corallo , Eli Zaretskii , emacs-devel To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 30 20:49:55 2023 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 1q44Pq-00019f-LI for ged-emacs-devel@m.gmane-mx.org; Tue, 30 May 2023 20:49:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q44Ou-00012b-1V; Tue, 30 May 2023 14:48:56 -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 1q44Or-00012D-Q9 for emacs-devel@gnu.org; Tue, 30 May 2023 14:48:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q44Oq-0006eV-QC; Tue, 30 May 2023 14:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xGpe/9yqJuOBfjQEXs2LoTovQ9+/m+j0xAXxvJF0vX8=; b=aJ4Irlpj8GY+HEzxLnRs MkSLyIYE4sUWQF0+hFFWNDu4pR4W+g8f/Aan/m/ZJjLgp2vbdzneh/CXkdvPBKp0nlBEu1r1D+jvQ av3q8UkNkdU/LYAx8bkPXN/zWLsU5kHh19j5SjDpGMcZKOdxNCIaozY1zQHQ8u5fJAT5hR+xDafPn TOjtF5XzD7zd/OIgfMtYSF1kR2EMi0JrsA65eTEX3QW9/MR4KXKz1XeGfGRkivi+OiHwZ3Msq+KvS gwECtZvRQeLvZcEe3Mu+OYsESfWV286PIZ/uxGKC2a4rNqOOZnnpvJt+PJYqOOP5Oj0jyF9MnKyED T0qmO/scOH0fPw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q44Oq-000669-II; Tue, 30 May 2023 14:48:52 -0400 In-Reply-To: ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Tue, 30 May 2023 20:14:21 +0200") 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:306425 Archived-At: Mattias Engdeg=C3=A5rd writes: > 30 maj 2023 kl. 18.46 skrev Andrea Corallo : > >> Ideally I think we should have a declare syntax and maybe an extention >> to the DEFUN macro to cover for primitives as well, in order to have >> these declaration where each function is defined. > > That would probably be a good thing in the long run, yes. There are other= declarations we would like to be able to attach to DEFUN as well. Hi Mattias, thanks for your feedback. yep agree, I think we should convey on a syntax for everything we want to express (type and other properties), so we have something to implement on the long run both for the Lisp both for the C side. >> But probably for now >> something like the attached patch is sufficient and considerably less >> invasive? > > Actually it sort of increases coupling; I'd rather it stayed in > comp.el for the time being. You could write a function (in comp.el) > for access. The main reason why I'd like to move them out is not to require the load of comp.el for a simple C-h f. Secondary yeah I think that if it's in use outside the compilation functionality should just not live there. Anyway I'm happy with any solution (as long as we find one :). Thanks Andrea