From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: yank-media: allow users to limit image types that can be inserted Date: Tue, 24 Sep 2024 16:50:22 +0300 Message-ID: <8634lpduu9.fsf@gnu.org> 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> <87wmj1uq7j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39686"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, pinmacs@cas.cat, emacs-devel@gnu.org To: Visuwesh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 24 15:51:07 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 1st5wZ-000A9v-Gk for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Sep 2024 15:51:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st5vu-0004c1-Kc; Tue, 24 Sep 2024 09:50:26 -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 1st5vt-0004Y3-IR for emacs-devel@gnu.org; Tue, 24 Sep 2024 09:50:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st5vs-0002Tp-Tm; Tue, 24 Sep 2024 09:50:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+NjSpB3DgGDE2dIiPry9cTgz1GtUfn16DpFY3xyZBzM=; b=pfh3KANf4vrok0RWwCXp d4aIZhuW5Q6TEVKd25qturhzB5ZlpktM3mH3fTaARvylYCRNvnF6+mCxoeYnYzdRGMa9Eo1Wmme4W WQbSVO6C5htRmwxuH+9hdmXSAgW9LmAA18XJjefaiErG6QspZay28qPdqju2o8Kb7UgFvnekz3nnm qccWR4aYRYfcSO7+xCqxb5b3XUDr6Xu6JBVoxEYJeTZXku5Ex2rmrnmXMx+Y6qZYyeAUoRsrEjOSi HJYNvSlmM56mCk05adoPEZn2LtXnThv0sph2RC6AmNPa5m11SsHiHzV7NwbNwvq2RKUCDXiz7BT2I L88xz/CW9CRw1Q==; In-Reply-To: <87wmj1uq7j.fsf@gmail.com> (message from Visuwesh on Tue, 24 Sep 2024 19:08:24 +0530) 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:324035 Archived-At: > From: Visuwesh > Cc: Robert Pluim , pinmacs@cas.cat, emacs-devel@gnu.org > Date: Tue, 24 Sep 2024 19:08:24 +0530 > > [செவ்வாய் செப்டம்பர் 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 > >> > >> >>>>> On Tue, 24 Sep 2024 14:30:01 +0300, Eli Zaretskii said: > >> > >> Eli> First, I think a simple defcustom will not be enough, since changing > >> Eli> the list of handlers must go through yank-media-handler. > >> > >> Thereʼs 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ʼt 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. That's not how we design user options. But anyway, I don't think we need such an option.