bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#75116: [PATCH] Make 'yank-media' autoselect the best media type


From: Visuwesh
Subject: bug#75116: [PATCH] Make 'yank-media' autoselect the best media type
Date: Thu, 26 Dec 2024 17:57:50 +0530
User-agent: Gnus/5.13 (Gnus v5.13)

Tags: patch

This is a continuation of the long thread in emacs-devel:
https://yhetil.org/emacs-devel/79fc91f3-c2c3-44db-9817-595808917f26@cas.cat/

This message provides a summary:
https://yhetil.org/87r06cj2nd.fsf@gmail.com

Ihor wrote:

> The only comment is that leaving an option to return a list of types
> rather than only a single type will make things more flexible.

And this is now done in the attached patch.

Before I go about writing NEWS and updating the manual, what do you
think about the attached instead?  I think the variable
yank-media-preferred-types gives a more granular control for major-mode
authors than (add-function (local 'yank-media-autoselect-function) ...)

Attachment: yank-media-autoselect-other.diff
Description: Text Data

I know that I have to update the Info node (info "(elisp) Yanking
Media").  Does (info "(emacs) Clipboard") need any update too?

In GNU Emacs 31.0.50 (build 27, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.18.2, Xaw scroll bars) of 2024-12-07 built on astatine
Repository revision: 9ddec89e422d0dd6e9069731b8f2dd2c90aa5607
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
System Description: Debian GNU/Linux trixie/sid

Configured using:
 'configure --with-sound=alsa --with-x-toolkit=lucid --without-xaw3d
 --without-gconf --without-libsystemd --with-cairo CFLAGS=-g3'

Attachment: 0001-Make-yank-media-autoselect-the-best-media-type.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]