From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wJyfA9oirGXW8gAAe85BDQ:P1 (envelope-from ) for ; Sat, 20 Jan 2024 20:45:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wJyfA9oirGXW8gAAe85BDQ (envelope-from ) for ; Sat, 20 Jan 2024 20:45:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705779929; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Si+jhP43ttzll+7j7jkPVxtOXPKldQ8HwA2kXY6MO1o=; b=r46HSttrAO+83UQJxaDjE6dl7qMpRqHs7er49visitRchv9hfJBmpfq+QFebB9x49MQTbe RvFNiANwLmCxsd5eq7BGndLgJWwVMLARmZ8lyKiNKIwvEwOoSuAkh7lMFVz7/MWLrkZ7bi e4VdaiDMPn79W93Zg2fiuOl6VeI7RtgAh8C2kDkjtpzogp2rlquuYwZl+9e8yXV8bYVzsv Bnum7qix7Jyo0LHDJBshjWp0HHj2s0NG75wwawHAzcddZfWBHJrgbDrn0K18PsVriJnYNi jgHgfJWPAtJtxlOIeClpbSLcQ0+i4gy1L2a/WoIfXSrPAf1GQhOdwsTiVBjoJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705779929; a=rsa-sha256; cv=none; b=cd5V6SAwIqmLiFcORbemU+XxHUHBHPrNU/YSjdQBzZu6erSZYPaKK4CIJ5VmpogfJnlPeq UHmbvPm2Bly9cUjRs5SSY6UzAzQxakjGkTrJGwKI6yqKJLuTwh3gjj117sev2GBovcbmWp rhkgXHk9dLNsdjLNncqA+hCEqMexARiGCvaeQXqSSWxd0dw1FjATCf8V3WIModlvlW7ptc THofSmBJiVVan/jSDTCqBV2QdrVq33ivIQ+b3c90Bps3ZtoZttIqFSKYMzjfSlw0fJl5Hi 4RpAyhpP/yi8FaOnFM5tGUYFF9aqhe1EA+K/9rGWE8J+VvWYdNxtA4qZZXBRgw== 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 1F028191B4 for ; Sat, 20 Jan 2024 20:45:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRHGl-0000gS-AF; Sat, 20 Jan 2024 14:44:43 -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 1rRHGi-0000g3-St for emacs-orgmode@gnu.org; Sat, 20 Jan 2024 14:44:40 -0500 Received: from gauss.matem.unam.mx ([132.248.17.1]) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1rRHGf-0003XO-Mp for emacs-orgmode@gnu.org; Sat, 20 Jan 2024 14:44:40 -0500 Received: from localhost (unknown [201.103.93.251]) (Authenticated sender: omar) by gauss.matem.unam.mx (Postfix) with ESMTP id AC55754239 for ; Sat, 20 Jan 2024 13:44:30 -0600 (CST) From: =?utf-8?Q?Omar_Antol=C3=ADn_Camarena?= To: emacs-orgmode@gnu.org Subject: [BUG] org-open-at-point-global fails on links with multiline descriptions in org-mode buffers [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)] Date: Sat, 20 Jan 2024 13:44:30 -0600 Message-ID: <87o7df7psx.fsf@localhost> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=132.248.17.1; envelope-from=omar@matem.unam.mx; helo=gauss.matem.unam.mx X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: -4.38 X-Spam-Score: -4.38 X-Migadu-Queue-Id: 1F028191B4 X-Migadu-Scanner: mx12.migadu.com X-TUID: KmNcJx20mKmv Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ If you have an org link with a newline embedded in the description in an or= g-mode buffer and put point on it, org-open-at-point correctly follows the = link but org-open-at-point-global does not, it instead reports "No link fou= nd". (I have plenty of org links with newlines in the description, because = org-fill-paragraph tends to reformat links that way.) I understand that it is reasonable for org-open-at-point-global's regexp-ba= sed approach to only look for single-line links and am not suggesting this = be changed for non-org-mode buffers, but I would like to suggest that org-o= pen-at-point-global check to see if it is being run in an Org mode buffer a= nd if so just call org-open-at-point. That way users can bind org-open-at-p= oint-global and use that key binding everywhere including org-mode buffers = without loss of functionality compared to org-open-at-point. Emacs : GNU Emacs 29.1 (build 1, arm-unknown-linux-gnueabihf, GTK+ Version= 3.24.37, cairo version 1.16.0) of 2023-10-02, modified by Debian Package: Org mode version 9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp= /org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-agenda-start-on-weekday nil org-persist-after-read-hook '(org-element--cache-persist-after-read) org-directory "~/Notes" org-refile-allow-creating-parent-nodes 'confirm org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS = WIDTH)"] org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-= function org-latex-format-headline-function 'org-latex-format-headline-default-func= tion org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lin= es org-cycle-optimize-window-after-visibility-change org-cyc= le-display-inline-images) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-a= rg-expand) outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-metaup-hook '(org-babel-load-in-session-maybe) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-func= tion org-modern-mode-hook '(org-modern-mode-set-explicitly) org-export-before-parsing-hook '(org-attach-expand-links) org-special-ctrl-a/e t org-pretty-entities t org-agenda-loop-over-headlines-in-active-region nil org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-link-parameters '(("attachment" :follow org-attach-follow :complete or= g-attach-complete-link) ("eww" :follow org-eww-open :store org-eww-store-lin= k) ("rmail" :follow org-rmail-open :store org-rmail-sto= re-link) ("mhe" :follow org-mhe-open :store org-mhe-store-lin= k) ("irc" :follow org-irc-visit :store org-irc-store-li= nk :export org-irc-export) ("info" :follow org-info-open :export org-info-expor= t :store org-info-store-link :insert-description org-info-description-as-command) ("gnus" :follow org-gnus-open :store org-gnus-store-= link) ("docview" :follow org-docview-open :export org-docv= iew-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-= store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-expor= t :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) ("arXiv" :face org-link :follow (closure ((arxiv-url-format . "https://arxiv.org/abs/%s") (= arxiv-regexp . "^\\(.*?\\)\\(?:/\\(.*\\)\\)?$")) (path) (if (string-match arxiv-regexp path) (progn (browse-url (format arxiv-url-format (matc= h-string 1 path))))) ) :export (closure ((title-format-2 . "arXiv:%s [%s]") (title-format-= 1 . "arXiv:%s") (url-format . "https://arxiv.org/abs/%s") (path-r= egexp . "^\\(.*?\\)\\(?:/\\(.*\\)\\)?$")) (path description backend) (if (and (memq backend '(latex html)) (string-matc= h path-regexp path)) (progn (format (cond ((memq backend '(beamer latex)) (let nil = "\\href{%s}{%s}")) ((eq backend 'html) (let nil "%s"))) (format url-format (match-string 1 path)) (or description (format (cond ((memq backend '(beamer latex)) (let ni= l "\\texttt{%s}")) ((eq backend 'html) (let nil "%s"))) (format (if (match-string 2 path) title-forma= t-2 title-format-1) (match-string 1 path) (match-string 2 path)) ) ) ) ) ) ) ) ("id" :follow org-id-open) ("org-title" :store store= -org-title-link) ("file+sys") ("file+emacs") ("geo" :follow (closure (t) (link _) (osm (concat "g= eo:" link))) :store (closure (t) nil (if (eq major-mode 'osm-mode) (progn (apply 'org-l= ink-store-props (osm--org-link-props))))) ) ("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" ["mail= to" 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" br= owse-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-outline-path-complete-in-steps nil org-agenda-skip-timestamp-if-done t org-odt-format-headline-function 'org-odt-format-headline-default-function org-cycle-emulate-tab 'whitestart org-confirm-babel-evaluate nil org-export-async-init-file "~/.emacs.d/my-lisp/org-async-init.el" org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-archive-hook '(org-attach-archive-delete-maybe) org-publish-project-alist nil ; REDACTED org-html-format-inlinetask-function 'org-html-format-inlinetask-default-fu= nction outline-mode-hook '(beginend-outline-mode) org-confirm-shell-link-function 'yes-or-no-p org-capture-templates '(("d" "Daily" entry (file+olp+datetree "Daily.org")= "* TODO %?\n") ("r" "Reply" entry (file+olp+datetree "Daily.org") "* TODO Contestarle a %:fromname: [[%L][%:subject= ]]\n" :immediate-finish t) ("n" "Note" entry (file+olp "Notes.org" "Miscellan= eous") "* %?\n") ("t" "Math talk" entry (file+olp "Math.org" "Talks= ") "* [[%c][=F0=9F=92=BB]] %^{Speaker}, /%^{Title}/ = \n%^T\n%?") ("v" "Talk" entry (file+olp "Notes.org" "Talks") "= * [[%c][=F0=9F=92=BB]] %?\n") ("j" "Journal entry" plain (file+olp+datetree "Jou= rnal.org")) ("a" "arXiv paper" entry (file+olp "Math.org" "Rea= ding" "arXiv") "* %c\n" :immediate-finish t) ("l" "Link" entry (file+olp "Notes.org" "Miscellan= eous") "* %?%a\n") ("c" "Clipboard link" entry (file+olp "Notes.org" = "Miscellaneous") "* %?[[%c][%^{Title}]]") ("p" "Blood Pressure" table-line (file+olp "Health= .org" "Blood Pressure") "| %U | %^{LSys} | %^{LDia} | %^{LPul} | %^{RSys}= | %^{RDia} | %^{RPul} |" :immediate-finish t) ("e" "Emacs templates") ("s" "Someday" entry (file= "Someday.org") "* %?\n") ("ei" "Idea" entry (file+olp "Emacs.org" "Ideas") = "* %?\n") ("et" "Tip" entry (file+olp "Emacs.org" "Tips") "*= %?\n") ("eq" "Question" entry (file+olp "Emacs.org" "Ques= tions") "* %?\n") ("ep" "Package" entry (file+olp "Emacs.org" "Packa= ges") "* %?\n")) org-persist-before-write-hook '(org-element--cache-persist-before-write) org-agenda-skip-deadline-if-done t org-export-with-smart-quotes t org-hide-emphasis-markers t org-confirm-elisp-link-function 'yes-or-no-p org-entities-user '(("newline" "\\newline" nil "
" "\n" "\n" "=E2=8F=8E= ")) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-he= ader-arg-expand) org-metadown-hook '(org-babel-pop-to-session-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-hide-leading-stars t org-use-speed-commands t org-occur-hook '(org-first-headline-recenter) org-todo-keywords '((sequence "TODO" "|" "DONE" "NOPE") (sequence "WAIT(@)= ")) org-agenda-files '("~/Notes/Daily.org" "~/Notes/Work.org" "~/Notes/Math.or= g" "~/Notes/Home.org" "~/Notes/Health.org") org-agenda-before-write-hook '(org-agenda-add-entry-text) org-link-shell-confirm-function 'yes-or-no-p org-agenda-mode-hook '(beginend-org-agenda-mode) org-startup-indented t org-ql-completing-read-snippet-function 'org-ql-completing-read--snippet-s= imple org-src-lang-modes '(("latex-macros" . latex) ("inline-js" . javascript) (= "C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamenta= l) ("cpp" . c++) ("ditaa" . artist) ("desktop" . conf-desktop) ("dot" . fundamental) ("el= isp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . = sql) ("toml" . conf-toml)) org-agenda-skip-scheduled-if-done t org-auto-align-tags nil org-preview-latex-image-directory "~/.cache/ltximg/" org-latex-classes nil; REDACTED org-structure-template-alist '(("a" . "export ascii") ("c" . "center") ("C= " . "comment") ("e" . "example") ("E" . "export") ("h" . "export html") ("l" . "export latex"= ) ("q" . "quote") ("s" . "src") ("v" . "verse") ("thm" . "theorem") ("pf" . "proof") ("lem"= . "lemma") ("cor" . "corollary") ("def" . "definition") ("rem" . "remark") (= "exer" . "exercise") ("prop" . "proposition") ("el" . "src emacs-lisp")) org-html-format-headline-function 'org-html-format-headline-default-functi= on org-ellipsis "=E2=80=A6" org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function org-imenu-= get-tree] 2] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mod= e-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mod= e-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes add-p= retty-entities-hook org-tweak-syntax-table turn-off-visual-line-mode turn-on-auto-fill ediff-with-org= -show-all turn-on-org-cdlatex beginend-org-mode) org-babel-pre-tangle-hook '(save-buffer) org-tags-column 0 org-refile-use-outline-path 'file org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal org-capture-templates-contexts '(("r" ((in-mode . "gnus-article-mode") (in= -mode . "gnus-summary-mode")))) org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n= (fn ENTRY)"] org-link-from-user-regexp "REDACTED" org-log-into-drawer t org-latex-packages-alist '(("AUTO" "babel" t ("pdflatex"))) org-highlight-latex-and-related '(latex script entities) org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-speed-command-hook '(org-speed-command-activate org-babel-speed-comman= d-activate) org-refile-targets '((nil :maxlevel . 2) ("~/Notes/Notes.org" :maxlevel . = 2) ("~/Notes/Someday.org" :level . 0) ("~/Notes/Health.org" :maxlevel . 1) ("~/Notes/Home.o= rg" :maxlevel . 1) ("~/Notes/Work.org" :maxlevel . 2) ("~/Notes/Math.org= " :maxlevel . 2)) org-agenda-finalize-hook '(org-modern-agenda) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-link-elisp-confirm-function 'yes-or-no-p )