]> git.eshelyaron.com Git - emacs.git/commitdiff
(etags-goto-tag-location): If match started with Ctrl-m,
authorRichard M. Stallman <rms@gnu.org>
Sun, 8 Aug 1993 07:21:22 +0000 (07:21 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 8 Aug 1993 07:21:22 +0000 (07:21 +0000)
compensate when setting point.

lisp/progmodes/etags.el

index 6fc6f899e491bd64e6320716f493fa2aba8985d6..fe7367e96395b652cf00337a14c64be18740f6fc 100644 (file)
@@ -975,6 +975,11 @@ See documentation of variable `tags-file-name'."
        (re-search-forward pat nil t)
        (error "`%s' not found in %s; time to rerun etags"
               pat buffer-file-name)))
+  ;; Position point at the right place
+  ;; if the search string matched an extra Ctrl-m at the beginning.
+  (and (eq selective-display t)
+       (looking-at "\^m")
+       (forward-char 1))
   (beginning-of-line))
 
 (defun etags-list-tags (file)