From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: stardiviner Newsgroups: gmane.emacs.help Subject: Re: isearch replace on org-mode buffer overlays caused error Date: Wed, 18 Dec 2024 14:20:40 +0800 Message-ID: References: <675fd9fc.050a0220.88bd8.a658@mx.google.com> <87ttb4exjo.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35799"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 18 07:22:03 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 1tNnRb-00096d-7o for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 Dec 2024 07:22:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNnQz-0003cB-5g; Wed, 18 Dec 2024 01:21:25 -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 1tNnQx-0003c3-EX for help-gnu-emacs@gnu.org; Wed, 18 Dec 2024 01:21:23 -0500 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNnQl-0005SN-UY for help-gnu-emacs@gnu.org; Wed, 18 Dec 2024 01:21:22 -0500 Original-Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-54025432becso6028533e87.1 for ; Tue, 17 Dec 2024 22:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734502869; x=1735107669; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bTMadljUadr+ajCbsm+YkxD2b2ilAecuiYd9dEA0FAA=; b=K2+gjvdFNx18Z0JIr1Xe58GNLUSxMT4n9DU9+OYpF4DH0Jeg+icTxXbgccvAHbed+6 UBf3ktBSokqkflh5oent6YJK+yqQb2N4sY0MSUC0ALOXSO5yBRpir14goKPXVYZt6bJl PyYuFPjWLyxaLolmmMT0GYv13qN65DgRDQZ8gAu7O+LKMCjsktnuOWicncSuy9YAE5Qy q1S3gS9mnWcXZL676WxZpGbDdItxpyGEf6mMIsxcgagA2QEVo9DTILwdpTzdLfFCIpUY +djMBK7F35l/S7Zq3rl125O3O1+vAeUl1aGm05F0OsP16+a8Hxzuci1aRa8VXFzMSsTC GS7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734502869; x=1735107669; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bTMadljUadr+ajCbsm+YkxD2b2ilAecuiYd9dEA0FAA=; b=BZAN4GRplU3QJRSyfyChLfgxKITJKj4ZMKRAp1McEhAG4W6Hrje7gPj4DidzDSQIfA sVypNsoCc1Eao56zySvTLT6g6QryC8m9oxHP7rcqGfVtz5t3YqP4R5278OUsO3VdY185 aUy8Y5ICwoV4RiRfDrh8plkmsvp2iE8WqLMFQRC1X7t7IISb/8H4o+E8kUbrGRmpkcWH suvpLICP1IRUoNercKNXR1oK9OxOVrmAX4UrAVTRgOY36klxZKRevPF2S6OhxjRALRsv FtMokbKsLn/sUqewHy4QBTaMu0U6XQwJSHGk8jdGBKRfd4+1DzlnOEdldwbxWGGZf4AU eJPQ== X-Gm-Message-State: AOJu0YytbTsBZXpccySM3Vz9De80ukChhya6h85jVSaS0m2cHpNJh7BX yR9kMtPefK6EAdbKEf5Q01S+J+C5XiC0do9/aCviMfkckm44RnfZBlcCdE5FZOPS+YUaV+h/jt6 a6tqnjiild9hlLEJU7qzIiU/ZsA== X-Gm-Gg: ASbGncthG1bpqRHzZsoi2/cBANbs3exAfFnBFi/N9UkW/tye14BPCZ3JcYJNRJa6Mkp 78fqEyHOGjiK4R+VB8WBGkOyvMIB8idbCx0hsTgyUjk+9fbWsjAxUFU0djmjaV2aXm8FvcEk= X-Google-Smtp-Source: AGHT+IFu+8Sqf/AigEG3juEAUfrnv9vzJX9MUBkmD+mN/uThRjV9szPYLTQGi0tw4WceLiHJHfJtqgQQU1rzSrAygmw= X-Received: by 2002:a05:6512:398d:b0:53f:8c46:42bd with SMTP id 2adb3069b0e04-541e674949amr522142e87.15.1734502868094; Tue, 17 Dec 2024 22:21:08 -0800 (PST) In-Reply-To: <87ttb4exjo.fsf@web.de> Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=numbchild@gmail.com; helo=mail-lf1-x12f.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:148871 Archived-At: Yes, it's weird, I'm pretty sure I'm in an normal org-mode (major-mode) buffer. Don't know why magit-mode involved. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Mon, Dec 16, 2024 at 6:23=E2=80=AFPM Michael Heerdegen via Users list fo= r the GNU Emacs text editor wrote: > "Christopher M. Miles" writes: > > > Should the `isearch-open-necessary-overlays` exclude filter those > > #? > > That doesn't normally happen. Isearch will only consider live overlays > living in the current buffer. > > > #+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 () # -0x46770234ddc9000>)) > > apply(isearch-clean-overlays@magit-mode #f(compiled-function () > #) nil) > > But why is this magit-mode function called in your case? > `isearch-clean-overlays@magit-mode' tries to unfold sections in a > magit-mode buffer. I don't think it should be called in an org-mode > buffer at all. Something's wrong here. > > > Michael. > > >