diff options
| author | Richard M. Stallman | 1995-02-07 21:00:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-07 21:00:28 +0000 |
| commit | aa27fbb477887cb6e22a2d22e0511664d9b88d2d (patch) | |
| tree | 7788969ea23d915d5a8ec2eaeb7de64068f811da | |
| parent | d2d9b86c1c7c6c9e6b821ef492974e3ff5b4802f (diff) | |
| download | emacs-aa27fbb477887cb6e22a2d22e0511664d9b88d2d.tar.gz emacs-aa27fbb477887cb6e22a2d22e0511664d9b88d2d.zip | |
(etags-file-of-tag): Handle file name used as tag.
| -rw-r--r-- | lisp/progmodes/etags.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index c0b04613ef0..e572d3361f7 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -997,9 +997,12 @@ See documentation of variable `tags-file-name'." | |||
| 997 | 997 | ||
| 998 | (defun etags-file-of-tag () | 998 | (defun etags-file-of-tag () |
| 999 | (save-excursion | 999 | (save-excursion |
| 1000 | (re-search-backward "\f\n\\([^\n]+\\),[0-9]*\n") | 1000 | (if (looking-at "./") |
| 1001 | (re-search-forward "\\([^\n]+\\),[0-9]*\n") | ||
| 1002 | (re-search-backward "\f\n\\([^\n]+\\),[0-9]*\n")) | ||
| 1001 | (buffer-substring (match-beginning 1) (match-end 1)))) | 1003 | (buffer-substring (match-beginning 1) (match-end 1)))) |
| 1002 | 1004 | ||
| 1005 | |||
| 1003 | (defun etags-tags-completion-table () | 1006 | (defun etags-tags-completion-table () |
| 1004 | (let ((table (make-vector 511 0))) | 1007 | (let ((table (make-vector 511 0))) |
| 1005 | (save-excursion | 1008 | (save-excursion |