From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Providing additional information with C-h f Date: Tue, 10 Dec 2024 22:59:54 +0000 Message-ID: Reply-To: Heime 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="39065"; mail-complaints-to="usenet@ciao.gmane.io" To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 11 00:00:39 2024 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 1tL9Db-000A0h-0B for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 00:00:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tL9D4-00057i-Kq; Tue, 10 Dec 2024 18:00:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tL9D3-00056J-9S for help-gnu-emacs@gnu.org; Tue, 10 Dec 2024 18:00:05 -0500 Original-Received: from mail-43166.protonmail.ch ([185.70.43.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tL9D1-0007FV-Di for help-gnu-emacs@gnu.org; Tue, 10 Dec 2024 18:00:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733871599; x=1734130799; bh=eShIAzVwTQlw4fYUDPGqBF6b+srd7/rQNM2D0Tyi+yA=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=IXzJkmQr/NqUirqZQ26Cr2PgiVYnx5dpm3LkJNJM4eLdvKsem8BZUObovtL1c4Gs7 ukHs29crd16x7dPV2gZHyOFKguGabtcuspevcqFJVbOzG/QjEabyrYyCx8p2guInUI JnRcvttlNS2e4rg6oubpR9gXMptNlViFChBttaN5fnifkc/UqRrg4MXC5ev0AzPHsj CRs8wa7T4NA0PuGRKy7Z8CA8p2jnGSKS0GWXFZR/YelliyAnlc974Er4kWUA2RC9jt xQa8S4XvNngeJ+qKqE/L4xaBJcW4o/+BRBIKaLF+VVV5Mujsz5oaFzzsnOEzSGs0TK P729qjp/UB4ig== Feedback-ID: 57735886:user:proton X-Pm-Message-ID: d731407795e8688e23fc1632a74c4e5a0cc76242 Received-SPF: pass client-ip=185.70.43.166; envelope-from=heimeborgia@protonmail.com; helo=mail-43166.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148751 Archived-At: Have changed the value of companiol-navaid-level to 3, hoping that the docu= mentation=20 of the function companiol-launch will update. But it does not. =20 The documentation is evaluated once when the function is defined, and not d= ynamically=20 when companiol-navaid-level changes. Is there some other way to do this? = To provide=20 more information about a function according to the desire of the user? Perhaps one can include a link in the documentation string to show more inf= ormation about the function, or something similar. (defun companiol-update-doc () "Update the documentation string of `companiol-launch` dynamically." (let ( (doc (concat "Launch company-mode globally." (when (>=3D companiol-navaid-level 1) (concat "\n\n" companiol-dlvsec)) (when (>=3D companiol-navaid-level 2) (concat "\n\n" companiol-dlvtri)) (when (>=3D companiol-navaid-level 3) (concat "\n\n" companiol-dlvqtr)))) ) (put 'paharganj-company-launch 'function-documentation doc))) (defun companiol-launch (actm-seqr) "Launch company-mode globally." (companiol-update-doc))