From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: Interactive function Date: Mon, 10 Oct 2022 14:23:33 +0000 Message-ID: References: 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="10468"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: thibaut.verron@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 10 16:27:05 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 1ohtkH-0002XB-Dd for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 16:27:05 +0200 Original-Received: from localhost ([::1]:43360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohtkG-00045W-Bg for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 10:27:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohth2-0000pk-Hx for help-gnu-emacs@gnu.org; Mon, 10 Oct 2022 10:23:44 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:57505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohtgy-0004lz-H9 for help-gnu-emacs@gnu.org; Mon, 10 Oct 2022 10:23:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1665411818; x=1665671018; bh=M1ompDP3wDcun7b81C+FU707po5K4E8IyH9UQDdq4sE=; 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=cPM2+AmE7Zv2yrQonmrdpaZ+1OiIXoz5SgcZQAL9WD5YCCNs6dDHWCtnqtj+j5BEz t+Ec2Ozgp7KaGhJ7fevQyDyDloZn4Vufxr/FkCtIDzB8KsZtspjrESKcUZjAtEmQ4G O5SSmFj/89KyigJDnX821j5cK0tmDAg/ae5dmP4vR7XjYnAO/QpAGpV6hABL5IPb5v Nt+fxt0rPqP1EAIxcqI1rJLU6Z6DEqt+LBsb2QAH56SVZ8rswlYTzE0pYxLzCGcyiO V8vSdFjI28WgiZzlQaNjIH37u7qn832ylcc4TpEPsVy/gx3n0wQ7MKjTyXeDW9b5td oeo5ALdEcnWyA== In-Reply-To: Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.43.18; envelope-from=uzibalqa@proton.me; helo=mail-4318.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, 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:139791 Archived-At: ------- Original Message ------- On Monday, October 10th, 2022 at 1:43 PM, wrote: > Something like that? >=20 > (defun function (args) > "Docstring" > (describe-function #'function)) >=20 > You should probably not show this to the compiler though. I do not understand the "not show to the compiler" part. =20 =20 > On 10/10/2022 15:24, uzibalqa uzibalqa@proton.me wrote: >=20 > > I have the following function that prints some information about Emacs = Init. > > The messages for the user are included in the function documentation pa= rt. > > Thusly, I would like that when the user calls "M-x emacs-init", I show = the > > docstring. How can I implement such feature in the body of the function= to > > call the docstring? > >=20 > > (defun emacs-init () > >=20 > > "TODO. > >=20 > > Emacs packages write their caches, histories, etc. into ~/.emacs.d/. > >=20 > > See directory '.emacs.d' in directory > >=20 > > ${HOME}/xepty/" > >=20 > > (interactive) > >=20 > > (message "See C-h f emacs-init") )