From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ludvig-faddeev@gmx.com Newsgroups: gmane.emacs.help Subject: Supplying DOC string in a `defun' using `defvar' Date: Tue, 1 Jun 2021 01:32:41 +0200 Message-ID: References: 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="11993"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 01:33:40 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 1lnrPg-0002vU-Av for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 01:33:40 +0200 Original-Received: from localhost ([::1]:38156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnrPf-0002fY-E4 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 19:33:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnrPL-0002fQ-4f for help-gnu-emacs@gnu.org; Mon, 31 May 2021 19:33:19 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:40459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnrPG-0005ag-VC for help-gnu-emacs@gnu.org; Mon, 31 May 2021 19:33:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622503961; bh=N0xYFBOCsq6xqei4xAt1r+FEq2WhEeYVvjVSdUDuBqk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=DbwOhCSEgfkWENSOMvAFlhiorSCgJPciu+fC0R+XnxHe9olsj5xxMtAuJmoYX4oNu gcQSfNlw42cKnRcicsZg1E6zPgnJSGOao9X6AT4UtUsGUs+DRPxNx5NAwbSKrXKLzB zAbV7HRIytFgCuWC25qK9bETRqYHLIvkMgjUzsfg= 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 01:32:41 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:oYj+bXBrkp2i9WFZukp/CRpE5XDiOrsR/oGVzRWFCUUXjDw9dBP8pvVIt6w/ogG1yLqSS H26wfULe0kBq8jMOBQCAofi0INVIidhlD1Odj0OHpO228eG8/AfUvNWKSKkXbCE/fM41z0rkTT9t 4DBt7BXsX3xcmmS9/Bnzlk94wC+3qNbUA0wA15OOpReezCitF4TWmyFCD159SllQQf/Su/qcwAXU QahTmPmzceqkGd/pEi3WvUYJXXD5u1phcV0PZayrQJnyIgUiW0+ZzX7kbNWsnUFTEvjLmdTO7xTE z8= X-UI-Out-Filterresults: notjunk:1;V03:K0:YCuImEuGr/I=:qnm0hBkFX6cu6BmvpPek+n Lk6oSVc1fkjEaeil6PtCacT9lkMp/SOZp1ro/ysbppgBce2M/Pdo1qPEJIJRv2ULY4T2wefDS 1X52qO6CpZEf1zour3ThMZfes4hUuyiMFzixGehpYZn7yPOLGkssbrAjUkNADjsx71fOE4wVs 0slGZAuhDdO5UXLNp0v+uOXP4k5xEBgUaczb5CnfQmKFkIqYQPy/5YeOH32UzegQ9KtKuiN4s J9541w+UbgVYNgcLNb2RV662cwSAtvm46o3p8V4Q0beXIdTnYa0T71S1rntBSO5Q87s+Xex+1 YbfABT6Ap7+lu0po16g3QQWzzlwDidHBW93TFiFEQQp/eQUQ2nqSssCvc4b9VDPAFGNDYPYz9 whGdxLvegXSa29RxbREJuM7tH48xOo8cMvT1mKRej6SXi9N65fOJ+/K3EEKC3tCfXKtBtkEdL YGbnMF27snexAvo0N32v7RfzAgkCv7T/mWaGtqEVVNV/FTk5LZ492QO+SISha3nI66RRckFSi OOLxRmqbRC6koCP08s4xjeINS39qYxOKNbC6a/usRoJkvqonstUPW5ZDKZIwYbhjFio4Zh6Cy x6OCNj0eY6jJxcQq3Zps6Y4RpWSv2UjDUCIwBMzRz/WKPJIm4d5HR/Jhka0POWRy0EyQNb0VR Ynp7trwiPJRdQgC9PsDTgLjp8R2LXMfbyZvvWhVGRkVM7yYB7+z6Ko2sip4Mf59ZP7+qmNYHE /gkBJrNeJrN3kJiktKNAZc89f5KBMl/UjxhejjM1qF2UppSKqSvRaZ24rq594kzhr4/I26IM Received-SPF: pass client-ip=212.227.17.22; envelope-from=ludvig-faddeev@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:130404 Archived-At: > Sent: Tuesday, June 01, 2021 at 11:13 AM > From: "Jean Louis" > To: ludvig-faddeev@gmx=2Ecom > Cc: "Help Gnu Emacs" > Subject: Re: Supplying DOC string in a `defun' using `defvar' > > * ludvig-faddeev@gmx=2Ecom [2021-06-01 02:00]= : > > Can the DOC string in a `defun' be supplied using a `defvar'? >=20 > Why not show your idea? I cannot understand that=2E I can think of this: >=20 > (defvar my-doc "Hello") >=20 > (defun my-fun () > my-doc > (ignore)) >=20 > It did not work, but I think it should=2E I also would like for the example to work=2E =20 > my-fun is a Lisp function=2E >=20 > (my-fun) >=20 > Not documented=2E >=20 > Maybe this way: >=20 > (defmacro my-fun () > `(defun my-fun () > ,my-doc > (ignore))) >=20 > (my-fun) =E2=87=92 nil ;; defines function by using value defined with d= efvar >=20 > my-fun is a Lisp function=2E >=20 > (my-fun) >=20 > Hello >=20 >=20 >=20 > --=20 > Jean >=20 > Take action in Free Software Foundation campaigns: > https://www=2Efsf=2Eorg/campaigns >=20 > Sign an open letter in support of Richard M=2E Stallman > https://stallmansupport=2Eorg/ >=20 >