-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add element-region to yafolding-debug
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.cask/ | ||
.ecukes-failing-scenarios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
;; Author: Zeno Zeng <[email protected]> | ||
;; keywords: folding | ||
;; Time-stamp: <2016-07-23 16:39:30 Zeno Zeng> | ||
;; Time-stamp: <2017-03-05 10:53:36 Zeno Zeng> | ||
;; Version: 0.3.1 | ||
|
||
|
||
|
@@ -155,10 +155,14 @@ If given, toggle all entries that start at INDENT-LEVEL." | |
(defun yafolding-debug () | ||
"Show yafolding information of the current position." | ||
(interactive) | ||
(message "indentation: %d, indent level: %d, ingore current line: %s" | ||
(message "indentation: %d, indent level: %d, ingore current line: %s, element-region: %d - %d, (L%d - L%d)" | ||
(yafolding--current-indentation) | ||
(yafolding-get-indent-level) | ||
(yafolding-should-ignore-current-line-p))) | ||
(yafolding-should-ignore-current-line-p) | ||
(car (yafolding-get-element-region)) | ||
(car (cdr (yafolding-get-element-region))) | ||
(line-number-at-pos (car (yafolding-get-element-region))) | ||
(line-number-at-pos (car (cdr (yafolding-get-element-region)))))) | ||
|
||
(defun yafolding-get-element-region () | ||
"Get '(beg end) of current element." | ||
|