From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6OCPJKjSWWEM6wAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 17:56:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id xHc9IKjSWWHfYwAAB5/wlQ (envelope-from ) for ; Sun, 03 Oct 2021 15:56:24 +0000 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 D861416F71 for ; Sun, 3 Oct 2021 17:56:23 +0200 (CEST) Received: from localhost ([::1]:38156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX3qh-00020D-0d for larch@yhetil.org; Sun, 03 Oct 2021 11:56:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX3pJ-0001yA-QC for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 11:54:57 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:38647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mX3pI-0004s1-7z for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 11:54:57 -0400 Received: by mail-qt1-x831.google.com with SMTP id d8so3599762qtd.5 for ; Sun, 03 Oct 2021 08:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=KR1HgTO56oBpSyjiOYoqGpr4zj+dYTU6BVsMbJHZGkQ=; b=V5WaEtyOz6TJeUrUXkDVDAH70i1LnCuYOj+LvqWQ3DDsKKImFwozePZoFYj1qoba/O 0c62iwMwRnShoWuzmsKU4jqT4MMtYr0yxr5gof/2m1PKAYD9ZRoNOlR6+Yhoa66YLKtq CDvRlbLLJ5voOdKS9u1g8irJfDbJ8YWpiTLV5Akp9NDwXEYT/WKAjsaZvWAowXCyvNUe fCU9bQ4K67QvKXSP9XMUjawrydDxW2f38bSONHPgOsokr5FGJX7iEUGxImhEgaeb8OY5 Wbv0PlX3sowL2vrrADKGeDVSLfAgRiDW+y0MUnjljTlletF0GgvxvbrPK/Mv/8ntJ6VE H4fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=KR1HgTO56oBpSyjiOYoqGpr4zj+dYTU6BVsMbJHZGkQ=; b=t3BccaoRHqMbUHjYx/TFHz6XmjvCvMQAl4NKmuNduDWcTm7Vc3wE6LCtJ0vgBd6zWJ EtVOKsoyfrvvNBI6CvbVuuIcQbdraN36UG4SfYH8V2gt3+wXT1wuP9By+cQ9ydIk90Jj 51SY46o2fhHwxjtNd8c3IQLLbjJWhqdA+/7XLKhRpMZ76we9wzkwjtPB/+vPiKZaz9lu Lt+Pj6BQ2hvae75MIcZ/SIAQoeTFCUMgE//vbcFyJRtaOtzfod+M8gmymrAldDr18mWu AhgEPDn52JkjLGpj+nX0HPTXJMj/HV7R5k13y23TKq/PwTCxXBhqGKIpGvKRFzdqVsBr jNZg== X-Gm-Message-State: AOAM5300bSOOgPUxURIuwX2WMeHtFUiXHqWPofATguOt9SSquds28mfj 1x+MFz+0FPbNESuugqGM5K/2jvfIy8I= X-Google-Smtp-Source: ABdhPJycVn6yMG6fDrurDFHk+vUylchr7Zdbf5nj4h5pIGa+EWTmbN33O6pK11Xg3KChP6IDfTY/MA== X-Received: by 2002:a05:622a:60a:: with SMTP id z10mr8808663qta.209.1633276494362; Sun, 03 Oct 2021 08:54:54 -0700 (PDT) Received: from georgia ([2600:1700:f90:9da0::5bf]) by smtp.gmail.com with ESMTPSA id g13sm6212534qkk.22.2021.10.03.08.54.53 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Oct 2021 08:54:53 -0700 (PDT) From: Tom Ed White To: Ihor Radchenko Subject: Re: Unable to follow gnus links References: <871r59rjh8.fsf@fiddlebike.us> <8735pi7bfx.fsf@localhost> Date: Sun, 03 Oct 2021 11:54:52 -0400 In-Reply-To: <8735pi7bfx.fsf@localhost> (Ihor Radchenko's message of "Sun, 03 Oct 2021 16:35:30 +0800") Message-ID: <874k9ycddf.fsf@fiddlebike.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=wtomed@gmail.com; helo=mail-qt1-x831.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-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org, Tom Ed White Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633276584; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KR1HgTO56oBpSyjiOYoqGpr4zj+dYTU6BVsMbJHZGkQ=; b=CARig292Thf8S6X55pHt/7oDv0t5dotn4rQ8eXG0uIVvin3ZAFdsV6iDk1qXpusy5i9Gdn 2YB90mQCfSen+J+ec0ZXio4P60cEsY3LhK5P7ZHUAY6qaUZSD609aaZQPL0A6LzhHspmf8 7mXGvFpS/CfJxuURj8by81cJdZ2BkcWy0wQVqXqDQ4U2B3QpXxWZ/IgTbuaF9XQJTeeiUa ZERYZZkAhDCN16+w1oWCKJnfaRnhCvN7YKVe2tzZcyAqxMQBvU6K/AGp2+dntuPFfZeRJY w23yCvCrRPk18Mzt8HtmdIlUkAeJkg3AO49S+d2GAA6X7SfWEgiWwba74cJihA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633276584; a=rsa-sha256; cv=none; b=H753mFvfihrk+yCiyjeGGz7wYC5s5gjCYj1W+9lIUotNJdo2XTHfeQcgsvHlTqspMR5KKv u5B8be3K3LvAXBPD9WBMmXFywQGw72raxGK16GrXEKbMA0g+O6Wn/VCGuvfl9SE9JOnQwZ fthZR1jRlcBBVJ7gLpkVvjh/xblbjeJc99jjidDpwGeA9wZl/q0tTCJl5uUWuaQaJNzW9B rVy2kkTVJN5MEYLiOUYfwgjkzaQFBnviJk8DTXHC1Rt8YA/BXpDSgUl1ygqXsOMWDVefw2 vqvni6fuBVCcVAh5TxrHz6Psvp9H4yuvAlpAEriW6a4ZyNvZf52MV9+2poLNOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=V5WaEtyO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=V5WaEtyO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D861416F71 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: c3YTS6r2dkp4 Ihor Radchenko writes: > Tom Ed White writes: > >> Following gnus links in org fails with the message: >> >> funcall: Wrong number of arguments: ((t) (path _) "Follow the Gnus >> message or folder link specified by PATH." (if (string-match >> "\\`\\([^#]+\\)\\(#\\(.*\\)\\)?" path) nil (error "Error in Gnus link >> %S" path)) (let ((group (match-string-no-properties 1 path)) (article >> (match-string-no-properties 3 path))) (org-gnus-follow-link group >> article))), 1 > > This should not happen. Do you open the link using org-link-open? Can > you share backtrace after M-x debug-on-entry org-gnus-open? > > Best, > Ihor I was able to fix the problem for the time being by changing the arguments to: (defun org-gnus-open (path &rest _) The keystroke I use is C-c C-o, which runs org-open-at-point which is in org.el. Regards, Tom Ed White Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1) org-gnus-open("nnmaildir+Old Fiddlebike:Inbox#CAJ6ZS8+TP6gVGckVQA-e1-5cdKfQSnKG8Gm69o8emu1ZYq5+Eg@mail.gmail.com") funcall(org-gnus-open "nnmaildir+Old Fiddlebike:Inbox#CAJ6ZS8+TP6gVGckVQA-e1-5cdKfQSnKG8Gm69o8emu1ZYq5+Eg@mail.gmail.com") (cond ((equal type "file") (if (string-match "[*?{]" (file-name-nondirectory path)) (dired path) (let* ((option (org-element-property :search-option link)) (app (org-element-property :application link)) (dedicated-function (org-link-get-parameter (if app ... type) :follow))) (if dedicated-function (funcall dedicated-function (concat path (and option ...))) (apply #'org-open-file path (cond (arg) (... ...) (... ...)) (cond (... nil) (... ...) (t ...))))))) ((functionp (org-link-get-parameter type :follow)) (funcall (org-link-get-parameter type :follow) path)) ((member type '("coderef" "custom-id" "fuzzy" "radio")) (if (run-hook-with-args-until-success 'org-open-link-functions path) nil (if (not arg) (org-mark-ring-push) (switch-to-buffer-other-window (org-link--buffer-for-internals))) (let ((destination (save-excursion (save-restriction ... ... ...)))) (if (and (<= (point-min) destination) (>= (point-max) destination)) nil (widen)) (goto-char destination)))) (t (browse-url-at-point) )) (let ((type (org-element-property :type link)) (path (org-element-property :path link))) (cond ((equal type "file") (if (string-match "[*?{]" (file-name-nondirectory path)) (dired path) (let* ((option (org-element-property :search-option link)) (app (org-element-property :application link)) (dedicated-function (org-link-get-parameter ... :follow))) (if dedicated-function (funcall dedicated-function (concat path ...)) (apply #'org-open-file path (cond ... ... ...) (cond ... ... ...)))))) ((functionp (org-link-get-parameter type :follow)) (funcall (org-link-get-parameter type :follow) path)) ((member type '("coderef" "custom-id" "fuzzy" "radio")) (if (run-hook-with-args-until-success 'org-open-link-functions path) nil (if (not arg) (org-mark-ring-push) (switch-to-buffer-other-window (org-link--buffer-for-internals))) (let ((destination (save-excursion ...))) (if (and (<= ... destination) (>= ... destination)) nil (widen)) (goto-char destination)))) (t (browse-url-at-point)))) org-link-open((link (:type "gnus" :path "nnmaildir+Old Fiddlebike:Inbox#CAJ6ZS8+TP6gVGckVQA..." :format bracket :raw-link "gnus:nnmaildir+Old Fiddlebike:Inbox#CAJ6ZS8+TP6gVG..." :application nil :search-option nil :begin 19723 :end 19880 :contents-begin 19829 :contents-end 19878 :post-blank 0 :parent (headline (:raw-value "Debug gnus org links [[gnus:nnmaildir+Old Fiddl..." :begin 19691 :end 19882 :pre-blank 0 :contents-begin nil :contents-end nil :level 2 :priority nil :tags nil :todo-keyword #("TODO" 0 4 (face org-todo org-category "personal" fontified t)) :todo-type todo :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 19691 :title "Debug gnus org links [[gnus:nnmaildir+Old Fiddl...")))) nil) org-open-at-point(nil) funcall-interactively(org-open-at-point nil) call-interactively(org-open-at-point nil nil) command-execute(org-open-at-point)