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 07:19:37 +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="20717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: monnier@iro.umontreal.ca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 07:20:26 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 1lnwpG-0005Cr-DA for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 07:20:26 +0200 Original-Received: from localhost ([::1]:44684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnwpF-0005lm-CX for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 01:20:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnwob-0005lK-IN for help-gnu-emacs@gnu.org; Tue, 01 Jun 2021 01:19:45 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:51331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnwoY-0006f8-S4 for help-gnu-emacs@gnu.org; Tue, 01 Jun 2021 01:19:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622524777; bh=FQRxN1vI0p7cR18oh2uAYI8WaxTLMFYcYzeydWK33sk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=i87KvCOxdWIlETzW7NsKQxA5Cgb2tdq5FdA4BWAAvxgrmYJOr0hZwjhqeVfIQgG7s T/AbZ26j6fjm1B0QKiewHQnqbj81S6pshgSt92EB8Dhi+bDWSm+/GtpToHU9VwZTGA 6gSZ2ur1kMJkvlyRDtP+ST8P+6yHjIQqEaId6kOA= 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 07:19:37 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:HO4b6SuOMIQhvlhQlS8zdzPohwSKKYk0wRf6umaMnw3wu4mRxOQ9NCp+IEi4c49N+nJAP SMc/6W+DqgP0BITu1GatxAbyx67j+AZ17kbXOjzje7O4cOjGRvzICPGV4j22UsHb5L7TT9DHywNg Pzx1n1vyi5bqxHMfRip5uchr+sQGOjRQS1vRhBsY+OQ4uQU86hg7u0dqRu1M6RZR4K3jnB03fVyt mr40Uc7mUB9MQg7i0T6Ff/DGjP2X+2BliJqDYABZdrTKfUFoaaUAqimoXIE0ZC3SaXFPmisCf1/0 S8= X-UI-Out-Filterresults: notjunk:1;V03:K0:DnyXx/gD6io=:ZL+wIlESc7ByO8CwQY5ahY +vzJ8y35ki3+u0IrwmxlglDt6jjBUqNLLTUgnfTy2mcmYEgc3Oqj74EANyCRP+cbPog2yHIJg ldHwSm/dqo5K8On0ktdYKVJ0236iSe66m9ZctRBaYUbHIrqIXACElpnKenvzYBEmepYDLhOBz MUCj9qjkoHl0V9iC3tvl61dosUp6aLPPVfWPZsg6b/fMwQ/9y1WP4Pg9FMdOV36slC6bRmPGA JLXX3boZxyNW5MSmAicbM4NXSdhhWSppCq+efqsnhl/mE8z3+0AgHxtX+XnJI5oNYP73zjfeI 2H+KkjUmCy5cPKaRDv1F7+mKV8tQILruBQEZDmFD4XM1YWdwAc/Kuk00UWRJkyReaR2BsA+E7 5KNDNmNtR6IM9nQvW8ymS0YuhbiuNARPJ8+2Rh3o6ceP/wRIBRVFffr8R/INOzYoA6pRGWsMR rD90x5OOTmd/AYY0HxjxPAUopayOYgs2Re+6TCLcmJfRqZ+DX1ETdsNUeFznSs/cjwAQTSfux CRJ5puT6wN2mnOll4uuwD2c8Emy2tBEs08GkLPyCJP+FHsIOxNHzocXGkvhfZFfhCQepQJ6+j CBMswUxDyJzinf/6iiqIcxEouqE6obGpCxBVNbBfAjkTS6X6OKdbqkGSAEcVU/EUP3Zejo/C3 hw4q+HJf9kvXCJykzgGkHVdSXvwBetrPa0Y2Ur62ouJBCWWfuwxo9LC/+c01qAqRIyyUagYGe nWHimk112SIJYiucw+0DD/v/M42V1EKO/aYpxQ8enwb4zR+W9texygyE4lBeCD4KvxJvUEvc Received-SPF: pass client-ip=212.227.17.20; 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_H4=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:130432 Archived-At: > Sent: Tuesday, June 01, 2021 at 3:26 PM > From: "Stefan Monnier via Users list for the GNU Emacs text editor" > 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."