tkf / emacs-ipython-notebook

IPython notebook client in Emacs
tkf.github.com/emacs-ipython-notebook/
GNU General Public License v3.0
548 stars 51 forks source link

EIN requires cc-mode, otherwise errors #136

Open plpxsk opened 10 years ago

plpxsk commented 10 years ago

Check list

EIN requires cc-mode. If I do not add (require 'cc-mode) then I get error: defvar: Symbol's value as variable is void: c-mode-syntax-table

SEE this link for more: http://stackoverflow.com/questions/21250451/ein-on-aquamacs-3-0-not-working

Steps to reproduce the problem

  1. do not load cc-mode anywhere
  2. type ein:notebooklist-open
  3. will get error: defvar: Symbol's value as variable is void: c-mode-syntax-table

    Expected output

load notebooks

Your EIN configuration (in .emacs.d/init.el or somewhere else)

defaults

Your IPython configuration

  1. What is your IPython version? (run ipython --version): 1.1.0
  2. How do you start IPython? (e.g., ipython notebook --port 9999): ipython notebook in my notebook directory
  3. What is your IPython notebook port number or URL?: 8888

    Additional information (if any)

http://stackoverflow.com/questions/21250451/ein-on-aquamacs-3-0-not-working

System info:

("EIN system info"
 :emacs-version
 "Aquamacs 3.0 GNU Emacs 24.3.50.2
(x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00)
 of 2014-01-19 (Aquamacs-3.0) on watson"
 :emacs-bzr-version nil
 :window-system ns
 :emacs-variant nil
 :os
 (:uname
 "Darwin Pavos-MacBook-Pro.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
"
 :lsb-release nil)
 :image-types
 (png gif tiff jpeg xpm xbm pbm)
 :image-types-available
 (png gif tiff jpeg xpm xbm pbm)
 :request
 (:backend curl)
 :ein
 (:version "0.2.1alpha2"
 :source-dir "/Users/pavo/Library/Application Support/Aquamacs Emacs/elpa/ein-20130711.104/")
 :lib
 ((:name "websocket"
 :path
 "~/Library/Application Support/Aquamacs Emacs/elpa/websocket-20140104.1438/websocket.elc"
 :featurep t
 :version-var websocket-version
 :version "1.1")
  (:name "request"
 :path
 "~/Library/Application Support/Aquamacs Emacs/elpa/request-20130526.1015/request.elc"
 :featurep t
 :version-var request-version
 :version "0.2.0")
  (:name "auto-complete"
 :path
 "~/Library/Application Support/Aquamacs Emacs/elpa/auto-complete-20131128.233/auto-complete.elc"
 :featurep t
 :version-var nil
 :version nil)
  (:name "auto-complete"
 :path
 "~/Library/Application Support/Aquamacs Emacs/elpa/auto-complete-20131128.233/auto-complete.elc"
 :featurep t
 :version-var nil
 :version nil)
  (:name "popup"
 :path
 "~/Library/Application Support/Aquamacs Emacs/elpa/popup-20131230.544/popup.elc"
 :featurep t
 :version-var popup-version
 :version "0.5.0")
  (:name "python"
 :path "/Applications/Aquamacs.app/Contents/Resources/lisp/progmodes/python.elc"
 :featurep nil
 :version-var nil
 :version nil)
  (:name "python-mode"
 :path
 "~/Library/Application Support/Aquamacs Emacs/elpa/auto-complete-20131128.233/dict/python-mode"
 :featurep t
 :version-var nil
 :version nil)
  (:name "markdown-mode"
 :path
 "~/Library/Application Support/Aquamacs Emacs/elpa/markdown-mode-20131210.700/markdown-mode.elc"
 :featurep t
 :version-var markdown-mode-version
 :version "2.0")))