Skip to content
Browse files

Upping max-lisp-eval-depth to allow navigation to work with larger nu…

…mber of files

Signed-off-by: Tom ten Thij <git@tomtenthij.nl>
  • Loading branch information...
1 parent 2603d0f commit e6de572422330f135fb963e348f0d541d7dbf6aa Tom ten Thij committed Apr 29, 2008
Showing with 9 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +4 −0 rails.el
View
5 ChangeLog
@@ -1,3 +1,8 @@
+2008-04-29 Tom ten Thij <mail@tomtenthij.nl>
+
+ * rails.el: [#12451] Optional disablement ruby-electric-mode <pezra>, upping
+ max-lisp-eval-depth to allow navigation to work with larger number of files.
+
2008-03-03 Dmitry Galinsky <dima.exe@gmail.com>
* rails-ws.el (rails-ws:available-servers-list): Added Thin support.
View
4 rails.el
@@ -155,6 +155,7 @@ Emacs w3m browser."
(defvar rails-use-another-define-key nil)
(defvar rails-primary-switch-func nil)
(defvar rails-secondary-switch-func nil)
+(defvar rails-required-lisp-eval-depth 1000) ; Specifies the minimum required value of max-lisp-eval-depth for rails mode to work
(defvar rails-directory<-->types
'((:controller "app/controllers/")
@@ -459,4 +460,7 @@ necessary."
(modify-coding-system-alist 'file "Rakefile$" 'utf-8)
(modify-coding-system-alist 'file (rails-core:regex-for-match-view) 'utf-8)
+;; Some navigation breaks if max-lisp-eval-depth is not high enough, up it if too low
+(setq max-lisp-eval-depth (max max-lisp-eval-depth rails-required-lisp-eval-depth))
+
(provide 'rails)

0 comments on commit e6de572

Please sign in to comment.
Something went wrong with that request. Please try again.