emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/symbol-overlay a6683f1089 003/152: init


From: ELPA Syncer
Subject: [nongnu] elpa/symbol-overlay a6683f1089 003/152: init
Date: Thu, 7 Jul 2022 12:04:06 -0400 (EDT)

branch: elpa/symbol-overlay
commit a6683f1089a30b4d7f7b8293da53511f0f426a35
Author: wolray <290061869@qq.com>
Commit: wolray <290061869@qq.com>

    init
---
 symbol-overlay.el | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/symbol-overlay.el b/symbol-overlay.el
index 854956e121..98459e776f 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -1,16 +1,16 @@
-;;; symbol-overlay.el --- Putting overlays on symbol and fast jumping in 
between.
+;;; symbol-overlay.el --- Putting overlays on symbol with an useful keymap.
 
 ;; Highlighting symbol and enabling you to jump from one occurrence to another
-;; and even to the definition of that symbol in the buffer, in any language,
-;; with a single key. It was originally inspired by the package
-;; 'highlight-symbol. The difference or improvement is that every symbol in
-;; 'symbol-overlay is highlighted by the emacs built-in function `overlay-put'
-;; rather than the font-lock mechanism used in 'highlight-symbol. Besides, when
-;; counting the occurrences of the symbol,'symbol-overlay needs only to simply
-;; obtain the current occurrence's index in the keywords' alist as well as the
-;; length of it where all the overlays are stored in order. While in
-;; 'highlight-symbol, this would call the function `how-many' twice, causing a
-;; perceivable delay in a large buffer.
+;; including the definition of that symbol in the buffer, with a single key
+;; strike. It was originally inspired by the package 'highlight-symbol. The
+;; difference or improvement is that every symbol in 'symbol-overlay is
+;; highlighted by the emacs built-in function `overlay-put' rather than the
+;; font-lock mechanism used in 'highlight-symbol. Besides, when counting the
+;; occurrences of the symbol,'symbol-overlay needs only to simply obtain the
+;; current occurrence's index in the keywords' alist as well as the length of 
it
+;; where all the overlays are stored in order. While in 'highlight-symbol, this
+;; would call the function `how-many' twice, causing a perceivable delay in a
+;; large buffer.
 
 ;; In 'symbol-overlay, the highlighting method `overlay-put' is much faster 
than
 ;; `font-lock-fontify-buffer', especially in a large buffer, or even a
@@ -18,7 +18,7 @@
 ;; syntax such as haskell-mode.
 
 ;; You can also jump to a symbol's definition from any occurrence using
-;; `so-jump-to-def' , as long as the syntax of the definition is specified in
+;; `so-jump-to-def', as long as the syntax of the definition is specified in
 ;; the buffer-local variable `so-def-function'.
 
 ;; More importantly, using `overlay-put' to highlight-symbol has an extra



reply via email to

[Prev in Thread] Current Thread [Next in Thread]