From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gGlHLhr/kWMzjgAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 16:13:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4MU1Lhr/kWNcbAEA9RJhRA (envelope-from ) for ; Thu, 08 Dec 2022 16:13:30 +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 73B98D617 for ; Thu, 8 Dec 2022 16:13:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3IZm-00054b-Hq; Thu, 08 Dec 2022 10:12:42 -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 1p3IZl-000538-8O for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 10:12:41 -0500 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3IZh-0001Jc-3n for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 10:12:40 -0500 Received: by mail-qk1-x72e.google.com with SMTP id k2so884694qkk.7 for ; Thu, 08 Dec 2022 07:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=YHF6n4zfGWbRTDc7cvZvCZzwmMalIJhisBauDZky7VQ=; b=jFdINQUc+LnrDy8Wg/6g8Bg/WPK2TvRZ8ZoG1AoZI/FbBBSyAauMP7Q/RgV99H1YSB MAFsIqB4HVS3BMJmHiUXeGIcKlA0a8tQButdoMvwIFxwctjB7yaL0JO5/Olgpz+BanVE tGLOY7ipkLEnFGMhkD+WQHU4NoIXqmYDE7FW5ZMxqOmgs7rAckj/1Nvt1l7IZ9Pxno2H AxtToXDrH+Kx7YjUzQhU6aVY9AzCi71JDuPFruMv8iHi2nR7ZHrK6KoRt2xOyePzou71 20X7val/Bqn5v7h2E93vPv+6WpxzgThKyHMyOIIxxBkD7tvuYq0vG7TdtLZ4qotjGYjT hMmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YHF6n4zfGWbRTDc7cvZvCZzwmMalIJhisBauDZky7VQ=; b=2m8frDMs39Ahiu/JBACBcpyzHiED3bmSWcpvOjGzxd9Sv4a+mTfYO5fZFYi6nDHNJ8 CBD8LDsMmbxlO9eUw6X50KYqc+6OF4JP1yQuBRBNLiNOP9111jluWLB9m0CsT3UcfFGE cTtEbqj+YOhoS2/nmQfUrGg5/6/+rMG5uaWjXkT7hkmB04O0+PLqcdtG8UUgh7DpWwqh 4lsXn6B8l8B0PLKm3yuhiYXxfKbeVuI52cNjGQCbMqaRcuFS8I9LZxmN3i0g7CFlqlrh g4WHIWr50GJvcb5RgaVe+ZYfnK+R5An+ja/kG9TUcpZRGm0kKnLBSUem0GHWQIGAzoz2 C77A== X-Gm-Message-State: ANoB5pl9jsYo0JOOrIhU3LwvBNo4GwibZ7C73RYc3EWDDlijvp0ZOG2/ YDGcyixZ/PuRXijHvSSXQIemqZK9wlPGcEvziyTp1nDLdzMnaw== X-Google-Smtp-Source: AA0mqf6hVK4a73aheOOPsc6jrbl0LFPfkPW9sw+NY3qqTvZ4Z1X2K65AsOpnxSONQIni79hhoO3EnBh3t/6ESeqK+i8= X-Received: by 2002:a05:620a:14b4:b0:6fc:63da:7e96 with SMTP id x20-20020a05620a14b400b006fc63da7e96mr44122921qkj.366.1670512355038; Thu, 08 Dec 2022 07:12:35 -0800 (PST) MIME-Version: 1.0 From: Alexei Gilev Date: Thu, 8 Dec 2022 17:12:22 +0200 Message-ID: Subject: Pasting an image with org-download in org-capture buffer To: emacs-orgmode Content-Type: multipart/alternative; boundary="00000000000083dc5e05ef5277a6" Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=gerardomoro37@gmail.com; helo=mail-qk1-x72e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670512410; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YHF6n4zfGWbRTDc7cvZvCZzwmMalIJhisBauDZky7VQ=; b=mh8S9YoeWRrCTp56wreE4Xly6aOohaWMNbxtLU5Ig76jwHwzpJkEWYqqVJOmI+6gEOIzwd LGikP4BvLDhylDWf5JKDUmmYY9XQhpIYslZjfIRE1tmlkJ0I4igqbCJiM44R5jH/5Tm80R GpISOmhxkqbhv4oS3akplgRDSdRLiCZ0GmCU/RyEJTRhkPmFQ/hTmIzHcaX5f0ujyReOY3 UsuzEJt7GdHWE02hGGN7qVAye4QCMrT83ZxwHCDmkRf8T4R4h1igAkCzO8ZebjB4yWgisz HUCGanrAu/4fAvljPAslWHUFMSC/PKomWpBctGC9M0TEbdAKEvAokDr5EURb9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670512410; a=rsa-sha256; cv=none; b=bjKlZN2jVi94mbO6Fq3ODOCPKHgpWYctccrkBFRbDI1F+1Q7KpotMSwtZL2molqmuHIRQ+ Y+j9XuBDHhEdgpMwsZCSGfs2TpBNy9eOZ4Q/Sw95cI7SCx+LVhT3xJIVLGn5R5h/jLjwMa S6LHzHfoYwbAwVSWrkhD8NyMac11OiJM7fStaUHwqBPtIi481YGzRCTeAHfYP+X9Ji3pWp esDPT3kqH8NVH4EZv06pw0lchHsE48BCq6Z0tWW6KmxAxbEU3S76/ro3xBKVDpVAur0Ai6 pvZBfz/7MTzMpK2KEd8C9IfYz57gXK0lQgCim3JddxbxWABU5GlLgwLLUTyPOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jFdINQUc; dmarc=pass (policy=none) header.from=gmail.com; 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: -5.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jFdINQUc; dmarc=pass (policy=none) header.from=gmail.com; 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: 73B98D617 X-Spam-Score: -5.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3L5qnB8ytuAW --00000000000083dc5e05ef5277a6 Content-Type: text/plain; charset="UTF-8" Hi, I'm pretty sure somebody must have come with a solution for this basic task. I want to paste a screenshot while in org-capture buffer. However, org-download takes saves the screenshot image in a (already existing otherwise created) folder with the same name as the buffer the org-capture will save the text into. However, org-capture buffers are indirect buffers, so the buffer-file-name is nil, so it fails. How is it possible to tell Emacs to get this info from the org-capture buffer rule itself? How to get this path and save the images while in the org-capture indirect buffer? The other solution is just to capture, and then open it and paste the image, but that defeats the purpose of the org-capture buffer itself. Thanks so much in advance, A. --00000000000083dc5e05ef5277a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

<= p style=3D"margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;bord= er:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-str= etch:inherit;line-height:inherit;font-family:inherit;vertical-align:baselin= e;box-sizing:inherit;clear:both">Hi,=C2=A0

I'm pretty sure somebody must have come with a solution for this b= asic task.

I want to paste a screenshot while in org-cap= ture buffer.

However, org-download takes saves th= e screenshot image in a (already existing otherwise created) folder with th= e same name as the buffer the org-capture will save the text into.

However,=C2=A0org-capture buffers are indirect buffers, so the buffer-file-name is = nil, so it fails.

How is it possible to tell Em= acs to get this info from the org-capture buffer rule itself? How to get th= is path and save the images while in the org-capture indirect buffer?

The other solution is just to capture, and then open i= t and paste the image, but that defeats the purpose of the org-capture buff= er itself.

Thanks so much in ad= vance,=C2=A0

A.

--00000000000083dc5e05ef5277a6--