From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: thibaut.verron@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Interactive function Date: Mon, 10 Oct 2022 15:43:59 +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="39992"; 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 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 10 15:47:07 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 1oht7Z-000A7E-Qg for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 15:47:05 +0200 Original-Received: from localhost ([::1]:60818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oht7Y-0000OV-85 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 09:47:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oht4f-0007J1-W7 for help-gnu-emacs@gnu.org; Mon, 10 Oct 2022 09:44:06 -0400 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:40670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oht4e-0006je-BJ for help-gnu-emacs@gnu.org; Mon, 10 Oct 2022 09:44:05 -0400 Original-Received: by mail-wm1-x329.google.com with SMTP id v130-20020a1cac88000000b003bcde03bd44so8569594wme.5 for ; Mon, 10 Oct 2022 06:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=HaqBad2eU3FCu+BwoKfL742n8eiDCsY3BuxhUOgvHSQ=; b=J3O8Mg3dg2IRV5Qo6HfWW2lc44Scl8RcyA0RMSMZXwvVYiZq0g9mds0isHChUTHF9X 4pNtQ41ofqQD7L8jYZ+c77zokeZe71l8STZp7QjAkHZancvpXvQz7lb4VW3S7Tfd3xaa Vw14smPKmvLzE0gFC/rkAm1D6by7KQd5v6MtVCeeam/jafy7G5B9W8+mRh1I8GDWev9u nZXyyO1vzSybSoIb0SHbp722cUhsydRFR0HWB0nfNXFA1xVYYod7q6dIS3/nvmh5NmLr Tboj4PYUTWnEaRuacop0Vv9Yk7tSAfZtoxEShhyV4u818XVye0UWjq3AshDbL/gegyRF 3g9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=HaqBad2eU3FCu+BwoKfL742n8eiDCsY3BuxhUOgvHSQ=; b=opHkgvEzKXtRE4r/RIJxSIQ3/3wvfWtNndM32inu8TwQya0HyvAZEueuBJTVHGLva8 ggEY7K3Sa9Nl6fRT47wauMjBzlTww+J3rVtHfnjquPU8NSMuVEgoVKmF9ilQ0LLwh22K m/qnjbYdlYTN+vI867m2+FhPZfaZntAq42Gerez9BF1U2nE6jwECPsZf3ze34wNQUsPs hPvC2aOfC5uHG5SK3iq1EewhOy6UN6tY3POjW4VT0EjmBXR2idZC1QK98C6mLbxN5IJR SaAHGUpk1taIZxblwRmIOS4ExgrSkJFRYp8aUaTTEsHEp2sfcVfHUgdq8TZbY7qdeYbu iGYg== X-Gm-Message-State: ACrzQf1m1cw0hLJThVAcMjTqPOJNfHXM6U+Ip5lpGWBJX75nRWkHGVyU A2DdRnfxzHU7imgTVXW588fenuZq5hI= X-Google-Smtp-Source: AMsMyM7ZeIaAmx3YNpMwOtLqnRVfxhnx0fkUlYE1CTCFWhLmrCl/VUfozJKXOtHwFipWN28k6Gm3SQ== X-Received: by 2002:a05:600c:27ca:b0:3c6:bed3:5f6e with SMTP id l10-20020a05600c27ca00b003c6bed35f6emr1897193wmb.116.1665409440320; Mon, 10 Oct 2022 06:44:00 -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 j4-20020a05600c1c0400b003c5490ed8a6sm5992324wms.8.2022.10.10.06.43.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Oct 2022 06:43:59 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=thibaut.verron@gmail.com; helo=mail-wm1-x329.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:139790 Archived-At: Something like that? (defun function (args) "Docstring" (describe-function #'function)) You should probably not show this to the compiler though. On 10/10/2022 15:24, uzibalqa 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") ) > > > > > >