From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: philip-agee@africamel.net Newsgroups: gmane.emacs.help Subject: Printing as documentation Date: Sun, 20 Jun 2021 07:54:32 +0200 (CEST) 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="11558"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 20 07:54:59 2021 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 1luqQ7-0002nm-7l for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Jun 2021 07:54:59 +0200 Original-Received: from localhost ([::1]:59620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luqQ5-0003tS-Ol for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Jun 2021 01:54:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luqPm-0003t2-1y for help-gnu-emacs@gnu.org; Sun, 20 Jun 2021 01:54:38 -0400 Original-Received: from ip-8.mailobj.net ([213.182.54.8]:34094 helo=msg-3.mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luqPj-0006U9-Fj for help-gnu-emacs@gnu.org; Sun, 20 Jun 2021 01:54:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=africamel.net; s=mailo; t=1624168472; bh=VaPUx6gDjRy1ah/2BMZwWgW9cAK2JhygRXYy7WVOwdA=; h=X-EA-Auth:From:To:Date:Subject:MIME-Version:X-Mailer:Message-ID: In-Reply-To:Content-Type; b=GTPl7B99lyCt71MOECZL9KLLA9tQMIy/PuV1Jk9xcA84W27NYnKBDLy4OJ3Hbv7yQ gmbLptoA7y97mAH11sgNbSep7fxuWl6HbhLpEG6ah28oqtWkqFJ9gCHbKch+ky7VjI /UJfdroaHCj5ARQz8PoVEx++45vv06atA7V2r9BY= Original-Received: by www-8.mailo.com with http webmail; Sun, 20 Jun 2021 07:54:32 +0200 (CEST) X-EA-Auth: RFDZV98bWUpWHKdTm8b4enySRa5NUyh+HzA7o7XdduflmvqmhW2lIHBWrRgPP0QM6qreA+o94rVru9PThYbg+jsWtkGyF40f X-Priority: 3 X-Mailer: COMS/EA21.01/r20210601 In-Reply-To: Received-SPF: pass client-ip=213.182.54.8; envelope-from=philip-agee@africamel.net; helo=msg-3.mailo.com 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:131069 Archived-At: Have tried the following code, but is giving me > invalid function: "*help*= " (defun myfunc () =C2=A0 "todo docstring" =C2=A0 (interactive) =C2=A0 (setq bufr (help-buffer)) =C2=A0 (print "test" bufr) ) From: philip-agee@africamel.net To: help-gnu-emacs@gnu.org Subject: Printing as documentation Date: 20/06/2021 06:41:31 Europe/Paris When I wish to see the self documentation I use C-h f myfunc I get a temporary help buffer displaying the docstring for myfunc. Is it possible to to do the same kind of thing when calling a description = function "mydesc". so that the print function are show in a temporary=C2=A0 help buffer? (defun mydesc () "docstring for mydesc" (print "The brown fox" help) (print "jumps over the fence" help) ) M-x mydesc wiil then behave similar to doing C-h f somefunc=20