From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: set modes for org-edit-special (elisp block) Date: Tue, 26 Jan 2016 11:23:17 +0100 Message-ID: References: <87r3h74kf2.fsf@jupiter.lan> <8760yjpmnl.fsf@kyleam.com> <87lh7e5190.fsf@jupiter.lan> <8737tl7kyx.fsf@kyleam.com> <87a8ntzhke.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO0mP-00035B-Uj for emacs-orgmode@gnu.org; Tue, 26 Jan 2016 05:23:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO0mM-0003jn-Mg for emacs-orgmode@gnu.org; Tue, 26 Jan 2016 05:23:21 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:64586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO0mM-0003ji-Gf for emacs-orgmode@gnu.org; Tue, 26 Jan 2016 05:23:18 -0500 In-Reply-To: <87a8ntzhke.fsf@alphaville.usersys.redhat.com> (Nick Dokos's message of "Mon, 25 Jan 2016 12:37:21 -0500") 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: Nick Dokos Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, On 2016-01-25 12:37, Nick Dokos writes: > Alan Schmitt writes: > >> I=E2=80=99m having the same problem with python: I=E2=80=99m still in em= acs-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 th= at 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. I finally found the source of my problem, and I feel very stupid: my elisp blocks use the name "emacs-lisp" as language, so this customization was not picked up, since "elisp" and "emacs-lisp" are different. Sorry for the confusion, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 (Updated January 25, 2016, Mauna Loa Obs.): 404.15= ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWp0kVAAoJEAQNCjtO0uXHNDEIAIE30Ohr63m8bNpjOsOh+tFY 1vfcLVWqbY1RFoDU4xlwzkVjnhgITrEdgaL/htQrqZWoQUSnEZDebKTbas+p362e P6mLKEFoGK1D2MZWIx1ZFNyh923nmyPc3yy9PrAB66S5CEenrzOY8gmAoKPAi/OZ y8bINq5x9Epd+9UfT10hPrmDDWWtVzbVcafpHuFwxXUDYp/zekMooPJaXI2VnXkO G1ifixGbDG1VElE+6he++fDVvMuSA1QTOsDIdlyR7+6aQSWbz3oH8cIEJ8EpNm/2 ZskmvpGBcj7MvrjwLpW9AvDUNyB6EVA9ZUeWROPJrKUbD0j1+FC/hOyoR8EflYw= =gS+X -----END PGP SIGNATURE----- --=-=-=--