public
Description: Tomtt's version of the minor mode for editing RubyOnRails code in Emacs
Homepage: http://rubyforge.org/projects/emacs-rails/
Clone URL: git://github.com/tomtt/emacs-rails.git
Ability to specify number of lines initially shown when opening log file
Tom ten Thij (author)
Tue Apr 29 04:44:22 -0700 2008
commit  0ae857970875e1180e2aa44bf6fbdf042f6b8bf6
tree    9f952c54d3bc6a399419ea65c571900706930bc0
parent  e6de572422330f135fb963e348f0d541d7dbf6aa
...
1
2
3
4
 
 
 
 
5
6
7
...
1
2
3
 
4
5
6
7
8
9
10
0
@@ -1,7 +1,10 @@
0
 2008-04-29 Tom ten Thij <mail@tomtenthij.nl>
0
 
0
   * rails.el: [#12451] Optional disablement ruby-electric-mode <pezra>, upping
0
- max-lisp-eval-depth to allow navigation to work with larger number of files.
0
+ max-lisp-eval-depth to allow navigation to work with larger number of files,
0
+ defined rails-number-of-lines-shown-when-opening-log-file
0
+ * rails-log.el: number of lines initially shown when opening log file as
0
+ specified by rails-number-of-lines-shown-when-opening-log-file
0
 
0
 2008-03-03 Dmitry Galinsky <dima.exe@gmail.com>
0
 
...
48
49
50
 
51
52
53
...
48
49
50
51
52
53
54
0
@@ -48,6 +48,7 @@
0
     (start-process "tail"
0
                    buffer
0
                    "tail"
0
+ "-n" (message "%d" rails-number-of-lines-shown-when-opening-log-file)
0
                    "-f" (rails-core:file (concat "log/" log-file)))))
0
 
0
 (defun rails-log:open (log-file)
...
150
151
152
 
 
 
 
 
153
154
155
...
150
151
152
153
154
155
156
157
158
159
160
0
@@ -150,6 +150,11 @@ Emacs w3m browser."
0
   :group 'rails
0
   :type 'boolean)
0
 
0
+(defcustom rails-number-of-lines-shown-when-opening-log-file 130
0
+ "Specifies how many lines to show initially when opening a log file"
0
+ :group 'rails
0
+ :type 'integer)
0
+
0
 (defvar rails-version "0.5.99.6")
0
 (defvar rails-templates-list '("html.erb" "erb" "js.rjs" "builder" "rhtml" "rxml" "rjs" "haml" "liquid" "mab"))
0
 (defvar rails-use-another-define-key nil)

Comments

    No one has commented yet.