From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#59618: 29.0.50; global-whitespace-mode + org-capture: "Marker does not point anywhere" Date: Sun, 27 Nov 2022 00:27:50 +0000 Message-ID: <874juljl6h.fsf@localhost> References: <86pmd969ps.fsf@aarsen.me> <83tu2lqyi6.fsf@gnu.org> 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="25740"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59618@debbugs.gnu.org, Arsen =?UTF-8?Q?Arsenovi=C4=87?= To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 27 01:28:18 2022 Return-path: Envelope-to: geb-bug-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 1oz5Wq-0006NZ-VJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Nov 2022 01:28:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oz5Wh-0007tt-8r; Sat, 26 Nov 2022 19:28:07 -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 1oz5Wf-0007th-M4 for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 19:28:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oz5Wf-0005du-E2 for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 19:28:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oz5Wc-0000ip-AE for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2022 19:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Nov 2022 00:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59618 X-GNU-PR-Package: emacs Original-Received: via spool by 59618-submit@debbugs.gnu.org id=B59618.16695088482760 (code B ref 59618); Sun, 27 Nov 2022 00:28:02 +0000 Original-Received: (at 59618) by debbugs.gnu.org; 27 Nov 2022 00:27:28 +0000 Original-Received: from localhost ([127.0.0.1]:41706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oz5W3-0000iS-KL for submit@debbugs.gnu.org; Sat, 26 Nov 2022 19:27:28 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:42879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oz5W0-0000iM-Ef for 59618@debbugs.gnu.org; Sat, 26 Nov 2022 19:27:26 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 86A93240026 for <59618@debbugs.gnu.org>; Sun, 27 Nov 2022 01:27:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669508838; bh=CwI+pLPfA/f45vp0E8hjc/c94FPPDXU+HI7b6k+uzog=; h=From:To:Cc:Subject:Date:From; b=JM5K1P5OQoYFgypUejGp9+05hZ8pSHpbUzDB9Ad8Owkly5AbYd5E9wbgk94z2mzmO PCv4Tk/QUj3ju5yHKvo2rcuZyqwSv9hPBGMBO1z0sUqOMNKgDVyOUeuPMEutch6Hfa IBlSUj/bJZGCwLj6kfJSC+iOr6c7LH9I68yLTOYkV2yLdLDbuAU2zrjgcCcYO0NrPC hhvi+kaTX8MtLSI6xDAZPVkfrUZfO2Sd0RUxrAYbASMdTwm3SNjdMG2m/BdAAIfO7s A3r7chOuurA6h45HqSuUapZ2eOeJUtDEH2ZYWAWmCtVD8Ybd+bF2iB9OCDYTRNXeKa X/VLfznJ9iVrQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NKTv56djHz6tmH; Sun, 27 Nov 2022 01:27:10 +0100 (CET) In-Reply-To: <83tu2lqyi6.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249151 Archived-At: Eli Zaretskii writes: >> Date: Sat, 26 Nov 2022 15:42:27 +0100 >> From: Arsen Arsenovi=C4=87 via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> If attempting to capture something while global-whitespace-mode is on, >> a second capture will fail with "Marker does not point anywhere". The >> first capture attempt presumably succeeds since whitespace-mode didn't >> touch the buffer yet at time of searching. Reproduction steps: >>=20 >> 1. emacs -Q --execute '(global-whitespace-mode)' >> 2. M-x org-capture RET t C-c C-c >> 2. M-x org-capture RET t > > Isn't this a problem with org-capture? Did you try reporting this to the > Org developers first? The error is thrown by global-whitespace-mode. Not by Org. Org just intercepts the error in condition-case. After following the above steps, please 4. Switch to .notes buffer 5. Select the last heading in the buffer 6. Kill it. 7. Observe the following backtrace Debugger entered--Lisp error: (error "Marker does not point anywhere") whitespace--update-bob-eob(37 37 30) delete-and-extract-region(37 67) #f(compiled-function (beg end delete) #)(37 = 67 delete) apply(#f(compiled-function (beg end delete) #) (37 67 delete)) #f(compiled-function (funs global args) #)(ni= l nil (37 67 delete)) buffer-substring--filter(37 67 delete) (let ((return-string (buffer-substring--filter beg end delete)) props-lis= t) (if (or (string=3D "" return-string) (<=3D end beg) (eq org-fold-core-st= yle 'overlays)) nil (let ((tail (org-fold-core-folding-spec-list))) (while = tail (let ((spec (car tail))) (if (and (org-fold-core-region-folded-p beg e= nd spec) (org-region-invisible-p beg end)) (progn (setq props-list ...))) (= setq tail (cdr tail))))) (let ((tail (if (fboundp 'object-intervals) (objec= t-intervals return-string) (seq-partition (cdr ...) 3)))) (while tail (let = ((plist (car tail))) (let* ((start ...) (fin ...) (plist ...)) (if (listp p= list) (progn ...))) (setq tail (cdr tail))))) (remove-text-properties 0 (le= ngth return-string) props-list return-string)) return-string) org-fold-core--buffer-substring-filter(37 67 delete) filter-buffer-substring(37 67 delete) #f(compiled-function (method) #)(delete) kill-region(37 67 region) funcall-interactively(kill-region 37 67 region) command-execute(kill-region) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at