Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tag-jump fail to find XTAGS file in upper directory #30

Merged
merged 2 commits into from
Mar 17, 2012

Conversation

bowbow99
Copy link

2ch で出てたタグジャンプの失敗を修正しました(いや、何もしてませんが)。

タグジャンプは最初にカレントディレクトリにある XTAGS を見て、#USE ../../ とか書いてあればそのディレクトリの XTAGS を探しに行くんですが、この行を探す regexp を変更した結果改行にもマッチしちゃうようになってディレクトリ名として使えなくなってたようです。

This reverts commit b15ef2a.

When doing tag-jump, XTAGS file in current directory is checked first.
If it contains line like following:

    #USE ../../

other XTAGS file in upper directory specified by "../../" will be used
instead. Function `tags-setup-buffer` is responsible for following
"#USE .." line.

In the reverted commit, search pattern for "#USE .." line is changed
from this:

    "#USE \\(\\(../\\)+\\)$"

to this:

    "#USE \\(\\(../\\)+[^/]*\\)$"

I think the change is intended to allow specify directory other than
straight above, like following:

    #USE ../other-dir

but added part "[^/]*" matches newline character (and following lines
if there is), which prodeces inappropriate string for directory name
and it fail to find XTAGS file, as reported by >>828 at [xyzzy part17].

  [xyzzy part17]: http://toro.2ch.net/test/read.cgi/win/1303662374/
@mumurik
Copy link
Owner

mumurik commented Mar 16, 2012

ふむ。revertなんだからとりあえずmergeしちゃってもいいですが、southly氏に見てもらいたい所だなぁ。
ちょっとnotification飛ばしてみます。

@southly
Copy link

southly commented Mar 17, 2012

もともと個人的趣味だから入れなくてもいいと指定していたパッチですし、revertでいいんじゃないでしょうか。

repository を修正し忘れていたとはうかつでした。

mumurik added a commit that referenced this pull request Mar 17, 2012
…-dir

Fix tag-jump fail to find XTAGS file in upper directory
@mumurik mumurik merged commit a7d17f2 into mumurik:master Mar 17, 2012
@mumurik
Copy link
Owner

mumurik commented Mar 17, 2012

了解しました。それじゃacceptで。お手数おかけしましたm_ _m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants