From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#60568: [FR] 30.0.50; Help buffers and function bodies for generated functions Date: Sat, 07 Jan 2023 15:19:12 +0000 Message-ID: <87mt6ujrtb.fsf@localhost> 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> <83358ms7gl.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="3332"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, mardani29@yahoo.es, monnier@iro.umontreal.ca, 60568@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 07 16:19:33 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 1pEAyr-0000eZ-F3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Jan 2023 16:19:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEAyW-00087R-4x; Sat, 07 Jan 2023 10:19:12 -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 1pEAyM-00085t-NA for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 10:19: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 1pEAyM-0003Pj-E8 for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 10:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEAyM-0005Kt-1J for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 10:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jan 2023 15:19:02 +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.167310473520498 (code B ref 60568); Sat, 07 Jan 2023 15:19:02 +0000 Original-Received: (at 60568) by debbugs.gnu.org; 7 Jan 2023 15:18:55 +0000 Original-Received: from localhost ([127.0.0.1]:58715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAyE-0005KY-JE for submit@debbugs.gnu.org; Sat, 07 Jan 2023 10:18:54 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:56835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAyC-0005KK-8V for 60568@debbugs.gnu.org; Sat, 07 Jan 2023 10:18:52 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2ABDA240116 for <60568@debbugs.gnu.org>; Sat, 7 Jan 2023 16:18:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673104726; bh=GoaZujm4fLfvKNvSfCvTYFYoX/PKq32Snoo86JT1o6k=; h=From:To:Cc:Subject:Date:From; b=QA28pl52ZtsOttRWTAP36kHTxex6d+jtWQ4632LnYqH4Qazz7lNcE0tUS9hiTJaZV 4m2Aiz7s30wKuYEfubcrufkfuglAIkROxa6eqFZIJoU5gZ2697iqAFvr2Nfl8m7ZUP 8wZXiJMOHQE3+8LfaUHNK77G2kXtFVNrv1fz6p1R9gRPpItH9Dr+WS4eSq+YuFHvl0 C0YueGo2LBO9GD3RqefcvOODG7H+lIzO6Rw2lgRiaklbFOwxUicpi4zt5FWNMZYP2L Z4D9wW9MrsDoSJktL3xn+oXJz578XKzz3GG0Vy//ZcbkbQBJ0J1YfQWYiLcsYYh9v+ xiGvonivR7xBg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nq3kq5H08z6tnw; Sat, 7 Jan 2023 16:18:42 +0100 (CET) In-Reply-To: <83358ms7gl.fsf@gnu.org> 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:252811 Archived-At: Eli Zaretskii writes: >> Then, may "13.4 Defining Functions" be a good place to link to this >> subtlety? >>=20 >> The documentation for `defalias' is not really very clear, even now, >> when I am aware about the issue herein: >>=20 >> The proper place to use =E2=80=98defalias=E2=80=99 is where a speci= fic function or >> macro name is being defined=E2=80=94especially where that name appe= ars >> explicitly in the source file being loaded. This is because >> =E2=80=98defalias=E2=80=99 records which file defined the function,= just like >> =E2=80=98defun=E2=80=99 (*note Unloading::). >>=20 >> By contrast, in programs that manipulate function definitions for >> other purposes, it is better to use =E2=80=98fset=E2=80=99, which d= oes 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? The above says that `defalias' "records which file defined the function". It appears to be related to what we are discussing here - locating the function definition. However, the present manual description does not talk what "records" refers to. I presume that the records are to be used by *Help* system. If so, it also makes sense to elaborate. Either here, or in other node linked from here. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at