From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: Interactive function Date: Mon, 10 Oct 2022 16:46:40 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21668"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Cc: help-gnu-emacs@gnu.org To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 10 17:07:33 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 1ohuNR-0005PP-KV for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 17:07:33 +0200 Original-Received: from localhost ([::1]:60662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohuNQ-0006j0-6W for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 11:07:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohu3K-00077b-4f for help-gnu-emacs@gnu.org; Mon, 10 Oct 2022 10:46:55 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:52118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohu3I-000055-9o for help-gnu-emacs@gnu.org; Mon, 10 Oct 2022 10:46:45 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id n9so1408218wms.1 for ; Mon, 10 Oct 2022 07:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9G84QGXXeGz1X3hdTlui4YpD5PbHW7G9r4oWkTdzETA=; b=MWM4DB8Ut5XrDSK8F1Oc1XKjOCdvRy0Qoh7hyt6pp3CdB/4+n/r8BRVYJiQczXzg0l By3uc2ZLZAshhOwCy63X0Oylj2kCtddHOfTyGXvo7ffpeJOXFsYqUJTXC0XG8JAWCXDZ EmKZU0qEQK2PVw7XHzAGAtCGJzb/fKGfTa+ahcS4FRxCpJj04C9TzOibv8doVTeS7KBU 7uI69VQcC60H9I0dFz3oyrhD6S1CBl6F6dRML1pN1L7wlXwydVsSQ0TqaeTgtw8Asfnl jUjfPhmZoe6tVIF+unCEnOeO1tu/zEdUDzp6Xmucn9vlNG3XsmxC724LHBl/4hGG96p3 PZNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9G84QGXXeGz1X3hdTlui4YpD5PbHW7G9r4oWkTdzETA=; b=On/F55scFznFGh66Wk4dKSq5k/UULVt+zsPrQgTfJPnf81MyhyWx0ugh849YudocaQ HBTOsvCDfubtG9u+lLLFaVtT2BmGelz9zThOZ5UbQ+EkR9tdJwzmuJhCHrpysAQcQ7wW jXF/3sExgdGzSFAftbBaBjr07IC6Zbki72WnpDrqewR/w0PtZ18q9Dn4OfvNIb6htJQ+ DhPTTCsioaTOPG+HNcAMVMceB/mB9kJnZ85w9n9hQfye8K4+wgi40oIbEX/6LFwzNSC+ +Ie3dDkIg1Im3V2oLKCwQTntLWe7xVv2XiM5u5N6uPFNktxpOX4Xr9mDp1JTzLkC9N+o 605w== X-Gm-Message-State: ACrzQf2MuiBBUA5MsAzUlednHFrtjSB6iLRZzeJ1kII/CFXKGo18uB/B sFsS/GwbVDB/05Gt7LR13oI= X-Google-Smtp-Source: AMsMyM6BLo2hJp4/1wEGwpJhI2+hZtYaHIF3zIuuesxVFLKV915vweiADRZPb5CmBeelKPxIWBVtLQ== X-Received: by 2002:a05:600c:444b:b0:3b4:cb9e:bd5c with SMTP id v11-20020a05600c444b00b003b4cb9ebd5cmr19895974wmn.124.1665413202426; Mon, 10 Oct 2022 07:46:42 -0700 (PDT) Original-Received: from ?IPV6:2001:628:2010:4094:1b0c:8d56:d211:e809? ([2001:628:2010:4094:1b0c:8d56:d211:e809]) by smtp.gmail.com with ESMTPSA id w3-20020a5d4043000000b0022b1d74dc56sm8899180wrp.79.2022.10.10.07.46.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Oct 2022 07:46:41 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=thibaut.verron@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.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, NICE_REPLY_A=-2.007, RCVD_IN_DNSWL_NONE=-0.0001, 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.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:139794 Archived-At: On 10/10/2022 16:23, uzibalqa wrote: > ------- Original Message ------- > On Monday, October 10th, 2022 at 1:43 PM, wrote: > > >> Something like that? >> >> (defun function (args) >> "Docstring" >> (describe-function #'function)) >> >> You should probably not show this to the compiler though. > I do not understand the "not show to the compiler" part. I was thinking that the compiler might take offense at the use of the function before it is properly defined. But on second thought, it shouldn't really be different from resolving a recursive call. > > >> On 10/10/2022 15:24, uzibalqa uzibalqa@proton.me wrote: >> >>> I have the following function that prints some information about Emacs Init. >>> The messages for the user are included in the function documentation part. >>> 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? >>> >>> (defun emacs-init () >>> >>> "TODO. >>> >>> Emacs packages write their caches, histories, etc. into ~/.emacs.d/. >>> >>> See directory '.emacs.d' in directory >>> >>> ${HOME}/xepty/" >>> >>> (interactive) >>> >>> (message "See C-h f emacs-init") )