From: Jean Louis <bugs@gnu.support>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
Stefan Kangas <stefan@marxist.se>,
Boruch Baum <boruch_baum@gmx.com>,
45926@debbugs.gnu.org
Subject: bug#45926: Tabulated-list-mode wasteful properties
Date: Wed, 21 Apr 2021 07:36:14 +0300 [thread overview]
Message-ID: <YH+rvjvxmohxSCy0@protected.localdomain> (raw)
In-Reply-To: <87czw4hcg9.fsf@tcd.ie>
* Basil L. Contovounesios <contovob@tcd.ie> [2021-03-12 13:52]:
> Boruch Baum <boruch_baum@gmx.com> writes:
>
> > Doing it again now. Yes. It's very simple to check for yourself. Open a
> > buffer that uses the mode and evaluate from any table line ...
> >
> > (buffer-substring (line-beginning-position) (line-end-position))
> >
> > You should be able to clearly see all the duplication. It's easiest when
> > you have pretty-print set up to display the output in a dedicated
> > buffer, but even without that you can isearch through the duplications.
>
> Have you tried setting print-circle non-nil first? This will help you
> see what is actually duplicated and what is shared.
I have done that exercise where my tabulated-list-entries is only
this:
⇒ ((320295 ["320295" "Boruch Baum" "Emacs Users"]))
and
(buffer-substring (line-beginning-position) (line-end-position))
gives me this:
a ⇒ #(" 320295 Boruch Baum Emacs Users" 0 1 (tabulated-list-id 320295 tabulated-list-entry #1=["320295" "Boruch Baum" "Emacs Users"]) 1 7 (help-echo "ID: 320295" tabulated-list-column-name #3="ID" tabulated-list-id 320295 tabulated-list-entry #1#) 7 8 (tabulated-list-column-name #3# tabulated-list-id 320295 tabulated-list-entry #1#) 8 10 (display (space :align-to 10) tabulated-list-column-name #3# tabulated-list-id 320295 tabulated-list-entry #1#) 10 22 (help-echo "Name: Boruch Baum" tabulated-list-column-name #2="Name" tabulated-list-id 320295 tabulated-list-entry #1#) 22 23 (tabulated-list-column-name #2# tabulated-list-id 320295 tabulated-list-entry #1#) 23 51 (display (space :align-to 51) tabulated-list-column-name #2# tabulated-list-id 320295 tabulat
ed-list-entry #1#) 51 62 (help-echo "Account: Emacs Users" tabulated-list-column-name "Account" tabulated-list-id 320295 tabulated-list-entry #1#))
If non-nil, shared substructures anywhere in the structure are printed
with ‘#N=’ before the first occurrence (in the order of the print
representation) and ‘#N#’ in place of each subsequent occurrence,
where N is a positive decimal integer.
Thus I can see that those are shared structures mostly.
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/
next prev parent reply other threads:[~2021-04-21 4:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-17 7:32 bug#45926: Tabulated-list-mode wasteful properties Boruch Baum
2021-01-17 13:40 ` Basil L. Contovounesios
2021-01-17 15:11 ` Boruch Baum
2021-01-19 5:24 ` Lars Ingebrigtsen
2021-03-12 0:52 ` Stefan Kangas
2021-03-12 2:57 ` Boruch Baum
2021-03-12 3:39 ` Stefan Kangas
2021-03-12 5:46 ` Boruch Baum
2021-03-12 11:01 ` Basil L. Contovounesios
2021-04-21 3:35 ` Stefan Kangas
2021-03-12 10:51 ` Basil L. Contovounesios
2021-04-21 4:36 ` Jean Louis [this message]
2021-04-21 4:31 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YH+rvjvxmohxSCy0@protected.localdomain \
--to=bugs@gnu.support \
--cc=45926@debbugs.gnu.org \
--cc=boruch_baum@gmx.com \
--cc=contovob@tcd.ie \
--cc=larsi@gnus.org \
--cc=stefan@marxist.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).