all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* remove all my added face text properties?
@ 2022-10-31  2:57 Samuel Wales
  2022-10-31  4:36 ` Jean Louis
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2022-10-31  2:57 UTC (permalink / raw)
  To: help-gnu-emacs

i set face properties in a roughly as follows:

(defun highlight-1 (extent)
             (let ((p (point)))
               ;; fixme what do we do to =remove= all of these
               ;; added face properties in the buffer?  we need
               ;; to do that when re-running this function to not
               ;; keep the old stuff around.
               ;;
               ;; get-text-property but we need to get all?
               ;; set-text-properties start end face?
               (add-face-text-property p (+ extent p) '(:inverse-video t))))

what does one do to keep all the text properties, including face text
properties, in the buffer, as they were before i first highlighted
anyghing, while at the same time removing the face properties i added?
 thank you.

-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



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

end of thread, other threads:[~2022-11-03  5:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-31  2:57 remove all my added face text properties? Samuel Wales
2022-10-31  4:36 ` Jean Louis
2022-10-31 11:30   ` Emanuel Berg
2022-10-31 18:23     ` Jean Louis
2022-11-03  5:04   ` Samuel Wales

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.