unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* buffer substring of only visible text
@ 2022-09-21  1:08 Samuel Wales
  2022-09-21  1:34 ` Emanuel Berg
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Samuel Wales @ 2022-09-21  1:08 UTC (permalink / raw
  To: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-28 17:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-21  1:08 buffer substring of only visible text Samuel Wales
2022-09-21  1:34 ` 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

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).