From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Christopher M. Miles" Newsgroups: gmane.emacs.help Subject: isearch replace on org-mode buffer overlays caused error Date: Mon, 16 Dec 2024 15:42:43 +0800 Message-ID: <675fd9fc.050a0220.88bd8.a658@mx.google.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1243"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.7; emacs 31.0.50 To: Emacs Help mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 08:44:01 2024 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 1tN5lp-0000C1-Bt for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 08:44:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tN5l4-0002tu-FW; Mon, 16 Dec 2024 02:43:15 -0500 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 1tN5ky-0002sv-VJ for help-gnu-emacs@gnu.org; Mon, 16 Dec 2024 02:43:11 -0500 Original-Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tN5kt-000684-8a for help-gnu-emacs@gnu.org; Mon, 16 Dec 2024 02:43:07 -0500 Original-Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-725f4623df7so3143755b3a.2 for ; Sun, 15 Dec 2024 23:42:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734334977; x=1734939777; darn=gnu.org; h=mime-version:date:user-agent:subject:to:from:message-id:from:to:cc :subject:date:message-id:reply-to; bh=lrsk7kvRNKSdQWvlSfDUnuSoT4C8JkMQG9CuWJktUvU=; b=KgzhgtrLc20fVoonvtfCqW/N/FRWY8KPZ38ZZ2cop3L1ZDmnyay+U7IdKwgi3/oi95 XoonqE8/OCxfkpru74XsKRP8VNXoxpmQx899JLIC9LpE2WeXlV6n8s5nANn46b7r/AKv iZwGhrcX51fL/78G5XKv9Hl8ave/FIU7xYKG/YVKRvcKOftqya3sq+P5w6Cvr51HB/0o WkWQgr7a5ga0i7QPz+gEDZwY9+CORCAQg/DTuvfCP2aJq2vJbKBQkbgH9+lzAcxPyw2Q vrMoQaBaLLykusulUny396yN31KY2WH6Nw9eHYHaidVlywLElAGYsHsNRkeVz0IsPNox Crlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734334977; x=1734939777; h=mime-version:date:user-agent:subject:to:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lrsk7kvRNKSdQWvlSfDUnuSoT4C8JkMQG9CuWJktUvU=; b=pOfFKg2u6euSyIuPpbnQ8kQx6dfO52+LJDxIhacWhdy6xTNpMnIb7u6S+dvpzdSAkX sPTcaR2ueMSt6MFxyPsU1Tt4RVLz708aAzOhGu7Bahk6YPgx04d9Wds5NgUGbF9Q3c0v 9q/wt6h2PpKLRlpLgpgqAoUKKzNtEKWOGkV4Z68js6wovGWhImJ/dmBR/EeQgVJ3yxB8 53w8C6SV0BGrcyT1iKcqIf1EKz4b5I1Eh5jbGPCNVKhg7MPSbggkZTlnneI94KPNLEXz /b0sDrfcNw3P2siyC08KTM1IkTV+mCF6vBlkGy6vXpXkaK7V+RM8wB3Snr9DTshFnTBb KoCQ== X-Gm-Message-State: AOJu0YzvhobsVN/Lmomq3QIJVYOHHJCby4SqRKb+saTPeTjcyLcJ6dJI seqLQNVp+wjziqmM1hLoFIxZnyE8x+gvsJWPmm93Qg1hrt+CFPHuktkavD5aUg== X-Gm-Gg: ASbGnctIbaGo7fmy42uRev11ctrtfeofxEO07H2ODQqNnctJrll0KsR1RW9Q1icNbLN NfZ1iM+kR1gSSIaiR4RC+vDgyom7eSsPu6WeOVqP+Qu6lqItu6iV2BZAOfM07YqSJYf9bB3+/f4 TM+JpYJHGeZvOeT9DaDiOpMJlu2kijES+DssmQQwWoqF0irUqWHxITtUFu6zSh9ZBFGO+PBcV6J Q6tj1h6zz0xMRT+05xjmhEM0zGTgTmc3I1FJo3v953IImvEBy5dHYiF3NZHlTnwIo1/x+lWLA== X-Google-Smtp-Source: AGHT+IGxQTf7lMZ10P/r8/BiheWS6+g+1SomqFrU0WALXZe8M1hnrPkBGa4Xf2lwopEpTNYSnCpkpw== X-Received: by 2002:a05:6a00:302a:b0:725:e5a7:fdac with SMTP id d2e1a72fcca58-7290c2936fcmr17159843b3a.26.1734334976313; Sun, 15 Dec 2024 23:42:56 -0800 (PST) Original-Received: from Mac-mini.local ([39.171.198.12]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72918ad6a1bsm4086455b3a.54.2024.12.15.23.42.52 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 15 Dec 2024 23:42:52 -0800 (PST) X-Google-Original-Message-ID: Original-Received: by Mac-mini.local (Postfix, from userid 501) id DCED11417D26C; Mon, 16 Dec 2024 15:42:47 +0800 (CST) Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=numbchild@gmail.com; helo=mail-pf1-x42a.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, MSGID_FROM_MTA_HEADER=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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148823 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I do [M-%] which bind to package "pcre2el" command `pcre-query-replace-regexp` which replace regexp Org-mode tag ":audio:" with text ":file_audio:" in an Org-mode buffer. The tag is beautified with package "org-tag-beautify" https://repo.or.cz/org-tag-beautify.git. I got error when doing [M-%] which is a keybinding remapped to package "pcre2el" command `pcre-query-replace-regexp`. #+begin_example Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) isearch-open-necessary-overlays(#) mapc(isearch-open-necessary-overlays (# # #)) #f(compiled-function () #)() isearch-clean-overlays@magit-mode(#f(compiled-function () #)) apply(isearch-clean-overlays@magit-mode #f(compiled-function () #) nil) isearch-clean-overlays() replace-dehighlight() #f(compiled-function () #)() perform-replace(":audio:" ":file_audio:" t t nil nil nil nil nil nil nil) query-replace-regexp(":audio:" ":file_audio:" nil nil nil nil nil) funcall-interactively(query-replace-regexp ":audio:" ":file_audio:" nil n= il nil nil nil) call-interactively(query-replace-regexp) pcre-query-replace-regexp() funcall-interactively(pcre-query-replace-regexp) call-interactively(pcre-query-replace-regexp nil nil) command-execute(pcre-query-replace-regexp) #+end_example I saw # in the backtrace. Don't know why. Should the `isearch-open-necessary-overlays` exclude filter those #? =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmdf2fMACgkQG13xyVro msP4QQgAuKMS7kAVjVRz6tHmsMDjNBJ6FA2MCsgRVDtUE+mXPm26PRfAojhGwRZi TNYh5sdmevCHbuyr2DG5PRNENeZ3jvcYiUObguA0ejIkFdRA8DSzf0ajrZjRf5+Z qqkGV3XflrM2xC3UZyFi7aCxjhhu+nxOa8fjF6QAfknV1snHtYPBGf+hCvasVTgS R+ZXWBcvALW+qtogsTIYD8a6sOb5q02CQ9orDhYbG/RVezk1mM8ktKjSxZPVSFMj AgLnTw79zNXYzOG8UHJEw8YLAapAfdDfQfdTkItCQjO/K68xvgjem9gdrKpZV4iH jJLGE8nWlxE91R52glHCJL/aSgBV+Q== =poY8 -----END PGP SIGNATURE----- --=-=-=--