Skip to content

Commit 25a71be

Browse files
committed
Merge pull request #199 from rhysd/issue164-tagsrch
Caught up tagsrch.jax with 7.4.1194
2 parents 5148a4d + a0f1f66 commit 25a71be

File tree

2 files changed

+21
-42
lines changed

2 files changed

+21
-42
lines changed

catchup-7.4.1194.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
doc/netbeans.jax
2323
doc/spell.jax
24-
doc/tagsrch.jax
2524
doc/usr_02.jax # 行数は多いけど、まとまった書き換えで、楽そう
2625

2726
こっから先は100行超えるので、嫌。
@@ -59,6 +58,7 @@
5958
doc/quickfix.jax
6059
doc/quickref.jax
6160
doc/repeat.jax
61+
doc/tagsrch.jax
6262
doc/term.jax
6363
doc/usr_03.jax
6464
doc/usr_29.jax

doc/tagsrch.jax

Lines changed: 20 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,14 @@ CTRL-]はtelnetの標準エスケープキーである。タグにジャンプ
8282
すること。これは ":tnext" を使うときの混乱を避けるためである。優先度のリストは
8383
":tag {ident}" を使ったときに変化する。
8484

85-
The ignore-case matches are not found for a ":tag" command when the
86-
'ignorecase' option is off and 'tagcase' is "followic" or when 'tagcase' is
87-
"match". They are found when a pattern is used (starting with a "/") and for
88-
":tselect", also when 'ignorecase' is off and 'tagcase' is "followic" or when
89-
'tagcase' is "match". Note that using ignore-case tag searching disables
90-
binary searching in the tags file, which causes a slowdown. This can be
91-
avoided by fold-case sorting the tag file. See the 'tagbsearch' option for an
92-
explanation.
93-
{参考用の旧訳:
94-
'ignorecase' オプションがオフになっているときの ":tag" コマンドでは、大文字、
95-
小文字を区別しないマッチは見つからない。'ignorecase' がオフになっていても、
96-
("/" で始まる) パターンを使用し、かつ ":tselect" を使ったときには見つけること
97-
ができる。大文字、小文字を区別しないタグ検索を使うと、tagsファイル内で二分探索
98-
ができなくなるため処理が遅くなる、ということに注意すること。これはタグファイル
99-
を大文字と小文字を区別せずにソートすることで回避できる。'tagbsearch' オプショ
100-
ンの説明も参照のこと。
101-
:旧訳ここまで}
85+
'ignorecase' オプションがオフになっており 'tagcase' オプションが "followic" の
86+
時、または 'tagcase' が"match" の時、":tag" コマンドでは大文字小文字を区別しな
87+
いマッチは見つからない。 ("/" で始まる) パターンで ":tselect" を使い、
88+
'ignorecase' がオフで 'tagcase' が "followic" の時、または 'tagcase'
89+
"match" の時には見つけることができる。大文字小文字を区別しないタグ検索を使うと、
90+
tags ファイル内の二分探索が無効になり処理が遅くなる点に注意。これは大文字と小文
91+
字を区別せずにソートすることで回避できる。'tagbsearch' オプションの説明も参照の
92+
こと。
10293

10394
==============================================================================
10495
2. タグスタック *tag-stack* *tagstack* *E425*
@@ -441,21 +432,13 @@ Emacs タグファイルの行は非常に長くなることがある。Vim は
441432
以下のようなときは、リストの次のファイルを使わない:
442433
- 現在のバッファに対するstaticタグが見つかった場合。
443434
- globalタグが見つかった場合。
444-
This also depends on whether case is ignored. Case is ignored when
445-
'ignorecase' is set and 'tagcase' is "followic", or when 'tagcase' is
446-
"ignore". If case is not ignored, and the tags file only has a match without
447-
matching case, the next tags file is searched for a match with matching case.
448-
If no tag with matching case is found, the first match without matching case
449-
is used. If case is ignored, and a matching global tag with or without
450-
matching case is found, this one is used, no further tags files are searched.
451-
{参考用の旧訳:
452-
これらは 'ignorecase' オプションに依存する。もしオフにしてあり、tagsファイルに
453-
大文字小文字が一致するタグがない場合、一致するタグを次のtagsファイルで検索す
454-
る。もし一致するタグが見つからなければ、大文字小文字を無視して最初にマッチした
455-
ものが使われる。もし 'ignorecase' がオンの場合、大文字小文字の区別なく、global
456-
タグが見つかった時点でそのタグが使用され、それ以降のtagsファイルは検索されな
457-
い。
458-
:旧訳ここまで}
435+
これは大文字小文字を区別するかどうかにも依存する。 'ignorecase' がセットされて
436+
かつ 'tagcase' が "followic" の時、または 'tagcase' が "ignore" の時に大文字小
437+
文字は無視される。大文字小文字を無視せず、タグファイル大文字小文字が一致するマ
438+
ッチが tags ファイルに無い場合、次の tags ファイルを検索する。もし大文字小文字
439+
が一致するタグがなければ、大文字小文字を無視して最初にマッチしたものが使われる。
440+
大文字小文字を無視し、大文字小文字を区別するしないに関わらず global タグが見つ
441+
かった場合、それが使われてそれ以降の tags ファイルは検索されない。
459442

460443
タグファイル名が "./" で始まるとき、'.' は現在のファイルのパスで置き換えられ
461444
る。これにより、現在のファイルがあるディレクトリのtagsファイルを使用することが
@@ -584,15 +567,11 @@ tagsファイルの先頭行には、
584567
た場合には、Vimはtagsファイルに対して二分検索を使用する:
585568
!_TAG_FILE_SORTED<TAB>1<TAB>{anything} ~
586569

587-
A tag file may be case-fold sorted to avoid a linear search when case is
588-
ignored. (Case is ignored when 'ignorecase' is set and 'tagcase' is
589-
"followic", or when 'tagcase' is "ignore".) See 'tagbsearch' for details.
590-
The value '2' should be used then:
591-
{参考用の旧訳:
592-
'ignorecase' がonのときに線形検索を避けるために、大文字と小文字を区別せずにタ
593-
グファイルがソートされることがある。詳細は 'tagbsearch' を参照。そのときは '2'
594-
が使われる:
595-
:旧訳ここまで}
570+
大文字小文字を無視する設定の時、線形検索を避けるためにタグファイルは大文字小文
571+
字を区別せずにソートされることがある。 ('ignorecase' がセットされかつ
572+
'tagcase' が "followic" の時、または 'tagcase' が "ignore" の時に大文字小文字は
573+
無視される。) 詳細は 'tagbsearch' を参照のこと。
574+
その時、値として '2' が使われる:
596575
!_TAG_FILE_SORTED<TAB>2<TAB>{anything} ~
597576

598577
Vimが認識するもう1つのタグはタグファイルのエンコーディングを指定するものであ

0 commit comments

Comments
 (0)