1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
Commit Graph

49 Commits

Author SHA1 Message Date
naddy
41ce3b17e7 man pages: add missing commas between subordinate and main clauses
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@
2022-03-31 17:27:13 +00:00
schwarze
5ad34975ae when talking about non-blocking I/O, .Xr both FIONBIO and O_NONBLOCK
in the most concise way i managed to come up with;
suggested by martijn@ and OK millert@ martijn@
2021-08-14 11:30:12 +00:00
schwarze
029afef845 Stop playing hopeless games with FIONBIO.
If the calling program sets this flag, that is (1) either a bug
(or at least needless) (2) or clearing it in el_wgets(3) will break
other functionality of the calling program if it really requires it.
In both cases, treating EAGAIN as a fatal error in el_wgets(3) is
better than brushing the issue under the carpet: at least it tells
the program author that something is amiss.

Instead of attempting automatic repairs that will almost never do
the right thing, clearly state in the manual page that the editline(3)
library is not designed to work with non-blocking I/O.

The problem was found while investigating a bug report
from deraadt@ in sftp(1).
OK millert@ and "mostly OK" martijn@
2021-08-12 10:31:15 +00:00
schwarze
f19fdde8fe Document el_wpush(3) and fix the description of el_push(3).
Improve precision in the description of the "bind" builtin command.
Tweak terminology to better match editline(7).
2016-05-22 22:08:42 +00:00
schwarze
f34127af59 Simple sync with NetBSD, mostly to avoid confusion of arguments and
return values.
2016-05-21 16:34:30 +00:00
schwarze
88e2dc3a03 Fix the prototype used by EL_GETCFN, mention the associated typedef name,
document the return values, expand the list of affected functions, warn
against using EL_GETCFN, and clarify some wording and notation.
2016-05-21 16:17:09 +00:00
schwarze
47f0686a86 Fix next_history() and previous_history():
* The meaning of "next" and "previous" is exchanged in readline(3) with
respect to editline(3); this part of the patch from Bastian Maerkisch.
* next_history() can move beyond the newest entry; issue pointed out
by Bastian Maerkisch, fix by me.

While here, make the documentation of ed-next-history, ed-prev-history,
H_NEXT, and H_PREV more precise.

OK czarkoff@.
2016-05-10 11:07:53 +00:00
schwarze
081fbbfb3e New editline(7) manual, explaining to end-users how line editing works
in programs like ftp(1), sftp(1), bc(1), and cdio(1) that use libedit.
The existing editrc(5) manual only explains customization, and the
existing editline(3) manual only explains the C language interface.
Already listing all editor functions and all default key bindings, but
in other respects, not 100% complete yet, and due to the sheer size,
some bugs may have slipped, but all that can be fixed in the tree.

OK and tweaks jmc@.
Also seems reasonable to Christian Heckendorf <mbie at ulmus dot me>.
2016-04-20 01:11:45 +00:00
schwarze
373dd395ac Markup fixes: use .Ev and .Er where appropriate.
While here, also use \-1 rather than -1; not sure that's really
better, but Thomas is right it should at least be consistent
within a page.
From Thomas Klausner <wiz @ NetBSD>.
2016-03-21 18:04:40 +00:00
schwarze
75e66cb995 fix el_{w,}getc documentation;
OK czarkoff@
2016-03-21 17:53:07 +00:00
schwarze
31b5c4b077 in the SYNOPSIS, make void function arguments explicit 2015-09-14 13:45:25 +00:00
schwarze
d9e149c04a missing commas at the end of .Nm lines in the NAME section 2015-09-10 13:44:19 +00:00
jmc
0870f47d28 remove the first comma from constructs like ", and," and ", or,": you can use
"and" and "or" to join sentence clauses, and you can use commas, but both hinders
reading;
2015-03-13 19:58:40 +00:00
schwarze
088fff53b0 merge improvements from NetBSD; ok jmc@ nicm@ 2014-12-15 22:35:41 +00:00
schwarze
29b9d79946 markup fixes from Kaspars at Bankovskis dot net;
some of this is already contained upstream in NetBSD,
the rest will be sent there
2014-12-12 17:04:22 +00:00
nicm
d47027c4e4 Add a H_SAVE_FP operation to history() which lets the history be saved
to an open file pointer. From NetBSD via Eitan Adler.

ok millert
2014-05-19 08:58:34 +00:00
jmc
77505841a0 editline.3: editrc only read from $HOME; from LEVAI Daniel
editrc.5: add FILES for ~/.editrc

patches passed onto net/free
2013-01-10 14:21:47 +00:00
nicm
86d96b8f00 Enable wide character functions in libedit (not the other libe*t).
ok stsp deraadt
2011-07-07 16:15:47 +00:00
jmc
54d874448e netbsd -r1.75: Fix argument for EL_EDITOR; from Jess Thrysoee
ok nicm
2011-03-02 07:46:15 +00:00
jmc
fbad59fba0 observe the following spelling:
- wide character (noun)
- wide-character (adjective)

this is the "fix of least resistance", and appears to be in line with
posix style; a tiny fix still needed for curses, but i'll mail that
upstream;
2010-09-10 18:38:19 +00:00
jmc
a11b0301d3 tweak previous; 2010-06-30 07:24:25 +00:00
nicm
aed0ee816f Update libedit to bring it into sync with the latest version from NetBSD.
ok deraadt
2010-06-30 00:05:35 +00:00
nicm
7802ef15f3 Document return values, based on a diff from Ross Richardson.
ok jmc
2010-05-14 21:12:36 +00:00
jmc
3db95849a5 another Os out of order; 2010-05-09 19:12:05 +00:00
nicm
e0b48fe3be Document that el_init can return NULL on failure, PR 6374 from rueda at
devio.us.

ok jmc
2010-05-09 15:16:30 +00:00
ray
d874cce4b1 First pass at removing clauses 3 and 4 from NetBSD licenses.
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@
2008-06-26 05:42:03 +00:00
jmc
9490d37cb6 convert to new .Dd format; 2007-05-31 19:19:00 +00:00
jmc
6fc60853ed add el_get() to the Nm list; 2005-10-11 18:37:36 +00:00
jmc
7bd9d40c04 double word typos;
from alexey e. suslikov;
2005-09-09 15:07:35 +00:00
jfb
295f69a62b remove an extra occurence of the word `succeeds'
ok jmc@
2004-04-14 22:00:35 +00:00
otto
6e02e0734f Sync libedit to NetBSD libedit as of Nov 8, 2003.
Tested by jmc@ djm@ and myself
2003-11-25 20:12:38 +00:00
jmc
ec5dea46af encourage people to link with -lcurses rather than -ltermcap;
.Xr curses in SEE ALSO, suggested by otto@;

ok otto@
2003-11-03 05:23:49 +00:00
otto
b0a51aa328 Fix typo, which was already spotted by jmc@, but missing in the previous
commit.
2003-11-01 11:23:19 +00:00
otto
5c09816e1a Complete incomplete H_ADD description.
Spotted and ok by jmc@
2003-11-01 08:24:09 +00:00
otto
e6545ab64c Typo fix from Dries Schellekens <gwyllion at ace dot ulyssis dot org>.
10x
2003-10-31 10:23:22 +00:00
otto
411cf6d144 Man pages fixes from jmc@ 2003-10-31 08:57:10 +00:00
otto
d484b7d03a Update to NetBSD libedit (from Oct 1, 2003), adding some string
cleaning and history bug fixes. The code includes GNU libreadline
functionality, but the corresponding header files are not installed,
since some libreadline functions are missing. There are some minor API
changes, notably:

old: EditLine *el_init(const char *, FILE *, FILE *);
new: EditLine *el_init(const char *, FILE *, FILE *, FILE *);

old: HistEvent *history(History *h, int op, ...);
new: int history(History *h, HistEvent *ev, int op, ...); plus some
changes in operation names. See editline(3) for details.

Tested by djm@, mouring@, jmc@.

ok deraadt@
2003-10-31 08:42:23 +00:00
jmc
e6d514816a functions should link with -lcurses, not -ltermcap;
pointed out by millert@
2003-08-08 07:46:30 +00:00
jmc
ce3cb904ae - typos
- whitespace at EOL
- new sentence, new line
2003-05-23 12:41:13 +00:00
aaron
f885a5274d Mostly punctuation fixes. 2000-04-15 02:15:09 +00:00
aaron
5c3dced36c - remove all trailing whitespace
* except when it is escaped with a `\' at the end of the line
- fix remaining .Nm usage as well
- this is from a patch I received from kwesterback@home.com, who has been
  working on some scripts for fixing formatting errors in mdoc'd man pages

Ok, so there could be a cost/benefit debate with this commit, but since I have
the patch we might as well commit it...
1999-07-09 13:35:13 +00:00
aaron
6212703180 when using `-' as a negative sign, escape it with a backslash so troff knows
it's not supposed to be a hyphen/dash
1999-07-07 14:22:24 +00:00
aaron
7f3168a29b The proper order of the ``introductory'' macros in a man page is .Dd/.Dt/.Os.
Out of the approximately 1450 man pages, only about 90 of them were wrong.
Thanks to kwesterback@home.com for coming up with a script and patch to repair
this. The patch also inserted a .Os macro in the few man pages that were
missing one.
1999-07-07 10:50:04 +00:00
alex
350bb3b813 Cleanup xrefs under SEE ALSO. Specifically:
- Sort xrefs by section, and then alphabetically.
  - Add missing commas between xref items.
  - Remove commas from the last xref entry.
  - Remove duplicate entries.
1999-05-16 19:54:36 +00:00
aaron
17e1143f9c builtin -> built-in 1999-05-12 21:58:32 +00:00
deraadt
960f8fbd44 make function names the correct case 1999-02-27 21:54:48 +00:00
d
2ddc4be0aa fix misleading proto 1999-01-05 11:04:18 +00:00
millert
f840f2e031 fix el_source() - a block needed braces around it (from NetBSD)
Some strcpy() -> strncpy (from NetBSD)
Some KNF
Add current NetBSD tags
1997-03-14 05:12:41 +00:00
millert
9f6474d4a4 Man pages for libedit, from NetBSD. 1997-01-16 05:20:28 +00:00