Re: Cannot yank media when image come from Gnome screenshot

2025-02-15 Thread Ihor Radchenko
Visuwesh writes: >> Nothing in emacs core uses `cl-find-method', so if this breaks you >> have a strong case for getting it fixed 🙂 > > Yep, I observed that. The only instance of cl-find-method I could find > was in a comment, in an obsolete library. Even its powerhouse > cl--generic-member-met

Re: Cannot yank media when image come from Gnome screenshot

2025-02-15 Thread Ihor Radchenko
Visuwesh writes: > I am using an undocumented (autoloaded) function to do so. Please note > that I know less than nothing about cl-defgeneric/cl-defmethod and the > solution I found was from trial-and-error. > [ The test returns non-nil once I C-x C-e the cl-defmethod so that is at > least som

Re: Cannot yank media when image come from Gnome screenshot

2025-02-13 Thread Visuwesh
[வியாழன் பிப்ரவரி 13, 2025] Robert Pluim wrote: >> On Thu, 13 Feb 2025 15:53:00 +0530, Visuwesh said: > > Visuwesh> I am using an undocumented (autoloaded) function to do so. > Please note > Visuwesh> that I know less than nothing about cl-defgeneric/cl-defmethod > and the > Vi

Re: Cannot yank media when image come from Gnome screenshot

2025-02-13 Thread Robert Pluim
> On Thu, 13 Feb 2025 15:53:00 +0530, Visuwesh said: Visuwesh> I am using an undocumented (autoloaded) function to do so. Please note Visuwesh> that I know less than nothing about cl-defgeneric/cl-defmethod and the Visuwesh> solution I found was from trial-and-error. Visuwe

Re: Cannot yank media when image come from Gnome screenshot

2025-02-13 Thread Visuwesh
[ஞாயிறு பிப்ரவரி 09, 2025] Ihor Radchenko wrote: > Visuwesh writes: > >>> One way to check for pgtk is checking the result of >>> (window-system). Or checking whether `pgtk-backend-display-class' is >>> `fboundp'. >> >> I don't think we should use (window-system) since the return value is >> FRAM

Re: Cannot yank media when image come from Gnome screenshot

2025-02-09 Thread Ihor Radchenko
Visuwesh writes: >> One way to check for pgtk is checking the result of >> (window-system). Or checking whether `pgtk-backend-display-class' is >> `fboundp'. > > I don't think we should use (window-system) since the return value is > FRAME dependent: if Someone™ opens a terminal frame first and l

Re: Cannot yank media when image come from Gnome screenshot

2025-01-24 Thread Robert Pluim
> On Fri, 24 Jan 2025 18:27:23 +0530, Visuwesh said: Visuwesh> [வெள்ளி ஜனவரி 24, 2025] Robert Pluim wrote: >>> On Fri, 24 Jan 2025 10:37:37 +0530, Visuwesh said: >> Visuwesh> * lisp/org-compat.el: Add workaround proposed by Robert Pluim Visuwesh> to make yank-media

Re: Cannot yank media when image come from Gnome screenshot

2025-01-24 Thread Visuwesh
[வெள்ளி ஜனவரி 24, 2025] Robert Pluim wrote: >> On Fri, 24 Jan 2025 10:37:37 +0530, Visuwesh said: > > Visuwesh> * lisp/org-compat.el: Add workaround proposed by Robert Pluim > Visuwesh> to make yank-media work under GNOME reliably > for > Visuwesh> Emacs 29. > > Did I propose it

Re: Cannot yank media when image come from Gnome screenshot

2025-01-24 Thread Robert Pluim
> On Fri, 24 Jan 2025 10:37:37 +0530, Visuwesh said: Visuwesh> * lisp/org-compat.el: Add workaround proposed by Robert Pluim Visuwesh> to make yank-media work under GNOME reliably for Visuwesh> Emacs 29. Did I propose it? I donʼt remember 😀 Visuwesh> Link: https://list.org

Re: Cannot yank media when image come from Gnome screenshot

2025-01-23 Thread Visuwesh
[வெள்ளி ஜனவரி 24, 2025] Visuwesh wrote: > [திங்கள் ஜனவரி 20, 2025] Ihor Radchenko wrote: > >> Ihor Radchenko writes: >> Ihor> Yes, behind version check, pgtk build check, and, ideally, after Ihor> checking that such method is not yet defined. The cl-defmethod itself ch

Re: Cannot yank media when image come from Gnome screenshot

2025-01-23 Thread Visuwesh
[திங்கள் ஜனவரி 20, 2025] Ihor Radchenko wrote: > Ihor Radchenko writes: > >>> Ihor> Yes, behind version check, pgtk build check, and, ideally, after >>> Ihor> checking that such method is not yet defined. >>> >>> The cl-defmethod itself checks itʼs being run in a pgtk emacs, so not >>> su

Re: Cannot yank media when image come from Gnome screenshot

2025-01-20 Thread Visuwesh
[திங்கள் ஜனவரி 20, 2025] Ihor Radchenko wrote: > Ihor Radchenko writes: > >>> Ihor> Yes, behind version check, pgtk build check, and, ideally, after >>> Ihor> checking that such method is not yet defined. >>> >>> The cl-defmethod itself checks itʼs being run in a pgtk emacs, so not >>> su

Re: Cannot yank media when image come from Gnome screenshot

2025-01-20 Thread Ihor Radchenko
Ihor Radchenko writes: >> Ihor> Yes, behind version check, pgtk build check, and, ideally, after >> Ihor> checking that such method is not yet defined. >> >> The cl-defmethod itself checks itʼs being run in a pgtk emacs, so not >> sure we need more than that. > > The idea is to avoid modi

Re: Cannot yank media when image come from Gnome screenshot

2025-01-12 Thread Ihor Radchenko
Ihor Radchenko writes: >> Ihor> May you create such a patch against Org mode repository? >> >> This week I am a bit busy, so not before middle of next week at the >> earliest. Looks like this thread slipped through the cracks. Robert, are you still interested in creating the patch? -- Ihor

Re: Cannot yank media when image come from Gnome screenshot

2024-08-05 Thread Ihor Radchenko
Robert Pluim writes: > Ihor> Yes, behind version check, pgtk build check, and, ideally, after > Ihor> checking that such method is not yet defined. > > The cl-defmethod itself checks itʼs being run in a pgtk emacs, so not > sure we need more than that. The idea is to avoid modifying thin

Re: Cannot yank media when image come from Gnome screenshot

2024-08-05 Thread Robert Pluim
> On Mon, 05 Aug 2024 17:44:43 +, Ihor Radchenko > said: Ihor> Robert Pluim writes: >>> On Sun, 04 Aug 2024 19:01:24 +, Ihor Radchenko said: >> Ihor> I am not sure if I like patching Emacs functions when loading Org mode. Ihor> On the other hand, I do

Re: Cannot yank media when image come from Gnome screenshot

2024-08-05 Thread Ihor Radchenko
Robert Pluim writes: >> On Sun, 04 Aug 2024 19:01:24 +, Ihor Radchenko >> said: > > Ihor> I am not sure if I like patching Emacs functions when loading Org > mode. > Ihor> On the other hand, I do not see any obvious downside. > > I was hoping youʼd have a strong opinion 😀

Re: Cannot yank media when image come from Gnome screenshot

2024-08-05 Thread Robert Pluim
> On Sun, 04 Aug 2024 19:01:24 +, Ihor Radchenko > said: Ihor> I am not sure if I like patching Emacs functions when loading Org mode. Ihor> On the other hand, I do not see any obvious downside. I was hoping youʼd have a strong opinion 😀 Ihor> Robert, what do you think

Re: Cannot yank media when image come from Gnome screenshot

2024-08-04 Thread Ihor Radchenko
Visuwesh writes: >>> The error is originating from Emacs itself, not from Org mode. >> >> Sébastien reporting this upstream as bug#72254. >> The bug has been fixed and will become available in Emacs 30 release. >> The bug fix involved modifying Emacs C code, so we cannot do anything >> more to wo

Re: Cannot yank media when image come from Gnome screenshot

2024-07-31 Thread Visuwesh
[வெள்ளி ஜூலை 26, 2024] Ihor Radchenko wrote: > Ihor Radchenko writes: > >> ... >> The error is originating from Emacs itself, not from Org mode. > > Sébastien reporting this upstream as bug#72254. > The bug has been fixed and will become available in Emacs 30 release. > The bug fix involved modif

Re: Cannot yank media when image come from Gnome screenshot

2024-07-26 Thread Ihor Radchenko
Ihor Radchenko writes: > ... > The error is originating from Emacs itself, not from Org mode. Sébastien reporting this upstream as bug#72254. The bug has been fixed and will become available in Emacs 30 release. The bug fix involved modifying Emacs C code, so we cannot do anything more to work a

Re: Cannot yank media when image come from Gnome screenshot

2024-07-23 Thread Ihor Radchenko
Sébastien Gendre writes: > Thank you for your reply. > > I use the Emacs version provided on Fedora 40. > I will look how to compile a more recent version of Emacs and test it. You can try to report as is first. Emacs devs might identify what might be wrong just from looking at the backtrace. -

Re: Cannot yank media when image come from Gnome screenshot

2024-07-23 Thread Sébastien Gendre
Thank you for your reply. I use the Emacs version provided on Fedora 40. I will look how to compile a more recent version of Emacs and test it. Ihor Radchenko writes: > Sébastien Gendre writes: > >> Here is the full backtrace: >> >> >> Debugger entered--Lisp error: (wrong-type-argument sequenc

Re: Cannot yank media when image come from Gnome screenshot

2024-07-23 Thread Ihor Radchenko
Sébastien Gendre writes: > Here is the full backtrace: > > > Debugger entered--Lisp error: (wrong-type-argument sequencep image/png) > mapc(#f(compiled-function (elt) #) image/png) > seq-do(#f(compiled-function (elt) #) image/png) > #f(compiled-function #'sequence # 0x19945316743f723a>)(#f(

Re: Cannot yank media when image come from Gnome screenshot

2024-07-23 Thread Sébastien Gendre
Here is the full backtrace: Debugger entered--Lisp error: (wrong-type-argument sequencep image/png) mapc(#f(compiled-function (elt) #) image/png) seq-do(#f(compiled-function (elt) #) image/png) #f(compiled-function #'sequence #)(#f(compiled-function (elt) #) image/png) apply(#f(compiled

Re: Cannot yank media when image come from Gnome screenshot

2024-07-23 Thread Ihor Radchenko
Sébastien Gendre writes: > I got a bug when I try to yank a screenshot made with Gnome-shell. > I don't know yet if it's a bug with Org-mode handling the media, or the > yank-media function or the Gnome-shell screenshot feature. Thanks for reporting! > What I get: > > * In the mini-buffer, I ge