From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: recently org-attach change invoke method caused error Date: Wed, 12 Feb 2020 16:18:14 +0800 Message-ID: <8736bgdxrt.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35120) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1nEE-0002qP-Gc for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 03:18:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1nED-0003gB-0k for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 03:18:38 -0500 Received: from [112.17.247.90] (port=61795 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j1nE8-0003RD-Dx for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 03:18:36 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Here is the error: #+begin_example Debugger entered--Lisp error: (error "Format specifier doesn=E2=80=99t matc= h argument type") format-message("No such attachment command: %c" nil) apply(format-message ("No such attachment command: %c" nil)) error("No such attachment command: %c" nil) (if (commandp command t) (call-interactively command) (error "No such att= achment command: %c" c)) (let ((command (cl-some #'(lambda (entry) (and (memq c ...) (nth 1 entry)= )) org-attach-commands))) (if (commandp command t) (call-interactively comm= and) (error "No such attachment command: %c" c))) (save-restriction (widen) (goto-char (or --mpom (point))) (org-back-to-he= ading-or-point-min t) (save-excursion (let ((wconfig (current-window-config= uration))) (unwind-protect (progn (if org-attach-expert nil (switch-to-buff= er-other-window (get-buffer-create "*Org Attach*")) (erase-buffer) (setq cu= rsor-type nil header-line-format "Use C-v, M-v, C-n or C-p to navigate.") (= insert (concat "Attachment folder:\n" ... ... "\n\n" ...))) (org-fit-window= -to-buffer (get-buffer-window "*Org Attach*")) (let ((msg ...) key) (messag= e msg) (while (and ... ...) (org-scroll key t))) (and (get-buffer "*Org Att= ach*") (kill-buffer "*Org Attach*"))) (set-window-configuration wconfig))))= (let ((command (cl-some #'(lambda (entry) (and ... ...)) org-attach-comman= ds))) (if (commandp command t) (call-interactively command) (error "No such= attachment command: %c" c)))) (save-excursion (save-restriction (widen) (goto-char (or --mpom (point)))= (org-back-to-heading-or-point-min t) (save-excursion (let ((wconfig (curre= nt-window-configuration))) (unwind-protect (progn (if org-attach-expert nil= (switch-to-buffer-other-window ...) (erase-buffer) (setq cursor-type nil h= eader-line-format "Use C-v, M-v, C-n or C-p to navigate.") (insert ...)) (o= rg-fit-window-to-buffer (get-buffer-window "*Org Attach*")) (let (... key) = (message msg) (while ... ...)) (and (get-buffer "*Org Attach*") (kill-buffe= r "*Org Attach*"))) (set-window-configuration wconfig)))) (let ((command (c= l-some #'(lambda ... ...) org-attach-commands))) (if (commandp command t) (= call-interactively command) (error "No such attachment command: %c" c))))) (save-excursion (if (markerp --mpom) (progn (set-buffer (marker-buffer --= mpom)))) (save-excursion (save-restriction (widen) (goto-char (or --mpom (p= oint))) (org-back-to-heading-or-point-min t) (save-excursion (let ((wconfig= (current-window-configuration))) (unwind-protect (progn (if org-attach-exp= ert nil ... ... ... ...) (org-fit-window-to-buffer ...) (let ... ... ...) (= and ... ...)) (set-window-configuration wconfig)))) (let ((command (cl-some= #'... org-attach-commands))) (if (commandp command t) (call-interactively = command) (error "No such attachment command: %c" c)))))) (let ((--mpom marker)) (save-excursion (if (markerp --mpom) (progn (set-b= uffer (marker-buffer --mpom)))) (save-excursion (save-restriction (widen) (= goto-char (or --mpom (point))) (org-back-to-heading-or-point-min t) (save-e= xcursion (let ((wconfig ...)) (unwind-protect (progn ... ... ... ...) (set-= window-configuration wconfig)))) (let ((command (cl-some ... org-attach-com= mands))) (if (commandp command t) (call-interactively command) (error "No s= uch attachment command: %c" c))))))) (let ((dir (org-attach-dir nil 'no-fs-check)) c marker) (if (eq major-mod= e 'org-agenda-mode) (progn (setq marker (or (get-text-property (point) 'org= -hd-marker) (get-text-property (point) 'org-marker))) (if marker nil (error= "No item in current line")))) (let ((--mpom marker)) (save-excursion (if (= markerp --mpom) (progn (set-buffer (marker-buffer --mpom)))) (save-excursio= n (save-restriction (widen) (goto-char (or --mpom (point))) (org-back-to-he= ading-or-point-min t) (save-excursion (let (...) (unwind-protect ... ...)))= (let ((command ...)) (if (commandp command t) (call-interactively command)= (error "No such attachment command: %c" c)))))))) org-attach() funcall-interactively(org-attach) call-interactively(org-attach nil nil) command-execute(org-attach) #+end_example This might a bug in commit "933a9ee99 * | org-attach.el: Enhance dispatch b= uffer navigation". I'm not very sure. I git bisect running on this commit. =2D --=20 [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 =20=20=20=20=20=20 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5DtMYUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsOw0AgAkU75aR/VEiVmdqYDAD3BWZiJ3B1w L61z4iVAogLI5IuJoD/SsOSOKLRE/Ml9HnNMW13htBEXALOHHD2cJwcQuXONji7Y W+pIiLoEViQAMqVmxEQu27twwOF7hOR6hWqFTidwS3XU0/ucrXEE146Xnbb5s9l5 590GMVBXVZWB3+iYP0Sb8+5OzZUU3rkUhMbY9fp0nI3SHalmiXJ3FB5CNCf+w3KY ZT+G4Zs/hiLFI3vmPxgRnabHdeC02DYe6Dj/DwdZBBn56ETow2oHeTlNGLsGjc3E JGngoQLrT3Nwnj1IiN23VIiUOlxauRLYHg9j/Fnu9f9Jb/jye2bRCBFk6Q=3D=3D =3DmCHq =2D----END PGP SIGNATURE-----