aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì2006-12-28 00:05:53 +0000
committerFrancesco Potortì2006-12-28 00:05:53 +0000
commit6598a3d4225d702e81378d958c44b2e011781d2e (patch)
treeeb4f2554872583bba6b355ce2e4af165361128f0 /lib-src
parent17d5f8a676acddb92053852b58037eebe87f56bd (diff)
downloademacs-6598a3d4225d702e81378d958c44b2e011781d2e.tar.gz
emacs-6598a3d4225d702e81378d958c44b2e011781d2e.zip
(readline): When creating a relative file name from a
#line directive, leave the file name alone. The previous behaviour was to make it relative to the tags file directory, under the hypothesis that the #line directive file name was relative to the directory of the tagged file. That hypothesis is wrong with Cpp and Lex. (Makefile_targets): Do not include spaces in tag names.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 3a976c3d756..c4f7fdc4d69 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -41,7 +41,7 @@
41 * configuration file containing regexp definitions for etags. 41 * configuration file containing regexp definitions for etags.
42 */ 42 */
43 43
44char pot_etags_version[] = "@(#) pot revision number is 17.23"; 44char pot_etags_version[] = "@(#) pot revision number is 17.25";
45 45
46#define TRUE 1 46#define TRUE 1
47#define FALSE 0 47#define FALSE 0
@@ -4686,8 +4686,16 @@ Makefile_targets (inf)
4686 while (*bp != '\0' && *bp != '=' && *bp != ':') 4686 while (*bp != '\0' && *bp != '=' && *bp != ':')
4687 bp++; 4687 bp++;
4688 if (*bp == ':' || (globals && *bp == '=')) 4688 if (*bp == ':' || (globals && *bp == '='))
4689 make_tag (lb.buffer, bp - lb.buffer, TRUE, 4689 {
4690 lb.buffer, bp - lb.buffer + 1, lineno, linecharno); 4690 /* We should detect if there is more than one tag, but we do not.
4691 We just skip initial and final spaces. */
4692 char * namestart = skip_spaces (lb.buffer);
4693 while (--bp > namestart)
4694 if (!notinname (*bp))
4695 break;
4696 make_tag (namestart, bp - namestart + 1, TRUE,
4697 lb.buffer, bp - lb.buffer + 2, lineno, linecharno);
4698 }
4691 } 4699 }
4692} 4700}
4693 4701
@@ -6277,7 +6285,7 @@ readline (lbp, stream)
6277 name = lbp->buffer + start; 6285 name = lbp->buffer + start;
6278 *endp = '\0'; 6286 *endp = '\0';
6279 canonicalize_filename (name); /* for DOS */ 6287 canonicalize_filename (name); /* for DOS */
6280 taggedabsname = absolute_filename (name, curfdp->infabsdir); 6288 taggedabsname = absolute_filename (name, tagfiledir);
6281 if (filename_is_absolute (name) 6289 if (filename_is_absolute (name)
6282 || filename_is_absolute (curfdp->infname)) 6290 || filename_is_absolute (curfdp->infname))
6283 taggedfname = savestr (taggedabsname); 6291 taggedfname = savestr (taggedabsname);