emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode@gnu.org, Stefan Huchler <stefan.huchler@mail.de>
Subject: Re: set modes for org-edit-special (elisp block)
Date: Mon, 25 Jan 2016 12:32:15 -0500	[thread overview]
Message-ID: <87fuxl8t0g.fsf@kyleam.com> (raw)
In-Reply-To: <m2oac9irxr.fsf@charm-ecran.irisa.fr> (Alan Schmitt's message of "Mon, 25 Jan 2016 16:45:20 +0100")

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

[...]

> I’m having the same problem with python: I’m still in emacs-lisp mode.
> I checked the value of the variable and it is as expected. For some
> reason the change is not picked up. Is it because there are several
> occurrences of "elisp" in the list and it’s not the first one that is
> picked up?

No, I don't think repeated keys are an issue as long as the one you want
occurs first.  (org-src--get-lang-mode uses assoc.)  It really should
just boil down to

   (cdr (assoc "elisp" org-src-lang-modes))

Perhaps you step through org-src--get-lang-mode (which is called by
org-edit-src-code) to see what's going on.

-- 
Kyle

  reply	other threads:[~2016-01-25 17:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-24  5:26 set modes for org-edit-special (elisp block) Stefan Huchler
2016-01-24  5:33 ` Kyle Meyer
2016-01-24 17:35   ` Stefan Huchler
2016-01-24 17:50     ` Kyle Meyer
2016-01-25 13:05     ` Alan Schmitt
2016-01-25 15:11       ` Kyle Meyer
2016-01-25 15:45         ` Alan Schmitt
2016-01-25 17:32           ` Kyle Meyer [this message]
2016-01-25 17:37           ` Nick Dokos
2016-01-26 10:23             ` Alan Schmitt

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=87fuxl8t0g.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=stefan.huchler@mail.de \
    /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).