From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 oEySIe3lo2JINAAAbAwnHQ (envelope-from ) for ; Sat, 11 Jun 2022 02:46:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CAd/Ie3lo2JTdwEAauVa8A (envelope-from ) for ; Sat, 11 Jun 2022 02:46:37 +0200 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 18A9CA6F8 for ; Sat, 11 Jun 2022 02:46:37 +0200 (CEST) Received: from localhost ([::1]:48968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzpGt-0007n3-R1 for larch@yhetil.org; Fri, 10 Jun 2022 20:46:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzpGI-0007ma-I7 for emacs-orgmode@gnu.org; Fri, 10 Jun 2022 20:45:59 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:42618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzpGG-0000Jz-9Z for emacs-orgmode@gnu.org; Fri, 10 Jun 2022 20:45:57 -0400 Received: by mail-pl1-x634.google.com with SMTP id f8so568109plo.9 for ; Fri, 10 Jun 2022 17:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to :content-language; bh=v8xzJt30+CUSWwfnfolKtcK3tNo/BpZXXJLgQmC9OcE=; b=cfVsdfxGIGWSSt2UxiQquuv7BvyOo9xuWQyJURCFEXtb2V1RDz/ni8vly+vtISf27R Ek8kkPEQ0Drl6MGwXtimoEfX7ORiMVfZVeKs+g4qUBLR/xsQQMydIkiqUWZH0m5xEMdH fzR8qqZnpAfrp3XGOSObSiNcMKE6N88nGOryN5+oWjLprTm4OPgCcF2GhjK4ekbcXQ/5 TxzUq4AFdyevUjrNrGLw0Me/oVc6utLlb4ZHzVn/V4uDRVAGxK+u82mYLdqkRgX8InnL JHt7nd5PMxt9X7a546EzBrAPTtEDhwE2NVXOZGit8rJIdSDcgvydyZnuxrWmQkvEDjF7 AoNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:content-language; bh=v8xzJt30+CUSWwfnfolKtcK3tNo/BpZXXJLgQmC9OcE=; b=yZXweTzMlGo8lcf8cO1S7M/EMPR8QzMfqFfE/WQqQxSsdeIJV3rKiEQWGJEgNudP+2 85/w7IyINR8PmFvb1M1SxNJDufNA3XA/JHyvzdwdPS7526J313WebB8rA6iC9tHm2lhv OxhkbPJWU+rJe1AMGpbogZhAN0tKud0jJdIb8fizfafYkqdXl0pOEFw2y6xwQoeLnSq4 /XI+c2wH3BOtu0WgiPpiqY2HrOtAexiBg3DyrkMcz3zgqc1u3c8VzAXzOgNWeIbuRb6C QrJ65IHSq9ppCBT2NnmSRpIZoBtkOeKQY5VE/2RuwLbiQcxbwcEkBZsKChm9hOQMAqXT n1dA== X-Gm-Message-State: AOAM531+9py/Mg3okGJmOXhX8bONaHySmwMS4F1h1DOytsHmS4qzbPBj GdL3fkf6EHCA8t3e3IRBucKxx5cWT/dl4Q== X-Google-Smtp-Source: ABdhPJzdiAAy+ZdyQyHOi7wbr4D/dh+7qsJZQsV9mjB8odpOckmoo7Z5SpbOZ5Io+WQ3gJ/8kCTF/A== X-Received: by 2002:a17:902:bd05:b0:15f:19a0:95ed with SMTP id p5-20020a170902bd0500b0015f19a095edmr47267966pls.31.1654908354016; Fri, 10 Jun 2022 17:45:54 -0700 (PDT) Received: from [192.168.0.106] ([49.207.196.48]) by smtp.gmail.com with ESMTPSA id ct21-20020a056a000f9500b0051c0784cb45sm175563pfb.99.2022.06.10.17.45.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Jun 2022 17:45:53 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------Ug8MMetcCCN2IjJC526yi0ft" Message-ID: <587be554-906c-5370-2cf2-f08b14fa58ff@gmail.com> Date: Sat, 11 Jun 2022 06:14:17 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 From: Alen Alex Ninan Subject: Help with assigning org-attach-id-dir using directory local variables To: emacs-orgmode@gnu.org Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=alenishere@gmail.com; helo=mail-pl1-x634.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654908397; 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=v8xzJt30+CUSWwfnfolKtcK3tNo/BpZXXJLgQmC9OcE=; b=HOgUmPGqg/2MHQmX+JuOv82gctsnMZIAGJFruKCi+u25SM6b7dSiigW9NxZgeGLg4j/1HM lDj9hBo/GSUQd4dj30MfV4jwTwgdWUnEy9+rTjohwET8mh0yInA3XkR4lUIDJq6XyoVw2A SEnX3DnkD/nN5ZelFRzfOEtDGN45sb3T2RAeugBU3E57LiYY/oFGUNEg9JGAh2eJq6mgYJ Ok5kd1M+B+Mjnnu/QI6CC8r18FUC5raibbzq2W3fuE5xyKfiiG2edARBt/CyAVfXM6Vc/D 88jTKxA7wVAp+40vZIOIDMGlpM7j1gltmJio8ml/MLxMsEPlWcTJE1vaLPtoog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654908397; a=rsa-sha256; cv=none; b=eaeTHM/N873qV6l7waVvqwe0VDyu9lGKCbtwSRlYTh0XWLbtV9qZdOufhqh7rTfIoIAuVH jsyWueDCMagPB7304hJrwYfmFJ26syszWOZy6hDUkqZZqIvWKxAtTgIaI8JuJoe8SIBAlU w0ENjQtcDPm0CmkMp75hZHaYcyf1jTGYMLHcRVifkjZcTfNrR4dRoGNZbmyTz+khVpRdeV IlW29FbTIgks7G8c1pSzq9xeb2BtLEZeDyX/sK2Hnth3Z97UAYAnAXx7j/g/BU6CCPuUD+ 0Cc/3V4Gz1DiuYdgc9g9w2bOEqzpp102jFhaApJKiiw9g3Nrr+irjAu9K1AuRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cfVsdfxG; 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: -8.98 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cfVsdfxG; 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: 18A9CA6F8 X-Spam-Score: -8.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: RhZDa8G/woM0 This is a multi-part message in MIME format. --------------Ug8MMetcCCN2IjJC526yi0ft Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi All, I use org-attach to copy and attach images in my org-mode notes. I would like to assign org-attach-id-dir using directory local variable. Please find the statements I use in directory local file to define my org-roam directory and org-attach-id-dir below for reference. Directory local configuration: ((nil . ((eval . (setq-local                   org-roam-directory (expand-file-name (locate-dominating-file default-directory ".dir-locals.el"))))          (eval . (setq-local                   org-roam-db-location (expand-file-name "org-roam.db" org-roam-directory)))          (eval . (setq-local                   org-attach-id-dir (expand-file-name "attachments" org-roam-directory)))          ))) My Emacs and Org-mode configuration: Org: 9.6 Emacs: 28.1 (Doom Emacs) The org-mode file opened from this directory respects the attachment location defined in directory local variable when display of inline images during start-up is disabled. Org mode displays the attachments once the org file is open, and I toggle display of inline image. The same files throw an error when I open the file with inline images enabled at startup. 1. Have I made an error in how I define the directory local file? 2. If I have not made and error, Is it possible to define the attachment directory in directory local variable and have org mode respect the location when display of inline images are enabled during startup? 3. If I did make an error, do you have any recommendation on how I can resolve this? I am new to Emacs, and I am not good at Emacs Lisp currently. It's something I am trying to learn. Any suggestions or recommendation would help. I am open to testing this out in stock Emacs if that's something that will help. Thanks & Regards, Alen Alex --------------Ug8MMetcCCN2IjJC526yi0ft Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi All,

I use org-attach to copy and attach images in my org-mode notes. I would like to assign org-attach-id-dir using directory local variable. Please find the statements I use in directory local file to define my org-roam directory and org-attach-id-dir below for reference.


Directory local configuration:

((nil . ((eval . (setq-local
                  org-roam-directory (expand-file-name (locate-dominating-file
                                                        default-directory ".dir-locals.el"))))
         (eval . (setq-local
                  org-roam-db-location (expand-file-name "org-roam.db"
                                                         org-roam-directory)))
         (eval . (setq-local
                  org-attach-id-dir (expand-file-name "attachments"
                                                         org-roam-directory)))
         )))


My Emacs and Org-mode configuration:

Org: 9.6

Emacs: 28.1 (Doom Emacs)


The org-mode file opened from this directory respects the attachment location defined in directory local variable when display of inline images during start-up is disabled. Org mode displays the attachments once the org file is open, and I toggle display of inline image. The same files throw an error when I open the file with inline images enabled at startup.

1. Have I made an error in how I define the directory local file?

2. If I have not made and error, Is it possible to define the attachment directory in directory local variable and have org mode respect the location when display of inline images are enabled during startup?

3. If I did make an error, do you have any recommendation on how I can resolve this?

I am new to Emacs, and I am not good at Emacs Lisp currently. It's something I am trying to learn. Any suggestions or recommendation would help. I am open to testing this out in stock Emacs if that's something that will help.


Thanks & Regards,

Alen Alex



--------------Ug8MMetcCCN2IjJC526yi0ft--