emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114982: * lisp/progmodes/ruby-mode.el: Improve a fe


From: Bozhidar Batsov
Subject: [Emacs-diffs] trunk r114982: * lisp/progmodes/ruby-mode.el: Improve a few error messages.
Date: Tue, 05 Nov 2013 16:29:12 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114982
revision-id: address@hidden
parent: address@hidden
committer: Bozhidar Batsov <address@hidden>
branch nick: master
timestamp: Tue 2013-11-05 18:28:40 +0200
message:
  * lisp/progmodes/ruby-mode.el: Improve a few error messages.
modified:
  lisp/progmodes/ruby-mode.el    
rubymode.el-20091113204419-o5vbwnq5f7feedwu-8804
=== modified file 'lisp/progmodes/ruby-mode.el'
--- a/lisp/progmodes/ruby-mode.el       2013-11-05 09:30:15 +0000
+++ b/lisp/progmodes/ruby-mode.el       2013-11-05 16:28:40 +0000
@@ -641,7 +641,7 @@
   "Indent the current line to COLUMN."
   (when column
     (let (shift top beg)
-      (and (< column 0) (error "invalid nest"))
+      (and (< column 0) (error "Invalid nesting"))
       (setq shift (current-column))
       (beginning-of-line)
       (setq beg (point))
@@ -732,7 +732,7 @@
       (forward-char -1))
     (cond ((zerop n))
           (no-error nil)
-          ((error "unterminated string")))))
+          ((error "Unterminated string")))))
 
 (defun ruby-deep-indent-paren-p (c)
   "TODO: document."
@@ -943,7 +943,7 @@
           (setq in-string (match-end 0))
           (goto-char ruby-indent-point)))
        (t
-        (error (format "bad string %s"
+        (error (format "Bad string %s"
                        (buffer-substring (point) pnt)
                        ))))))
   (list in-string nest depth pcol))
@@ -1018,7 +1018,7 @@
                (setq indent (current-column)))))
        ((and (nth 2 state) (> (nth 2 state) 0)) ; in nest
         (if (null (cdr (nth 1 state)))
-            (error "invalid nest"))
+            (error "Invalid nesting"))
         (goto-char (cdr (nth 1 state)))
         (forward-word -1)               ; skip back a keyword
         (setq begin (point))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]