From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aD6bCYqfHmAxNwAA0tVLHw (envelope-from ) for ; Sat, 06 Feb 2021 13:54:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eOV0BYqfHmBTCgAA1q6Kng (envelope-from ) for ; Sat, 06 Feb 2021 13:54:18 +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 A93F09401DF for ; Sat, 6 Feb 2021 13:54:17 +0000 (UTC) Received: from localhost ([::1]:38850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8O2R-0000d9-Bx for larch@yhetil.org; Sat, 06 Feb 2021 08:54:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8O1k-0000cj-0i for emacs-orgmode@gnu.org; Sat, 06 Feb 2021 08:53:32 -0500 Received: from mail-ej1-f49.google.com ([209.85.218.49]:46852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8O1h-0003MV-LV for emacs-orgmode@gnu.org; Sat, 06 Feb 2021 08:53:31 -0500 Received: by mail-ej1-f49.google.com with SMTP id w2so17383927ejk.13 for ; Sat, 06 Feb 2021 05:53:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Ssxb0nvsomac3zWOHYjtUy/IZD7lTAXYc+xCZZDQQqg=; b=h4xEF4aX7YxRC9miRU1jrSfpVYtjkftpuF1kWrcFC+c3JscwNpixjS+I+cYKsQnjbS pljs3XFwGvZVKDw/XGWTNLjzaIVkRvuDA1O58Xc8q0BCqmDUR9yUEdizVMc9pl9fM+mG U/oXENT/qJA5rPNmzZfvRMPdg6DY3pUDEoIOlea6V3ygilR2zypJx+w1oK1KRDKbhiZK QRR++c4zGxXDLQ4Fvq3ckhb/KHKbd+S9lWYMf/4RhNwy4HufQPiqGoJN7zzm/+tbBZGa cAIAVDsou6qCNdDXyqwIzWVrn8XNxoaBYDti2krsxRr0Wi1KI5DsEAvETfwozzxYmJug I5Xg== X-Gm-Message-State: AOAM5309Cw6AZrtwh3GPZwFurmcGHcd11CKWODu5nKysFsTQrHQQdRYg rk/a2MnKukqHt17FXqK+jCY/r5jRqkJkUvLORdafsF87rwA= X-Google-Smtp-Source: ABdhPJxLfuN26UfDfHnyCch6TluIpWKsKrgObpimtKuQThcq+sR/Oxc4K+Jlt0b/T4cC8mKpXjn6dthgzkMPew1BY4w= X-Received: by 2002:a17:906:c1d9:: with SMTP id bw25mr8744572ejb.452.1612619606581; Sat, 06 Feb 2021 05:53:26 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Simon_Bra=C3=9F?= Date: Sat, 6 Feb 2021 14:52:50 +0100 Message-ID: Subject: Bug: org-attach-follow with wrong-number-of-arguments [ ( @ /home/sbrass/.emacs.d/elpa/org-9.4.4/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000cee6ca05baab425c" Received-SPF: pass client-ip=209.85.218.49; envelope-from=brsimon91@googlemail.com; helo=mail-ej1-f49.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.26 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmx.de (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: A93F09401DF X-Spam-Score: -2.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: O+25GroYGqY3 --000000000000cee6ca05baab425c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all, I've tried to open an attached file (added with org-attach-attach), however= , when I try to open it with C-c C-o I got the following backtrace: #+begin_example Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1) org-attach-follow("1805.00020.pdf") org-link-open((link (:type "attachment" :path "1805.00020.pdf" :format bracket :raw-link "attachment:1805.00020.pdf" :application nil :search-option nil :begin 717 :end 818 :contents-begin 746 :contents-end 816 :post-blank 0 :parent (paragraph (:begin 717 :end 819 :contents-begin 717 :contents-end 819 :post-blank 0 :post-affiliated 717 :parent (item (:bullet "- " :begin 708 :end 819 :contents-begin 717 :contents-end 819 :checkbox off :counter nil :structure (... ... ... ... ...) :pre-blank 0 :post-blank 0 :post-affiliated 708 :tag nil :parent (plain-list ...))))))) 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) #+end_example After adding =3D&optional=3D to the definition of =3Dorg-attach-follow=3D and reloading org-mode (uncompiled) I could get through org-attach-follow. But, then I hit another issue: #+begin_example Debugger entered--Lisp error: (void-function org-link-open-as-file) (org-link-open-as-file (org-attach-expand file) arg) org-attach-follow("0906.4487.pdf") =3DE2=3D80=3DA6 #+end_example After an =3Deval-defun=3D on =3Dorg-link-open-as-file=3D, I finally could open my attachment. I used =3Demacs -q=3D, installed org freshly and used a clean org-file with only a single header entry and the attachment to reproduce my issue. Cheers, Simon Bra=C3=9F Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28 Package: Org mode version ( @ /home/sbrass/.emacs.d/elpa/org-9.4.4/) --000000000000cee6ca05baab425c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,
I've tried to open an attached file =
(added with org-attach-attach), however,
when I try to open it with C-c C-o I got the following backtrace:

#+begin_example
Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1)
  org-attach-follow("1805.00020.pdf")
  org-link-open((link (:type "attachment" :path "1805.00020.=
pdf" :format
bracket :raw-link "attachment:1805.00020.pdf" :application nil
:search-option nil :begin 717 :end 818 :contents-begin 746 :contents-end
816 :post-blank 0 :parent (paragraph (:begin 717 :end 819 :contents-begin
717 :contents-end 819 :post-blank 0 :post-affiliated 717 :parent (item
(:bullet "- " :begin 708 :end 819 :contents-begin 717 :contents-e=
nd 819
:checkbox off :counter nil :structure (... ... ... ... ...) :pre-blank 0
:post-blank 0 :post-affiliated 708 :tag nil :parent (plain-list ...)))))))
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)
#+end_example

After adding =3D&optional=3D to the definition of =3Dorg-attach-follow=
=3D
and
reloading org-mode (uncompiled) I could get through org-attach-follow.
But, then I hit another issue:

#+begin_example
Debugger entered--Lisp error: (void-function org-link-open-as-file)
  (org-link-open-as-file (org-attach-expand file) arg)
  org-attach-follow("0906.4487.pdf")
  =3DE2=3D80=3DA6
#+end_example

After an =3Deval-defun=3D on =3Dorg-link-open-as-file=3D, I finally could
open my attachment.

I used =3Demacs -q=3D, installed org freshly and used a clean org-file with
only a single header entry and the attachment to reproduce my issue.

Cheers,
Simon Bra=C3=9F

Emacs  : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.22, cairo version 1.17.3)
 of 2020-08-28
Package: Org mode version  ( @ /home/sbrass/.emacs.d/elpa/org-9.4.4/)

--000000000000cee6ca05baab425c--