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: Mon, 21 Jun 2021 00:11:23 +0200 (CEST) Message-ID: References: <87k0moiuk9.fsf@zoho.eu> 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="13207"; mail-complaints-to="usenet@ciao.gmane.io" To: moasenwood@zoho.eu, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 21 00:14:40 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 1lv5iB-0003EM-0x for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 00:14:39 +0200 Original-Received: from localhost ([::1]:32938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv5iA-0007VO-2V for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Jun 2021 18:14:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv5f8-00038P-9m for help-gnu-emacs@gnu.org; Sun, 20 Jun 2021 18:11:30 -0400 Original-Received: from ip-8.mailobj.net ([213.182.54.8]:40130 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 1lv5f5-0008Lx-9R for help-gnu-emacs@gnu.org; Sun, 20 Jun 2021 18:11:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=africamel.net; s=mailo; t=1624227084; bh=aL2TVQmly6ikFzj+xOZ+M8syV0fU9G0NpkC/oLIFNBE=; h=X-EA-Auth:From:To:Date:Subject:MIME-Version:X-Mailer:Message-ID: In-Reply-To:Content-Type; b=aisdAhG3IECEe1lXoSVQ2aQJ2N7pZlfV+SYvXllHEUGRKS8sk7v8+aCFLmvn103ng t3TwlO7l6TaZZ3S89+85RJJfgVxmYtuCEJNksihR5n7La6bH7b2NHAybHMr1mJm8sy TxuSI2qGp7OW+7lfL0sHz192p27zo/D70dE1NTe4= Original-Received: by www-8.mailo.com with http webmail; Mon, 21 Jun 2021 00:11:23 +0200 (CEST) X-EA-Auth: X2wVYTKWMk6Xl54WTUCvvir6fGU8WjSQUamioh+EV0N1luDL3R44eQUVL6fL0rHrybvq8ZcVOBPyOHzxXY2Bac9unWl/q4jK X-Priority: 3 X-Mailer: COMS/EA21.01/r20210601 In-Reply-To: <87k0moiuk9.fsf@zoho.eu> 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:131120 Archived-At: I would like to display text in the help window without it being selected The following achieves that. =C2=A0 (with-help-window (help-buffer) =C2=A0=C2=A0=C2=A0 (with-current-buffer (help-buffer) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (print "test"))) ) Would I need =C2=A0 (with-current-buffer (help-buffer) actually? From: Emanuel Berg via Users list for the GNU Emacs text editor To: help-gnu-emacs@gnu.org Subject: Re: Printing as documentation Date: 20/06/2021 14:34:14 Europe/Paris philip-agee wrote: > I am really wondering about the utility of the two functions > below, which seem > > to be doing the same thing, at least from my perspective. Examine what the _individual functions_ are doing. You should be able to answer like this for every line of code you ever write: "at line n, I use function X with args Y because I want to accomplish Z". This is how you know what your code does - knowing the individual building blocks - not bunching together functions like you do, from other planets, almost, then comparing the "result" to another piece of code, written in the same style! That method doesn't work and it will never work. --=20 underground experts united https://dataswamp.org/~incal