emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Symbol's value as variable is void: org-src-lang-modes
@ 2017-08-15 19:27 Elliott Slaughter
  2017-08-15 19:34 ` Elliott Slaughter
  0 siblings, 1 reply; 5+ messages in thread
From: Elliott Slaughter @ 2017-08-15 19:27 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1724 bytes --]

When I install a fresh copy of org-mode via el-get, I see the following
error:

Bug: Symbol's value as variable is void: org-src-lang-modes

I don't believe this is a problem in el-get, but if I'm wrong, let me know
and I will take this up with the el-get developers.

Here is the backtrace:

Debugger entered--Lisp error: (void-variable org-src-lang-modes)
  add-to-list(org-src-lang-modes ("sclang" . sclang))
  byte-code("\300\301\302\303\304\"\"\207" [with-eval-after-load "org"
add-to-list org-src-lang-modes ("sclang" . sclang)] 5)
  load("/home/eslaught/.emacs.d/el-get/.loaddefs" nil t)
  el-get-load-fast("/home/eslaught/.emacs.d/el-get/.loaddefs.el")
  el-get-eval-autoloads()
  el-get(sync)
  econf-install()
  eval-buffer(#<buffer  *load*-610652> nil
"/home/eslaught/econf/econf-helper.el" nil t)  ; Reading at buffer position
1907
  load-with-code-conversion("/home/eslaught/econf/econf-helper.el"
"/home/eslaught/econf/econf-helper.el" nil t)
  require(econf-helper)
  eval-buffer(#<buffer  *load*> nil "/home/eslaught/.emacs" nil t)  ;
Reading at buffer position 205
  load-with-code-conversion("/home/eslaught/.emacs" "/home/eslaught/.emacs"
t t)
  load("~/.emacs" t t)
  #[0 "^H\205\262^@     \306=\203^Q^@\307^H\310Q\202;^@
\311=\204^^^@\307^H\312Q\202;^@\313\307\314\315#\203*^@\316\202;^@\313\307\314\317#$
  command-line()
  normal-top-level()

Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
 of 2014-03-07 on lamiak, modified by Debian
Package: Org mode installed via el-get, from the following Git commit

commit 489080124210a78d6622c79ede5c003e07c2ccb8
Merge: b900a85 731f59f
Author: Kyle Meyer <kyle@kyleam.com>
Date:   Mon Aug 14 22:04:35 2017 -0400

    Merge branch 'maint'

[-- Attachment #2: Type: text/html, Size: 2176 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Symbol's value as variable is void: org-src-lang-modes
  2017-08-15 19:27 Bug: Symbol's value as variable is void: org-src-lang-modes Elliott Slaughter
@ 2017-08-15 19:34 ` Elliott Slaughter
  2017-08-15 20:10   ` Kaushal Modi
  0 siblings, 1 reply; 5+ messages in thread
From: Elliott Slaughter @ 2017-08-15 19:34 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2228 bytes --]

Actually, the backtrace goes through the el-get loaddefs file, so maybe
something is going wrong there. Let me check with the el-get developers and
see if they know what is going on.

On Tue, Aug 15, 2017 at 12:27 PM, Elliott Slaughter <
elliottslaughter@gmail.com> wrote:

> When I install a fresh copy of org-mode via el-get, I see the following
> error:
>
> Bug: Symbol's value as variable is void: org-src-lang-modes
>
> I don't believe this is a problem in el-get, but if I'm wrong, let me know
> and I will take this up with the el-get developers.
>
> Here is the backtrace:
>
> Debugger entered--Lisp error: (void-variable org-src-lang-modes)
>   add-to-list(org-src-lang-modes ("sclang" . sclang))
>   byte-code("\300\301\302\303\304\"\"\207" [with-eval-after-load "org"
> add-to-list org-src-lang-modes ("sclang" . sclang)] 5)
>   load("/home/eslaught/.emacs.d/el-get/.loaddefs" nil t)
>   el-get-load-fast("/home/eslaught/.emacs.d/el-get/.loaddefs.el")
>   el-get-eval-autoloads()
>   el-get(sync)
>   econf-install()
>   eval-buffer(#<buffer  *load*-610652> nil "/home/eslaught/econf/econf-helper.el"
> nil t)  ; Reading at buffer position 1907
>   load-with-code-conversion("/home/eslaught/econf/econf-helper.el"
> "/home/eslaught/econf/econf-helper.el" nil t)
>   require(econf-helper)
>   eval-buffer(#<buffer  *load*> nil "/home/eslaught/.emacs" nil t)  ;
> Reading at buffer position 205
>   load-with-code-conversion("/home/eslaught/.emacs"
> "/home/eslaught/.emacs" t t)
>   load("~/.emacs" t t)
>   #[0 "^H\205\262^@     \306=\203^Q^@\307^H\310Q\202;^@
> \311=\204^^^@\307^H\312Q\202;^@\313\307\314\315#\203*^@\316\
> 202;^@\313\307\314\317#$
>   command-line()
>   normal-top-level()
>
> Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
>  of 2014-03-07 on lamiak, modified by Debian
> Package: Org mode installed via el-get, from the following Git commit
>
> commit 489080124210a78d6622c79ede5c003e07c2ccb8
> Merge: b900a85 731f59f
> Author: Kyle Meyer <kyle@kyleam.com>
> Date:   Mon Aug 14 22:04:35 2017 -0400
>
>     Merge branch 'maint'
>
>


-- 
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to
predict the future is to invent it." - Alan Kay

[-- Attachment #2: Type: text/html, Size: 3087 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Symbol's value as variable is void: org-src-lang-modes
  2017-08-15 19:34 ` Elliott Slaughter
@ 2017-08-15 20:10   ` Kaushal Modi
  2017-09-07 17:37     ` Elliott Slaughter
  0 siblings, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2017-08-15 20:10 UTC (permalink / raw)
  To: Elliott Slaughter, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

On Tue, Aug 15, 2017 at 3:48 PM Elliott Slaughter <
elliottslaughter@gmail.com> wrote:

> Actually, the backtrace goes through the el-get loaddefs file, so maybe
> something is going wrong there. Let me check with the el-get developers and
> see if they know what is going on.
>

Yes, that's very likely. I have been building Org from master branch and it
has been working fine.

C-h v org-src-lang-modes tells that it is defined in org-src.el.

So you probably have a mixed installation where an old org-src.el is loaded
which doesn't have that variable defined.

(I had recently written about how to install the development version of Org
without causing mixed installations:
https://scripter.co/building-org-development-version/ .)

-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1307 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Symbol's value as variable is void: org-src-lang-modes
  2017-08-15 20:10   ` Kaushal Modi
@ 2017-09-07 17:37     ` Elliott Slaughter
  2017-09-07 18:27       ` Kaushal Modi
  0 siblings, 1 reply; 5+ messages in thread
From: Elliott Slaughter @ 2017-09-07 17:37 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1611 bytes --]

Hi all,

I have learned (thanks to the el-get developers) that org-mode uses
with-eval-after-load, which was added in Emacs 24.4. (See discussion [1].)

I confirmed that the master branch of org-mode loads (via el-get)
successfully in 24.4.1 and fails to load in 24.3.1.

I'm not sure what the compatibility policy is in this project, and whether
or not this deserves a fix. I personally can work around this by building
Emacs from source on older machines, but I will need to do this on every
Ubuntu 14.04 machine I use.

[1]: https://github.com/dimitri/el-get/issues/2559#issuecomment-322881981

On Tue, Aug 15, 2017 at 1:10 PM, Kaushal Modi <kaushal.modi@gmail.com>
wrote:

> On Tue, Aug 15, 2017 at 3:48 PM Elliott Slaughter <
> elliottslaughter@gmail.com> wrote:
>
>> Actually, the backtrace goes through the el-get loaddefs file, so maybe
>> something is going wrong there. Let me check with the el-get developers and
>> see if they know what is going on.
>>
>
> Yes, that's very likely. I have been building Org from master branch and
> it has been working fine.
>
> C-h v org-src-lang-modes tells that it is defined in org-src.el.
>
> So you probably have a mixed installation where an old org-src.el is
> loaded which doesn't have that variable defined.
>
> (I had recently written about how to install the development version of
> Org without causing mixed installations: https://scripter.co/building-
> org-development-version/ .)
>
> --
>
> Kaushal Modi
>



-- 
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to
predict the future is to invent it." - Alan Kay

[-- Attachment #2: Type: text/html, Size: 2895 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Symbol's value as variable is void: org-src-lang-modes
  2017-09-07 17:37     ` Elliott Slaughter
@ 2017-09-07 18:27       ` Kaushal Modi
  0 siblings, 0 replies; 5+ messages in thread
From: Kaushal Modi @ 2017-09-07 18:27 UTC (permalink / raw)
  To: Elliott Slaughter, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

On Thu, Sep 7, 2017 at 1:38 PM Elliott Slaughter <elliottslaughter@gmail.com>
wrote:

> Hi all,
>
> I have learned (thanks to the el-get developers) that org-mode uses
> with-eval-after-load, which was added in Emacs 24.4. (See discussion [1].)
>
> I confirmed that the master branch of org-mode loads (via el-get)
> successfully in 24.4.1 and fails to load in 24.3.1.
>
> [1]: https://github.com/dimitri/el-get/issues/2559#issuecomment-322881981
>

 I just pushed this to maint (and merged to master) that uses
eval-after-load instead of with-eval-after-load:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?h=maint&id=7a29c82e1100f0e0e5c1c8d8b276139358abb031
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1359 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-07 18:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-15 19:27 Bug: Symbol's value as variable is void: org-src-lang-modes Elliott Slaughter
2017-08-15 19:34 ` Elliott Slaughter
2017-08-15 20:10   ` Kaushal Modi
2017-09-07 17:37     ` Elliott Slaughter
2017-09-07 18:27       ` Kaushal Modi

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).