diff options
| author | Francesco Potortì | 2004-09-13 19:57:25 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2004-09-13 19:57:25 +0000 |
| commit | 91702d637640aa010999abc7e8ce94927620a82b (patch) | |
| tree | 966bf1568e8fca5b51c1dc7f976815b7664c550c /lib-src | |
| parent | 83a885869f10f34bd9694371c5be43fcf9cca58c (diff) | |
| download | emacs-91702d637640aa010999abc7e8ce94927620a82b.tar.gz emacs-91702d637640aa010999abc7e8ce94927620a82b.zip | |
(main): When relative file names are given as argument,
make them relative to the current working dir, rather than
relative to the output tags file, if the latter is in /dev.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index f68c2e2bb95..a6004a048a9 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -40,7 +40,7 @@ | |||
| 40 | * configuration file containing regexp definitions for etags. | 40 | * configuration file containing regexp definitions for etags. |
| 41 | */ | 41 | */ |
| 42 | 42 | ||
| 43 | char pot_etags_version[] = "@(#) pot revision number is 17.4"; | 43 | char pot_etags_version[] = "@(#) pot revision number is 17.5"; |
| 44 | 44 | ||
| 45 | #define TRUE 1 | 45 | #define TRUE 1 |
| 46 | #define FALSE 0 | 46 | #define FALSE 0 |
| @@ -1314,7 +1314,9 @@ main (argc, argv) | |||
| 1314 | cwd = concat (oldcwd, "/", ""); | 1314 | cwd = concat (oldcwd, "/", ""); |
| 1315 | free (oldcwd); | 1315 | free (oldcwd); |
| 1316 | } | 1316 | } |
| 1317 | if (streq (tagfile, "-")) | 1317 | /* Relative file names are made relative to the current directory. */ |
| 1318 | if (streq (tagfile, "-") | ||
| 1319 | || strneq (tagfile, "/dev/", 5)) | ||
| 1318 | tagfiledir = cwd; | 1320 | tagfiledir = cwd; |
| 1319 | else | 1321 | else |
| 1320 | tagfiledir = absolute_dirname (tagfile, cwd); | 1322 | tagfiledir = absolute_dirname (tagfile, cwd); |