Function: semantic-symref-list-rename-open-hits
semantic-symref-list-rename-open-hits is an interactive and
byte-compiled function defined in list.el.gz.
Signature
(semantic-symref-list-rename-open-hits NEWNAME)
Documentation
Rename the discovered symbol references to NEWNAME.
Only renames the locations that are open in the symref list. Closed items will be skipped.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/symref/list.el.gz
;;; REFACTORING EDITS
;;
;; Utilities and features for refactoring across a list of hits.
;;
(defun semantic-symref-list-rename-open-hits (newname)
"Rename the discovered symbol references to NEWNAME.
Only renames the locations that are open in the symref list.
Closed items will be skipped."
(interactive
(list (read-string "Rename to: "
(oref (oref semantic-symref-current-results
created-by)
searchfor))))
(let ((count (semantic-symref-list-map-open-hits
(lambda () (replace-match newname nil t)))))
(semantic-symref-list-update-open-hits)
(message "Renamed %d occurrences." count)))