aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-08 07:21:22 +0000
committerRichard M. Stallman1993-08-08 07:21:22 +0000
commit280a1a6548749c1296b0ae2f7df56cc317a51f8a (patch)
treec6e55f585cf6a4c88ab3d33638a46dd74963339f
parent651c847c8ff47c88e6c83766c66586f5bd171f26 (diff)
downloademacs-280a1a6548749c1296b0ae2f7df56cc317a51f8a.tar.gz
emacs-280a1a6548749c1296b0ae2f7df56cc317a51f8a.zip
(etags-goto-tag-location): If match started with Ctrl-m,
compensate when setting point.
-rw-r--r--lisp/progmodes/etags.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 6fc6f899e49..fe7367e9639 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -975,6 +975,11 @@ See documentation of variable `tags-file-name'."
975 (re-search-forward pat nil t) 975 (re-search-forward pat nil t)
976 (error "`%s' not found in %s; time to rerun etags" 976 (error "`%s' not found in %s; time to rerun etags"
977 pat buffer-file-name))) 977 pat buffer-file-name)))
978 ;; Position point at the right place
979 ;; if the search string matched an extra Ctrl-m at the beginning.
980 (and (eq selective-display t)
981 (looking-at "\^m")
982 (forward-char 1))
978 (beginning-of-line)) 983 (beginning-of-line))
979 984
980(defun etags-list-tags (file) 985(defun etags-list-tags (file)