From: Samuel Wales <samologist@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: buffer substring of only visible text
Date: Tue, 20 Sep 2022 18:08:03 -0700 [thread overview]
Message-ID: <CAJcAo8t_+GAgS-jyv=yd=-VFVYJJ5cwqrDvkJtMNOba2t+OU_g@mail.gmail.com> (raw)
i want to copy visible text from a region in a buffer, into
a string.
if any invisible regions are in the region, i want them to
not be in the string.
that is, i want the visible intervals in the copied region
to be merely appended.
when i INSERT the resulting string into the new buffer, i
want any text properties that i specify to still exist.
htmlize.el has a function, buffer-substring-no-invisible,
which does not include any text properties at all.
it works, but i'd like to include at least one text
property, which i want to specify.
that is the problem that i want to solve. i am looking for a
know a cookbook formula to do this really straightforwardly.
next reply other threads:[~2022-09-21 1:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-21 1:08 Samuel Wales [this message]
2022-09-21 1:34 ` buffer substring of only visible text Emanuel Berg
2022-09-21 11:34 ` Felix Dietrich
2022-09-21 22:57 ` Samuel Wales
2022-09-28 17:59 ` Felix Dietrich
2022-09-22 9:14 ` Michael Heerdegen
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='CAJcAo8t_+GAgS-jyv=yd=-VFVYJJ5cwqrDvkJtMNOba2t+OU_g@mail.gmail.com' \
--to=samologist@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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).