all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: remove all my added face text properties?
Date: Sun, 30 Oct 2022 19:57:06 -0700	[thread overview]
Message-ID: <CAJcAo8uR-Wz8Kzo7DxotEAJbJgVzXooP9jPg98cASHFENf17cQ@mail.gmail.com> (raw)

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



             reply	other threads:[~2022-10-31  2:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-31  2:57 Samuel Wales [this message]
2022-10-31  4:36 ` remove all my added face text properties? Jean Louis
2022-10-31 11:30   ` Emanuel Berg
2022-10-31 18:23     ` Jean Louis
2022-11-03  5:04   ` Samuel Wales

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJcAo8uR-Wz8Kzo7DxotEAJbJgVzXooP9jPg98cASHFENf17cQ@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.
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.