[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/symbol-overlay 2ad907ae15 009/152: edit the descripition
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/symbol-overlay 2ad907ae15 009/152: edit the descripition |
Date: |
Thu, 7 Jul 2022 12:04:07 -0400 (EDT) |
branch: elpa/symbol-overlay
commit 2ad907ae15f8b8432093db3a2591477cba3c4868
Author: wolray <290061869@qq.com>
Commit: wolray <290061869@qq.com>
edit the descripition
---
readme.md | 8 ++++----
symbol-overlay.el | 24 +++++++++++++++---------
2 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/readme.md b/readme.md
index 9c69129ecd..232edc4823 100644
--- a/readme.md
+++ b/readme.md
@@ -4,10 +4,10 @@ Highlighting symbol while enabling you to jump from one
occurrence to another or
Advantages
---
-1. In `symbol-overlay`, `overlay-put` is much faster than the traditional
highligting method `font-lock-fontify-buffer`, especially in a large buffer or
even a less-than-100-lines small buffer of major-mode with complicated keywords
syntax such as haskell-mode.
-2. You can directly jump to a symbol's definition from any occurrence by using
`so-jump-to-def`, as long as the syntax of the definition is specified in the
buffer-local variable `so-def-function`.
-3. More importantly, using `overlay-put` to highlight-symbol has an extra
benifit to enable **AN AUTO-ACTIVATED OVERLAY-INSIDE KEYMAP** for quick jump
and other operations.
-4. All the overlays of each symbol are stored sequentially in an alist
`so-keywords-alist`. By simply getting the current overlay's index in the alist
as well as the length of it, the number of occurrences can be immediately
obtained. While in `highlight-symbol`, this would call the function `how-many`
twice, causing extra costs.
+- In `symbol-overlay`, `overlay-put` is much faster than the traditional
highligting method `font-lock-fontify-buffer`, especially in a large buffer or
even a less-than-100-lines small buffer of major-mode with complicated keywords
syntax such as haskell-mode.
+- More importantly, using `overlay-put` to highlight symbols has an extra
benifit to enable **AN AUTO-ACTIVATED OVERLAY-INSIDE KEYMAP** for quick jump
and other useful commands.
+- You can also jump to a symbol's definition from any occurrence by using
`so-jump-to-def`, as long as the syntax of the definition is specified in the
buffer-local variable `so-def-function`.
+- All the overlays of each symbol are stored sequentially in an alist
`so-keywords-alist`. By simply getting the current overlay's index in the
corresponding keyword-list as well as the length of it in the alist, the number
of occurrences can be immediately obtained. While in `highlight-symbol`, this
would call the function `how-many` twice, causing extra costs.
Usage
---
diff --git a/symbol-overlay.el b/symbol-overlay.el
index 9b77181025..6fbb075fe7 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -29,23 +29,29 @@
;; used in `highlight-symbol'.
;; Advantages
-;; 1. In `symbol-overlay', `overlay-put' is much faster than the traditional
+
+;; In `symbol-overlay', `overlay-put' is much faster than the traditional
;; highligting method `font-lock-fontify-buffer', especially in a large buffer
;; or even a less-than-100-lines small buffer of major-mode with complicated
;; keywords syntax such as haskell-mode.
-;; 2. You can directly jump to a symbol's definition from any occurrence by
+
+;; More importantly, using `overlay-put' to highlight symbols has an extra
+;; benifit to enable AN AUTO-ACTIVATED OVERLAY-INSIDE KEYMAP for quick jump and
+;; other useful commands.
+
+;; You can also jump to a symbol's definition from any occurrence by
;; using `so-jump-to-def', as long as the syntax of the definition is specified
;; in the buffer-local variable `so-def-function'.
-;; 3. More importantly, using `overlay-put' to highlight-symbol has an extra
-;; benifit to enable AN AUTO-ACTIVATED OVERLAY-INSIDE KEYMAP for quick jump and
-;; other operations.
-;; 4. All the overlays of each symbol are stored sequentially in an alist
+
+;; All the overlays of each symbol are stored sequentially in an alist
;; `so-keywords-alist'. By simply getting the current overlay's index in the
-;; alist as well as the length of it, the number of occurrences can be
-;; immediately obtained. While in `highlight-symbol', this would call the
-;; function `how-many' twice, causing extra costs.
+;; corresponding keyword-list as well as the length of it in the alist, the
+;; number of occurrences can be immediately obtained. While in
+;; `highlight-symbol', this would call the function `how-many' twice, causing
+;; extra costs.
;; Usage
+
;; To use `symbol-overlay' in your Emacs, you need only to bind one key:
;; (require 'symbol-overlay)
;; (global-set-key (kbd "M-i") 'so-put)
- [nongnu] elpa/symbol-overlay 75c6ba66c0 116/152: Don't log navigation steps to *Messages* (fixes #37), (continued)
- [nongnu] elpa/symbol-overlay 75c6ba66c0 116/152: Don't log navigation steps to *Messages* (fixes #37), ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay ad77d6cd1e 113/152: add symbol-overlay-jump-first/last, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 8aa6b11a73 135/152: Maintain timer buffer-locally, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay eff8230ffe 119/152: Add a hook for when the cursor enters or leaves the symbol overlay, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay c41a347a0c 138/152: add symbol-overlay-ignore-function-clojure, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 2e79aaeae3 141/152: fixup! fixup! fixup! add symbol-overlay-ignore-function-clojure, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 6992e5e65c 111/152: add new var: symbol-overlay-displayed-window, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 8629a4ddbe 147/152: Merge pull request #76 from mattbeshara/cancel-timer-when-buffer-killed, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 4231a36e39 145/152: Merge pull request #73 from tarsiiformes/keyword, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay c439b73a5f 152/152: Merge pull request #78 from mattbeshara/single-active-timer, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 2ad907ae15 009/152: edit the descripition,
ELPA Syncer <=
- [nongnu] elpa/symbol-overlay 50d645bc05 013/152: Merge branch 'syohex-fix-package', ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 6e1f23d6f2 023/152: fix an overlay error, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 81d069f2c4 020/152: (v2.3) add save-symbol, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay b00771b093 073/152: 170814, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 03da3c1d43 078/152: Merge pull request #11 from purcell/patch-2, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 33e5138fa9 083/152: add faces, replace color logic with face logic, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 2138e296fd 088/152: Merge pull request #18 from wbolster/major-mode-ignore-callbacks, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay dc3a9b4cd3 093/152: Merge pull request #23 from tarsiiformes/custom-type, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 8bcb681bcb 099/152: Merge pull request #27 from dakra/add-go-support, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 88c3ed02a0 115/152: bind kbd < > to jump-first/last, ELPA Syncer, 2022/07/07