From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oI7DF5d4gmOq+gAAbAwnHQ (envelope-from ) for ; Sat, 26 Nov 2022 21:35:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SA6/F5d4gmM5xgAAauVa8A (envelope-from ) for ; Sat, 26 Nov 2022 21:35:35 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0FCC8386F6 for ; Sat, 26 Nov 2022 21:35:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oz1sZ-0004Kk-6N; Sat, 26 Nov 2022 15:34:29 -0500 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 1oz1sJ-0004Iq-77 for emacs-orgmode@gnu.org; Sat, 26 Nov 2022 15:34:11 -0500 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oz1s8-0006Op-3i for emacs-orgmode@gnu.org; Sat, 26 Nov 2022 15:34:09 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4NKNjk5ncNz9sQn for ; Sat, 26 Nov 2022 21:33:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1669494826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=1/hIHCv0IwNHMtNCYEKtt0maniCV9LTDMGqiHYqs/og=; b=Ox/Gy1hNCe80yr/fwGrtQ62x9I/e54WeeGlfbkggn5adOCsrZ+cI1RYQb2bSk4mneCwFXh MhjxCLaSPmO4XiNK1YOFFBSyo3sD/Ug9mf2+dwAHGNyq8DZ/BI1s2Mz7N1nc3hzvfCUvUR YMh3N1eCbmyLmvA1d8bvLn/mzmQ1e92RtwUgQCkd4NF7rpGcM/0s/gllcWjWLfU3wHA2fg 5X+AUPTZNn20Hz1dM7tiJst6EKgL8HNZgOMKTY+Lt5aXeoIzEtOFzpq8QpBlC13XlRDguf AikhCuK/O9FU0mz3Xkevu8eeqkkZZo7wdx8ix07Q6BAbxrOAjALSgznojgVh2Q== From: Arsen =?utf-8?Q?Arsenovi=C4=87?= To: emacs-orgmode@gnu.org Subject: [BUG] global-whitespace-mode + org-capture: Second capture fails w/ "Marker does not point anywhere" [9.5.5 (release_9.5.5 @ /usr/share/emacs/29.0.50/lisp/org/)] Date: Sat, 26 Nov 2022 21:16:52 +0100 Message-ID: <86mt8d8nh4.fsf@aarsen.me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 4NKNjk5ncNz9sQn Received-SPF: pass client-ip=2001:67c:2050:0:465::103; envelope-from=arsen@aarsen.me; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.77 Authentication-Results: aspmx1.migadu.com; dkim=temperror ("DNS error when getting key") header.d=aarsen.me header.s=MBO0001 header.b="Ox/Gy1hN"; dmarc=temperror reason="query timed out" header.from=aarsen.me (policy=temperror); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0FCC8386F6 X-Spam-Score: -5.77 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6b7verNJ8cDn --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Evening, If attempting to capture something while global-whitespace-mode is enabled, 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: (in an org-mode.git clone) 1. emacs -Q --execute '(global-whitespace-mode)' -L lisp/ 2. M-x org-capture RET t C-c C-c 2. M-x org-capture RET t I'm uncertain if this is relevant, but I just spotted that *Warnings* also gets: Warning (org): Capture requirement: switching buffer # to Org mode Backtrace: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline; filename=capture-backtrace.txt Content-Transfer-Encoding: quoted-printable Content-Description: org-capture backtrace Debugger entered--Lisp error: (error "Capture template =E2=80=98t=E2=80=99:= Marker does not point anywhe...") error("Capture template `%s': %s" "t" "Marker does not point anywhere") (condition-case error (org-capture-place-template (eq (car (org-capture-g= et :target)) 'function)) ((error quit) (if (and (buffer-base-buffer (curren= t-buffer)) (string-prefix-p "CAPTURE-" (buffer-name))) (progn (kill-buffer = (current-buffer)))) (set-window-configuration (org-capture-get :return-to-w= conf)) (error "Capture template `%s': %s" (org-capture-get :key) (error-mes= sage-string error)))) (cond ((equal entry "C") (customize-variable 'org-capture-templates)) ((e= qual entry "q") (user-error "Abort")) (t (org-capture-set-plist entry) (org= -capture-get-template) (org-capture-put :original-buffer orig-buf :original= -file (or (buffer-file-name orig-buf) (and (featurep 'dired) (car (rassq or= ig-buf dired-buffers)))) :original-file-nondirectory (and (buffer-file-name= orig-buf) (file-name-nondirectory (buffer-file-name orig-buf))) :annotatio= n annotation :initial initial :return-to-wconf (current-window-configuratio= n) :default-time (or org-overriding-default-time (org-current-time))) (org-= capture-set-target-location (and (equal goto 0) 'here)) (condition-case err= or (org-capture-put :template (org-capture-fill-template)) ((error quit) (i= f (get-buffer "*Capture*") (kill-buffer "*Capture*")) (error "Capture abort= : %s" (error-message-string error)))) (setq org-capture-clock-keep (org-cap= ture-get :clock-keep)) (condition-case error (org-capture-place-template (e= q (car (org-capture-get :target)) 'function)) ((error quit) (if (and (buffe= r-base-buffer (current-buffer)) (string-prefix-p "CAPTURE-" (buffer-name)))= (progn (kill-buffer (current-buffer)))) (set-window-configuration (org-cap= ture-get :return-to-wconf)) (error "Capture template `%s': %s" (org-capture= -get :key) (error-message-string error)))) (if (and (derived-mode-p 'org-mo= de) (org-capture-get :clock-in)) (progn (condition-case nil (progn (if (org= -clock-is-active) (progn ...)) (org-clock-in) (set (make-local-variable ...= ) (copy-marker org-clock-marker))) (error "Could not start the clock in thi= s capture buffer")))) (if (org-capture-get :immediate-finish) (progn (org-c= apture-finalize))))) (let* ((orig-buf (current-buffer)) (annotation (if (and (boundp 'org-capt= ure-link-is-already-stored) org-capture-link-is-already-stored) (plist-get = org-store-link-plist :annotation) (condition-case nil (progn (org-store-lin= k nil)) (error nil)))) (entry (or org-capture-entry (org-capture-select-tem= plate keys))) initial) (setq initial (or org-capture-initial (and (org-regi= on-active-p) (buffer-substring (point) (mark))))) (if (stringp initial) (pr= ogn (remove-text-properties 0 (length initial) '(read-only t) initial))) (i= f (stringp annotation) (progn (remove-text-properties 0 (length annotation)= '(read-only t) annotation))) (cond ((equal entry "C") (customize-variable = 'org-capture-templates)) ((equal entry "q") (user-error "Abort")) (t (org-c= apture-set-plist entry) (org-capture-get-template) (org-capture-put :origin= al-buffer orig-buf :original-file (or (buffer-file-name orig-buf) (and (fea= turep 'dired) (car (rassq orig-buf dired-buffers)))) :original-file-nondire= ctory (and (buffer-file-name orig-buf) (file-name-nondirectory (buffer-file= -name orig-buf))) :annotation annotation :initial initial :return-to-wconf = (current-window-configuration) :default-time (or org-overriding-default-tim= e (org-current-time))) (org-capture-set-target-location (and (equal goto 0)= 'here)) (condition-case error (org-capture-put :template (org-capture-fill= -template)) ((error quit) (if (get-buffer "*Capture*") (kill-buffer "*Captu= re*")) (error "Capture abort: %s" (error-message-string error)))) (setq org= -capture-clock-keep (org-capture-get :clock-keep)) (condition-case error (o= rg-capture-place-template (eq (car (org-capture-get :target)) 'function)) (= (error quit) (if (and (buffer-base-buffer ...) (string-prefix-p "CAPTURE-" = ...)) (progn (kill-buffer ...))) (set-window-configuration (org-capture-get= :return-to-wconf)) (error "Capture template `%s': %s" (org-capture-get :ke= y) (error-message-string error)))) (if (and (derived-mode-p 'org-mode) (org= -capture-get :clock-in)) (progn (condition-case nil (progn (if ... ...) (or= g-clock-in) (set ... ...)) (error "Could not start the clock in this captur= e buffer")))) (if (org-capture-get :immediate-finish) (progn (org-capture-f= inalize)))))) (cond ((equal goto '(4)) (org-capture-goto-target keys)) ((equal goto '(1= 6)) (org-capture-goto-last-stored)) (t (let* ((orig-buf (current-buffer)) (= annotation (if (and (boundp ...) org-capture-link-is-already-stored) (plist= -get org-store-link-plist :annotation) (condition-case nil (progn ...) (err= or nil)))) (entry (or org-capture-entry (org-capture-select-template keys))= ) initial) (setq initial (or org-capture-initial (and (org-region-active-p)= (buffer-substring (point) (mark))))) (if (stringp initial) (progn (remove-= text-properties 0 (length initial) '(read-only t) initial))) (if (stringp a= nnotation) (progn (remove-text-properties 0 (length annotation) '(read-only= t) annotation))) (cond ((equal entry "C") (customize-variable 'org-capture= -templates)) ((equal entry "q") (user-error "Abort")) (t (org-capture-set-p= list entry) (org-capture-get-template) (org-capture-put :original-buffer or= ig-buf :original-file (or (buffer-file-name orig-buf) (and ... ...)) :origi= nal-file-nondirectory (and (buffer-file-name orig-buf) (file-name-nondirect= ory ...)) :annotation annotation :initial initial :return-to-wconf (current= -window-configuration) :default-time (or org-overriding-default-time (org-c= urrent-time))) (org-capture-set-target-location (and (equal goto 0) 'here))= (condition-case error (org-capture-put :template (org-capture-fill-templat= e)) ((error quit) (if ... ...) (error "Capture abort: %s" ...))) (setq org-= capture-clock-keep (org-capture-get :clock-keep)) (condition-case error (or= g-capture-place-template (eq ... ...)) ((error quit) (if ... ...) (set-wind= ow-configuration ...) (error "Capture template `%s': %s" ... ...))) (if (an= d (derived-mode-p ...) (org-capture-get :clock-in)) (progn (condition-case = nil ... ...))) (if (org-capture-get :immediate-finish) (progn (org-capture-= finalize)))))))) org-capture(nil) funcall-interactively(org-capture nil) command-execute(org-capture record) execute-extended-command(nil "org-capture" nil) funcall-interactively(execute-extended-command nil "org-capture" nil) command-execute(execute-extended-command) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Note that I also (erroneously) filed https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59618 Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24= .35, cairo version 1.17.6) of 2022-11-26 Package: Org mode version 9.5.5 (release_9.5.5 @ /usr/share/emacs/29.0.50/l= isp/org/) Also : Org mode version 9.6-pre (release_9.5.5-1156-g6db75d @ /home/arsen= /gnu/org-mode/lisp/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-archive-location "~/org/archive" org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n= (fn ENTRY)"] org-log-done 'time org-agenda-files '("~/org/notes.org") org-export-before-parsing-hook '(org-attach-expand-links) org-default-notes-file "~/org/notes.org" org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes #[0 "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2]) org-confirm-shell-link-function 'yes-or-no-p outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-before-write-hook '(org-agenda-add-entry-text) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-comman= d-activate) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-a= rg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("mu4e" :follow mu4e-org-open :store mu4e-org-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("https" :follow #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-metaup-hook '(org-babel-load-in-session-maybe) ) =2D-=20 Arsen Arsenovi=C4=87 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCY4J4J18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTlXYBAOStd3wyek5AtDabFxcZYd0OIqmv/xXPq4G+ cfZLPVhcAP9glI6o/creyuU4zXK160KRsbiOgEMqb8I/jbGahMqgCw== =YdeX -----END PGP SIGNATURE----- --==-=-=--