From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60568: [FR] 30.0.50; Help buffers and function bodies for generated functions Date: Sat, 07 Jan 2023 17:14:02 +0200 Message-ID: <83358ms7gl.fsf@gnu.org> References: <87fscpifdw.fsf@localhost> <83wn61w7lc.fsf@gnu.org> <8dea9f3e0e7865d8f3c6@heytings.org> <83r0w9vzgy.fsf@gnu.org> <8dea9f3e0e8e6114ffc3@heytings.org> <83pmbtvwyr.fsf@gnu.org> <8dea9f3e0e160e17818f@heytings.org> <83mt6xvsct.fsf@gnu.org> <8dea9f3e0ea1de84c49a@heytings.org> <83cz7sw4q1.fsf@gnu.org> <371ba1d0beb0ed44a9a6@heytings.org> <371ba1d0be96347bdf60@heytings.org> <83k01yu93p.fsf@gnu.org> <6538f58eb5cc153a2250@heytings.org> <874jt2lb1t.fsf@localhost> <6538f58eb5857d2eb07b@heytings.org> <87sfgmjscq.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18570"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, mardani29@yahoo.es, monnier@iro.umontreal.ca, 60568@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 07 16:14:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pEAto-0004bD-Sn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Jan 2023 16:14:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEAte-0006Wg-KS; Sat, 07 Jan 2023 10:14:10 -0500 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 1pEAtW-0006Ss-Gk for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 10:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEAtW-0002u4-3N for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 10:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEAtV-0005DT-VC for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 10:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jan 2023 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60568 X-GNU-PR-Package: emacs Original-Received: via spool by 60568-submit@debbugs.gnu.org id=B60568.167310443120027 (code B ref 60568); Sat, 07 Jan 2023 15:14:01 +0000 Original-Received: (at 60568) by debbugs.gnu.org; 7 Jan 2023 15:13:51 +0000 Original-Received: from localhost ([127.0.0.1]:58710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAtK-0005Cx-PC for submit@debbugs.gnu.org; Sat, 07 Jan 2023 10:13:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAtJ-0005Ck-0P for 60568@debbugs.gnu.org; Sat, 07 Jan 2023 10:13:49 -0500 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 1pEAtC-0002qI-Fl; Sat, 07 Jan 2023 10:13:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=f//IfmvS+g+HZ/EzxZf7CymgkuohYck93fzACniytE0=; b=hSSkpWmk4DmhbpLLGSX6 aW7WM/FYFQEfN+dGrlUkxb63IKASTpID3l5XVfSKnWCwqOStSVdNNmvp0yIKnTAgbss/671NJk6b7 e1m5p9hsTfNLJgvsPe451Qbcql3/+F8Bphh3LjPqSqhhEbmN/dVLFskdvFzBFRksNVqqYthWBcvQk mP52JS76mPeX6YxwcCTiAVhLwXLC6i3nukTQn3MjVrPeI7Wcz9j6umjL8Tsu9IvgGtXCMqY/RNNT6 /sfkd5PjUgKzzABbvl6yG7yRwW2EWxS7M7+37kLfIWNoBdfHplJgj0s7Gt2Cn0iUjE1BoJK1TCr44 Pus9g2ZrYvBHbQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEAtB-00049d-Sf; Sat, 07 Jan 2023 10:13:42 -0500 In-Reply-To: <87sfgmjscq.fsf@localhost> (message from Ihor Radchenko on Sat, 07 Jan 2023 15:07:33 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252810 Archived-At: > From: Ihor Radchenko > Cc: Eli Zaretskii , Stefan Monnier , > 60568@debbugs.gnu.org, mardani29@yahoo.es > Date: Sat, 07 Jan 2023 15:07:33 +0000 > > Gregory Heytings writes: > > >> > >> But is it of interest for _users_? I'd rather see it in Elisp manual. > >> > > > > It should be documented in the Elisp manual, indeed. What I said was a > > bit unclear: I meant that a reminder should be displayed in the *Help* > > buffer. With this, Elisp programmers who are not aware of that subtlety > > would become aware of it. > > Then, may "13.4 Defining Functions" be a good place to link to this > subtlety? > > The documentation for `defalias' is not really very clear, even now, > when I am aware about the issue herein: > > The proper place to use ‘defalias’ is where a specific function or > macro name is being defined—especially where that name appears > explicitly in the source file being loaded. This is because > ‘defalias’ records which file defined the function, just like > ‘defun’ (*note Unloading::). > > By contrast, in programs that manipulate function definitions for > other purposes, it is better to use ‘fset’, which does not keep > such records. *Note Function Cells::. FWIW, I don't see anything unclear here. Moreover, what does defalias have to do with the issue of links to code of generated functions?