all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Christopher M. Miles" <numbchild@gmail.com>
To: Emacs Help List <help-gnu-emacs@gnu.org>
Subject: command `yank-meida` raise error (wrong-type-argument sequencep TARGETS)
Date: Wed, 05 Jun 2024 13:14:37 +0800	[thread overview]
Message-ID: <665ff443.170a0220.381ba.16cd@mx.google.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2137 bytes --]


When I execute command `yank-media` in Org-mode buffer to paste the
copied image from web browser.

I meet the bellowing error (I got it through `toggle-debug-on-error`):

#+begin_example
Debugger entered--Lisp error: (wrong-type-argument sequencep TARGETS)
  mapc(#f(compiled-function (elt) #<bytecode 0x1a7575f8530bcbb9>) TARGETS)
  seq-do(#f(compiled-function (elt) #<bytecode 0x1a7575f8530bcbb9>) TARGETS)
  #f(compiled-function #'sequence #<bytecode 0x16733c95d11ee092>)(#f(compiled-function (elt) #<bytecode 0x1b8299eb0aa0c2e9>) TARGETS)
  apply(#f(compiled-function #'sequence #<bytecode 0x16733c95d11ee092>) #f(compiled-function (elt) #<bytecode 0x1b8299eb0aa0c2e9>) TARGETS nil)
  seq-map(#f(compiled-function (elt) #<bytecode 0x1b8299eb0aa0c2e9>) TARGETS)
  seq-filter(#f(compiled-function (type) #<bytecode 0xaadcd526d212301>) TARGETS)
  yank-media--find-matching-media("x/special-\\(?:gnome|KDE|mate\\)-files")
  #f(compiled-function () (interactive nil) #<bytecode 0x91d13bd79da85fd>)()
  apply(#f(compiled-function () (interactive nil) #<bytecode 0x91d13bd79da85fd>) nil)
  yank-media()
  funcall-interactively(yank-media)
  call-interactively(yank-media nil nil)
  command-execute(yank-media)
#+end_example

For a test, I copy an image in Arc web browser:
source image URL: https://img1.doubanio.com/view/photo/raw/public/p2895245009.jpg

My environment:
- GNU Emacs 30.0.50 (build 2, aarch64-apple-darwin23.4.0, NS appkit-2487.50 Version 14.4.1 (Build 23E224))
 of 2024-05-14
- Org mode: 9.7-pre
- macOS: appkit-2487.50 Version 14.4.1 (Build 23E224)

I got this error randomly, can't reproduce it in a specific situation.

But I noticed one thing, when I got this error, then I move the point
next line one or three times in buffer. Then the `yank-meida` command
can yank the original image normally. This is weird.

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

             reply	other threads:[~2024-06-05  5:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-05  5:14 Christopher M. Miles [this message]
2024-06-05  8:12 ` command `yank-meida` raise error (wrong-type-argument sequencep TARGETS) Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=665ff443.170a0220.381ba.16cd@mx.google.com \
    --to=numbchild@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.