all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* command `yank-meida` raise error (wrong-type-argument sequencep TARGETS)
@ 2024-06-05  5:14 Christopher M. Miles
  2024-06-05  8:12 ` Robert Pluim
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher M. Miles @ 2024-06-05  5:14 UTC (permalink / raw)
  To: Emacs Help List

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: command `yank-meida` raise error (wrong-type-argument sequencep TARGETS)
  2024-06-05  5:14 command `yank-meida` raise error (wrong-type-argument sequencep TARGETS) Christopher M. Miles
@ 2024-06-05  8:12 ` Robert Pluim
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Pluim @ 2024-06-05  8:12 UTC (permalink / raw)
  To: Christopher M. Miles; +Cc: Emacs Help List

>>>>> On Wed, 05 Jun 2024 13:14:37 +0800, "Christopher M. Miles" <numbchild@gmail.com> said:

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

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

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

Please report this as a bug via M-x report-emacs-bug. yank-media is
assuming X11 semantics for clipboard handling, and macOS is different.

Based on a quick look, if you select text in a different app than
Emacs using the mouse, the error will disappear (temporarily at
least).

Robert
-- 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-05  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05  5:14 command `yank-meida` raise error (wrong-type-argument sequencep TARGETS) Christopher M. Miles
2024-06-05  8:12 ` Robert Pluim

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.