|
Karsten Hopp |
bfeacf |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
bfeacf |
Subject: Patch 7.3.734
|
|
Karsten Hopp |
bfeacf |
Fcc: outbox
|
|
Karsten Hopp |
bfeacf |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
bfeacf |
Mime-Version: 1.0
|
|
Karsten Hopp |
bfeacf |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
bfeacf |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
bfeacf |
------------
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
Patch 7.3.734
|
|
Karsten Hopp |
bfeacf |
Problem: Cannot put help files in a sub-directory.
|
|
Karsten Hopp |
bfeacf |
Solution: Make :helptags work for sub-directories. (Charles Campbell)
|
|
Karsten Hopp |
bfeacf |
Files: src/ex_cmds.c
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
*** ../vim-7.3.733/src/ex_cmds.c 2012-09-05 15:15:01.000000000 +0200
|
|
Karsten Hopp |
bfeacf |
--- src/ex_cmds.c 2012-11-28 15:59:58.000000000 +0100
|
|
Karsten Hopp |
bfeacf |
***************
|
|
Karsten Hopp |
bfeacf |
*** 6344,6353 ****
|
|
Karsten Hopp |
bfeacf |
}
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
#ifdef FEAT_MULTI_LANG
|
|
Karsten Hopp |
bfeacf |
! /* Get a list of all files in the directory. */
|
|
Karsten Hopp |
bfeacf |
STRCPY(NameBuff, dirname);
|
|
Karsten Hopp |
bfeacf |
add_pathsep(NameBuff);
|
|
Karsten Hopp |
bfeacf |
! STRCAT(NameBuff, "*");
|
|
Karsten Hopp |
bfeacf |
if (gen_expand_wildcards(1, &NameBuff, &filecount, &files,
|
|
Karsten Hopp |
bfeacf |
EW_FILE|EW_SILENT) == FAIL
|
|
Karsten Hopp |
bfeacf |
|| filecount == 0)
|
|
Karsten Hopp |
bfeacf |
--- 6344,6353 ----
|
|
Karsten Hopp |
bfeacf |
}
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
#ifdef FEAT_MULTI_LANG
|
|
Karsten Hopp |
bfeacf |
! /* Get a list of all files in the help directory and in subdirectories. */
|
|
Karsten Hopp |
bfeacf |
STRCPY(NameBuff, dirname);
|
|
Karsten Hopp |
bfeacf |
add_pathsep(NameBuff);
|
|
Karsten Hopp |
bfeacf |
! STRCAT(NameBuff, "**");
|
|
Karsten Hopp |
bfeacf |
if (gen_expand_wildcards(1, &NameBuff, &filecount, &files,
|
|
Karsten Hopp |
bfeacf |
EW_FILE|EW_SILENT) == FAIL
|
|
Karsten Hopp |
bfeacf |
|| filecount == 0)
|
|
Karsten Hopp |
bfeacf |
***************
|
|
Karsten Hopp |
bfeacf |
*** 6436,6443 ****
|
|
Karsten Hopp |
bfeacf |
helptags_one(dir, ext, tagfname, add_help_tags)
|
|
Karsten Hopp |
bfeacf |
char_u *dir; /* doc directory */
|
|
Karsten Hopp |
bfeacf |
char_u *ext; /* suffix, ".txt", ".itx", ".frx", etc. */
|
|
Karsten Hopp |
bfeacf |
! char_u *tagfname; /* "tags" for English, "tags-fr" for French. */
|
|
Karsten Hopp |
bfeacf |
! int add_help_tags; /* add "help-tags" tag */
|
|
Karsten Hopp |
bfeacf |
{
|
|
Karsten Hopp |
bfeacf |
FILE *fd_tags;
|
|
Karsten Hopp |
bfeacf |
FILE *fd;
|
|
Karsten Hopp |
bfeacf |
--- 6436,6443 ----
|
|
Karsten Hopp |
bfeacf |
helptags_one(dir, ext, tagfname, add_help_tags)
|
|
Karsten Hopp |
bfeacf |
char_u *dir; /* doc directory */
|
|
Karsten Hopp |
bfeacf |
char_u *ext; /* suffix, ".txt", ".itx", ".frx", etc. */
|
|
Karsten Hopp |
bfeacf |
! char_u *tagfname; /* "tags" for English, "tags-fr" for French. */
|
|
Karsten Hopp |
bfeacf |
! int add_help_tags; /* add "help-tags" tag */
|
|
Karsten Hopp |
bfeacf |
{
|
|
Karsten Hopp |
bfeacf |
FILE *fd_tags;
|
|
Karsten Hopp |
bfeacf |
FILE *fd;
|
|
Karsten Hopp |
bfeacf |
***************
|
|
Karsten Hopp |
bfeacf |
*** 6449,6454 ****
|
|
Karsten Hopp |
bfeacf |
--- 6449,6455 ----
|
|
Karsten Hopp |
bfeacf |
char_u *s;
|
|
Karsten Hopp |
bfeacf |
int i;
|
|
Karsten Hopp |
bfeacf |
char_u *fname;
|
|
Karsten Hopp |
bfeacf |
+ int dirlen;
|
|
Karsten Hopp |
bfeacf |
# ifdef FEAT_MBYTE
|
|
Karsten Hopp |
bfeacf |
int utf8 = MAYBE;
|
|
Karsten Hopp |
bfeacf |
int this_utf8;
|
|
Karsten Hopp |
bfeacf |
***************
|
|
Karsten Hopp |
bfeacf |
*** 6459,6467 ****
|
|
Karsten Hopp |
bfeacf |
/*
|
|
Karsten Hopp |
bfeacf |
* Find all *.txt files.
|
|
Karsten Hopp |
bfeacf |
*/
|
|
Karsten Hopp |
bfeacf |
STRCPY(NameBuff, dir);
|
|
Karsten Hopp |
bfeacf |
! add_pathsep(NameBuff);
|
|
Karsten Hopp |
bfeacf |
! STRCAT(NameBuff, "*");
|
|
Karsten Hopp |
bfeacf |
STRCAT(NameBuff, ext);
|
|
Karsten Hopp |
bfeacf |
if (gen_expand_wildcards(1, &NameBuff, &filecount, &files,
|
|
Karsten Hopp |
bfeacf |
EW_FILE|EW_SILENT) == FAIL
|
|
Karsten Hopp |
bfeacf |
--- 6460,6468 ----
|
|
Karsten Hopp |
bfeacf |
/*
|
|
Karsten Hopp |
bfeacf |
* Find all *.txt files.
|
|
Karsten Hopp |
bfeacf |
*/
|
|
Karsten Hopp |
bfeacf |
+ dirlen = STRLEN(dir);
|
|
Karsten Hopp |
bfeacf |
STRCPY(NameBuff, dir);
|
|
Karsten Hopp |
bfeacf |
! STRCAT(NameBuff, "/**/*");
|
|
Karsten Hopp |
bfeacf |
STRCAT(NameBuff, ext);
|
|
Karsten Hopp |
bfeacf |
if (gen_expand_wildcards(1, &NameBuff, &filecount, &files,
|
|
Karsten Hopp |
bfeacf |
EW_FILE|EW_SILENT) == FAIL
|
|
Karsten Hopp |
bfeacf |
***************
|
|
Karsten Hopp |
bfeacf |
*** 6522,6528 ****
|
|
Karsten Hopp |
bfeacf |
EMSG2(_("E153: Unable to open %s for reading"), files[fi]);
|
|
Karsten Hopp |
bfeacf |
continue;
|
|
Karsten Hopp |
bfeacf |
}
|
|
Karsten Hopp |
bfeacf |
! fname = gettail(files[fi]);
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
# ifdef FEAT_MBYTE
|
|
Karsten Hopp |
bfeacf |
firstline = TRUE;
|
|
Karsten Hopp |
bfeacf |
--- 6523,6529 ----
|
|
Karsten Hopp |
bfeacf |
EMSG2(_("E153: Unable to open %s for reading"), files[fi]);
|
|
Karsten Hopp |
bfeacf |
continue;
|
|
Karsten Hopp |
bfeacf |
}
|
|
Karsten Hopp |
bfeacf |
! fname = files[fi] + dirlen + 1;
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
# ifdef FEAT_MBYTE
|
|
Karsten Hopp |
bfeacf |
firstline = TRUE;
|
|
Karsten Hopp |
bfeacf |
*** ../vim-7.3.733/src/version.c 2012-11-28 15:55:37.000000000 +0100
|
|
Karsten Hopp |
bfeacf |
--- src/version.c 2012-11-28 15:58:26.000000000 +0100
|
|
Karsten Hopp |
bfeacf |
***************
|
|
Karsten Hopp |
bfeacf |
*** 727,728 ****
|
|
Karsten Hopp |
bfeacf |
--- 727,730 ----
|
|
Karsten Hopp |
bfeacf |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
bfeacf |
+ /**/
|
|
Karsten Hopp |
bfeacf |
+ 734,
|
|
Karsten Hopp |
bfeacf |
/**/
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
--
|
|
Karsten Hopp |
bfeacf |
From "know your smileys":
|
|
Karsten Hopp |
bfeacf |
y:-) Bad toupee
|
|
Karsten Hopp |
bfeacf |
|
|
Karsten Hopp |
bfeacf |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
bfeacf |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
bfeacf |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
bfeacf |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|