Skip to content

Commit

Permalink
Don't go to (point-min) just to immediately relocate to property-change
Browse files Browse the repository at this point in the history
  • Loading branch information
Hi-Angel committed Jan 19, 2023
1 parent 4c621e4 commit d66727a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions color-identifiers-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ For cc-mode support within color-identifiers-mode."
(identifier-faces (color-identifiers:curr-identifier-faces)))
;; Entities that cc-mode highlighted as variables
(save-excursion
(goto-char (point-min))
(let ((next-change (next-property-change (point))))
(let ((next-change (next-property-change (point-min))))
(while next-change
(goto-char next-change)
(let ((face-at-point (get-text-property (point) 'face)))
Expand Down Expand Up @@ -343,8 +342,7 @@ arguments, loops (for .. in), or for comprehensions."
(wrong-type-argument nil))))
;; Entities that python-mode highlighted as variables
(save-excursion
(goto-char (point-min))
(let ((next-change (next-property-change (point))))
(let ((next-change (next-property-change (point-min))))
(while next-change
(goto-char next-change)
(let ((face-at-point (get-text-property (point) 'face)))
Expand Down

0 comments on commit d66727a

Please sign in to comment.