From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: set modes for org-edit-special (elisp block) Date: Mon, 25 Jan 2016 12:32:15 -0500 Message-ID: <87fuxl8t0g.fsf@kyleam.com> References: <87r3h74kf2.fsf@jupiter.lan> <8760yjpmnl.fsf@kyleam.com> <87lh7e5190.fsf@jupiter.lan> <8737tl7kyx.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNl06-0003Ag-6l for emacs-orgmode@gnu.org; Mon, 25 Jan 2016 12:32:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNl01-0007ue-8i for emacs-orgmode@gnu.org; Mon, 25 Jan 2016 12:32:26 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:50610 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNl01-0007ua-5E for emacs-orgmode@gnu.org; Mon, 25 Jan 2016 12:32:21 -0500 In-Reply-To: (Alan Schmitt's message of "Mon, 25 Jan 2016 16:45:20 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode@gnu.org, Stefan Huchler Alan Schmitt writes: [...] > I=E2=80=99m having the same problem with python: I=E2=80=99m still in ema= cs-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=E2=80=99s not the first one tha= t 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. --=20 Kyle