1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-27 19:46:39 -05:00
Commit Graph

232 Commits

Author SHA1 Message Date
Linus Torvalds
a3022faaed Add libcurses, remove ltermcap
That's how modern distributions roll (and have, for a long time.  I just
haven't committed this).

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-07-15 08:42:47 -07:00
Linus Torvalds
c2a7e41fae Turn ESC+'[' into a CSI character
This avoids the annoying behavior where we're on the command line,
waiting for an ESC, and any control character sequence ends up finishing
the command line and eating the first ESC.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-06-07 11:52:42 -07:00
Linus Torvalds
686a9e74ed Clean up various compile warnings
Most of them were harmless: gcc not being smart enough to realize that
an uninitialized variable was never used if it wasn't initialized etc.

Some of them were name clashes ("crypt()" is a standard library
function, so rename it to "myencrypt()") etc.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-11-19 11:52:18 -08:00
Linus Torvalds
1c5e6d8121 Make the sparse setup default to x86-64 rather than ppc
Hey, what can I say? Without Apple, ppc on the desktop? Not very likely.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-11-19 11:28:19 -08:00
Linus Torvalds
378d2a835b Mark functions and variables local to display.c 'static'
Waste a few minutes occasionally on cleanup, and maybe we can make this
thing look ok in a decade or two..

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-11-19 11:22:04 -08:00
Linus Torvalds
4659255f60 Make "sparse" check target do a global sparse
Instead of iterating over all the source files, just check them all
together since it works these days, and could potentially find
cross-file issues.
2005-11-16 17:13:35 -08:00
Linus Torvalds
3e0492ffd4 Add a true UTF-8 demonstration file
We obviously don't handle it, but it's a wonderful example if we ever do.

Demo by Markus Kuhn from

	http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-10 10:07:31 -07:00
Linus Torvalds
f313bcf64a Add support for a "utf-8" mode
NOTE! MicroEmacs is very much a byte-based editor, and the new utf-8
support is purely an issue of terminal input and output.  The file
contents themselves are in the 8-bit space.  In that space, Unicode is
the same as Latin1.

The new mode is called "utf-8", and is enabled automatically by the
new emacs.rc when $LANG contains the substring "UTF-8".

I'm sure people would like to some day also edit real UTF-8 contents,
rather than just edit old 8-bit Latin1 contents in a UTF-8 terminal.
However, that's an independent (and much bigger and thornier) issue.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-02 17:47:28 -07:00
Horst von Brand
0fc43a8429 [PATCH] Fix use of mktemp() in uemacs
After your last round of changes it compiles without warnings here (Fedora
rawhide, gcc-4.0.2), but the link complains.

mktemp(3) isn't always secure, the problem is fixed in mkstemp(3)

Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-01 20:07:33 -07:00
Linus Torvalds
dbc51bf972 Handle 8-bit characters better in display
This code still assumes a latin1 kind of "one byte, one character" setup.

UTF-8 input/output (even if the data is encoded in latin-1) is a separate
issue.
2005-10-01 10:46:09 -07:00
Linus Torvalds
ef92bc8cd9 Make sources mostly sparse-clean
Mainly an issue of taking care of a few remaining K&R function
declarations.
2005-10-01 01:09:22 -07:00
Linus Torvalds
24338ae855 Fix more compiler warnings
Better initializers, and more proper function types.
2005-10-01 00:56:15 -07:00
Linus Torvalds
8967dfc2c6 Fix ugly "definitions in header file" crud
Move various initializations into new "globals.c" file.

Also mark some variables static, and fix up some trivial compiler and
sparse warnings.
2005-10-01 00:33:44 -07:00
Linus Torvalds
12cb79ceb4 Avoid various name clashes with curses and termcap headers
This allows us to include the proper headers, instead of declaring
things (badly) by hand.
2005-10-01 00:22:55 -07:00
Linus Torvalds
d66d329986 Replace "WINDOW" type with "window_t"
Starting to try to avoid name clashes with curses and friends.
2005-10-01 00:02:32 -07:00
Linus Torvalds
d79d222a45 Fix up unused variable and ambiguous else in random.c 2005-09-30 23:54:34 -07:00
Linus Torvalds
8eab871e55 More warning avoidance and code cleanup 2005-09-30 23:52:55 -07:00
Linus Torvalds
d0ed902432 Fix up some trivial gcc -Wall warnings
Lots more to go.
2005-09-30 23:37:34 -07:00
Linus Torvalds
d5dc3160cf Lots of ANSI'fication and cleanups
Still tons of warnings with "-Wall", but now it's actually getting closer.

It even compiles again.
2005-09-30 22:52:45 -07:00
Linus Torvalds
92803fe8d5 Start using "-Wall" when compiling
Oh, and change the -O4 to a saner -O2 while at it
2005-09-30 18:06:45 -07:00
Linus Torvalds
e3ca2a12cf More ANSI'fication
Next up: enabling "-Wall" in the makefile. Not because it's ready,
but because it gets easier to track where we are in the process..
2005-09-30 18:06:17 -07:00
Linus Torvalds
de0961e007 Yet more ANSI'fication
Bored? Me? Why do you ask?
2005-09-30 17:52:20 -07:00
Linus Torvalds
2b3627510d Move "input.c" towards ANSI function declarations 2005-09-30 17:37:16 -07:00
Linus Torvalds
453f80d269 More ANSI-fication of the sources
Ugh.  Some of this is ugly.  We should really include <curses.h> etc,
but there are too many name clashes for that right now.
2005-09-30 17:08:36 -07:00
Linus Torvalds
021605246c More function declarations: region.c
Hey, "word.c" is now sparse-clean.
2005-09-30 16:37:36 -07:00
Linus Torvalds
9605cf8826 First cut at turning things into proper modern ANSI C
Hey! Real declarations!
2005-09-30 16:34:11 -07:00
Linus Torvalds
118ee5f944 Fix up headers and bogus re-definitions to use <stdlib.h> and <string.h>
Hey, it's already compiling cleaner. Getting proper function declarations
will be a bitch, though.
2005-09-30 15:33:51 -07:00
Linus Torvalds
b9deaf1bd8 Very optimistically add a "sparse" makefile target.
Since sparse really wants clean ANSI C, we're not even _remotely_ close
to being sparse-clean.  But maybe some day...
2005-09-30 15:28:37 -07:00
Linus Torvalds
435dd32ae2 Run "indent -kr -i8" on the sources
Let's see how nasty it is to clean things up. For real.
2005-09-30 15:26:09 -07:00
Linus Torvalds
1f6239bfeb Up the limit on maximum lines.
Hey, get with the bloated new world.
2005-05-31 08:59:49 -07:00
Linus Torvalds
77784cd46c Minimal patches to make uemacs compile in a modern environment.
make sure to include <errno.h>, and allow for the fact that newer
gcc's don't allow function declarations in function scope (don't
ask me why, but there you have it..)
2005-05-31 08:58:59 -07:00
Linus Torvalds
d7148b21fe Initial import of em-4.0.15-lt
This is a slightly updated version of uemacs-PK (PK is Pekka
Kutvonen) which was used at Helsinki University a long time
ago. My fingers cannot be retrained.
2005-05-31 08:50:56 -07:00