-
Notifications
You must be signed in to change notification settings - Fork 625
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
Man tag concept #1497
Man tag concept #1497
Conversation
14f3a08
to
4ccb0f3
Compare
man/Makefile
Outdated
@@ -51,21 +51,24 @@ pdf_pages = $(addsuffix .pdf,$(man_pages)) | |||
# | |||
# though rst2man doesn't accept it. docutils must be fixed. | |||
# | |||
all: $(man_pages) $(html_pages) # $(pdf_pages) | |||
all: $(man_pages) $(html_pages) $(pdf_pages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be out of scope of this PR, but how about adding man
, html
and pdf
make targets?
Currently, it is not easy to make only man pages, html or pdf.
And, do you think pdf pages should be always built?
I wonder if I should include pdf files in Windows zip packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Out of scope comments are really welcome if you have time :-)
man/Makefile is for us, people who are writing the pages.
For users, targets for generating files are in Makefile.am of top level.
For Unix-like platform, I think providing .1 and .7 man pages is enough.
However, for Windows, I'm not sure. If man command is not avaiable, people may want alternatives.
Such platforms may have *.mak files. So we should add "pdf" or something other targets to the .mak files. Putting html files derived from ctags.1.rst.in is another issue.
About man/Makefile, change as you wants. There is not impact on our users.
About *.mak files for platforms other than Unix-like OS, change as you wants.
About Makefile.am, make a pull request or open an issue. I would like to work together.
Any way, adding more targets to man/Makfile is good idea. I will add them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then I think html files are enough for Windows package.
man/ctags.1.rst.in
Outdated
Roles | ||
~~~~~~ | ||
|
||
*Role* is newly introduced concept in Universal-ctags. Role is a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is an "a" needed before "newly"? Not sure.
man/ctags.1.rst.in
Outdated
``--alias-<LANG>=`` (done) | ||
|
||
|
||
TAG ENTRY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ENTRY" or "ENTRIES"? Not sure.
man/ctags.1.rst.in
Outdated
Inquire the output of ``--list-extras`` option for the other minor | ||
extras. | ||
|
||
A name associated with an extra can be used as alternative to to a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to to -> to
man/ctags.1.rst.in
Outdated
|
||
As an example for the C language, in order to add prototypes and | ||
external variable declarations to the default set of tag kinds, | ||
but exclude macros, use "--c-kinds=+px-d"; to include only tags for | ||
functions, use "--c-kinds=f". | ||
|
||
A name associated with a kind can be used as alternative to to a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to to -> to
man/ctags.1.rst.in
Outdated
REFONLY | ||
Whether the kind is specialized for reference tagging or not. | ||
If the column is "yes", the kind is for reference tagging, and | ||
it is never used for definition tagging. See also "TAG ENTRY". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you change above, you also need to change this "ENTRY" to "ENTRIES".
main/options.c
Outdated
#endif | ||
#ifdef HAVE_LIBXML | ||
"xpath", | ||
{"xpath", "linked with library for parsing xml input"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope of this PR, but I want to know why this is "xpath" not "xml".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...Good point.
Originally, I wanted to add --xpath-<LANG>=...
option like --regex-<LANG>=
option; I think it is useful feature that people can create a parser with specifying xpaths.
However, I have not implemented it yet because I cannot find how the option parameters should be.
What I have done is some libxml2 base parser. In the future, when I implement --xpath-<LANG>
option, the feature "xpath" is the signed that a ctags binary can accept --xpath
option.
Updated. Thank you very much. |
I added one small change. |
I also added description about |
I will write ctags-optlib.5 next. |
I'm sorry disturbing the branch under your reviewing. It seems that I injected something wrong change in the branch. |
a104d0b
to
8eb82fb
Compare
e39c849
to
509f7da
Compare
@KazuakiM, I have a question about the behavior of sed on MacOSX. In my test harness for ctags, I used following code to report the result of testing:
Here $f is a diff file generated by a test case. My intention is that adding a tab character as prefix for printing each line of $f. This works well on my GNU/Linux:
However, I cannot get the same expected result on MacOSX running on Travis-CI. |
I tried the following case. Both tabs were set to prefix. $ cat FOO
abc
efg
-- case : \t
$ f=FOO; cat "$f" | sed -e 's|.*|\t\0|'
abc
efg
-- case : tab character
$ f=FOO; cat "$f" | sed -e 's|.*| \0|'
abc
efg |
@KazuakiM, thank you. Surprisingly, the command line including sed on MacOSX works well as same as hat on GNU/Linux...It seems that there is something special in MacOSX instance running at Travis-CI... |
@masatake $ f=FOO; cat "$f" | sed -e 's|.*|\t\0|'
t0
t0
mabuchikazuaki $ f=FOO; cat "$f" | sed -e 's|.*| \0|'
0
0 |
@masatake gnu_sed_prefix=`brew --prefix gnu-sed`
export PATH="$gnu_sed_prefix/libexec/gnubin:$PATH" |
@KazuakiM, thank you. Introducing gnu-sed is one of the solution but I would like to understand what happens to How about using
I would like to try the above command line with the original(build-in?) sed of MacOSX. |
@k-takata, I'm sorry but could you suspend your reviewing I asked? |
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…ANG>-kinds Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…ras-<LANG> Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Suggested by @k-takata. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…r subsection Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…and line Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
509f7da
to
4264660
Compare
@k-takata, the most of all code changes are removed from this pull request. Thanks in advance. |
@k-takata, thank you very much. |
I wrote my understanding about "tag", "kind", "field", "extra" and "role", the core concept of ctags.
I was attracted them 2 or 3 years ago. Since then I have tried to understand the meaning of them evenryday.
@k-takata, can I ask you to review the changes as usual?
Of couse, I'm happy if other people give me feed-back, especially who wants "releasing".