[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scala-mode 0fac9ae 014/217: removed debug messages
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scala-mode 0fac9ae 014/217: removed debug messages |
Date: |
Sun, 29 Aug 2021 11:30:35 -0400 (EDT) |
branch: elpa/scala-mode
commit 0fac9aebf9cf42312c24df83189f15afb11cb2f0
Author: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Commit: Heikki Vesalainen <heikkivesalainen@yahoo.com>
removed debug messages
---
scala-mode-fontlock.el | 56 ++++++++++++++++++++++----------------------------
scala-mode-indent.el | 12 +++++------
2 files changed, 31 insertions(+), 37 deletions(-)
diff --git a/scala-mode-fontlock.el b/scala-mode-fontlock.el
index 4804797..4a03031 100644
--- a/scala-mode-fontlock.el
+++ b/scala-mode-fontlock.el
@@ -36,12 +36,12 @@ scala-mode has been reloaded."
(looking-at scala-syntax:other-keywords-unsafe-re)
(scala-syntax:looking-at-reserved-symbol nil)))
(looking-at scala-syntax:simplePattern-beginning-re))
- (message "- now at %d" (point))
+; (message "- now at %d" (point))
(if (= (char-after) ?\()
(forward-list)
(goto-char (match-end 0))
(scala-syntax:skip-forward-ignorable)
- (message "+ now at %d" (point))
+; (message "+ now at %d" (point))
(cond ((looking-at "(")
(forward-list))
((looking-at "@")
@@ -50,10 +50,10 @@ scala-mode has been reloaded."
(looking-at scala-syntax:other-keywords-unsafe-re))
(messssage "saw reserved symbol or keyword"))
((looking-at scala-syntax:id-re)
- (message "saw id-re %d" (match-beginning 0))
+; (message "saw id-re %d" (match-beginning 0))
(goto-char (match-end 0)))
- (t
- (message "nothing special here %s" (point)))
+; (t
+; (message "nothing special here %s" (point)))
))
(scala-syntax:skip-forward-ignorable)))
(point)))
@@ -84,13 +84,13 @@ Does not continue past limit.
;; quit if we are past limit
((or (and limit (>= (point) limit))
(eobp))
- (message "limit")
+; (message "limit")
nil)
;; Type pattern, just skip the whole thing. It will end at ',' or ')'.
;; Note: forms starting with ':' are handled by a completely separete
;; font-lock matcher.
((scala-syntax:looking-at-reserved-symbol ":")
- (message ":")
+; (message ":")
(while (not (or (eobp)
(scala-syntax:looking-at "[,);]")
(scala-syntax:looking-at-reserved-symbol "|")
@@ -104,10 +104,10 @@ Does not continue past limit.
;; Binding part cannot start with reserved symbols. If they
;; are seen, we must quit.
((scala-syntax:looking-at-reserved-symbol nil)
- (message "symbol")
+; (message "symbol")
nil)
((scala-syntax:looking-at-stableIdOrPath)
- (message "stableId")
+; (message "stableId")
(let ((beg (match-beginning 0))
(end (match-end 0))
(varid (scala-syntax:looking-at-varid-p)))
@@ -116,7 +116,7 @@ Does not continue past limit.
(cond
((= (char-after end) ?\()
;; matched type
- (message "it's a type")
+; (message "it's a type")
`(,beg ,end nil nil nil nil ,beg ,end))
((progn (scala-syntax:backward-sexp)
(= (char-before) ?.))
@@ -147,7 +147,7 @@ Does not continue past limit.
t)
;; Pattern3 can be a literal. Just skip them.
((looking-at scala-syntax:literal-re)
- (message "literal")
+; (message "literal")
(goto-char (match-end 0))
(scala-syntax:skip-forward-ignorable)
(set-match-data nil)
@@ -155,7 +155,7 @@ Does not continue past limit.
;; Start of a patterns list or alternatives. Skip if alternatives or
;; else leave point at start of first element.
((= (char-after) ?\()
- (message "(")
+; (message "(")
(let ((alternatives-p
(save-excursion
(forward-char)
@@ -177,21 +177,21 @@ Does not continue past limit.
;; next element
((or (= (char-after) ?,)
(= (char-after) ?\)))
- (message ", or )")
+; (message ", or )")
(forward-char)
(scala-syntax:skip-forward-ignorable)
(set-match-data nil)
t)
;; none of the above, just stop
- (t
- (message "Cannot continue Pattern1 at %d" (point))
- nil)
+; (t
+; (message "Cannot continue Pattern1 at %d" (point))
+; nil)
))
(defun scala-font-lock:limit-pattern (&optional start)
(save-excursion
(goto-char (scala-font-lock:limit-pattern2 start))
- (message "now at %d" (point))
+; (message "now at %d" (point))
(when (scala-syntax:looking-at-reserved-symbol ":")
(while (not (or (eobp)
(scala-syntax:looking-at-reserved-symbol "|")
@@ -209,7 +209,7 @@ Does not continue past limit.
(defun scala-font-lock:mark-pattern-part (&optional limit)
(when (scala-syntax:looking-at-reserved-symbol "|")
- (message "skipping |")
+; (message "skipping |")
(forward-char)
(scala-syntax:skip-forward-ignorable))
(scala-font-lock:mark-pattern1-part limit t))
@@ -233,18 +233,18 @@ Does not continue past limit.
(scala-syntax:skip-forward-ignorable))
(let ((limit (point)))
(goto-char start)
- (message "simpeType limit at %d" limit)
+; (message "simpeType limit at %d" limit)
limit))
(defun scala-font-lock:mark-simpleType (&optional limit)
- (message "looking for simpleType at %d" (point))
+; (message "looking for simpleType at %d" (point))
(cond
;; stop at limit
((and limit (>= (point) limit))
nil)
;; just dive into lists
((> (skip-chars-forward "[(,)]") 0)
- (message "skipping list-marks")
+; (message "skipping list-marks")
(scala-syntax:skip-forward-ignorable)
(set-match-data nil)
t)
@@ -260,14 +260,14 @@ Does not continue past limit.
(scala-syntax:looking-at-reserved-symbol
"<[:%]\\|>?:")
(looking-at "\\<forSome\\>"))
- (message "skipping reserved")
+; (message "skipping reserved")
(goto-char (match-end 0))
(scala-syntax:skip-forward-ignorable)
(set-match-data nil)
t)
;; color id after '#'
((= (char-after) ?#)
- (message "at #")
+; (message "at #")
(forward-char)
(if (and (not (or (looking-at scala-syntax:keywords-unsafe-re)
(scala-syntax:looking-at-reserved-symbol nil)))
@@ -275,7 +275,7 @@ Does not continue past limit.
(goto-char (match-end 0)) nil))
;; color paths (including stableid)
((scala-syntax:looking-at-stableIdOrPath t)
- (message "at path")
+; (message "at path")
(let ((end (match-end 0)))
(goto-char end)
(while (scala-syntax:looking-back-token "this\\|type")
@@ -287,15 +287,9 @@ Does not continue past limit.
(scala-syntax:skip-forward-ignorable)
t)
(t
- (message "Cannot continue simpleType at %d" (point))
+; (message "Cannot continue simpleType at %d" (point))
nil)))
-(defun s-mark ()
- (interactive)
- (message "limit %d" (scala-font-lock:limit-simpleType (point)))
- (message "mark from %d: %s at %d" (point) (scala-font-lock:mark-simpleType)
- (point)))
-
(defun scala-font-lock:mark-string-escapes (limit)
(when (re-search-forward scala-syntax:string-escape-re limit t)
(let ((state (syntax-ppss (match-beginning 0))))
diff --git a/scala-mode-indent.el b/scala-mode-indent.el
index 5f2ce93..b766547 100644
--- a/scala-mode-indent.el
+++ b/scala-mode-indent.el
@@ -85,8 +85,8 @@ it is nilled."
scala-indent:eager-strategy)
scala-indent:reluctant-strategy))))
(setq scala-indent:default-run-on-strategy new-strategy)
- (message "scala-indent:default-run-on-strategy set to %s"
- scala-indent:default-run-on-strategy)))
+; (message "scala-indent:default-run-on-strategy set to %s"
scala-indent:default-run-on-strategy)
+ ))
(defun scala-indent:backward-sexp-to-beginning-of-line ()
"Skip sexps backwards until reaches beginning of line (i.e. the
@@ -550,7 +550,7 @@ start with opening parenthesis."
"Resolves the appropriate indent step for an open paren
anchored at 'anchor'."
(cond ((scala-syntax:looking-back-token ")")
- (message "curry")
+; (message "curry")
0)
((save-excursion
(goto-char anchor)
@@ -559,7 +559,7 @@ anchored at 'anchor'."
(message "=")
scala-indent:step)
(t
- (message "normal at %d" (current-column))
+; (message "normal at %d" (current-column))
0)))
;;;
@@ -579,7 +579,7 @@ nothing was applied."
(anchor (funcall rule-statement point)))
(if anchor
(progn
- (message "indenting acording to %s at %d" rule-statement anchor)
+; (message "indenting acording to %s at %d" rule-statement anchor)
(when (/= anchor (point))
(error (format "Assertion error: anchor=%d, point=%d" anchor
(point))))
(+ (current-column)
@@ -621,7 +621,7 @@ strings"
(if (eq last-command this-command)
(scala-indent:toggle-effective-run-on-strategy)
(scala-indent:reset-effective-run-on-strategy)))
- (message "run-on-strategy is %s" (scala-indent:run-on-strategy))
+; (message "run-on-strategy is %s" (scala-indent:run-on-strategy))
(scala-indent:indent-line-to (scala-indent:calculate-indent-for-line)))
(defun scala-indent:indent-line (&optional strategy)
- [nongnu] elpa/scala-mode 54fa36f 200/217: Merge pull request #159 from kpbochenek/fix-files-association-alist, (continued)
- [nongnu] elpa/scala-mode 54fa36f 200/217: Merge pull request #159 from kpbochenek/fix-files-association-alist, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 5058a85 204/217: doc: clarify Scala versions supported, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 0c5ed9e 022/217: deleted example files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 61a511f 021/217: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode fe5c2c4 031/217: Fixes #11: was still using the slow regexp, not faster, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 1a3d958 029/217: forward/backward-sexp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode e30b35a 008/217: Indentation working, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 59cdd94 074/217: Add `scala-indent:use-javadoc-style` defcustom., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 347faeb 075/217: Add Evan Meagher to contributors list., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 081a92b 081/217: scala-indent:remove-indent-from-previous-empty-line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 0fac9ae 014/217: removed debug messages,
ELPA Syncer <=
- [nongnu] elpa/scala-mode 9476d4c 018/217: Fixes #3: alignment of else inside parens, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 3f724ed 030/217: Add the scala-indent:pad-equals setting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 6257e3b 033/217: Renamed bad-equals to indent-value-expression. Added info to README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 4e3a24f 043/217: Updated Examples.md to reflect issues already solved, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 338ff73 060/217: Changed the indent defaults, closes #19, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 6c257f6 057/217: Enhanced support for comments and multi-line strings, including, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 68ca175 056/217: Fixes #20, the cons bug (a :: b :: Nil) as well as improving some of, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 78fff40 039/217: scala-indent:align-forms customization variable, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode f61e32d 047/217: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 0991658 051/217: Fixes #17: string syntax, ELPA Syncer, 2021/08/29