You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The functions symbol-overlay-jump-first and symbol-overlay-jump-last do not seem to work for me in symbol-overlay-mode.
As far as I can tell this is caused when setting the before variable with (symbol-overlay-get-list -1 symbol) which returns nil, thus rendering the (count (length before)) to zero.
Changing the call to symbol-overlay-get-list to (symbol-overlay-get-list -1) seems to fix the issue. So my temporary work-around is to create the additional functions:
(defun symbol-overlay-mode-jump-first ()
"Jump to the first location in symbol-overlay-mode."
(interactive)
(symbol-overlay-adjust-position)
(let* ((before (symbol-overlay-get-list -1))
(count (length before)))
(symbol-overlay-jump-call #'symbol-overlay-basic-jump (- count))))
(defun symbol-overlay-mode-jump-last ()
"Jump to the last location in symbol-overlay-mode."
(interactive)
(symbol-overlay-adjust-position)
(let* ((after (symbol-overlay-get-list 1))
(count (length after)))
(symbol-overlay-jump-call #'symbol-overlay-basic-jump (- count 1))))
The text was updated successfully, but these errors were encountered:
The functions
symbol-overlay-jump-first
andsymbol-overlay-jump-last
do not seem to work for me insymbol-overlay-mode
.As far as I can tell this is caused when setting the
before
variable with(symbol-overlay-get-list -1 symbol)
which returnsnil
, thus rendering the(count (length before))
to zero.Changing the call to
symbol-overlay-get-list
to(symbol-overlay-get-list -1)
seems to fix the issue. So my temporary work-around is to create the additional functions:The text was updated successfully, but these errors were encountered: