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?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Inferred function types in the *Help* buffer Date: Thu, 1 Jun 2023 15:06:24 +0200 Message-ID: References: <83o7manh0e.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8081"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrea Corallo , Eli Zaretskii , emacs-devel To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 01 18:04:03 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 1q4kmO-0001gf-Pr for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Jun 2023 18:04:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4klI-0005KG-Rr; Thu, 01 Jun 2023 12:02:55 -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 1q4i0c-0000Q6-3E for emacs-devel@gnu.org; Thu, 01 Jun 2023 09:06:30 -0400 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4i0a-0000bG-GY; Thu, 01 Jun 2023 09:06:29 -0400 Original-Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f3a9ad31dbso996944e87.0; Thu, 01 Jun 2023 06:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685624786; x=1688216786; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=lRuAxwXmGKtC+GvRYWU3/ssIolQHj3DsxQyVcPO2k+M=; b=kuWs3SQN6r3kv/o00Xm4Tt/CnjK8/7w8FoEm6BhjjrP6rpt6TCSLN3KKeHmRZtGXeZ 5qhDhi8xS3XOKkj1bDkNrDQV+1TYKcY5A8a8Cx/fBd5oqKDCN3+Y6/tCqhMnENenK/e6 E1Cb/xiWAKZwmy9UlT59CX5aTkTAOqT0M3+TVne2ol2l1w0PztkmVIP+6vo35n4ihsub Pv81f4XpeYVWcTYp8PsX018r14LRjOVl64+Sn0aeDqy2LHPN1sNspNoDIzRSq+VIl4eX AXxDxg0LjKZMPtboPqM1px6PkmEG0mRtSp8QkvRXZlcCSLir7LrNjHqrnC1VGFTGspb7 JQxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685624786; x=1688216786; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lRuAxwXmGKtC+GvRYWU3/ssIolQHj3DsxQyVcPO2k+M=; b=cphuisFPGm9fVakHRDLLkw1neNSWgW8EtCcvnwcxbYMo+vtuouJ8pRY2lgTCwrYtJL zVUvqSu09DOepzPkx+p5Rjgb5VSixPhATmbd2bLAGlxC8NdiY2ASZaT09Q1gDr0IBBoI xCWy3DezZNW6s6bcq3T73atkS3n8W7Eq3vgn5EUpogJzKieAQfagdTVvdv4m+HuSeQnM /Mn4fBtFsHhsGFtQogCuc0biHZFJ8CoLPNULi1QYw7+KAILfqjXW8GuxtPENrwVGm6/K KOe/WuIqOKZcxhqjdYt8KuEANa41gnCPq7eGjnK2P6RHG9hafGsE523roRgpgf9YvZ6t rIKg== X-Gm-Message-State: AC+VfDylkN5eQ2FBqj7eAuT5dVRCrVL3e7xRRg3Pe0SDMLAgkydx4ORp GGW3QO5BcjREtMTb2NM2WR7Bnw25Y5Y= X-Google-Smtp-Source: ACHHUZ64cPkdnVlV8rTMNFioCzOtqlNX3I1sC1//xBkTFl6AhKo1wF2UHPB3dWGYDU+6N+IWgHedXQ== X-Received: by 2002:ac2:424f:0:b0:4f3:baf9:8f93 with SMTP id m15-20020ac2424f000000b004f3baf98f93mr1564957lfl.3.1685624785755; Thu, 01 Jun 2023 06:06:25 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id g8-20020a19ac08000000b004f1400630d3sm1088705lfc.35.2023.06.01.06.06.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2023 06:06:25 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=mattias.engdegard@gmail.com; helo=mail-lf1-x132.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 01 Jun 2023 12:02:34 -0400 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:306521 Archived-At: 1 juni 2023 kl. 13.50 skrev Andrea Corallo : > if something will prove not to > be correct we'll just fix it as we do for everything else. I think the general idea is fine. What I meant was that some type = specifications can be more of a hindrance than help, in the same way = that we in some docstrings prefer to override the automatically = generated argument signature -- for better precision, or to avoid = confusing the user with technicalities or obsolete arguments. There may also be a problem of inaccuracy, and here is a little = anecdote. I needed a table of boolean functions that only return nil or = t for the byte-compiler, so I tried to use comp-known-type-specifiers. Either I misunderstood what a return value of `boolean` means, or that = list is riddled with errors. The following functions are specified to = return boolean in comp-known-type-specifiers but actually may return = other values as well: proper-list-p buffer-modified-p coordinates-in-window-p custom-variable-p file-locked-p file-symlink-p frame-visible-p framep and, since we have no guarantees about what file handlers actually = return, file-directory-p file-exists-p file-newer-than-file-p file-readable-p file-writable-p This is just from a quick survey of a small subset of = comp-known-type-specifiers, which means that it is difficult to trust in = its current state. It can all be corrected but it is slow and tedious = work.