Permalink
Browse files

rails-ruby.el (hs-minor-mode-hook): created, placed in hs-setup-overl…

…ay initialization to fix a bug #13162

git-svn-id: svn+ssh://rubyforge.org/var/svn/emacs-rails/trunk@211 cc5033d0-740f-0410-afc7-949910e492f2
  • Loading branch information...
1 parent aea5974 commit 5cdc29d29357021e760aaf60770c64b42cf008fa dimaexe committed Aug 17, 2007
Showing with 11 additions and 2 deletions.
  1. +4 −0 ChangeLog
  2. +7 −2 rails-ruby.el
View
@@ -1,3 +1,7 @@
+2007-08-17 Dmitry Galinsky <dima.exe@gmail.com>
+
+ * rails-ruby.el (hs-minor-mode-hook): created, placed in hs-setup-overlay initialization to fix a bug #13162
+
2007-08-15 Dmitry Galinsky <dima.exe@gmail.com>
* rails-scripts.el (rails-script:setup-output-buffer): fixed compilation warning
View
@@ -64,10 +64,15 @@ See the variable `align-rules-list' for more details.")
(count-lines (overlay-start ov)
(overlay-end ov))))))
-(eval-after-load "hs-mode"
- (unless hs-set-up-overlay
+(eval-after-load "hideshow"
+ (unless 'hs-set-up-overlay
(setq hs-set-up-overlay 'display-code-line-counts)))
+(add-hook 'hs-minor-mode-hook
+ (lambda ()
+ (unless hs-set-up-overlay
+ (setq hs-set-up-overlay 'display-code-line-counts))))
+
(defun ruby-hs-minor-mode (&optional arg)
(interactive)
(require 'hideshow)

0 comments on commit 5cdc29d

Please sign in to comment.