From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: set modes for org-edit-special (elisp block) Date: Mon, 25 Jan 2016 12:37:21 -0500 Message-ID: <87a8ntzhke.fsf@alphaville.usersys.redhat.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: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNl5E-0006s2-P1 for emacs-orgmode@gnu.org; Mon, 25 Jan 2016 12:37:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNl59-0000fT-Q4 for emacs-orgmode@gnu.org; Mon, 25 Jan 2016 12:37:44 -0500 Received: from plane.gmane.org ([80.91.229.3]:40615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNl59-0000fL-Jc for emacs-orgmode@gnu.org; Mon, 25 Jan 2016 12:37:39 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aNl55-0006O9-Mi for emacs-orgmode@gnu.org; Mon, 25 Jan 2016 18:37:35 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jan 2016 18:37:35 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jan 2016 18:37:35 +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: emacs-orgmode@gnu.org Alan Schmitt 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? > org-src--get-lang-mode uses assoc, so it should pick up the first pair whose car matches. You can try it by hand: (org-src--get-lang-mode "elisp") Of course, it's possible (but unlikely) that somebody is using some other way to get at the mode. -- Nick