summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2011-11-16When processing .Sh HEAD, as soon as we know which section this is,Ingo Schwarze
fix up the section attributes of the HEAD, it's parent BLOCK, and all its (text) children. This is required because the section attributes get set when each node is allocated, i.e. before processing the content of the node itself. Thus, the listed nodes got the section attribute of the preceding section. No need to fix up the BODY, all is fine there already. Found while implementing TYPE_Sh for mandocdb(8).
2011-11-16When a .TP block is broken but already contains a head element,Ingo Schwarze
do not abort(), but delete the head together with the block itself. Problem found and patch provided by joerg@, thanks!
2011-11-16Support multiple search terms, and logical operations -a and -oIngo Schwarze
to combine them. The default remains -o; usual precedence applies. No explicit grouping by parentheses yet. from kristaps@
2011-11-16Don't leak list in complete_cmd_parse if there are no commands found.Owain Ainsworth
Discovered when I was ``borrowing'' this code for something else. ok djm@
2011-11-16Don't create a history file called -... doh. Pointed out by jmc.Nicholas Marriott
2011-11-16consider there's no dependency between two aprocs, ifAlexandre Ratchov
one of them is NULL
2011-11-15Add word movement and editing command for command prompt editing, fromNicholas Marriott
Ben Boeckel.
2011-11-15Move word-separators to be a session rather than window option, from BenNicholas Marriott
Boeckel.
2011-11-15Add a pane_index format string and use it, from Ben Boeckel.Nicholas Marriott
2011-11-15Make window_pane_index work the same as window_index, from Ben Boeckel.Nicholas Marriott
2011-11-15Disable LESSHISTFILE by default, requested by deraadt.Nicholas Marriott
2011-11-15make midi 'owner' pointer per-outputAlexandre Ratchov
2011-11-15add missing full stop;Jason McIntyre
2011-11-15Add a "device number" component in sndio(7) device names, allowing aAlexandre Ratchov
single aucat instance to handle all audio and MIDI services. Since this partially breaks compatibility, this is a opportunitiy to fix few other design mistakes (eg ':' being used by inet6, type name vs api name confusion, etc..). This leads to the following names: type[@hostname][,unit]/devnum[.option] The device number is the minor device number for direct hardware access (ie the 'N' in /dev/audioN). For aucat, this is the occurence number of the -f (or -M) option. There's a compatibility hook to keep old names working if only one aucat server is running.
2011-11-14Store page titles in the correct case, and by default, onlyIngo Schwarze
put stuff into the database that man(1) will be able to retrieve. However, support an option to use all directories and files. Kristaps@ agreed with the general direction and provided some feedback.
2011-11-13Implement mdoc(7)-like output style variant for man(7) documents:Ingo Schwarze
* one instead of three blank lines after the page header; * one instead of three blank lines before the page footer; * source instead of title(section) in the lower right corner. Select this style variant with the undocumented command line option -Omdoc.
2011-11-13Make the man(7) page footer the same as in groff.Ingo Schwarze
2011-11-13overful -> overfull;Jason McIntyre
2011-11-13Support -man -Omdoc to format man(7) manuals in mdoc(7) output style;Ingo Schwarze
so far, this is only accepting the option, i will commit the (few) formatting tweaks separately. This is intentionally undocumented for two reasons: (1) We dream of making it the default at some point, so the option will hopefully go away again. (2) It is not needed for production, but mostly for automated man(7) to mdoc(7) output comparisons, to help -Tman development.
2011-11-13Make the default left text margin configurable from the command line,Ingo Schwarze
just like the default right margin already is. This may be useful for people with expensive screen real estate. Besides, it helps automated man(7) to mdoc(7) output comparisons to validate -Tman output. ok kristaps@ on an earlier version
2011-11-13Rewrite the expression parser for a more concise syntax:Ingo Schwarze
apropos [search_type[,...]=]substring apropos search_type[,...][,i]~regex ... and expression evaluation must take the search type into account. This allows to: * drop the global -I option and * drop the enum match, just using a boolean int. "go ahead" kristaps@
2011-11-13Inventing new keywords for mostly the same thing when a well-establishedIngo Schwarze
set of keywords already exists is a bad idea, so reuse the mdoc(7) macro names as apropos(1) search types. This is a gain in brevity as well. Some time ago, kristaps@ agreed in principle. The search type bit field constants are used by both mandocdb(8) and apropos(1) and should better stay in sync, so give them their own header file.
2011-11-13Split the common code to be reused by other mandocdb clients,Ingo Schwarze
for example the future man.cgi, out of apropos.c (which still contains the apropos(1) main program, command line handling, and the terminal output formatter) into apropos_db.{h,c} (which now contains the database searching backend code). ... and actually commit the two new files. Oops.
2011-11-13Split the common code to be reused by other mandocdb clients,Ingo Schwarze
for example the future man.cgi, out of apropos.c (which still contains the apropos(1) main program, command line handling, and the terminal output formatter) into apropos_db.{h,c} (which now contains the database searching backend code). While here, * Drop the -e option; to search for exact strings, use REs. * Drop the -r option (more changes related to this coming soon). * Use the traditional -s and -S instead of inventing our own options. * Drop the sort option (at least for now), it got in the way. Written by kristaps@.
2011-11-13Fix two crashes that occur when walking very large (i.e. real-world) trees:Ingo Schwarze
1) Avoid excessive, needless recursion lest you overflow the stack; 2) Close dir file descriptors, lest you run out of descriptors. ok kristaps@
2011-11-12mark some arguments "const" that will not be changed; from kristaps@Ingo Schwarze
2011-11-12Parse and ignore the C font family in \f escapes.Ingo Schwarze
Helps with some real-world manuals that (incorrectly) assume that the C font family means "constant width". Suggested by Andreas Vogele, patch by kristaps@.
2011-11-12update currency exchange rates;Jason McIntyre
2011-11-09Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.Nicholas Marriott
2011-11-08use -A with traceroute; ok sthenTheo de Raadt
2011-11-08Pass install the -S option to avoid a window where the target isn'tPhilip Guenthe
executable (by mode or content), which can trip up builds with 'make -j' (The generic fix is in share/mk/*; some Makefiles have their own INSTALL lines) ok millert@ deraadt@
2011-11-06improve gm4 compatibility, from Robert Young, thanks !Marc Espie
note that patsubst is non-standard. okay miod@, deraadt@
2011-11-05When the HEAD scope of .TP is broken by another block macro,Ingo Schwarze
do not abort with a FATAL error, but report a regular ERROR, remove the broken .TP from the syntax tree, and prod on. Reported repeatedly by ports people, at least by brad@ and jeremy@. Also fixes rendition(4) in Xenocara.
2011-11-05update currency exchange rates;Jason McIntyre
2011-11-05Missing bits for new keys and buffer indexes, from Tiago CunhaNicholas Marriott
2011-11-05Option to change status line (message) background when using vi keys andNicholas Marriott
in command mode. From Ben Boeckel.
2011-11-03Garbage collect an unused variable.Ingo Schwarze
Found by Michael W. Bombardieri <mwb at bom dot nom dot co> using lint. ok deraadt@
2011-11-03When .TH sets no data, leave the date field in the page footer blank,Ingo Schwarze
do not use the current date. This removes a gratuitous output difference with respect to groff. ok kristaps@
2011-11-03Correct .Eo spacing:Ingo Schwarze
no space between the delimiters and the enclosed text. The mdoc_html.c part was added by kristaps; ok kristaps@.
2011-11-01Do some cleanup and improve the manpage. From Andreas Bartelt; ok henning, jmcMike Belopuhov
2011-11-01Fixup previous: don't forget to actually get the current rtable;Mike Belopuhov
reminded by Andreas Bartelt.
2011-11-01List sockets existing only in the specified or current routing domain.Mike Belopuhov
Prompted by the mail from Andreas Bartelt, tested by Andreas and me. ok henning
2011-10-29update currency exchange rates;Jason McIntyre
2011-10-27minor formatting fix;Jason McIntyre
2011-10-27Add screen*:XT to terminal-overrides for tmux-in-tmux, from RomainNicholas Marriott
Francoise.
2011-10-27Missing -o on usage for pipe-pane, from Tiago Cunha.Nicholas Marriott
2011-10-27Didn't really think the else behaviour through - requiring argv toNicholas Marriott
contain "else" is silly so just omit that, also some manpage tweaks. From Tiago Cunha.
2011-10-24mention that -aoff is not the default for the default deviceAlexandre Ratchov
2011-10-24Handle infinite recursion the same way as groff:Ingo Schwarze
When string expansion exceeds the recursion limit, drop the whole input line, instead of leaving just the string unexpanded. This fixes src/regress/usr.bin/mandoc/roff/string/infinite.in. ok kristaps@
2011-10-24Handle \N numbered character escapes the same way as groff:Ingo Schwarze
If \N is followed by a digit, ignore \N and the digit. If \N is followed by a non-digit, the next non-digit ends the character number; the two delimiters need not match. Kristaps calls that "gross, but not our fault". This fixes most of src/regress/usr.bin/mandoc/char/N/basic.in, except that handling of non-printable characters still differs from groff. For now, i'm fixing \N only. Other escapes taking numeric arguments may or may not need similar handling, but \N is by far the most important for practical purposes. ok kristaps@