Skip to content

Commit

Permalink
Upping max-lisp-eval-depth to allow navigation to work with larger nu…
Browse files Browse the repository at this point in the history
…mber of files

Signed-off-by: Tom ten Thij <[email protected]>
  • Loading branch information
Tom ten Thij committed Apr 29, 2008
1 parent 2603d0f commit e6de572
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2008-04-29 Tom ten Thij <[email protected]>

* 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 <[email protected]>

* rails-ws.el (rails-ws:available-servers-list): Added Thin support.
Expand Down
4 changes: 4 additions & 0 deletions rails.el
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down Expand Up @@ -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.