From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: [External] : Supplying DOC string in a `defun' using `defvar' Date: Thu, 03 Jun 2021 11:10:53 -0400 Message-ID: References: <87r1hlw6pn.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26990"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Drew Adams , "help-gnu-emacs@gnu.org" To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 03 17:11: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 1lop0V-0006n7-Vo for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 17:11:39 +0200 Original-Received: from localhost ([::1]:44340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lop0V-0004ls-0l for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 11:11:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loozt-0004j3-Ai for help-gnu-emacs@gnu.org; Thu, 03 Jun 2021 11:11:03 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loozr-0005oR-1v for help-gnu-emacs@gnu.org; Thu, 03 Jun 2021 11:11:00 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0E73E1002C7; Thu, 3 Jun 2021 11:10:57 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 386301000C9; Thu, 3 Jun 2021 11:10:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1622733055; bh=ehccvQj16ttc0HpEpIEECtuVS2QCBHShu0rAGuDxQbk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cAedLBZ0e3uvy67/SehFourARtdS0dIFgCDv+cHJrnoUQ4pIsn6lxV8kUtVQycIQV fwbnuvSt1Xfcb96oLsoAmNkahW1GkMq8zHh3KHNoVCiEV2qqhrZtHRB3MqPaZNl2N/ l/IaDbkMXewl0pC0S6+EpBP40M35xe4BUtfGmpyno9QYMfojC/kR9roytGxL34bpAB 9ahr7Zeej92313EEv9pUuI5i2AqZgIsKC30PTjOINLWNBBgE7lXgU1ENz4T0ItUBCM aWBBIrXYn4Zl+KbOawJnSdOkLvUsneKQJiZxdckBHgr9ZGZZA4slA+L6HS5uLOOoGx +e9HrzBKdUAKg== Original-Received: from alfajor (69-196-163-239.dsl.teksavvy.com [69.196.163.239]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C9DAB120151; Thu, 3 Jun 2021 11:10:54 -0400 (EDT) In-Reply-To: (Christopher Dimech's message of "Thu, 3 Jun 2021 15:43:02 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:130532 Archived-At: > Lars mentioned that although using :documentation works, "(:documentation )" is > a non-standard way of setting things up in contrast to something like > "(declare (documentation ...))" > > What do you think? Most uses of this `:documentation` feature are for dynamically created functions, and those typically don't use `defun` but something like `defalias+lambda`. `declare`, OTOH is a property of `defun` and isn't supported inside `lambda`, so it's not clear how that could be made to work. Stefan