From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sHUECDIMkmM6GwEAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 17:09:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EPzrBzIMkmMhaAAA9RJhRA (envelope-from ) for ; Thu, 08 Dec 2022 17:09:22 +0100 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 EAA1F3E42 for ; Thu, 8 Dec 2022 17:09:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3JRw-0005Az-9V; Thu, 08 Dec 2022 11:08:40 -0500 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 1p3JRu-0005Am-AO for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 11:08:38 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3JRr-0003Ex-2W for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 11:08:37 -0500 Received: by mail-lf1-x12f.google.com with SMTP id d6so2727337lfs.10 for ; Thu, 08 Dec 2022 08:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=O4U9PVbVHXBAkxv6aIULF0xfbv5YvIzBljJCDyavbdo=; b=bLWIAMaR4w0N2ammZx3n28ZrPAIQFpVsJEkUjK1MyOF5srR+PFovR64G0wTnV0jzD1 hdWvrNTnhXCZ4I22my4HPdWMiSmIhKvqxiWLWHdWbP90elPgDBU7E7eqfjhU+EzQRK6T T08nhjMfz3AcjNRC9d9qRqKHPBzojbTBmj8F66ceuvMs011aJqvYmZy6Qk5zsU7792Hp ij1qBCrKCdIDh1I2EHvs0xpXNPIkKSMIdr4R0ak5CCN6sqgQtLarZwoxZAN4a/BUfwtV 2tB+fQQPHolJkN8Mi+z2B+VIlkTgMrXHO3xPac4+Ozsh7DIN3bQjkYLc1JJf2N09CqA0 1VmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O4U9PVbVHXBAkxv6aIULF0xfbv5YvIzBljJCDyavbdo=; b=fvme15WqUBGHHiB209etc+4xMhqyOOSmBOQ5i4iViOlKflu4c4Lus2/x8TuJREyc0N ztMs+U8DoNPWayJLg11Bb2MqCx8R6EKT3Q+64QrdoMCowQyIBHNTqU2QrTRtG/rP16Wf /ORraseGYklLLtwxfxUA3OnxxnALCpMg8faEY2v2Rl8adH2S5JGsIopGLJTgjsQqeGLk YNckJiNP+hRzGksxmThAcE+DAeSaTiblmPz4epbDblgwYml+NG8eGTUquAocm8r7VZk4 Js4TEWM1xkUHUnyA1+CDoC1AE/vFL4pGAcEnRawK4VQmubl9amRYyJFMRb3d2HJ5+NEz 8kbw== X-Gm-Message-State: ANoB5pl8pKapc2o2wRs98Oz3rF5LW+4/JXbI8JfOX5uXX36s5VlA5X26 tVxDTFM9Pb8gLRMb/8kPlLs= X-Google-Smtp-Source: AA0mqf42RfL1znJsKllxdPve5HxrI6xOUAirYu15aHhCIBoA/ioZDdOyKX5vcA+u3JZvufVbGpODsw== X-Received: by 2002:a05:6512:39c6:b0:4a4:68b9:1a14 with SMTP id k6-20020a05651239c600b004a468b91a14mr989393lfu.60.1670515711760; Thu, 08 Dec 2022 08:08:31 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id w14-20020a05651c118e00b0026c42f67eb8sm829402ljo.7.2022.12.08.08.08.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Dec 2022 08:08:31 -0800 (PST) Message-ID: Date: Thu, 8 Dec 2022 23:08:29 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Pasting an image with org-download in org-capture buffer Content-Language: en-US To: Alexei Gilev , emacs-orgmode References: From: Max Nikulin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 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, NICE_REPLY_A=-0.266, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670515762; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=O4U9PVbVHXBAkxv6aIULF0xfbv5YvIzBljJCDyavbdo=; b=ZYJCjSvwiwxzwZeATjVEvAEM8FBcNDh5OgMifo7Kite8Qfwdu9psNXQ0eKdidGoG+th+s6 lxNalDRBOaORo7hiVHGKulP60v4FPZIjUsY1/VqGUn9ScSs2BclIK4oWsCZShIwcNcH4SM eQ/Sb3yl5nykI8oXkVQljJBb+Vs6K5YOMqrfCtJULvlUPKEfH7wxy3ORS3K+SoRZxNwFAD 41vKeEocygvknq/X43HI4f4jyKJFljjza05ypwvw9Fk47hEI1kVGGE6H47s0qGQmGRN+0X mehFGRZQOM8R9Pol0uDX//+MTh+vZJT9BJMnUTIMOlCFZAnalsjb7Vx0JEiHUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670515762; a=rsa-sha256; cv=none; b=qG7zpLz91yrWaOVHg4a/DsEeNzXH6MxnVPIbpjTQRnf6x0ZpYM1Z4X0RrMrrB5O4pwDfJh mU0RfJT7l790xlo4iIUClh+LBl0Qmr0U+UZsKCbPCEGaPs7KrDeQX1J0q+kx3k8lW7mayx iDwrYxGNdl7M0dsmQBlvBLg2QF1+vUWaX7cGnJp9hQ3NCmg0g5/vCzdEJGkHotfxWAP7lC Y69CardF/OvG7GarzuBbWM4zOhYZ4FGuv+qj8xu3rhV5QRWuvdAg0FWZeYA1LpOl4bdPH+ fx5xf5JWxt/S7sIqycAfhjD/eIv2APjTZBUqriOyp7SK7XT1vSWBuLZSO1iJdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bLWIAMaR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 4.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bLWIAMaR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: EAA1F3E42 X-Spam-Score: 4.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: oGHa0ToBKjEc On 08/12/2022 22:12, Alexei Gilev wrote: > > However, org-capture buffers are indirect buffers, so the > |buffer-file-name is nil, so it fails.| Org sources are full of (buffer-file-name (buffer-base-buffer)) expressions. Unfortunately there are enough bugs due to direct usage of `buffer-file-name' as well. You might be interested in org-attach as an alternative (I do not have a ready to use recipe for your particular task), but recently added `org--confirm-resource-safe' is affected by this kind of bugs.