From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uF3qMR2lImGywgAAgWs5BA (envelope-from ) for ; Sun, 22 Aug 2021 21:27:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uBZ8LR2lImEdHQAAbx9fmQ (envelope-from ) for ; Sun, 22 Aug 2021 19:27:25 +0000 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 03B5122837 for ; Sun, 22 Aug 2021 21:27:25 +0200 (CEST) Received: from localhost ([::1]:36100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHt7r-0004cc-Ve for larch@yhetil.org; Sun, 22 Aug 2021 15:27:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHt7H-0004cO-LC for emacs-orgmode@gnu.org; Sun, 22 Aug 2021 15:26:47 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:35536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHt7G-0007G8-11 for emacs-orgmode@gnu.org; Sun, 22 Aug 2021 15:26:47 -0400 Received: by mail-pf1-x434.google.com with SMTP id x16so13478024pfh.2 for ; Sun, 22 Aug 2021 12:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=oVx+1ZPTbl3jR2rQqm62fLgCSot40bESgItSn9oJ0WM=; b=Rky1CUT0PUL1Ic71XZ2KvsGvxngDCSX52W7rVB4M5GsjqaOYvpP5SjMG1ox04m8zQ6 NU1yDfBZVRT5wtOxD+FiVh1bDo8oGIW9SxO8P4SMB1YbQKzQvcZKatR66bt3oMUM9LhE q68a25AbVHgOfb4sTZLCC2VEmZZj1X9qbh6LoCteRQMi2thMdtP6URZgrf3ziilr5vuS hb57jGacQuhPaKkda1bLjJum0b4BedxLdizeOFziSNkiU9cHp0SR1hjfOEwc0a/hZak0 ae1MTuhe3qdubZJ50BYR9Qu7/gaCSX4TcaPlbEI5Wy6t6aSRq3x12WWxdb8W+yRiPYfD guhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=oVx+1ZPTbl3jR2rQqm62fLgCSot40bESgItSn9oJ0WM=; b=VMhbLiWGnX6M1YYWlZJwkRflWlAf89lWqW2vE2kH3tBomCU5TbYR7y157IpoAtfne7 FLyTW0OQufD5GJ8JaUPfTtwpQXGXb4Pi1G4HcsBj0pzp5SOxEG9gh7e0WSDtHX6h9yXL olXIG6n8zPyxjH2EDGzgzNX7KvKR7VmowkI2j5ZDSwnT5QOYMM1eBJHK2Oi1dtSqZ7iD /M/3kGEooQ9y5mgtiqb3gWTMEuqg7cuBMAvUQhAjmtONvFidbgB6A0gfPjm74gAomx6J iO1JozqCs2wbZU+AGGqQtEi4Edp8A15VmynvtmQmw9uRsOUDH5kyfusmlDwAfTG0OqEa y1Eg== X-Gm-Message-State: AOAM533g9DfYD6CQMZab0D5cl7LyfRhCQi8CERbvEQgv6pxvTNGwU2xG Ef/8y4zWH3mtQYRh88YnjsSPkw9eWw0= X-Google-Smtp-Source: ABdhPJye3EycemFoaFR5NlVOhsygx2RVBSOkilcs7jkelkrHzwj3naGn1nPIK7zg1uiUEpAOlWgcUA== X-Received: by 2002:a63:f342:: with SMTP id t2mr28939989pgj.45.1629660404327; Sun, 22 Aug 2021 12:26:44 -0700 (PDT) Received: from tim-desktop (106-69-83-46.dyn.iinet.net.au. [106.69.83.46]) by smtp.gmail.com with ESMTPSA id ge6sm17025579pjb.52.2021.08.22.12.26.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 12:26:43 -0700 (PDT) References: <8735r2xx5l.fsf@prevos.net> User-agent: mu4e 1.6.4; emacs 27.2.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Bug: File variable no longer on first line when running org-id-get-create [9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/)] Date: Mon, 23 Aug 2021 05:25:33 +1000 In-reply-to: <8735r2xx5l.fsf@prevos.net> Message-ID: <87lf4t46xb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x434.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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629660445; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=oVx+1ZPTbl3jR2rQqm62fLgCSot40bESgItSn9oJ0WM=; b=KopDt8xZpcvWC9XmXU42syxEZZNBZiAhVTAHgmqZtFTIamleEb7zr+D6xTocQyL/dp+pgp /x2ocY63Q7gyQRR7l5GrHOBDdj7AxBIBmqz/GUzh/fS3EhyLMcrQDHFMUKOE4Vlk8Iw+Tl 9CJRCFLgRLXzwuth3k8gBhhyKtTph+O7dV+gVv2Lt9NGxFSR+b6AFcvjJPruSxRnyJtgyI jAaVQSg0R/ejy7PDRaQsiuLa8RwKtZQo58im1dA3OpARbMjS6lh62rkzcJob0AZrDNMhj1 sP/Sdj0EiauVLSgI3gCLVHK9PPaAaIMlE4h5jh9Kr8yD4gjYkRk5QjOFZHFN/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629660445; a=rsa-sha256; cv=none; b=PP2L3VX5BM6fxbOso56icvnsM2MZ/3buvnaWvp1mGM9K8OUfq0xo6aWcH1Yhx+z1g7mA8D tcelwko0adZy2jjbCMEEqcRqY22VPa3HNdQd3+kFKCG9wY2+YFVFTyq3+nNoqXe+yPTGUH guIJacBfhBm2RVeaEHEEFo7AMPdgGm7/oSmxZl6i4l6DHVXtK+1pZl8uZrg7sAsrcU/alw dRLP1sMJvLoUm35dgoDl5fec4oQF60JFIxutJPE+6GtG2VoeQio4xCNk5/SYlVqDU6Wui8 DpcQ1PEJ5v+NWQg2ftWXr35VXJe32R8Rfulk09aiUFS7qndb+n9uP/O1We92vA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Rky1CUT0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Rky1CUT0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 03B5122837 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: /FKfamcQZnMr I would argue this is an org-roam bug rather than an org bug and so needs to be reported to the org-roam maintainers. org-roam is not part of org mode. Peter Prevos writes: > Hi, I use file variables on the first line of some Org mode files to indicate > the local Flyspell dictionary, e.g.: > > -*- mode: org; ispell-local-dictionary: "nederlands" -*- > > This line sets the dictionary to Dutch for this file only. > > This is useful functionality that allows me to indicate the language of files > other than my default language. > > It works great, except when I need to add an ID for use in Org-Roam using the > org-id-get-create function. > > The new drawer is placed on the first line of the buffer, so the local variable > declaration moves down and is as such no longer recognised as it is expected on > line 1. (File variable documentation: > https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html) > > There is an ugly workaround by placing file variables at the end of the file, as > documented in the linked page. > > Regards > > P:)