From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: remove all my added face text properties? Date: Sun, 30 Oct 2022 19:57:06 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1104"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 31 03:57:42 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opKzd-000090-QM for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 Oct 2022 03:57:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opKzC-0001SR-M4; Sun, 30 Oct 2022 22:57:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opKzA-0001SB-UN for help-gnu-emacs@gnu.org; Sun, 30 Oct 2022 22:57:13 -0400 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opKz9-00066A-Br for help-gnu-emacs@gnu.org; Sun, 30 Oct 2022 22:57:12 -0400 Original-Received: by mail-lf1-x12a.google.com with SMTP id be13so17314708lfb.4 for ; Sun, 30 Oct 2022 19:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tkzzHBGePbI0dqyb+UkLCSErGu2VGnjufbiQKwhwkiA=; b=J1JmTMHBf/v7K0yqF3DS5dNpBy0T6EY23RS7jdN+O/nHGPnH7HHKpv1YcxtHdHM8yD dNCksTrbUQLrs3zkAeWan5R0ZCjdVSevdpE8HCFAdhFgD5V1qDZAI12tga2UYsI0Fh+F +67QHOxuAyWr8iWmtT13SUH+NawPoo4H0gJuMRJnyB5lKtykBpqMIMf9Ygcp8YA5AXr+ 2AXVldWhEA8s7Ae+h5jbk66/Yv7PkBLliPHJxMURaUxsm34L3APkuca46bkA1JHYmv4P 68loOkWMvUwijTqt8fZ0IHv3hTXWBm9TWA8N2MvoVvrvpbfx8xExECa4zmq4r1I3t9dH SB1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tkzzHBGePbI0dqyb+UkLCSErGu2VGnjufbiQKwhwkiA=; b=UTHbJFIQFQvu56BckflIRyyLiOBPj1F0XkOARnqdlbdpyQdPU7O98QCE6ojtx2bXVs H8AmwQmoySx30AQhBpmtaJngeiNsp7R/alct16HYQg5yCWnujBCqqKPbd96SMGk1x21x NIp05UQANkEhC3K6/ORRE2jDUTnkuRSyYiR8FtgvmiiKM+BdY8+ci3T2pSsBj+mZqLV0 Mq3do+fpYfjL2hOeiSmbTTcSYPGHkZxOYMMZDtWQRNsap8LRU0m4Rx4NaRSFRcrm/pk0 LaXuQx10LXIIZcv620qgBwUGzebfFAVAa/Xzbsyv384v3JWXqnRkHzvmksswhM9CJwww Ftuw== X-Gm-Message-State: ACrzQf30ehCmdf5kNU7elGujsHspzcX0sBr00uNYMOitE7CvfX12HMR1 ui9VGRliT/blsghe1zIHnthNhN80mkN7dC+iUzx77XlFQGcK9QCP X-Google-Smtp-Source: AMsMyM6D050KDlQ1zk2uglNuZn9us3L9l4nHChNMjXHBLINYUJnP6GKclxc4MjuCPIw77XGb9QZoXZimG77epEz71lk= X-Received: by 2002:a05:6512:3a4:b0:4a4:6db7:2d6b with SMTP id v4-20020a05651203a400b004a46db72d6bmr4185870lfp.403.1667185027710; Sun, 30 Oct 2022 19:57:07 -0700 (PDT) Original-Received: by 2002:a05:6520:4af1:b0:22a:e96a:7f9b with HTTP; Sun, 30 Oct 2022 19:57:06 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=samologist@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140521 Archived-At: 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