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: buffer substring of only visible text Date: Tue, 20 Sep 2022 18:08:03 -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="40036"; 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 Wed Sep 21 03:09:03 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 1oaoEY-000AH9-PG for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 03:09:02 +0200 Original-Received: from localhost ([::1]:55110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaoEX-00057z-PH for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 20 Sep 2022 21:09:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaoDi-00053U-41 for help-gnu-emacs@gnu.org; Tue, 20 Sep 2022 21:08:10 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:44636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaoDg-0002RJ-Is for help-gnu-emacs@gnu.org; Tue, 20 Sep 2022 21:08:09 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id i26so6667754lfp.11 for ; Tue, 20 Sep 2022 18:08:07 -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; bh=NVz8tQrERGqfV9/lBcgNZ1MHtf+wFRWxLhSax2QbZNo=; b=fQ2LKlbUZakn8SQKJx13XW4/PpH1OwhQk3TS8TF9lq5PGHVO6AQyLFsJmA5TDKBhKT 35jTtXzrwNUC7NhOAoj/CYcqP8J/czgZoVj4GLAqRnTBBogoLb5Y+Wsepu+XAHaGD4Hf kW78Yp4rx7RVpKNzz0DJ/gBPDTBymaIRWdV6roTjR/2iUesKBsBwlem1XGio9Jtd9X3f JjRC23EfrVlMJ/fSYqFDuV/MxQIYKjcZWR3Xc0GI1Pxr+xwC0Kat2drJz4HD6USvcenY q1R4g9hC5QCWjy/8PZkPdjauk66d6Mpmd/tXafzPwsvMqy9vrYCmEEfkPAbDKz3AU0lQ cBdw== 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; bh=NVz8tQrERGqfV9/lBcgNZ1MHtf+wFRWxLhSax2QbZNo=; b=T/B7IiROOIDyf2U3+ArPInEBMtDNDFCLGM5h+XYtCBYHiX6O9HHraETLGbEzrDrfg2 vZJbYtnnl68CKwhdrQQPv395rDKDS5eTfbCsKxOnDMXXQxZRxnqHnwgJmf2Zy8EECz1o 5YaCc3sQ8o2uO5/7jbRRadEDqLzHBDjUbXtazLqsV/8H35Equ9J3EQ5YODO0udV9692n 35YZAFYpipDQIYmwGAw+48GXzv+J3GYKBhWUv/nX5WlBnXvvuwqkQnLY8nngDrPrlLDw +nG/E8vBySd4Hbzm2zrNz+CvYnIeyeho6ERDzfE8yXIcfXZumDy0habmfxs+QFQ4NTsk ivoA== X-Gm-Message-State: ACrzQf2BAGCNHL1kEsJ1VI7N1QKDcoi5bLdZz20BcfFhaRswQ/WhKGZ8 T0yHX30uwwfivUOsif+a0mnSII/o+zvSmtYND1OXRL6x4n8= X-Google-Smtp-Source: AMsMyM5XBz9Wsfbd+4SiTT3t1IT8MszVls1zIQD8gD9Dttu5SP1Oqy3/Q/enWaHqWQhacGpypxJIY8Dgp44TmPIajjs= X-Received: by 2002:a05:6512:b87:b0:498:f223:7906 with SMTP id b7-20020a0565120b8700b00498f2237906mr9128035lfv.664.1663722485082; Tue, 20 Sep 2022 18:08:05 -0700 (PDT) Original-Received: by 2002:aa6:c2eb:0:b0:21e:73da:40af with HTTP; Tue, 20 Sep 2022 18:08:03 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=samologist@gmail.com; helo=mail-lf1-x12c.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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139592 Archived-At: 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.