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 04:30:51 +0000 Message-ID: References: <87sfjo5vqu.fsf@web.de> <87mt9w5thu.fsf@web.de> <3aB3F8gotn0WkauCkikmQoG0bt-Zp1vYKKnElDvKwDmZOU2aICFsw5ojkVJWw6dG9fnzRZXpE0YTcdLIfIfHYIwKO3ghyRwQZ7OUsNc8CXc=@protonmail.com> <87a65wz9sn.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="20696"; 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 Sun Oct 16 06:32:16 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 1ojvJv-0005Bx-Pu for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 06:32:15 +0200 Original-Received: from localhost ([::1]:44704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojvJu-0003Ux-8A for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 00:32:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojvIp-0003Un-Ms for help-gnu-emacs@gnu.org; Sun, 16 Oct 2022 00:31:07 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:49345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojvIm-0007yP-Ch for help-gnu-emacs@gnu.org; Sun, 16 Oct 2022 00:31:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1665894662; x=1666153862; bh=7QBpvDUEx1ETBf2Vj3S0G5Z1D9tLRzATf9BdDtXaN2E=; 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=E85VQvZK2W6lGhwnMSs4tEq1PbTGFK2FZs6Z8mORyvEpAyqegZQlM8RMXh0wXuTlI 6rtCKXLi660PtGlbYfq6xBXK75IlxR3x/2wI0RgVuA3knSLIgNUzW3wo6Lngshd5j9 yY8YMoz7KBu2Ggc3LOe6HOmEatQJUXCNcr4Nr6z9dmc+ay9QCMrehtpYW0UClXhMub 10MHHWrY8XjYV+Bq/7KrWpnOyNY8PbOgnxvAY89f/fiwZvp4jLkBk4YsfSJ1knxP4C TMT+rpIsegEzolJNR/CNGGNNnDvKCR0ZafMWBoJlqK2Gd7/bDTwZBsd2L6tRTJZnpa XceP5S5UhR1eg== In-Reply-To: <87a65wz9sn.fsf@web.de> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.25; envelope-from=heimeborgia@protonmail.com; helo=mail-4325.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:139983 Archived-At: ------- Original Message ------- On Sunday, October 16th, 2022 at 4:12 AM, Michael Heerdegen wrote: > Heime heimeborgia@protonmail.com writes: >=20 > > Yielded the following. That's it right ? >=20 >=20 > Depends on where you put the missing closing paren. In the correct > version the `put' statement is not part of the defun. I actually introduced the "put" command inside the function after the initial docstring. And it did work.=20 =20 > > But I see that the original docstring gets deleted. Any way to avoid > > this and be able to append to the initial docstring? >=20 >=20 > Yes - see `pcase' for example, but that requires a bit of work - and > that stuff is also not documented. One can learn it by reading the > examples in the sources. Not totally trivial, unfortunately. >=20 > Or maybe someone has added some nicer solution in the meantime? - I > don't recall. >=20 > Michael. It would be useful to append another string variable to the initial=20 docstring inside the function. Avoids functions with long docstring parts. You were correct about the lexical binding part. I had=20 ;; file.el ;; -*- lexical-binding: t; -*- Does not seem the right way to call "lexical-binding". Putting on the first line got the documentation correct. ;; -*- lexical-binding: t; -*- But, perhaps it is not so good to include this undocumented feature.