[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 92434b63ff 323/372: - improved documentation and
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 92434b63ff 323/372: - improved documentation and fixed indentation for a couple of local functions. |
Date: |
Fri, 4 Feb 2022 16:59:15 -0500 (EST) |
branch: elpa/annotate
commit 92434b63ff8fe40df2089cf59331c1e1f9dfcdf2
Author: cage <cage@localhost>
Commit: cage <cage@invalid>
- improved documentation and fixed indentation for a couple of local
functions.
---
annotate.el | 53 +++++++++++++++++++++++++++--------------------------
1 file changed, 27 insertions(+), 26 deletions(-)
diff --git a/annotate.el b/annotate.el
index a97d55c49c..42f1c407c7 100644
--- a/annotate.el
+++ b/annotate.el
@@ -629,13 +629,14 @@ specified by `from' and `to'."
;; annotate a line that terminate at `eol'
;;
;; if the line contains no text before the newline
- ;; annotate the next line with text, if any
+ ;; annotate the next line with text, if any.
;;
;; if the line contains a single annotation that spans
;; the whole line update the existing annotation
;;
- ;; if the line contains no annotation annotate the
- ;; whole line that terminate at `eol'
+ ;; if the line contains no annotation, or more than
+ ;; one annotation, annotate the whole line that
+ ;; terminate at `eol'
(let* ((bol
(annotate-beginning-of-line-pos))
(annotations-on-the-line
(annotate-annotations-overlay-in-range bol
eol)))
@@ -2702,29 +2703,29 @@ Arguments:
;; filter-fn see the docstring
;; matchp non nil if (funcall filter-fn previous-token)
is not nil
(operator (previous-token filter-fn annotation
matchp)
- (let ((look-ahead
(annotate-summary-lexer t)))
- (if
(annotate-summary-query-parse-end-input-p look-ahead)
- ;; end of input, recurse one more
time
- (annotate-summary-query-parse-note
filter-fn
-
annotation
-
matchp)
- (let ((look-ahead-symbol
-
(annotate-summary-query-lexer-symbol look-ahead))
- (look-ahead-string
-
(annotate-summary-query-lexer-string look-ahead)))
- (cond
- ((not (cl-find look-ahead-symbol
'(and or close-par)))
- (signal
'annotate-query-parsing-error
- (list (format (concat
"Expecting for operator "
-
"('and' or 'or') or \")\". "
-
"found %S instead")
-
look-ahead-string))))
- (t
- ;; found operator, recurse to
search for rhs of rule
- ;; NOTE OPERATOR NOTE
- (annotate-summary-query-parse-note
filter-fn
-
annotation
-
matchp))))))))
+ (let ((look-ahead (annotate-summary-lexer t)))
+ (if (annotate-summary-query-parse-end-input-p look-ahead)
+ ;; end of input, recurse one more time
+ (annotate-summary-query-parse-note filter-fn
+ annotation
+ matchp)
+ (let ((look-ahead-symbol
+ (annotate-summary-query-lexer-symbol look-ahead))
+ (look-ahead-string
+ (annotate-summary-query-lexer-string look-ahead)))
+ (cond
+ ((not (cl-find look-ahead-symbol '(and or close-par)))
+ (signal 'annotate-query-parsing-error
+ (list (format (concat "Expecting for operator "
+ "('and' or 'or') or
\")\". "
+ "found %S instead")
+ look-ahead-string))))
+ (t
+ ;; found operator, recurse to search for rhs of rule
+ ;; NOTE OPERATOR NOTE
+ (annotate-summary-query-parse-note filter-fn
+ annotation
+ matchp))))))))
(let* ((look-ahead (annotate-summary-lexer t))) ; the next token that the
lexer *will* consume
; note the second arg is
non nil
(if (not (annotate-summary-query-parse-end-input-p look-ahead))
- [nongnu] elpa/annotate d4b555d237 242/372: Merge pull request #76 from cage2/master, (continued)
- [nongnu] elpa/annotate d4b555d237 242/372: Merge pull request #76 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a04a6144aa 240/372: Merge pull request #75 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a4607c4184 273/372: - updated version and documentation., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate daf4c3c726 283/372: - removed code, in integration procedures, that should never runs., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3239275a5b 265/372: - fitted 'annotate-position-inside-chain-p' into, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate b68170837e 279/372: - fixed the width of the last row of the box, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 958ce126e0 272/372: - fixed more typos., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d55c48f508 304/372: changed function from 'font-lock-fontify-buffer' to 'font-lock-ensure'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 876f1425d2 310/372: - removed another useless argument from call to 'font-lock-flush'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate cc9393c6bd 318/372: - when annotationg a newline, replace annotation if a single one, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 92434b63ff 323/372: - improved documentation and fixed indentation for a couple of local functions.,
ELPA Syncer <=
- [nongnu] elpa/annotate a45584c53f 358/372: - removed customizable function 'annotate-y-or-n-prompt-function'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 07667d4ccb 314/372: - updated version number in top comment block., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 641daae9d0 335/372: - updated docs and version number., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate b74bade94c 345/372: - increased version number., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e6af7f8ef7 058/372: workaround for nil file name, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate eb01c0cfbb 077/372: - removed copyright line from README., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d2841bad65 325/372: - ensured all annotations are saved before showing summary window., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6239d033ce 355/372: - updated README.org mentioning 'annotate-y-or-n-prompt-function'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 04a5710cf6 334/372: - prevented saving a file whith an empty database;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 2e7c18b12a 337/372: - fixed callback for "[replace]" button in summary window, ELPA Syncer, 2022/02/04