From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sL4jJylMpmYGlQAA62LTzQ:P1 (envelope-from ) for ; Sun, 28 Jul 2024 13:48:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sL4jJylMpmYGlQAA62LTzQ (envelope-from ) for ; Sun, 28 Jul 2024 15:48:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HKB1bboj; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722174505; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GmbsnX18mT1j2rRMbWbAtHsH6tsfn8RbaosGZmXtp5I=; b=L4YgSJYUhXXTNQbZwQ6yjEMeL5WPvCwq7qIviSQk6HhogU279efAwzCjuvlyJ7YC8wGTxH bDDcOgsAmy7qxufOrDxDBOur/3eF3O+Kaea8PqWW+zeQmJGcU5+0uEfwyR7eANZvJLSslI BTfyGkWRWQQNsFxlJ6vpp8iPiG+UXkmVYwfDvjyVPqcNkwNmGjdDs/FcN8S6BZ/iZhhOvy gz52h+MfyJPWeuSZ0QOi1Qo3btWDTHcofT8stN15V7PwLvbx4e86cfNMIwon4wI/yfkYCV +FGheTWOSXWiagkUjrGwmLkK+YQoSpnZ+M2NaOT5GcRwkQjcz4l+WainTGLtKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HKB1bboj; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722174505; a=rsa-sha256; cv=none; b=TXmYT6K8Ndue4mY2CO/uPitQFgppRbD+N9RFkwRlx7QYxnZDR2eMA4ekglbdSWNMKvFR5Q lEJ4xM8pfyBNwdAAswXiGi1gVD1mo7QhfsIweP2Xv1XfKw0N63mybg4EBVpddAIY4ZBlDO F2XrMU8ACBFWlgaQZrVLe4RCnZeN58lps2Oij7we/3+FbkbPEXmEBBkQ5piE3qTnoVMM3R ulQ331S/7u/5tWKpZy1pykfEZdVy9ZnXj+yKncrgH2HvQ6/UByNSPmJMKPksVdgjEbU1oK 0+x8dhzjkkDoXy5Azli7eXeCQIBmWHDzx1y1RgB21MiVAc624PIbL6l3WEA0yA== 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 F3F1A683D5 for ; Sun, 28 Jul 2024 15:48:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sY4F9-0007pb-Jk; Sun, 28 Jul 2024 09:47:23 -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 1sY4F6-0007pL-9o for emacs-orgmode@gnu.org; Sun, 28 Jul 2024 09:47:21 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sY4F2-00041s-PV for emacs-orgmode@gnu.org; Sun, 28 Jul 2024 09:47:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 586E1240101 for ; Sun, 28 Jul 2024 15:47:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722174433; bh=WoBttXu+71PpkbE6HeQOmfPeMefbQtDW7VSrMqNfHJY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=HKB1bbojrDyKjKX5BQVUU/vQSXuW6br1T0auA8DRGVf707hMT9Ucw+Ga3Ru1MG5oV fCRbe8Uatpm6Jdm1MYVKw9XoW5Ozkqzcjy8FnVLLtUJNF5QkMogM4vayZ2wiRJtGtb 1EKjhulBX5j3DJJLLXB869KntjPmLSzgiRx9t1RjnczxYZdLevb2Q962XOA2p7Uhh+ zCxz/V4Rb3YZtH3MA5Vo5X19rSJtls/v7BFORKWn23pCMO9DaQpz48k8qYQs9c9nI+ kKDNFTMRUgyrPwClVBhavCY5bw6Uw4BK8IPhRsZobrOnfXlxN4YnEt/GD/fxcQseB1 ILKH4/zJfUYRw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WX2q43LYkz9rxB; Sun, 28 Jul 2024 15:47:12 +0200 (CEST) From: Ihor Radchenko To: ISouthRain Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Set `org-yank-image-save-method` setting affects org-capture errors on Windows systems [9.7.4 (release_9.7.4-7-g165319 @ f:/App/emacs/share/emacs/30.0.50/lisp/org/)] In-Reply-To: References: Date: Sun, 28 Jul 2024 13:48:24 +0000 Message-ID: <87msm1fx07.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: F3F1A683D5 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.64 X-Spam-Score: -9.64 X-TUID: fxdNI7FI8l+H ISouthRain writes: > Example: > test.el: > ;; All code > (add-hook 'org-mode-hook '(lambda () > (setq-local org-yank-image-save-method (format "./attach/%s/" (file-name-nondirectory buffer-file-name))))) > ;; End > > Start test emacs: > emacs -q -l test.el > M-x org-capture RET t > Message out: Capture abort: Wrong type argument: stringp, nil > > But My friend tested it on a Linux system with no problems. This is because org-capture creates a non-file org-mode buffer, where your code errs. Not a bug in org-mode. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at