From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Printing code made by a macro Date: Sun, 06 Aug 2023 22:45:50 +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="24923"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Eduardo Ochs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 07 00:46:34 2023 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 1qSmWA-0006LJ-Q6 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Aug 2023 00:46:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSmVb-0004Ta-Td; Sun, 06 Aug 2023 18:45:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSmVZ-0004T8-T9 for help-gnu-emacs@gnu.org; Sun, 06 Aug 2023 18:45:57 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSmVX-0001DT-Cy for help-gnu-emacs@gnu.org; Sun, 06 Aug 2023 18:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1691361952; x=1691621152; bh=SI7hwx/OwGwnoqBMnrTpufzxteEB+x7xZb0galD7S1A=; 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:BIMI-Selector; b=KDAoWLWFWBP5AQAQ9JO8GhmQw9Z/LBd4fOpj1iDRBtCBWmzKBYEXv6N4+qyexvTMP hIgDj03h+mUCUcNlLsCRE2J2bPW63DpXwM6cqg7vuHBDt1/8rSu4am7O8Ajn+BD/bS py3t+fdHaqsR4LX1eqXfAnzFbBKYNmDRLfU0ZiypDRCuk3/8HghgtxuoU5iaT1kH2T xO4gSkWqbV+0msVqJruhT+IQwI7mUJLVzX6r7yt3ZpD5sue5d6FeYKivY2eUbCht/z 5G3TlcGUND2Zposdf3IXY8RizANH/emyjofx+kyfzyYodJxeQVKze3jwZmqepKnxq/ Cv1Pvv9casNWw== In-Reply-To: Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.25; envelope-from=heimeborgia@protonmail.com; helo=mail-4325.protonmail.ch X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144654 Archived-At: ------- Original Message ------- On Monday, August 7th, 2023 at 8:36 AM, Eduardo Ochs wrote: > On Sun, 6 Aug 2023 at 14:24, Heime heimeborgia@protonmail.com wrote: >=20 > > I am now looping to find pp-to-string and find-estring-elisp > >=20 > > Where are they ? > >=20 > > You call these "find-" tools (e.g. find-eppm) which I can use > > to print code derived from a macro. Although in actual fact, > > you use them to print code that is found in elisp files. And > > thusly you call them "find-" tools. It just happens that I > > can use them to pretty print the output of my macro, even though > > no code will be found in my libraries. Is this the correct > > evaluation of find-eppm ? >=20 >=20 > Hi Heime, >=20 > eev has lots of functions to inspect how Emacs represents things in > memory and only a few functions to jump to their source code, and the > functions in eev that start with the prefix `find-' are the ones that=20 > are usually used as elisp hyperlinks Right. I am using find-eppm to print the result of my macros, rather than for the original purpose of hyperlinks. So my use can be described as some sort of hack on your code. Is it so ? > For example, this - note that it is a sexp of the form "(find-... ...)" -= =20 > is an elisp hyperlink: (find-efunction 'find-eppm) if you follow it it=20 > will take you to the definition of the function` find-eppm' in the file= =20 > "eev-blinks.el".=20 > Elisp hyperlinks are explained here: >=20 > (find-eev-quick-intro "2. Evaluating Lisp") > (find-eev-quick-intro "3. Elisp hyperlinks") > http://anggtwu.net/eev-intros/find-eev-quick-intro.html#2 > http://anggtwu.net/eev-intros/find-eev-quick-intro.html#3 >=20 > The "Emacs way" to get help about a function is to put the point on > the name of the function and then type `C-h f RET'; this creates a tempor= ary buffer with lots of information, and one of the first things in that te= mporary buffer is a link to where the function is defined. The "eev way" to= get help about a function is to put the point on the name of the function = and then type` M-h M-f RET'; this creates a > temporary buffer with lots of elisp hyperlinks. If you do `M-h M-f RET' w= ith the point on` find-eppm' some of the elisp hyperlinks that > will appear are these ones: >=20 > (find-efunction-links 'find-eppm) > (eek "M-h M-f find-eppm") > (find-eev-quick-intro "4.2. `find-ekey-links' and friends") >=20 > (find-efunctiondescr 'find-eppm) > (find-efunction 'find-eppm) > (find-efunctionpp 'find-eppm) >=20 > (symbol-file 'find-eppm 'defun) > (find-fline (symbol-file 'find-eppm 'defun)) > (find-epp (assoc (symbol-file 'find-eppm 'defun) load-history)) >=20 > Try them - I mean, try the ones above and then try all the ones in the > temporary buffer... you will see that some of them do things that are > easy to understand, and some other ones do things that are very > low-level and very technical... but you are trying to learn things > that are very low-level and very technical, so I think that you will > like them. Also, take a look at this: >=20 > (find-elisp-intro) > http://anggtwu.net/eev-intros/find-elisp-intro.html >=20 > I have the impression that its section 6 >=20 > (find-elisp-intro "6. Defining functions") > http://anggtwu.net/eev-intros/find-elisp-intro.html#6 >=20 > explains some things about how functions are stored in memory that may > be useful to you... >=20 > Btw, eev has a mailing list: >=20 > https://lists.nongnu.org/mailman/listinfo/eev > https://lists.gnu.org/archive/html/eev/ >=20 > More later! Cheers =3D), > Eduardo > http://anggtwu.net/eepitch.html