From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aNkxBYrRHmC1YgAA0tVLHw (envelope-from ) for ; Sat, 06 Feb 2021 17:27:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iLrzAIrRHmAgOQAAB5/wlQ (envelope-from ) for ; Sat, 06 Feb 2021 17:27:38 +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 C4E4B940251 for ; Sat, 6 Feb 2021 17:27:37 +0000 (UTC) Received: from localhost ([::1]:47754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8RMu-0003zK-NH for larch@yhetil.org; Sat, 06 Feb 2021 12:27:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7i8R-0003Q4-DU for emacs-orgmode@gnu.org; Thu, 04 Feb 2021 12:09:39 -0500 Received: from mail-ej1-f53.google.com ([209.85.218.53]:35983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7i8P-0000gR-FQ for emacs-orgmode@gnu.org; Thu, 04 Feb 2021 12:09:39 -0500 Received: by mail-ej1-f53.google.com with SMTP id lg21so6668297ejb.3 for ; Thu, 04 Feb 2021 09:09:36 -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=RKfzc/6oeLAyu22ym+5mRZucPUhAD6dXMqgAqAcn6LE=; b=cImXiTKbB2Dokv+D/gfce5OfIF6DEQ61eIJT3O910mOT+HlFdLamloBkMN9vuLp7/m pc6yfgBAbGwQfAcC7sdSr2aHwfbZXYxnbP0zUgFw98JG8LCaJx/qlh+n6vFUnFjWBzXm PeIZhvaanXOG4WwrflCoINUDs5iRefthJWaivmmNyWBILLm9JkBErhXAJFUPXENcR4fK muDF+M3qWJF208u32XVOa8F6ltb/7qoLRQxu0MYYkMW0gyDDFv9HxFSnkPZ1mtMYIEJ6 XOuAS3h2wGZAHUkzZ6O8yCFR9O76DqXTu4CxRVYWGyko6fU7+hQUnne6bpSrNtBCvRN8 1ZNQ== X-Gm-Message-State: AOAM5330QFDuL0FjC1yIwL9RP81xsniKvGYrMUhNLx5GXd/ftP1sSI07 Yfgc+LlDSm7rJtaHcvMFvDvQpmZiTnC9hb+foMlAdmNho0U= X-Google-Smtp-Source: ABdhPJw6bY4gn4RSGlTCW5E30R+EFKs5Dtbhs9q5d/Nt+adeBSz3BzmIW/MS/uXlUNU2TflRmEKApou8+NAcVD+75GY= X-Received: by 2002:a17:906:15c7:: with SMTP id l7mr103394ejd.226.1612458575021; Thu, 04 Feb 2021 09:09:35 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Simon_Bra=C3=9F?= Date: Thu, 4 Feb 2021 18:08:59 +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="000000000000944c9105ba85c4a3" Received-SPF: pass client-ip=209.85.218.53; envelope-from=brsimon91@googlemail.com; helo=mail-ej1-f53.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.25, 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-Mailman-Approved-At: Sat, 06 Feb 2021 12:26:16 -0500 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: -1.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: C4E4B940251 X-Spam-Score: -1.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1NaZ8DfGkr9x --000000000000944c9105ba85c4a3 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") =E2=80=A6 #+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/) --000000000000944c9105ba85c4a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I've tried to open an attached file (ad= ded 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)
=C2=A0 org-attach-fol= low("1805.00020.pdf")
=C2=A0 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 :pa= rent (paragraph (:begin 717 :end 819 :contents-begin 717 :contents-end 819 = :post-blank 0 :post-affiliated 717 :parent (item (:bullet "- " :b= egin 708 :end 819 :contents-begin 717 :contents-end 819 :checkbox off :coun= ter nil :structure (... ... ... ... ...) :pre-blank 0 :post-blank 0 :post-a= ffiliated 708 :tag nil :parent (plain-list ...))))))) nil)
=C2=A0 org-op= en-at-point(nil)
=C2=A0 funcall-interactively(org-open-at-point nil)
= =C2=A0 call-interactively(org-open-at-point nil nil)
=C2=A0 command-exec= ute(org-open-at-point)
#+end_example

After adding =3D&optiona= l=3D to the definition of =3Dorg-attach-follow=3D, and
reloading org-mod= e (uncompiled) I could get through org-attach-follow.
But, then I hit an= other issue:

#+begin_example
Debugger entered--Lisp error: (void-= function org-link-open-as-file)
=C2=A0 (org-link-open-as-file (org-attac= h-expand file) arg)
=C2=A0 org-attach-follow("0906.4487.pdf")<= br>=C2=A0 =E2=80=A6
#+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 =C2=A0: GNU Emacs 27.1 (build = 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3)
=C2= =A0of 2020-08-28
Package: Org mode version =C2=A0( @ /home/sbrass/.emacs= .d/elpa/org-9.4.4/)
--000000000000944c9105ba85c4a3--