From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id CNCPODFdg2eTbAEAqHPOHw:P1 (envelope-from ) for ; Sun, 12 Jan 2025 06:12:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id CNCPODFdg2eTbAEAqHPOHw (envelope-from ) for ; Sun, 12 Jan 2025 07:12:02 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=googlemail.com header.s=20230601 header.b="H/f7M7GU"; 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"; dmarc=pass (policy=quarantine) header.from=googlemail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736662321; 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:dkim-signature; bh=DP4WKXXOO3offOHhdJPXdfDvlApjFJx/q3JVkRZ5cNg=; b=DK1XY+TGesNL3NqJY+jPNISV/IRoBj5eIBPD1JOwdWntVVOuvqRp9OPkXt+gQ9wOwk6H7p 5Fv3HovlYwQByW+vpKzHvrN7eZdb1q7NztiUJOMHaQ3+p0xQFsq8fFswrH2cgjo3le35J4 0mO0FaUHQXNzQKhD7FYZku1S8Sgj11n8syfCwCm62WEaodM1clrgbhfs3MzdblSVySaue9 Na8+AYKX7Skb/7l200F+Lszcrg2w5QXk3bl9VPib3yKCrg4NyaqvuYzuI67Ehz06vuDNQv D9XJ4Dle7gD6D+2a9Mr5TXr5D8BW4OBEc/Fc0cIyJFrpzxg9QnVOAixjzmi8Ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=googlemail.com header.s=20230601 header.b="H/f7M7GU"; 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"; dmarc=pass (policy=quarantine) header.from=googlemail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736662321; a=rsa-sha256; cv=none; b=T7+65ozWi0deP4bLO1vuN0vTHALevN/nY9eYJbE4/x+owjCjRu7wvQlNHAFZZPfO/KRzS2 6jAi5nwJ6ZJNr/grJ2NOexjnpjy79V5RGAZZbxoHAHQUTZINnK1WFG6J4+RvyhvPv27pK3 1ASWSGfWlhxAgpj3Z1nvtvqog8nqpOmb59SrPzns9shFiry+hV957Ug8qvBOpuAPoUqCFg 6OhxCebQ/wddxCRqc/ZoEZ9TT4jSv8Pg1gIFR/Qf4gzWVDLUd3UPaz+gmYzJNrH1eLdWG1 oLtppHyybqiYDeS+ahQFoN2l7HfKhtSofLZkp9pFp8SDC5bdv761udUI50CGyA== 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 A55B84FC7 for ; Sun, 12 Jan 2025 07:12:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tWrBi-000336-Ao; Sun, 12 Jan 2025 01:11:06 -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 1tWjf7-0001oO-9P for emacs-orgmode@gnu.org; Sat, 11 Jan 2025 17:08:57 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tWjf5-0004sv-6p for emacs-orgmode@gnu.org; Sat, 11 Jan 2025 17:08:57 -0500 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5d3f28881d6so4539775a12.1 for ; Sat, 11 Jan 2025 14:08:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1736633333; x=1737238133; darn=gnu.org; h=content-transfer-encoding:content-language:subject:to:user-agent :mime-version:date:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=DP4WKXXOO3offOHhdJPXdfDvlApjFJx/q3JVkRZ5cNg=; b=H/f7M7GUAeE+egpWPJk0Vr4QPzXrLXDSriTPt42v6Z0oKCBTysrzZ0EiqxrGg1N9V6 46+c64NZRA0fCGe/jiCmhump3KYez62up7786csLRi/4G+k9OqibSN4xdpcKY9Sj1iKJ +4zZgB6z577WYNMQXYuC5Z9tiNFPDUGCuR5Ht7VlXp5jnQt42gzTNgWHikdTRljLAxsc sPDe9hOiaFgsTvpstc5v/Qk/UwFVb6V0uz+e9ylvZ2Dvx2gt6ULaABxWtt4omIbzqV2O grRh0PPpnnrOIhFib8TjGbHWEOtDpQhymwt9LdwamJCjw1fkEgB56T3IIhAH/anYDapf wGsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736633333; x=1737238133; h=content-transfer-encoding:content-language:subject:to:user-agent :mime-version:date:message-id:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DP4WKXXOO3offOHhdJPXdfDvlApjFJx/q3JVkRZ5cNg=; b=ZEb3mnirVDH7J/6G3RtzbBgigFWfuUmIivSKO88t4iWCczz16jchNzMFaU6Ep0enNs U9GHl5eQ1Ld3iXdMJo66Kwq8CZhstBEODCQiSD3pelr53ivID8Z6dlYmW3UcB3d7iCJR J8jl6Ypikbl62gYBgmVfcYTUh00qXZlNNRYNAyNBKETkJUaOTNOVUhAfRNriRZ7Nwjyx 9ml74xhKSPlTpR3XyYrmzCNgfrQ/1CetkKaA+1bAkTGQz9b2MoySV9XftZckHOTNwxX7 TTrlzqag/+gdHxDgKuzAHs0k8VhYyVTkcOlOoyRG3d31lXTzAVNKXOYjY0II2XETg5Pq jieQ== X-Gm-Message-State: AOJu0YwZx8E6sP0bpnJQRZF1N5HtQ7hR9WadAdUgCFWxBVbZlZlfjewD I3nxSz9diFQ5MQ+6QewgneVSMXceXbdQeLWOd84mfUERr7FN X-Gm-Gg: ASbGnctakeqMGqqv/dxk9941OaXZZ3Y9XUFKbBb3MU9gEPTcRwrLY+VXfC6jSdE+EC9 jqx7jhlgXl9Tq2qGKCXqnDfyDSxsp6sgOx4MotU0idqKxGV+MCMjrklOSQZiyNkX6xFzaPTUEnM M0Sh/1jm4YFPxHP6genRwxeDstpLLiV+aVOMW6LJTplTre8VD6Hn2CmOmeJG4tGVV7y7EihOGwr O4HHGrUSdC30g7GIz1CO6P48AAjo7S+CChzK1QVedJd7UCyPO79sN+fTo2WM59H2ssr+iL2d9p+ 0HPvZVvlqeLDUrT1nt5Mbb8KU6BYVWYZyF1jEd6KdUauT6bGxv9UhNk6OCaolCx3gyT8razU/tA PJLogYw== X-Google-Smtp-Source: AGHT+IEmDdnyUG+cKZ+Rm8XTXpVkHAXQ/Ip4DH8+aHxT4w71C+Ia6X3MbyFW0iKgqmZ5EfNZLFmGeQ== X-Received: by 2002:a05:6402:3549:b0:5d0:e73c:b7f0 with SMTP id 4fb4d7f45d1cf-5d972e70945mr35363342a12.28.1736633332459; Sat, 11 Jan 2025 14:08:52 -0800 (PST) Received: from ?IPV6:2003:cf:c71d:2a00:c01:9b0f:1028:c083? (p200300cfc71d2a000c019b0f1028c083.dip0.t-ipconnect.de. [2003:cf:c71d:2a00:c01:9b0f:1028:c083]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab2c905ed3esm309820566b.33.2025.01.11.14.08.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Jan 2025 14:08:51 -0800 (PST) From: Christoph X-Google-Original-From: Christoph Message-ID: <60fe1040-34f7-42fe-a791-65d0f9e9e41f@gmail.com> Date: Sat, 11 Jan 2025 23:08:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: emacs-orgmode@gnu.org Subject: [BUG] Bug with org-open-at-point [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)] Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=rhogez@googlemail.com; helo=mail-ed1-x534.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, 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-Mailman-Approved-At: Sun, 12 Jan 2025 01:11:03 -0500 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-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.15 X-Spam-Score: -6.15 X-Migadu-Queue-Id: A55B84FC7 X-TUID: 7+lMP2csxuKo How to reproduce: Start Emacs -q and load an org-mode file. Try to open a file link in that org file like file:abc.odt or file:abc.pdf with org-open-at-point. Expected behavior: Emacs opens the file in the external application, i.e. Libre Office or a pdf viewer like evince. What happens: Emacs will always use its internal document viewer. Using C-u or C-u C-u as a prefix does not change the situation. However, according to the documentation C-c C-o should open the link with the external application. If the file link does not have a text part (like [[abc.odt][My odt]]) browse-url-at-point will open the file with Libre Office as expected. However, if the link has a text part, it will assume a http link and give an error. ------------------------------------------------------------------------ Emacs : GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) Package: Org mode version 9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/) current state: ============== (setq 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-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-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) 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-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-persist-directory "/tmp/org-persist-nObh7v" org-fold-core-isearch-open-function 'org-fold--isearch-reveal org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-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 :insert-description org-info-description-as-command) ("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) ("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) )