emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
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	[thread overview]
Message-ID: <87lf4t46xb.fsf@gmail.com> (raw)
In-Reply-To: <8735r2xx5l.fsf@prevos.net>


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 <peter@prevos.net> 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:)



  reply	other threads:[~2021-08-22 19:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21 21:58 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/)] Peter Prevos
2021-08-22 19:25 ` Tim Cross [this message]
2021-08-23  2:28 ` Ihor Radchenko
2021-08-23  9:39   ` Peter Prevos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lf4t46xb.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).