[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 07/09: Fix error: GTAGSCONF must be absolute path name
From: |
Leo Liu |
Subject: |
[elpa] 07/09: Fix error: GTAGSCONF must be absolute path name |
Date: |
Tue, 25 Feb 2014 08:45:58 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit f3eba3b05bf0ecf0bbe2d540161f10082ec50687
Author: Leo Liu <address@hidden>
Date: Tue Feb 25 13:38:22 2014 +0800
Fix error: GTAGSCONF must be absolute path name
gtags complains if GTAGSCONF path contains ~, for example
~/projects/msc/.globalrc
---
ggtags.el | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ggtags.el b/ggtags.el
index a58d5d6..d25da17 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -450,8 +450,8 @@ properly update `ggtags-mode-map'."
(interactive "DRoot directory: ")
(let ((process-environment process-environment))
(when (zerop (length root)) (error "No root directory provided"))
- (setenv "GTAGSROOT"
- (directory-file-name (file-name-as-directory root)))
+ (setenv "GTAGSROOT" (expand-file-name
+ (directory-file-name (file-name-as-directory root))))
(ggtags-with-current-project
(and (not (getenv "GTAGSLABEL"))
(yes-or-no-p "Use `ctags' backend? ")
@@ -892,7 +892,7 @@ Global and Emacs."
(`"GTAGS" '("definition" "definitions"))
(`"GSYMS" '("symbol" "symbols"))
(`"GRTAGS" '("reference" "references"))
- (`"GPATH" '("file" "files"))
+ (`"GPATH" '("file" "files"))
(`"ID" '("identifier" "identifiers"))
(_ '("match" "matches"))))))
exit-status)))
- [elpa] branch master updated (fbed521 -> 3b4b504), Leo Liu, 2014/02/25
- [elpa] 01/09: Be defensive in ggtags-find-project, Leo Liu, 2014/02/25
- [elpa] 03/09: Don't let deleting text screw up compilation-filter-start, Leo Liu, 2014/02/25
- [elpa] 07/09: Fix error: GTAGSCONF must be absolute path name,
Leo Liu <=
- [elpa] 04/09: Avoid "--regexp" and use "--" instead, Leo Liu, 2014/02/25
- [elpa] 08/09: New hook ggtags-global-next-error-hook, Leo Liu, 2014/02/25
- [elpa] 02/09: New command ggtags-visit-project-root using key C-c M-j, Leo Liu, 2014/02/25
- [elpa] 09/09: Merge remote-tracking branch 'ggtags/master', Leo Liu, 2014/02/25
- [elpa] 06/09: Fix ggtags-highlight-tag-map to avoid 'undefined' error, Leo Liu, 2014/02/25
- [elpa] 05/09: Make use of colored output to calulate column, Leo Liu, 2014/02/25