From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Supplying DOC string in a `defun' using `defvar' Date: Tue, 1 Jun 2021 21:02:00 +0200 Message-ID: References: <874keha05o.fsf@alphaville.usersys.redhat.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="10932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Nick Dokos Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 21:02:35 2021 Return-path: Envelope-to: geh-help-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 1lo9et-0002ej-EA for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 21:02:35 +0200 Original-Received: from localhost ([::1]:50390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo9es-0003Kr-De for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 15:02:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo9eP-0003Jd-GU for help-gnu-emacs@gnu.org; Tue, 01 Jun 2021 15:02:06 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:33401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo9eN-0005vW-GR for help-gnu-emacs@gnu.org; Tue, 01 Jun 2021 15:02:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622574120; bh=8UCAqJPieNUa3IGMVupjBkWHWXjbOKXK9DhFU7RIO8s=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=dOjSfOjc4Wa+Qh7Gq2w0QnkBpBX8fGu8LF10ryOPuuVc1h+XcDuolT/wKb0xbsoqm sN7vKU3LYcf39Y1sQYPkP9UAnalpG7m26d3yNjn5Q0p/DbQBiZNgBiUoMnlZlJGsTE 6wuUPz0SPeXSnRb/1Ohaa8qmAnJUaBbpxrG30u4Y= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun 2021 21:02:00 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <874keha05o.fsf@alphaville.usersys.redhat.com> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:re4/RVrbw5K6b/xGxmPUcDAXS8cmcX9hEI4TNV0NnLbSzAvq9Wx2/IuiO5bnw41E0Y5fm dF8ripCbDVxjIuD93U8Py4J52N9bl0KbfVjZxfpu1HkFkjtxvuUqTrVCgB84BPC5apniJtkijVml eIpKuVRXbu7I+HSO91SoGG1lFWGtUXOaKLORoU/ysSCxxMhAq9KYjX3slvml18vHSaX3DMTms3mL T8WdjJ20h4Cd6DjBtn9gaQCnfoC/2wBqlv7hQ0vUPphclUkYS8XckQlGWr7T453WFw4x/ahM9gBx B0= X-UI-Out-Filterresults: notjunk:1;V03:K0:LEK9u7xZwuk=:71BstOxtLQy032dLSF6+TQ dbF14PnOzJr8UxDUlQlyJrnF7YxhNiuVNyyzvvyedBCt44tEUPrusc/zrPiG+WtOlf1S5/ZBQ CwIBeYmYdpnfQTs2XP1LyN590YI+1kLo3oAgoXPJ4XCL81YDyMkcDi3Tld6iaw791Yex9RJ90 HCNXCLuMH7IK+d+YfIAVoe647y/JB3Cd3jtvOg0wkKl0p/uzVouC7HDAvUz4BXBRhtNcJpXEP T4toWstumKv/kcn/K8s/Z2kr5UDb8QCcL6Lwp87974KZqOqPxFXHkk4+Dfiign6e19xTud0Kw 6XDqJcVDG3dOe/XMok+MKMulP9deBMlfWmEmblyRPnZAC7pogHE/QkJhrNZ9PwkH3X262/jTg uwLjPNKaFKiPeLCUPwH49pwkve3E6PmgTPzFyq2nptYcNQzvGWdPOJWrzmD4V3EB/7JAy6omh 0RgPlgVosEra/hX3f2B5c8yS7oAMA9+GWKCQlQYtBAvSgspnWsF2v5jEuYS6Y1K1fMIrti7uY BzJqlQABZPIl3FBEVOBm8zZJnPfPA2Q0WDRe+OEnozn3jt5dHOBoJcVM6XkQyePWbBBhxsIYU xsVqvMGc6owAWWEYxhOi7jlIid2u78zXr7JRpY1L+W3QxOyIREEn8AW/SvxWzJ5TpVDJ1aSIl QL5ZVKSJHjq6Pg16p9zG2Fkh6cQABgazNIG/fbHNkkqoB2dnnX1Axm5Hhx7bdDkeCoYwaBJ/X QGzjOPANoT6+cZcMFk+qnHJmC0ry0UjAHKoQonM7eEH60WKeoOrEk2L58GXvwa+uq8Ct8LMr Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130471 Archived-At: > Sent: Wednesday, June 02, 2021 at 6:51 AM > From: "Nick Dokos" > To: help-gnu-emacs@gnu.org > Subject: Re: Supplying DOC string in a `defun' using `defvar' > > Christopher Dimech writes: > > >> Sent: Tuesday, June 01, 2021 at 3:26 PM > > >> From: "Stefan Monnier via Users list for the GNU Emacs text editor" <= help-gnu-emacs@gnu.org> > >> To: help-gnu-emacs@gnu.org > >> Subject: Re: Supplying DOC string in a `defun' using `defvar' > >> > >> > (defvar my-doc "Hello") > >> > > >> > (defun my-fun () > >> > my-doc > >> > (ignore)) > >> > > >> > It did not work, but I think it should. > >> > >> Try: > >> > >> (defvar my-doc "foobar") > >> (defun (x) > >> (:documentation my-doc) > >> (+ x 42)) > > > > Have tried this but emacs is still saying "Not documented." > > > > It should be > > (defun my-fun (x) > ... > > Then try `C-h f my-fun'. > -- > Nick Had realised that, but the current discussion has shifted to lexical bindi= ng. But this has still not solved the problem, and I am still getting "my-fun not documented"