emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Miquel" <sebastien.miquel@posteo.eu>
To: Samuel Banya <sbanya@fastmail.com>, emacs-orgmode@gnu.org
Subject: Re: Question Regarding Yasnippet With Org Mode (Emacs 27.2)
Date: Sun, 23 May 2021 21:18:48 +0000	[thread overview]
Message-ID: <d5ff9ae7-e5c5-a180-a791-a7f1f4a9357c@posteo.eu> (raw)
In-Reply-To: <8fbaaf62-b827-4a88-bf7a-23aa1596e469@www.fastmail.com>

Hi Samuel,

> I'm guessing its some kind of Org Mode vs Yasnippet issue where 
> Org-mode is expanding it too fast, when it should wait for user input 
> hence the "$1" section.

I guess yasnippet tries to indent the inside of the block (see
=yas-indent-line=) before the lang part of the src block is specified.

In Emacs 27.2, the default value of =org-src-tab-acts-natively= was
changed to `t`. With this setting, trying to indent a src block with
no language results in this error.

-- 
Sébastien Miquel



  parent reply	other threads:[~2021-05-23 21:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-23  4:51 Question Regarding Yasnippet With Org Mode (Emacs 27.2) Samuel Banya
2021-05-23 16:33 ` Greg Minshall
2021-05-24  1:09   ` Samuel Banya
2021-05-24  3:03     ` Greg Minshall
2021-05-23 21:18 ` Sébastien Miquel [this message]
2021-05-24  1:04   ` Samuel Banya
2021-05-24  5:51     ` Sébastien Miquel
2021-05-29 21:12       ` Samuel Banya

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=d5ff9ae7-e5c5-a180-a791-a7f1f4a9357c@posteo.eu \
    --to=sebastien.miquel@posteo.eu \
    --cc=emacs-orgmode@gnu.org \
    --cc=sbanya@fastmail.com \
    /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).