diff options
| -rw-r--r-- | lisp/progmodes/etags.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 75c949f8555..bbcf7e96828 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -1020,9 +1020,15 @@ See documentation of variable `tags-file-name'." | |||
| 1020 | nil | 1020 | nil |
| 1021 | (forward-line 1) | 1021 | (forward-line 1) |
| 1022 | (while (not (or (eobp) (looking-at "\f"))) | 1022 | (while (not (or (eobp) (looking-at "\f"))) |
| 1023 | (princ (buffer-substring (point) | 1023 | (let ((tag (buffer-substring (point) |
| 1024 | (progn (skip-chars-forward "^\177") | 1024 | (progn (skip-chars-forward "^\177") |
| 1025 | (point)))) | 1025 | (point))))) |
| 1026 | (princ (if (looking-at "[^\n]+\001") | ||
| 1027 | ;; There is an explicit tag name; use that. | ||
| 1028 | (buffer-substring (point) | ||
| 1029 | (progn (skip-chars-forward "^\001") | ||
| 1030 | (point))) | ||
| 1031 | tag))) | ||
| 1026 | (terpri) | 1032 | (terpri) |
| 1027 | (forward-line 1)) | 1033 | (forward-line 1)) |
| 1028 | t)) | 1034 | t)) |