Skip to content

Commit

Permalink
output indent-level in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zenozeng committed Jul 23, 2016
1 parent 6768bd3 commit d254ab3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/issue-23.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
* parent comment
* child 1 comment
code
* indent level 0
* indent level 1
indent level 2
code
code
* child 2 comment
Expand Down
5 changes: 3 additions & 2 deletions yafolding.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

;; Author: Zeno Zeng <[email protected]>
;; keywords: folding
;; Time-stamp: <2016-07-23 16:32:53 Zeno Zeng>
;; Time-stamp: <2016-07-23 16:39:30 Zeno Zeng>
;; Version: 0.3.0


Expand Down Expand Up @@ -142,8 +142,9 @@

(defun yafolding-debug ()
(interactive)
(message "indentation: %d, ingore current line: %s"
(message "indentation: %d, indent level: %d, ingore current line: %s"
(current-indentation)
(yafolding-get-indent-level)
(yafolding-should-ignore-current-line-p)))

(defun yafolding-get-element-region ()
Expand Down

0 comments on commit d254ab3

Please sign in to comment.