diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-20 03:14:11 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-20 12:51:39 +0200 |
commit | 31b1e4cbdc402b7465dfa009dc3379247a4468d8 (patch) | |
tree | 32e619ab669064aee70c6ab691ba71b44dd0833b /lisp/cedet/semantic/find.el | |
parent | e383aade0f215b3829600f8c2cb045aa81511042 (diff) | |
download | emacs-31b1e4cbdc402b7465dfa009dc3379247a4468d8.tar.gz |
Throughout cedet, don't use semantic-overlay-* compat aliases
Diffstat (limited to 'lisp/cedet/semantic/find.el')
-rw-r--r-- | lisp/cedet/semantic/find.el | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lisp/cedet/semantic/find.el b/lisp/cedet/semantic/find.el index 57a296dfa94..ec38a37295f 100644 --- a/lisp/cedet/semantic/find.el +++ b/lisp/cedet/semantic/find.el @@ -70,10 +70,10 @@ from largest to smallest via the start location." (set-buffer (marker-buffer positionormarker)) (if (bufferp buffer) (set-buffer buffer)))) - (let ((ol (semantic-overlays-at (or positionormarker (point)))) + (let ((ol (overlays-at (or positionormarker (point)))) (ret nil)) (while ol - (let ((tmp (semantic-overlay-get (car ol) 'semantic))) + (let ((tmp (overlay-get (car ol) 'semantic))) (when (and tmp ;; We don't need with-position because no tag w/out ;; a position could exist in an overlay. @@ -90,10 +90,10 @@ Uses overlays to determine position. Optional BUFFER argument specifies the buffer to use." (save-excursion (if buffer (set-buffer buffer)) - (let ((ol (semantic-overlays-in start end)) + (let ((ol (overlays-in start end)) (ret nil)) (while ol - (let ((tmp (semantic-overlay-get (car ol) 'semantic))) + (let ((tmp (overlay-get (car ol) 'semantic))) (when (and tmp ;; See above about position (semantic-tag-p tmp)) @@ -112,22 +112,22 @@ not the current tag." (if (not start) (setq start (point))) (let ((os start) (ol nil)) (while (and os (< os (point-max)) (not ol)) - (setq os (semantic-overlay-next-change os)) + (setq os (next-overlay-change os)) (when os ;; Get overlays at position - (setq ol (semantic-overlays-at os)) + (setq ol (overlays-at os)) ;; find the overlay that belongs to semantic ;; and starts at the found position. (while (and ol (listp ol)) - (if (and (semantic-overlay-get (car ol) 'semantic) + (if (and (overlay-get (car ol) 'semantic) (semantic-tag-p - (semantic-overlay-get (car ol) 'semantic)) - (= (semantic-overlay-start (car ol)) os)) + (overlay-get (car ol) 'semantic)) + (= (overlay-start (car ol)) os)) (setq ol (car ol))) (when (listp ol) (setq ol (cdr ol)))))) ;; convert ol to a tag - (when (and ol (semantic-tag-p (semantic-overlay-get ol 'semantic))) - (semantic-overlay-get ol 'semantic))))) + (when (and ol (semantic-tag-p (overlay-get ol 'semantic))) + (overlay-get ol 'semantic))))) ;;;###autoload (defun semantic-find-tag-by-overlay-prev (&optional start buffer) @@ -139,25 +139,25 @@ not the current tag." (if (not start) (setq start (point))) (let ((os start) (ol nil)) (while (and os (> os (point-min)) (not ol)) - (setq os (semantic-overlay-previous-change os)) + (setq os (previous-overlay-change os)) (when os ;; Get overlays at position - (setq ol (semantic-overlays-at (1- os))) + (setq ol (overlays-at (1- os))) ;; find the overlay that belongs to semantic ;; and ENDS at the found position. ;; ;; Use end because we are going backward. (while (and ol (listp ol)) - (if (and (semantic-overlay-get (car ol) 'semantic) + (if (and (overlay-get (car ol) 'semantic) (semantic-tag-p - (semantic-overlay-get (car ol) 'semantic)) - (= (semantic-overlay-end (car ol)) os)) + (overlay-get (car ol) 'semantic)) + (= (overlay-end (car ol)) os)) (setq ol (car ol))) (when (listp ol) (setq ol (cdr ol)))))) ;; convert ol to a tag (when (and ol - (semantic-tag-p (semantic-overlay-get ol 'semantic))) - (semantic-overlay-get ol 'semantic))))) + (semantic-tag-p (overlay-get ol 'semantic))) + (overlay-get ol 'semantic))))) ;;;###autoload (defun semantic-find-tag-parent-by-overlay (tag) |