From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IJhXJ9Rm6Gb1OwEA62LTzQ:P1 (envelope-from ) for ; Mon, 16 Sep 2024 17:11:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IJhXJ9Rm6Gb1OwEA62LTzQ (envelope-from ) for ; Mon, 16 Sep 2024 19:11:48 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=eM+qoL7+; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726506708; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=isr3uZaUgJ2ANS598+SJndqjauuwJeZDfmVz8+kopTo=; b=lSkidr7lUmwgPH0fRBmqb6xWxeop1h6RreRYxXqqS+pdnBvF4vYseNCEQr6rRNAP5GnSQg mrtFWhnz3fEvt3LHDlVybhURKaLe/JL4Qzv+D6SXAx6bfGsLCnDxVPJIQE34DrS8E8iUWj HV3bG94CzVswS4bLx/KDZH3AHJTBa1z44nj9LHgMXAgJJhix3a5K4iF2r1oFzyKYsXI8EY rpdywVN32G9IxFQBw8DT0AN1DWG1+007MZldJamhPsZezPoeQusj/y6S0tW4Ly2qPcxtYG PJTYSpKeIu30H3EdbueVKFONVuPWRh9updolMgvC9uPyG91BY8/uzI+N5ml8Wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=eM+qoL7+; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726506708; a=rsa-sha256; cv=none; b=Y7pjQelGNQHYDFjpCi6Mg+8yBsup41NcDv66ObuehdZIDSmUo4z+CwYv12k9QCgvo/cyGs ULo+zs1mx7PGnMdKVp/xvqJZciCE2EcFB5C8VUKEbB7gAjR+Zn64KdOBeD9pwmf8F5yPAA /6FSWpkp903vOWcgAtjhVwoP0mGj+7GNX/Sy4LMN+AvR3ocaV2NZSrcSD1aRKB+LkNFgS9 4HE6Nc6rerCbeZxScgkdrKj8QmmXKUNNk7Uc8CifoR8nq/mXkaGLhGxhW4JKA9xUCBPnWL ClsAL8ls7EDx3yjA8EsLs5wMvHIpqxu2yP5I9tWA51X5BkUOD6B5r+amnHBLEQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 88D2D2ADA for ; Mon, 16 Sep 2024 19:11:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqFFd-0003Jy-4j; Mon, 16 Sep 2024 13:11:01 -0400 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 1sqFFZ-0003Jl-Rb for emacs-orgmode@gnu.org; Mon, 16 Sep 2024 13:10:57 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqFFX-0000mx-00 for emacs-orgmode@gnu.org; Mon, 16 Sep 2024 13:10:57 -0400 Received: by mail-pf1-x444.google.com with SMTP id d2e1a72fcca58-7191df6b5f5so3308724b3a.0 for ; Mon, 16 Sep 2024 10:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726506653; x=1727111453; 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=isr3uZaUgJ2ANS598+SJndqjauuwJeZDfmVz8+kopTo=; b=eM+qoL7+3dT9Bz1+lt1Rl/1UfGDeTDaPqEr9MEp4QoB0l6ST+GQEYTtHUHq3Xjv/ys JMvmnGM/oNOAfiRWqoWVbMMCfgrWGCsdCk0Cbp5Q0BKzIiLVVZz0S+PzB5HfzkxmAL/Q SjYfIP+F4wyXbCXaPFbE8zILdE5/O8s18zZWeZsLd1zG9m61VuJQSC1a82iEd55Ljh+0 8QVEElxbQtFUU7PqBIOTPdwUJGXS0LL7cVHeQuug6c9UoGW7govagp1ZYYBw0Q7mcpdN EYiVWFW2aN3uLQ+CVPwSTUxJcox+bbjZWz/sZ+OWT/2vtHUYmM7C2g41ZpGBmzeqlVcz zdmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726506653; x=1727111453; 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=isr3uZaUgJ2ANS598+SJndqjauuwJeZDfmVz8+kopTo=; b=m1eSSZuH+9FJuXbjp7yDmk0VF9LhN1QaBNfUV8DNksL22JDi8hMOMmmdj0AdT3cnzq 3qdk0jBzuaDTkZdoCcWlYuihoqMrbDERSxeWXqfPlG7dwxkibIVXjCwy16NZt/rswA/G 4/mHLA6kvXJMFFIp8m1ayH01BrWrW7bEiNMUwBE6xLuEUg42D9YF8gpcDKLmoIYUsaxa ekH5dSjmYoxZqIOpSXpNh5prHT41poYKBxd4drOio1byUJdkxbioUtf+5YdJ7RgFxda9 AZExVkXS70DThFAWXLrUACjcjHJGvgq7w23UNQ+fBtZkQjY6epcScHgrZfHSTcDJGGb2 Xg6Q== X-Gm-Message-State: AOJu0Yzy6X6iVGbltfAzyIJ4ixSg2t9ZIcxdb8gOVlfP+GZn5h85IiN5 AXzRzysBDoFBykjr6qdNDZmQCZWxpIhMsYwBgdgksra65WPs2O/Gi6PGG2Un X-Google-Smtp-Source: AGHT+IF+nzktJiqTN45NDGziva6bUsEv5aqHWLRqaRdJdNE7oRssjJ7cpRfwlTMJ68EKxpQ/km7JhQ== X-Received: by 2002:a05:6a00:3cc7:b0:717:6883:ad5 with SMTP id d2e1a72fcca58-7192608051dmr25379275b3a.11.1726506652548; Mon, 16 Sep 2024 10:10:52 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944a97e7bsm3937176b3a.7.2024.09.16.10.10.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 10:10:52 -0700 (PDT) From: Visuwesh To: pinmacs Cc: emacs-orgmode@gnu.org Subject: Re: [FR] yank media: allow customization of absolute path a filter for type candidates In-Reply-To: (pinmacs@cas.cat's message of "Mon, 16 Sep 2024 01:56:50 -0300") References: Date: Mon, 16 Sep 2024 22:40:48 +0530 Message-ID: <87msk7wmlj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::444; envelope-from=visuweshm@gmail.com; helo=mail-pf1-x444.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 88D2D2ADA X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -9.82 X-Migadu-Spam-Score: -9.82 X-TUID: Q8qh9DRaU9hf [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=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 16, 2024] pinmacs wrote: > Hi, > > So I was using org-download, and I would like to replace it entirely=20 > with yank-media > > and what I am missisng is: > > 1. do a variable for selecting absolute path: to be able to have a file=20 > link that works with absolute path; and the reason is that being=20 > relative, this, does not combine good when you move your latex export=20 > somewhere else (in my case, I usually move it to /tmp/, and from there I= =20 > decide when I want to save something persistently), hence it fails, and=20 > I got tired on fixing the links, in fact, the absolute path sometimes is= =20 > smaller than the relative one=20 > =3Dfile:/tmp/clipboard-20240916T013308.png]]=3D vs=20 > =3D[[file:../../../tmp/clipboard-20240916T011913.png]]=3D This can be done in the org side. I guess adding another defcustom would be the way to go? I don't see how it is possible to make org-yank-image-save-method accept another option. > 2. do a variable that allow a list that would filter and reduce the type= =20 > candidates of yank-media. In org-download, everything was png so I was=20 > not having the "Several types available, choose one" with 7 options. But= =20 > then is like, oh, maybe I would like to be able to switch between png=20 > (synthetic image), jpg (natural image)... anyway, I hope you see=20 > customizing this is interesting for the users. This needs to be done in the Emacs side. The querying is done in yank-media and nothing much can be done from org-mode.