christos
eda876c9d5
Libedit depends on libterm. From Patrick Welche
2005-05-18 22:36:20 +00:00
christos
33b0562908
Make completion_matches non-static since readline wants it.
2005-05-18 22:34:41 +00:00
christos
308097fac3
Make signal handler safe. From Michael Knudsen, many thanks.
2005-05-18 00:50:24 +00:00
lukem
78745cde09
Remove clause 3 from the UCB license.
2005-05-16 13:14:43 +00:00
christos
182beb15f2
PR/30215: Kouichirou Hiratsuka: /bin/sh dumps core with tabcomplete
...
Don't core-dump when trying to complete an empty line; instead assume ./
2005-05-12 15:48:40 +00:00
dsl
2e685ade80
Use getpwuid_r(getuid(), ...) to expand ~/....
...
Don't replace ~xyz with /home/xyz when expanding ~
2005-05-09 20:10:33 +00:00
dsl
6ddc453ece
gdb directly calls filename_completion_function()
2005-05-07 16:28:32 +00:00
dsl
76a1f02b41
Make everything that uses makelist depend on Makefile - that way the
...
created files pick up new entries.
2005-05-07 16:22:59 +00:00
dsl
41a59814ed
Separate out the filename completion functions from the readline() code.
...
Pass in loads of parameters instead of relying on shed-loads of global
variables to modify the behaviour.
The filename completion code can now be enabled by code that uses el_gets().
(eg /bin/sh)
2005-05-07 16:01:25 +00:00
matt
35f4d7fe23
Terminate the arglist with a NULL instead of 0. (Shuts up gcc4.x)
2005-04-25 01:06:03 +00:00
christos
b9b92f846c
check for pwd != NULL, fix a missed getpwnam.
2005-04-19 03:29:18 +00:00
christos
a76abbed58
PR/29958: Peter Bex: add rl_variable_bind and rl_attempted_completion_over
2005-04-12 22:01:40 +00:00
christos
bf7832efc6
use getpwent_r
2005-04-02 06:28:10 +00:00
christos
35d638917d
PR/29738: Rui Paulo: Incorrect tok_line and tok_str declarations.
2005-03-19 17:36:02 +00:00
christos
476e930172
Add missing define, needed for debugging (from Rob Rodgers)
2005-03-15 00:10:40 +00:00
christos
af62817ea3
Always update the position variables before the map function is called.
...
From Rob Rodgers, thanks!
2005-03-10 19:34:46 +00:00
christos
f96c72ee24
set UNBUFFERED again after you do the line callback so that the new line
...
gets refreshed.
2005-03-09 23:55:35 +00:00
christos
04a4f22437
Make sure we flush after we prepare when we are unbuffered otherwise the
...
prompt will not appear immediately.
2005-03-09 23:55:02 +00:00
christos
3bca82ec33
PR/26785: Jess Thrysoee: libedit - H_NEXT and H_PREV shifts cursor on failure
2004-11-27 18:31:45 +00:00
christos
defca69e1a
Make EM_DELETE_PREV_CHAR behave like ED_DELETE_PREV_CHAR in incremental
...
search. From Gerry Swislow.
2004-11-04 01:16:03 +00:00
dsl
1793b7dd69
Use (unsigned char) cast to sanitise arguments to ctype functions.
2004-10-28 21:14:52 +00:00
dsl
d349cd6749
Fix a load of international alphabet problems with isxxx() and toupper()
...
Change isspace(*char_ptr) to isspace(*char_ptr & 0xff) so that the correct
piece of memory is looked at for the bit mask.
gcc optimises out the '& 0xff' (on i386 at least).
Fixes problems found by gcc when the splurious (int) cast is removed
from the #defines in ctype.h
2004-10-27 19:59:24 +00:00
christos
0d0ad08914
cut out the middle-man and use el_insertstr() directly.
2004-09-08 18:15:57 +00:00
christos
742c0a6b61
make rl_inhibit_completion visible.
2004-09-08 18:15:37 +00:00
christos
9b6268f92e
make sure that we round up to 1K.
2004-08-24 12:41:06 +00:00
christos
848a98512e
PR/26725: Sergey S. Kostyliov: Typo in libedit, possible buffer overflow in src/lib/libedit/history.c:history_save()
2004-08-20 12:54:05 +00:00
mycroft
6360c4b0f8
Delete-previous-char and delete-next-char without an argument are not supposed
...
to modify the yank buffer in Emacs. Make it so.
2004-08-13 12:10:38 +00:00
christos
18c8edba4d
PR/23486: Andreas Gustafsson: gdb no longer works with emacs
...
- make sure that we keep previous contents of the buffer in unbuffered mode.
- when turning editing on and off keep tty consistent.
2004-07-08 00:51:36 +00:00
christos
b6b34b8065
fix memory leak; thanks to Logan Gabriel
2004-05-22 23:21:28 +00:00
wiz
962fdd9cb4
Remove duplicate word, from jfb@openbsd via jmc@openbsd.
2004-04-15 08:13:29 +00:00
christos
ac4e17d0c7
Better fix for rl_prep_terminal() from Gerry Swislow.
2004-02-27 14:52:18 +00:00
christos
9f2ccd7938
Separate tty separation from the prompt printing function. From Gerry Swislow.
2004-02-21 16:42:30 +00:00
christos
c8d67a7da2
portability fixes.
2004-01-17 17:57:40 +00:00
lukem
cbb69f7013
update for function name change
2003-12-08 12:03:01 +00:00
wiz
312a9703d5
Use Aq instead of <>, quote a minus, drop trailing space.
2003-12-05 13:46:39 +00:00
lukem
a9beb0e443
Tokenization function enhancements:
...
* Make tok_init(), tok_end(), tok_reset(), tok_line() and tok_str()
publically available in <histedit.h>
* Documented the public functions in editline(3)
* Renamed tok_line() -> tok_str()
* Added new tok_line() which takes a "const LineInfo *" instead of
"const char *" (the former has "cursor" information), and optionally
return the argv index ("int *cursorc") and offset within that index
("int *cursorv"). This means that completion routines can use the
tokenization code to crack the line and easily find which word the
cursor is at. (mmm, context sensitive completion :)
* Fixed TEST/test.c when using "continuation" lines (unmatched quote
or \ at EOL), and added some more DEBUG messages including highlighting
where the cursor is (with a `_').
2003-12-05 13:37:48 +00:00
christos
30278e9a57
s/wth/with/
2003-11-04 13:22:19 +00:00
christos
1b8a2beb0c
Fix uninitialized variable.
2003-11-03 03:22:55 +00:00
christos
62a5c8a602
Always use el->el_buffer, because newbuffer could have moved. From
...
Gerry Swislow gerry at certif dot com
2003-11-02 20:08:41 +00:00
christos
72dc1c2ac9
If the kill buffer is empty return normal. From Gerry Swislow gerry at certif
...
dot com
2003-11-02 20:07:58 +00:00
christos
d67d488ee2
Handle M- as escape. XXX: should probably select the meta-map instead.
...
From Gerry Swislow gerry at certif com
2003-11-02 20:06:57 +00:00
christos
8467a84273
From: Gerry Swislow gerry at certif dot com
...
1) File name completion should list the files in the current directory
if no text is entered. The previous version wouldn't list anything if
the text to complete was empty.
2) When listing directories, the entries "." and ".." shouldn't be
shown.
3) The filename completion should be used if the user's
rl_attempted_completion_function doesn't return any matches. The
previous version didn't do that.
2003-11-02 01:45:14 +00:00
christos
391b46bc7f
initialize ptr.
2003-11-01 23:39:22 +00:00
christos
bd39b60424
Explain H_ADD better. from Otto Moerbeek otto at drijf dot net
2003-11-01 23:37:30 +00:00
christos
487a7c2a6c
Fixes from Otto Moerbeek otto at drijf dot net
2003-11-01 23:36:39 +00:00
christos
4c93d52c09
Document history builtin commands.
2003-11-01 23:35:33 +00:00
christos
8b40dcaecf
Make readline csh-like history work.
...
From Gerry Swislow <gerry at certif dot com>.
2003-10-27 22:26:35 +00:00
christos
9ee15c697a
Another fix for incremental search prev.
2003-10-25 06:42:41 +00:00
christos
52215a07e7
add rl_catch_signals
2003-10-19 06:28:35 +00:00
wiz
2af5f10bcc
Bump date for previous.
2003-10-19 01:26:11 +00:00
christos
6e782349a3
change allocation policy in el_push to allocate the string itself.
...
fix issues with strdup.
2003-10-18 23:48:42 +00:00
christos
acc8915b44
make forward incremental search work better.
2003-10-18 23:27:36 +00:00
christos
e7c6d717ff
remove debugging printf.
2003-10-18 22:37:24 +00:00
christos
730f23e551
Allow setty to set chars using char=value
2003-10-18 22:24:34 +00:00
christos
7bd301151f
When searching backwards don't include the characters after the cursor in
...
the search.
2003-10-17 18:49:11 +00:00
wiz
432d3289ba
Bump date for previous. Replace > with \*[Gt].
2003-10-17 15:33:23 +00:00
christos
5d79eff8f5
More libedit readline emulation functions from: Gerry Swislow
...
<gerry at certif dot com>
2003-10-16 22:26:32 +00:00
christos
99e15c71d0
I got tired of typing a cc line.
2003-10-16 21:41:46 +00:00
christos
a246b45de2
Fix incremental search which was badly busted.
2003-10-16 21:41:26 +00:00
christos
378865a426
don't limit ^c to alpha c, and add VIS_NOSLASH so that vis(3) does not
...
produce \^c
2003-10-15 18:08:40 +00:00
christos
5eda4a7d47
PR/23107: Nathan Williams: ^D as the first char on the command line does
...
not DTRT in readline compatibility mode
2003-10-09 00:42:28 +00:00
wiz
6a6ecd3246
New sentence, new line; bump date for previous.
2003-09-26 21:09:13 +00:00
christos
552716dcff
Implement enough of readline's 4.0 async mode to make gdb happy. This is
...
not complete yet, but it seems to work...
This required to introduce an unbuffered mode to el_gets(), but that was
a minor change.
2003-09-26 17:44:51 +00:00
tron
e9c2e92b36
Include "sys/ttydefaults.h" to get standard definition of "CTRL" macro
...
which avoids clash with custom one.
2003-09-15 11:33:33 +00:00
christos
2e7dfdfa24
kludge around CTRL redef.
2003-09-15 01:29:36 +00:00
christos
7fb5c922f1
Match the stupid function pointer declarations with actual readline's 4.0.
...
This is gross.
2003-09-14 22:15:23 +00:00
christos
7bb332f70b
make this compile.
2003-09-14 21:55:39 +00:00
christos
705c04f0bc
Avoid pre-ansi warning.
2003-09-14 21:55:19 +00:00
christos
166e18a7fd
- provide enough hooks to compile gdb-5.3
...
- fix el_get(e, EL_TERMINAL, (char **))
2003-09-14 21:48:54 +00:00
mycroft
ec5dc2be24
Fix something that's been annoying me for a while...
...
Pull in <fcntl.h>, so that the fcntl #defines are present, and we build in the
automatic reset of non-blocking mode, rather than beeping like mad.
2003-09-13 04:18:00 +00:00
agc
eb7c1594f1
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
lukem
64b5a0fe7b
Add INCSYMLINKS to <bsd.inc.mk> and <bsd.kinc.mk>, and use that instead of
...
SYMLINKS to install symlinked header files. INCSYMLINKS are installed with
'make includes'. This avoids using SYMLINKS and hacks with the 'linkinstall'
target in <bsd.links.mk>, as linksinstall occurs in 'make install' and hacks
to get it to occur in 'make includes' weren't robust, as seen in lib/libdes.
Yet more improvements to bsd.README.
2003-08-03 09:23:14 +00:00
lukem
a93ea220fc
Rework how dependency generation is performed:
...
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.
* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx
* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES
* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}
* Deprecate the (short lived) DEPENDSRCS
Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.
Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem
7b3a8b8486
tweak this unconventional (some might say "baroque") Makefile to work
...
with the new <bsd.dep.mk> *.d semantics.
fixes problems highlighted by Martin Husemann <martin@>
2003-07-31 12:46:00 +00:00
wiz
19aedbe869
Bump date for last.
2003-07-16 11:54:44 +00:00
jeremy
be8ce1d30b
Documented the return values from el_get().
2003-07-14 22:36:22 +00:00
wiz
a8f1dff65a
Add Ns.
2003-06-27 18:57:09 +00:00
christos
96759472a4
provide a definition for __attribute__
2003-06-19 16:19:42 +00:00
christos
9b8791db6c
From michael@moria.de:
...
Fix realloc case where we could be running out of space if too many matches.
2003-06-19 16:04:57 +00:00
christos
839ca00b3c
From michael@moria.de:
...
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
2003-06-19 15:55:05 +00:00
wiz
4ed8aa82ed
Use Aq Pa instead of Fd \*[Lt]...\*[Gt]. From jmc@openbsd.
2003-06-06 13:33:17 +00:00
matt
362ac6119e
Only return CC_EOF if ^D (VEOF) was the only thing on the line. Otherwise
...
beep and don't do anything else. This mimics the behavor of ^D outside in
normal terminal mode. (^D in vi scrolls forwards and as such isn't
appropriate to emulation)
2003-06-04 20:14:05 +00:00
wiz
f30ce359ce
setup -> set up, from jmc@openbsd.
2003-05-14 07:24:21 +00:00
christos
23e52df103
add a missing dependency (John Gordon)
2003-05-08 13:22:05 +00:00
christos
3a7857f16d
Use ${HOST_SH}
2003-05-08 13:20:44 +00:00
wiz
472351e13d
Use
...
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
perry
702861031b
em-gosmacs-traspose->em-gosmacs-transpose (Igor Sobrado, PR misc/19909)
2003-03-31 16:52:42 +00:00
wiz
0acfa3bb9e
Consistently spell occurrence with two rs.
2003-03-29 22:48:37 +00:00
christos
80a839beda
don't use the path for awk
2003-03-10 21:21:10 +00:00
christos
687b5d51e3
s/u_int32_t/unsigned int/
2003-03-10 21:18:49 +00:00
dsl
25456aecdb
Put the __weak_extern() back inside vi_alias, but after the extern for
...
get_alias_text().
2003-03-10 11:09:25 +00:00
he
d5428a2906
Move the __weak_extern() (ifdef'ed) outside of the vi_alias()
...
function, so that this compiles again.
2003-03-10 09:55:10 +00:00
christos
1d6595e599
null is not 0
2003-03-10 01:14:54 +00:00
christos
2ffae6453d
if no __weak_extern, don't even try to do vi_alias.
2003-03-10 01:14:07 +00:00
christos
61c24e2c2a
fix uninitialized variable.
...
grr, I want gcc-3.3
2003-03-10 01:05:12 +00:00
christos
5f1f221c24
sig_t is non portable
2003-03-10 00:58:05 +00:00
christos
23dbd749a2
- include cdefs.h early in the game
...
- ifdef notdef the sunos stuff
- no need for sig_t
2003-03-10 00:57:38 +00:00
christos
bdc91aaf9a
include alloca.h for systems that need it.
2003-03-10 00:56:38 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
831ba492c3
Replace -1 with \-1 for PostScript output; drop a trailing space and fix two typos.
2003-01-21 23:00:56 +00:00