From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Lisp error on function :documentation Date: Sun, 16 Oct 2022 23:09:08 +0000 Message-ID: References: <87sfjo5vqu.fsf@web.de> <87mt9w5thu.fsf@web.de> <3aB3F8gotn0WkauCkikmQoG0bt-Zp1vYKKnElDvKwDmZOU2aICFsw5ojkVJWw6dG9fnzRZXpE0YTcdLIfIfHYIwKO3ghyRwQZ7OUsNc8CXc=@protonmail.com> <87a65wz9sn.fsf@web.de> <87czarfka0.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="35676"; 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 Mon Oct 17 01:10:44 2022 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 1okCmI-0009AQ-Qx for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 01:10:42 +0200 Original-Received: from localhost ([::1]:54598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okCmH-00066g-QK for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 19:10:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okCl1-00065H-C3 for help-gnu-emacs@gnu.org; Sun, 16 Oct 2022 19:09:24 -0400 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]:55607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okCkt-0007KU-UL for help-gnu-emacs@gnu.org; Sun, 16 Oct 2022 19:09:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1665961754; x=1666220954; bh=9SOmHrZSwue+bwHRv7kLPXfamOXSziS3/ZAAW7YUpEc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=bRWNFidvReZJrrTjjgLCkCdFEASw2pDZClWhdKkz5JVrOktqMERkdTzuU0GljcQ+J FQfHiVQXVy5vcECuF/uFo3ZplDmUiLDl5VQ8emPuPWoBz42KkB+DfiytMzu58ZSLro SakRVZV47P6mcChwPFSGuqGXd4l0/N5WwkF8tzdUetDJAbcR1oLOb/FVWvLUuRzP6S grvlyZe/Qfu+TaL2MqbWjzlNgOieB7DryMkT6GS1MsfKqT4hjhGFd3p/lmvnjISOUD BbHfPFV9WmH+CWn/zsONUiWKVYthwDI5RvnCDf/79LAi8BAbLNzSZZhq+py6F64xr4 dzlW+7xcv5QUg== In-Reply-To: <87czarfka0.fsf@web.de> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.130; envelope-from=heimeborgia@protonmail.com; helo=mail-40130.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-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.29 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:140015 Archived-At: ------- Original Message ------- On Sunday, October 16th, 2022 at 10:58 PM, Michael Heerdegen wrote: > Stefan Monnier via Users list for the GNU Emacs text editor > help-gnu-emacs@gnu.org writes: >=20 > > > Or maybe someone has added some nicer solution in the meantime? - I > > > don't recall. > >=20 > > I don't know about nicer, but in Emacs-29, you can use `oclosure-lambda= ` > > to build a function tagged with a certain type on which you can dispatc= h > > via `cl-defmethod` and functions's docstrings are fetched via > > `function-documentation` which is a generic function to which you can > > add your own methods for your OClosure type, thus making it possible to > > dynamically build your docstring. >=20 >=20 > Oh, I think this was what I remembered, thanks. It's IMO much nicer than > this messing with innards we used to do. It's also easier to learn. >=20 > Or has using an oclosure just for the purpose of dynamical docstring > generation (larger) downsides? >=20 > Michael. You all seem more interested in trying to satisfy your intellect than helpi= ng out on the actual question by the OP.