From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: yank-media: allow users to limit image types that can be inserted Date: Tue, 24 Sep 2024 19:08:24 +0530 Message-ID: <87wmj1uq7j.fsf@gmail.com> References: <79fc91f3-c2c3-44db-9817-595808917f26@cas.cat> <86ed5ahb08.fsf@gnu.org> <87zfnywki8.fsf@gmail.com> <86setqfnmq.fsf@gnu.org> <87frpqflv4.fsf@gmail.com> <86ikumfjri.fsf@gnu.org> <877cb2fj0c.fsf@gmail.com> <86cykufhw7.fsf@gnu.org> <3a015d0f-549a-401f-be1c-651c9dbd5d9a@cas.cat> <8634lqfcaf.fsf@gnu.org> <86tte5e1c6.fsf@gnu.org> <87jzf1dz3z.fsf@gmail.com> <86a5fxdwsa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33506"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Robert Pluim , pinmacs@cas.cat, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 24 15:39:12 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1st5l1-0008WI-6K for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Sep 2024 15:39:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st5ka-000141-LO; Tue, 24 Sep 2024 09:38:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st5kP-0000b0-Dz for emacs-devel@gnu.org; Tue, 24 Sep 2024 09:38:33 -0400 Original-Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1st5kN-00055P-3I; Tue, 24 Sep 2024 09:38:32 -0400 Original-Received: by mail-pl1-x641.google.com with SMTP id d9443c01a7336-20696938f86so43909915ad.3; Tue, 24 Sep 2024 06:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727185109; x=1727789909; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WYT0AtrQea5ApL8NnyGpADrObMagSoFKB38IAxd1Zf4=; b=S8cUP7mxvdfY1H9pEcUc7Nt5Opsl12BzKPtIADjzob7QePSF22+tECKIK8UpD52Dd1 xPfI8aTDhv86mGrHF6zovYBqnZqfh8bOn5XvNd4s+oHv52PwCEa2G+fehYo26i1lQA0B 0ZBvaD2gbk6c63E+xBsqc2Wp3OKRM1Fb7QAEQcPYPlsggjv3PwZ5Z1OQIW1jR/YyDrTI nf/fd3ui8FIAM6qxa7xxzj49QVeSTRZztH32+rMkOo9rDddI5nIhfDaquemGDZGDeYfm kR/kGH1D/I+rRXZrjpYKjNqWGfzAqV/Hx5V6yIG6KQ/tM96Ex8ADtXnliruXRzXmQ8Bv 0DTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727185109; x=1727789909; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=WYT0AtrQea5ApL8NnyGpADrObMagSoFKB38IAxd1Zf4=; b=SfJfz4PLXz5YtiVa7ue1ydh8JTFB6pYNJPJwhQB5O0TSBYYOwJQKbO4fD7j13DtrCX zQy4mav4Z+TF+YiAVMKRCQ3JYmIbhNuXHnrsqLTTabYPDYnCejv4rfPW0+Vo1dws6fD1 Phuri4ApwwixQiVtlN1p+DgNmQI21I83FKTJUFhR8pbRtw1bIdVfHNovHjK3d3ZBSOWH apzoZiMzrK8xpM3snYtp0GCN2ZA9a2y20fr512/24G1WYe2NrfcDe6VAItuWovoo80iu RiBso4dVLBZouMsUsDVknJIK5DS66ubzsdltD7rcVeNoQrmq17Aj39vZDYtnpaEH1M+X ngSg== X-Forwarded-Encrypted: i=1; AJvYcCU/Ieum4HoIlUh4E+TTfqX0ZfOX5scCWjVAfgG2Qj7Q/pVBEEJSgKjJ5ATDDy+Plr0PWrYDaRxMlbZ33w==@gnu.org X-Gm-Message-State: AOJu0YwonQmTn2pIM/TmtrjrYDKEJVq2OOtkWhrskDQo/epJGUng7kPr lct9IBduEYOV0A27RA+M3OAiLQReouWIfhkKChqQL8qNPAXm5cAf1n5N8QLf X-Google-Smtp-Source: AGHT+IHUMQEq0qJeN8ZKg0y21gxIlktMgg2GDkk8A7awfkp2vkpAeDXrSiLkt2X9MM8c1v67HCqDdA== X-Received: by 2002:a17:902:ea04:b0:1fd:67c2:f975 with SMTP id d9443c01a7336-208d9835a14mr225913985ad.29.1727185108857; Tue, 24 Sep 2024 06:38:28 -0700 (PDT) Original-Received: from localhost ([1.7.159.70]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20af182d3c3sm10386175ad.223.2024.09.24.06.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 06:38:28 -0700 (PDT) In-Reply-To: <86a5fxdwsa.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 24 Sep 2024 16:08:21 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::641; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x641.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324034 Archived-At: [=E0=AE=9A=E0=AF=86=E0=AE=B5=E0=AF=8D=E0=AE=B5=E0=AE=BE=E0=AE=AF=E0=AF=8D = =E0=AE=9A=E0=AF=86=E0=AE=AA=E0=AF=8D=E0=AE=9F=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0= =AE=B0=E0=AF=8D 24, 2024] Eli Zaretskii wrote: >> From: Robert Pluim >> Cc: pinmacs , visuweshm@gmail.com, emacs-devel@gnu.org >> Date: Tue, 24 Sep 2024 14:18:08 +0200 >>=20 >> >>>>> On Tue, 24 Sep 2024 14:30:01 +0300, Eli Zaretskii s= aid: >>=20 >> Eli> First, I think a simple defcustom will not be enough, since cha= nging >> Eli> the list of handlers must go through yank-media-handler. >>=20 >> There=CA=BCs no need to change the list of handlers. What the user option >> would change is only which type(s) are presented to the user. The >> mapping from the selected type to the handler doesn=CA=BCt need to be >> changed. eg org uses the same handler for all image types. > > So this option can only be used to effectively disable some handlers, > and cannot be used to _add_ handlers? Does that make sense? Yes. Adding handlers would be done using yank-media-handler, as before.