# HG changeset patch # User Richard M. Stallman # Date 1093707031 0 # Node ID 12cc6bc5d5500fab786d98130be830ead2196648 # Parent c5624ad1554b4a2c9093c35910980d30c971bc09 (find-tag-default): Moved to subr.el. diff -r c5624ad1554b -r 12cc6bc5d550 lisp/progmodes/etags.el --- a/lisp/progmodes/etags.el Sat Aug 28 15:30:10 2004 +0000 +++ b/lisp/progmodes/etags.el Sat Aug 28 15:30:31 2004 +0000 @@ -772,26 +772,6 @@ (all-completions string (tags-completion-table) predicate) (try-completion string (tags-completion-table) predicate)))) -;; Return a default tag to search for, based on the text at point. -(defun find-tag-default () - (save-excursion - (while (looking-at "\\sw\\|\\s_") - (forward-char 1)) - (if (or (re-search-backward "\\sw\\|\\s_" - (save-excursion (beginning-of-line) (point)) - t) - (re-search-forward "\\(\\sw\\|\\s_\\)+" - (save-excursion (end-of-line) (point)) - t)) - (progn (goto-char (match-end 0)) - (buffer-substring-no-properties - (point) - (progn (forward-sexp -1) - (while (looking-at "\\s'") - (forward-char 1)) - (point)))) - nil))) - ;; Read a tag name from the minibuffer with defaulting and completion. (defun find-tag-tag (string) (let* ((completion-ignore-case (if (memq tags-case-fold-search '(t nil))