4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When using CTRL-O to go back to a help file, it becomes listed.
13 Using ":tag" or ":tjump" in a help file doesn't keep the help file
14 settings (e.g. for 'iskeyword').
15 Solution: Don't mark a buffer as listed when its help flag is set. Put all
16 the option settings for a help buffer together in do_ecmd().
20 *** ../vim-6.2.281/src/ex_cmds.c Wed Feb 4 21:42:30 2004
21 --- src/ex_cmds.c Fri Feb 20 22:00:27 2004
25 if ((flags & ECMD_SET_HELP) || keep_help_flag)
27 curbuf->b_help = TRUE;
29 set_string_option_direct((char_u *)"buftype", -1,
30 ! (char_u *)"help", OPT_FREE |OPT_LOCAL);
32 ! curbuf->b_p_ma = FALSE;
33 curbuf->b_p_bin = FALSE; /* reset 'bin' before reading file */
34 curwin->w_p_nu = 0; /* no line numbers */
35 #ifdef FEAT_SCROLLBIND
38 if ((flags & ECMD_SET_HELP) || keep_help_flag)
42 curbuf->b_help = TRUE;
44 set_string_option_direct((char_u *)"buftype", -1,
45 ! (char_u *)"help", OPT_FREE|OPT_LOCAL);
49 ! * Always set these options after jumping to a help tag, because the
50 ! * user may have an autocommand that gets in the way.
51 ! * Accept all ASCII chars for keywords, except ' ', '*', '"', '|', and
52 ! * latin1 word characters (for translated help files).
53 ! * Only set it when needed, buf_init_chartab() is some work.
57 ! (char_u *)"65-255,^*,^|,^\"";
59 ! (char_u *)"!-~,^*,^|,^\",192-255";
61 ! if (STRCMP(curbuf->b_p_isk, p) != 0)
63 ! set_string_option_direct((char_u *)"isk", -1, p,
64 ! OPT_FREE|OPT_LOCAL);
65 ! check_buf_options(curbuf);
66 ! (void)buf_init_chartab(curbuf, FALSE);
69 ! curbuf->b_p_ts = 8; /* 'tabstop' is 8 */
70 ! curwin->w_p_list = FALSE; /* no list mode */
72 ! curbuf->b_p_ma = FALSE; /* not modifiable */
73 curbuf->b_p_bin = FALSE; /* reset 'bin' before reading file */
74 curwin->w_p_nu = 0; /* no line numbers */
75 #ifdef FEAT_SCROLLBIND
81 ! set_buflisted(TRUE);
89 ! /* Don't make a buffer listed if it's a help buffer. Useful when
90 ! * using CTRL-O to go back to a help file. */
91 ! if (!curbuf->b_help)
92 ! set_buflisted(TRUE);
98 if (alt_fnum != 0 && curwin->w_alt_fnum == empty_fnum)
99 curwin->w_alt_fnum = alt_fnum;
102 - * Always set these options after jumping to a help tag, because the user
103 - * may have an autocommand that gets in the way.
104 - * Accept all ASCII chars for keywords, except ' ', '*', '"', '|', and
105 - * latin1 word characters (for translated help files).
106 - * Only set it when needed, buf_init_chartab() is some work.
110 - (char_u *)"65-255,^*,^|,^\"";
112 - (char_u *)"!-~,^*,^|,^\",192-255";
114 - if (STRCMP(curbuf->b_p_isk, p) != 0)
116 - set_string_option_direct((char_u *)"isk", -1, p, OPT_FREE|OPT_LOCAL);
117 - check_buf_options(curbuf);
118 - (void)buf_init_chartab(curbuf, FALSE);
121 - curbuf->b_p_ts = 8;
122 - curwin->w_p_list = FALSE;
128 *** ../vim-6.2.281/src/version.c Fri Feb 20 21:53:42 2004
129 --- src/version.c Fri Feb 20 21:54:54 2004
133 { /* Add new patch number below this line */
139 hundred-and-one symptoms of being an internet addict:
140 205. You're constantly yelling at your spouse, family, roommate, whatever,
141 for using the phone for stupid things...like talking.
143 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
144 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
145 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
146 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///