Skip to content

Commit

Permalink
Ability to specify number of lines initially shown when opening log file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom ten Thij committed Apr 29, 2008
1 parent e6de572 commit 0ae8579
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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>

Expand Down
1 change: 1 addition & 0 deletions rails-log.el
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions rails.el
Expand Up @@ -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)
Expand Down

0 comments on commit 0ae8579

Please sign in to comment.