History log of /netbsd-src/lib/libedit/emacs.c (Results 1 – 25 of 38)
Revision Date Author Comments
# 8ffafb93 29-Jun-2024 christos <christos@NetBSD.org>

don't use oldc before it is set.


# 427b3799 29-Jun-2024 christos <christos@NetBSD.org>

Retrieve the cursor position after calling c_insert, because c_insert could
enlarge the line buffer making the old cursor position point to freed memory.
From Robert Morris https://bugs.freebsd.org/b

Retrieve the cursor position after calling c_insert, because c_insert could
enlarge the line buffer making the old cursor position point to freed memory.
From Robert Morris https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279772

show more ...


# a2d6b270 09-May-2016 christos <christos@NetBSD.org>

s/protected/libedit_private/g


# 4fc1f47d 18-Apr-2016 christos <christos@NetBSD.org>

From Ingo Schwarze:
* Replace fcns.c by a shorter and simpler func.h
and include it only in the one file needing it, map.c.
* Combine help.h and help.c into a simplified help.h
and include it

From Ingo Schwarze:
* Replace fcns.c by a shorter and simpler func.h
and include it only in the one file needing it, map.c.
* Combine help.h and help.c into a simplified help.h
and include it only in the one file needing it, map.c.
* Check the very simple, static files editline.c, historyn.c, and
tokenizern.c into CVS rather than needlessly generating them.
* So we no longer autogenerate any C files. :-)
* Shorten and simplify makelist by deleting the options -n, -e, -bc,
and -m; the latter was unused and useless in the first place.
* Move the declaration of el_func_t from fcns.h to the header
actually needing it, map.h. Since that header is already
included by el.h for unrelated reasons, that makes el_func_t
just as globally available as before.
* No longer include the simplified fcns.h into el.h,
include it directly into the *.c files needing it.

show more ...


# 0594af80 11-Apr-2016 christos <christos@NetBSD.org>

Char -> wchar_t from Ingo Schwarze.


# fcf85103 09-Apr-2016 christos <christos@NetBSD.org>

More WIDECHAR elimination (Ingo Schwarze)


# e84df91e 16-Feb-2016 christos <christos@NetBSD.org>

More header cleanups from Ingo Schwarze.


# 747f6811 16-Feb-2016 christos <christos@NetBSD.org>

more include file cleanup (Ingo Schwarze)


# aefc1e44 16-Feb-2016 christos <christos@NetBSD.org>

From Ingo Scharze:
Let "el.h" include everything needed for struct editline,
and don't include that stuff multiple times. That also improves
consistency, also avoids circular inclusions, and also ma

From Ingo Scharze:
Let "el.h" include everything needed for struct editline,
and don't include that stuff multiple times. That also improves
consistency, also avoids circular inclusions, and also makes it
easier to follow what is going on, even though not quite as nice.
But it seems like the best we can do...

show more ...


# f09cb8c6 16-Feb-2016 christos <christos@NetBSD.org>

cleanup chartype.h includes (Ingo Schwarze)


# 40850369 16-Feb-2016 christos <christos@NetBSD.org>

cleanup inclusion of histedit.h (Ingo Schwarze)


# f54e4f97 14-Feb-2016 christos <christos@NetBSD.org>

From Ingo Schwarze:

As we have seen before, "histedit.h" can never get rid of including
the <wchar.h> header because using the data types defined there is
deeply ingrained in the public interfaces o

From Ingo Schwarze:

As we have seen before, "histedit.h" can never get rid of including
the <wchar.h> header because using the data types defined there is
deeply ingrained in the public interfaces of libedit.

Now POSIX unconditionally requires that <wchar.h> defines the type
wint_t. Consequently, it can be used unconditionally, no matter
whether WIDECHAR is active or not. Consequently, the #define Int
is pointless.

Note that removing it is not gratuitious churn. Auditing for
integer signedness problems is already hard when only fundamental
types like "int" and "unsigned" are involved. It gets very hard
when types come into the picture that have platform-dependent
signedness, like "char" and "wint_t". Adding yet another layer
on top, changing both the signedness and the width in a platform-
dependent way, makes auditing yet harder, which IMHO is really
dangerous. Note that while removing the #define, i already found
one bug caused by this excessive complication - in the function
re_putc() in refresh.c. If WIDECHAR was defined, it printed an
Int = wint_t value with %c. Fortunately, that bug only affects
debugging, not production. The fix is contained in the patch.

With WIDECHAR, this doesn't change anything. For the case without
WIDECHAR, i checked that none of the places wants to store values
that might not fit in wint_t.

This only changes internal interfaces; public ones remain unchanged.

show more ...


# 6af8d673 11-Feb-2016 christos <christos@NetBSD.org>

- Add some more Char casts
- reduce ifdefs by providing empty defs for nls functions (Ingo Schwarze)


# b71bed95 29-Jul-2011 christos <christos@NetBSD.org>

KNF return (\1); -> return \1;


# 98c7cbeb 28-Jul-2011 christos <christos@NetBSD.org>

term -> terminal
XXX: need to rename key_ too.


# 34e53048 30-Dec-2009 christos <christos@NetBSD.org>

Wide character support (UTF-8) from Johny Mattsson; currently disabled.


# 5c894153 15-Feb-2009 christos <christos@NetBSD.org>

pass lint on _LP64.


# 230c3d4e 06-Mar-2006 christos <christos@NetBSD.org>

Print the actual eofc, instead of ^D\b\b.
Change internal character decoding to prevent buffer oveflows.


# 2ecb0fb7 08-Aug-2005 christos <christos@NetBSD.org>

Spelling mistakes and comment errors (from FreeBSD via Stefan Farfeleder; many
thanks)


# 1793b7dd 28-Oct-2004 dsl <dsl@NetBSD.org>

Use (unsigned char) cast to sanitise arguments to ctype functions.


# d349cd67 27-Oct-2004 dsl <dsl@NetBSD.org>

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

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

show more ...


# 6360c4b0 13-Aug-2004 mycroft <mycroft@NetBSD.org>

Delete-previous-char and delete-next-char without an argument are not supposed
to modify the yank buffer in Emacs. Make it so.


# 72dc1c2a 02-Nov-2003 christos <christos@NetBSD.org>

If the kill buffer is empty return normal. From Gerry Swislow gerry at certif
dot com


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# 839ca00b 19-Jun-2003 christos <christos@NetBSD.org>

From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.


12