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 16:41:39 +0200 Message-ID: References: <871r9ly7v3.fsf@web.de> 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="869"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 16:42:06 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 1lo5ao-00005D-9V for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 16:42:06 +0200 Original-Received: from localhost ([::1]:42686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo5an-0002wU-B5 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 10:42:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo5aR-0002uZ-6a for help-gnu-emacs@gnu.org; Tue, 01 Jun 2021 10:41:43 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:37333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo5aP-0006Vy-3d for help-gnu-emacs@gnu.org; Tue, 01 Jun 2021 10:41:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622558499; bh=U7lQPs+N0JbM24JWwG7TzHFg9JYtJVRtmXg66xhpcv8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hQKUu+7GAq1+PYs/xjhU1qaBVuq3HUt8h01gUJ5FQ2e0pDN2cfQpykEbaEjGSKaFd HeTShPJLcJZag7sHFApNV1oVeEejPdb34h4MSno3tGFbS4/N9517WmSgokT1nK3x0m hufNRcRThu8kB8ICE+vtXMOnwUDrcyx9tdcwlPJE= 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 16:41:39 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <871r9ly7v3.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:vaN794+X5Rt2qSsFBt91noFPwnlGUpDEX9gxnKaBy44ZUoYy2XAxrENV2tk7uRex0einS 4MPzTumHyN7fREzgzFnoOA/ULZlgFKXSQ2AC8WBFLuZC8954oYVMG2z1ntZzavWjohmmI36p18EP f+4SY0LyhWLX5YGrfASChHbiB75duaHT+ZMSmyjGhXd4c7bZmpmWt9rkI5SZQtpXwhmMFTKHsETh eZyWZMXicFYxSWH7+ycFmvG4/37MZHQcgKYeKvLiopdt8hwfYHxNK6j/92zCMcEvjA+VFKxqW+hR oI= X-UI-Out-Filterresults: notjunk:1;V03:K0:oG64HJTbTGA=:gaDAoWvQUYugMG+PbqdtSd PrxvoqbaMiB0VOXrn+Re3UoVp+mDTIAfxp0AjH+/RwMmCH7J9NXEETuWgAPWmb3em82PutiSs 7uyA4iZ8A9UzV/WqsdRcSHpVHvfpOc6ooAi8IW1P4sbziUtFigMcl+ljM4ZeubTbuKmxangQy rgaCvRJiJXuOoBcHiNOJTQD5UY9etQuMwNMmb/hXVcoSoQ4YbUwcCzsllaWOYAqXN0sAHrSNB nXUSaFovD+vRcf2jVmbDeT9HW7vJamm1xEM/Aidy12xXtTyojSYOGVvZ08pdfH1FArgZDGD9u Ia5ntO/wQiMfKdQ/kXKLL7LeSPMMn4dEKE3viUUR7IX2ppCzDOvgGU6BO4cZpTR93oC4b52Jj 3BpTco5WxiHovpyETC0W/rZqZ7K22jCGUHgN7OJE0GrMjPjCIHH2aq83jzXgm1GiH5v2Qj3au UHnQ+g/1wXIr8s0YEflp2EudU6c2CVqTc3d4n3gi2a4sUI7ex560g5qSzhkARd540Khdk2tdX s2dBVkVg9BSYEWfhlKI7hgDDLROqPia+6jykzZ2NkQ23FBSUlqg6fKtinJGwcvGAQJRM9AUjA kVuzHlg9Kxpl2L/CwRrh3O5rIUUXaPadtPPwvt7vJrkvsgfjZqEMd1+xf6zmiE22wBVvve6oI LoQro0gfDtLOlF/2MY4+wuhJBBVQCEeIh1gt+ztYNtmuKpHsLgiopjSLGJVANeskl1mYR6dF9 qAard9zzk1cgAbytsAEvJGWyxtJLrM20QrLb6D8ODsF9gU0RIyUJnZVck6OWmEbqaGln64w2 Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:130454 Archived-At: > Sent: Wednesday, June 02, 2021 at 2:31 AM > From: "Michael Heerdegen" > To: help-gnu-emacs@gnu.org > Subject: Re: Supplying DOC string in a `defun' using `defvar' > > Christopher Dimech writes: > > > > Try: > > > > > > (defvar my-doc "foobar") > > > (defun (x) > > > (:documentation my-doc) > > > (+ x 42)) > > > > Have tried this but emacs is still saying "Not documented." > > Stefan typed too quickly, he forgot the function name in the defun - so > it probably should be > > (defun my-fun (x) > (:documentation my-doc) > (+ x 42)) > > Michael. Had noticed what happened, but (:documentation my-doc) is not taking effec= t and get "function not documented". >