Browse files

Ability to specify number of lines initially shown when opening log file

  • Loading branch information...
1 parent e6de572 commit 0ae857970875e1180e2aa44bf6fbdf042f6b8bf6 Tom ten Thij committed Apr 29, 2008
Showing with 10 additions and 1 deletion.
  1. +4 −1 ChangeLog
  2. +1 −0 rails-log.el
  3. +5 −0 rails.el
View
5 ChangeLog
@@ -1,7 +1,10 @@
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.
+ max-lisp-eval-depth to allow navigation to work with larger number of files,
+ defined rails-number-of-lines-shown-when-opening-log-file
+ * rails-log.el: number of lines initially shown when opening log file as
+ specified by rails-number-of-lines-shown-when-opening-log-file
2008-03-03 Dmitry Galinsky <dima.exe@gmail.com>
View
1 rails-log.el
@@ -48,6 +48,7 @@
(start-process "tail"
buffer
"tail"
+ "-n" (message "%d" rails-number-of-lines-shown-when-opening-log-file)
"-f" (rails-core:file (concat "log/" log-file)))))
(defun rails-log:open (log-file)
View
5 rails.el
@@ -150,6 +150,11 @@ Emacs w3m browser."
:group 'rails
:type 'boolean)
+(defcustom rails-number-of-lines-shown-when-opening-log-file 130
+ "Specifies how many lines to show initially when opening a log file"
+ :group 'rails
+ :type 'integer)
+
(defvar rails-version "0.5.99.6")
(defvar rails-templates-list '("html.erb" "erb" "js.rjs" "builder" "rhtml" "rxml" "rjs" "haml" "liquid" "mab"))
(defvar rails-use-another-define-key nil)

0 comments on commit 0ae8579

Please sign in to comment.