diff options
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/etags.el | 19 |
2 files changed, 18 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b138d78a070..d96ad569543 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-07-20 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/etags.el (etags-file-of-tag, etags-tags-table-files) | ||
| 4 | (etags-tags-included-tables): Call `convert-standard-filename' on | ||
| 5 | the file names contained in TAGS so that windows Emacs can handle | ||
| 6 | TAGS files created by cygwin ctags. | ||
| 7 | |||
| 1 | 2011-07-20 Lars Magne Ingebrigtsen <larsi@gnus.org> | 8 | 2011-07-20 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 9 | ||
| 3 | * proced.el (proced-update): Revert yesterday's bug#1779 patch, | 10 | * proced.el (proced-update): Revert yesterday's bug#1779 patch, |
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index da073ceb258..a3300077909 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -1260,11 +1260,11 @@ buffer-local values of tags table format variables." | |||
| 1260 | (defun etags-file-of-tag (&optional relative) ; Doc string? | 1260 | (defun etags-file-of-tag (&optional relative) ; Doc string? |
| 1261 | (save-excursion | 1261 | (save-excursion |
| 1262 | (re-search-backward "\f\n\\([^\n]+\\),[0-9]*\n") | 1262 | (re-search-backward "\f\n\\([^\n]+\\),[0-9]*\n") |
| 1263 | (let ((str (buffer-substring (match-beginning 1) (match-end 1)))) | 1263 | (let ((str (convert-standard-filename |
| 1264 | (buffer-substring (match-beginning 1) (match-end 1))))) | ||
| 1264 | (if relative | 1265 | (if relative |
| 1265 | str | 1266 | str |
| 1266 | (expand-file-name str | 1267 | (expand-file-name str (file-truename default-directory)))))) |
| 1267 | (file-truename default-directory)))))) | ||
| 1268 | 1268 | ||
| 1269 | 1269 | ||
| 1270 | (defun etags-tags-completion-table () ; Doc string? | 1270 | (defun etags-tags-completion-table () ; Doc string? |
| @@ -1545,7 +1545,9 @@ hits the start of file." | |||
| 1545 | (end-of-line) | 1545 | (end-of-line) |
| 1546 | (skip-chars-backward "^," beg) | 1546 | (skip-chars-backward "^," beg) |
| 1547 | (or (looking-at "include$") | 1547 | (or (looking-at "include$") |
| 1548 | (setq files (cons (buffer-substring beg (1- (point))) files)))) | 1548 | (push (convert-standard-filename |
| 1549 | (buffer-substring beg (1- (point)))) | ||
| 1550 | files))) | ||
| 1549 | (nreverse files))) | 1551 | (nreverse files))) |
| 1550 | 1552 | ||
| 1551 | (defun etags-tags-included-tables () ; Doc string? | 1553 | (defun etags-tags-included-tables () ; Doc string? |
| @@ -1556,10 +1558,11 @@ hits the start of file." | |||
| 1556 | (setq beg (point)) | 1558 | (setq beg (point)) |
| 1557 | (end-of-line) | 1559 | (end-of-line) |
| 1558 | (skip-chars-backward "^," beg) | 1560 | (skip-chars-backward "^," beg) |
| 1559 | (if (looking-at "include$") | 1561 | (when (looking-at "include$") |
| 1560 | ;; Expand in the default-directory of the tags table buffer. | 1562 | ;; Expand in the default-directory of the tags table buffer. |
| 1561 | (setq files (cons (expand-file-name (buffer-substring beg (1- (point)))) | 1563 | (push (expand-file-name (convert-standard-filename |
| 1562 | files)))) | 1564 | (buffer-substring beg (1- (point))))) |
| 1565 | files))) | ||
| 1563 | (nreverse files))) | 1566 | (nreverse files))) |
| 1564 | 1567 | ||
| 1565 | ;; Empty tags file support. | 1568 | ;; Empty tags file support. |