aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tag.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix multiple issues regarding process group and signal mask handlingIngo Schwarze2015-11-201-1/+3
| | | | | found by tb@ and millert@; parts of the code, in particular in tag.c, by millert@; OK millert@.
* In private header files, __BEGIN_DECLS and __END_DECLS are pointless.Ingo Schwarze2015-11-071-4/+1
| | | | | | | | | | | | Because these work slightly differently on different systems, they are becoming a maintenance burden in the portable version, so delete them. Besides, one of the chief design goals of the mandoc toolbox is to make sure that nothing related to documentation requires C++. Consequently, linking mandoc against any kind of C++ program would defeat the purpose and is not supported. I don't understand why kristaps@ added them in the first place.
* Remove the hack of scrolling forward and backward with +G1G thatIngo Schwarze2015-07-281-2/+9
| | | | | | | | | | many (jmc@, millert@, espie@, deraadt@) considered revolting. Instead, when using a pager, since we are using a temporary file for tags anyway, use another temporary file for the formatted page(s), as suggested by millert@ and similar to what the traditional BSD man(1) did, except that we use only one single temporary output file rather than one for each formatted manual page, such that searching (both with / and :t) works across all the displayed files.
* Simplify and make tag_put() more efficient by integrating tag_get()Ingo Schwarze2015-07-251-3/+2
| | | | | into it and by only handling NUL-terminated strings. Minus 25 lines of code, no functional change.
* basic support for tag priorities; written at YYCIngo Schwarze2015-07-251-3/+3
|
* When creation of the temporary tags file fails, call the pagerIngo Schwarze2015-07-211-3/+2
| | | | | | | | without the -T option, because otherwise the pager won't even start. Fixing a bug reported by jca@. While here, shorten the code by two lines and delete one internal interface function.
* Initial, still somewhat experimental implementation to leverageIngo Schwarze2015-07-171-0/+27
less(1) -T and :t ctags(1)-like functionality to jump to the definitions of various terms inside manual pages. To be polished in the tree, so bear with me and report issues. Technically, if less(1) is used as a pager, information is collected by the mdoc(7) terminal formatter, first stored using the ohash library, then ultimately written to a temporary file which is passed to less via -T. No change intended for other output formatters or when running without a pager. Based on an idea from Kristaps using feedback from many, in particular phessler@ nicm@ millert@ halex@ doug@ kspillner@ deraadt@.