1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-07 21:08:29 -05:00
Commit Graph

72 Commits

Author SHA1 Message Date
c10c550bdd Valid compilation when CLEAN is set.
Use assert() and robust fallback instead of exit() to handle 'impossible' cases.
2015-02-15 14:41:35 +08:00
703c472f0b Review message line outputs. 2015-02-13 21:48:05 +08:00
5e5558e00b Align naming convention for output of text on the message line: mlout*. (Was a mix of log & write). 2015-02-13 12:31:59 +08:00
e13bc9ca7e Version 4.2
Consistent display of µEMACS as program name among
- ue --version
- on status bar
- insert-string $progname
- write-message $progname (FIX).
2015-02-12 13:15:45 +08:00
639d912c88 Display correct mode on first empty buffer. 2015-01-27 20:22:47 +08:00
fe1eaf7348 Insure message line is correct after startup script execution and command line arguments processed. 2015-01-23 22:13:21 +08:00
15ae2d4135 Transition from logger/logwrite/mlwrite to writestr/writefmt. 2015-01-21 21:30:01 +08:00
fbfaa29497 Add %B in string format of mlwrite to ring a bell. 2015-01-21 14:12:24 +08:00
a634ae5087 Retest gflags and limit implementation details to eval. 2015-01-10 16:23:19 +08:00
3be85dec65 Recompile under MinGW32 with base framework for implementing kbd/screen (mingw32 + wscreen). 2014-12-22 20:58:10 +08:00
3197080cb1 Introduce spat_t as search pattern type and reduce need for NPAT as pattern length constant. 2014-12-22 20:57:26 +08:00
fa6edaa282 Introduce ekey_t encryption key type and remove need for NKEY length constant. 2014-12-22 20:57:18 +08:00
fc79c8e013 Introduce bname_t type and reduce need of NBUFN buffer name length constant. 2014-12-22 20:56:40 +08:00
494210424c Introduce fname_t type and remove need of NFILEN filename length constant. 2014-12-22 20:56:32 +08:00
ccbd7d7099 Remove buffer overflow by limiting argument size of search pattern. 2014-12-22 20:56:17 +08:00
7b398855e7 Remove buffer overflow by limiting argument size of encryption key and filenames. 2014-12-22 20:56:08 +08:00
81c98138de Clean compile with RAMSIZE and RAMSHOW activated. 2014-12-22 17:45:01 +08:00
da813d2efc Partial move configuration options out of estruct.h. 2014-12-22 17:44:52 +08:00
2fe2d9c153 Finish move of globals into input and random.
Remove globals.
2014-12-22 17:43:53 +08:00
f166293e73 Clean up extern's in C files. 2014-12-22 17:42:08 +08:00
80256bdd6d Remove edef.h, obsoleted by globals.h. 2014-12-22 17:41:40 +08:00
dc3e8984ab Move standard includes of stdlib and string from edef.h. 2014-12-22 17:41:07 +08:00
9780b4ce16 Extract Struct terminal from estruct to terminal.h implemented by tcap. 2014-12-22 17:36:24 +08:00
87cd40ce6a Extract struct buffer and struct window from estruct.h. 2014-12-22 16:11:13 +08:00
32a5631bde Review return type of log functions. 2014-12-22 16:10:43 +08:00
245c4a0477 Remove dependencies from line to display: Move rdonly from display to loc and create instantiable function logger( retcode, beep, string). 2014-12-22 16:09:15 +08:00
03bd7dd902 Make line independant of display by introducing instanciable logwrite. 2014-12-22 16:08:21 +08:00
fb395c3f01 Cleanup encryption key setting by moving core to file. 2014-12-22 16:06:41 +08:00
b6c7a2cc80 Remove default of disallowing null and option to allow it. Allow null is default and no option. 2014-12-22 16:06:23 +08:00
787189d50c Insure consistency when building with CRYPT on or off.
clarify fileio dependencies t crypt.
2014-12-22 15:50:47 +08:00
319957e8e0 Add @cmdfile to usage. 2014-12-22 15:48:47 +08:00
006f89258e update usage with all supported options. 2014-12-22 15:48:28 +08:00
e2fcb90996 clean macroes in main and remove main.h (no more dependencies to main). 2014-12-22 15:47:43 +08:00
c96138add5 remove left dependencies to main: bindable functions. 2014-12-22 15:47:33 +08:00
48db208aac extract execute from main to avoid dependencies of file, random and window to main. 2014-12-22 15:47:01 +08:00
a96f1b5f85 Move rdonly and reterr from main to display to avoid dependencies to main. 2014-12-22 15:43:35 +08:00
de787262d3 rebuild on linux and fix lock dependencies. 2014-12-22 15:34:42 +08:00
4348e9f757 restrict edinit visibility in main. 2014-12-22 15:30:28 +08:00
2ed4446758 ebind as a module instead of include in main. 2014-12-22 15:07:40 +08:00
b321dce49e Remove efunc as dependencies. 2014-12-22 15:06:48 +08:00
e1cb42e0aa Remove termio from efunc. 2014-12-22 15:06:27 +08:00
9c2c4b7635 Remove display from efunc. 2014-12-22 15:06:08 +08:00
539f327271 Remove input from efunc. 2014-12-22 15:05:57 +08:00
4bba6e7417 refactor main and basic out of efunc. 2014-12-22 14:45:46 +08:00
f6780cb71b remove crypt from efunc, update dependencies. 2014-12-22 14:45:06 +08:00
86afdef45e refactor handling of version and program name strings. 2014-12-22 14:43:23 +08:00
c961759288 rework version and help printing
em --help now returns EXIT_SUCCESS
2014-12-22 14:05:53 +08:00
Linus Torvalds
8899ed4e1f Fix the unicode character limit (0 .. 0x10ffff)
For some reason I had limited things to 0xffff, it really should be 0x10ffff.

We don't actually support a full 32-bit unicode model anyway, since we
use the high bits for the control/meta/^X/special bits, but there was no
reason to limit things to 16 bits when we had 28 bits available.  And
the real limit for real Unicode characters is 0x10ffff.

Add a silly example character past the 16-bit range to the UTF8 demo
file:
  'SMILING FACE WITH HALO' (U+1F607)
from the 'emoticons' block.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-09-24 19:44:21 -07:00
Linus Torvalds
0a8b429059 Start doing character removal properly
This makes actual basic editing work.  Including things like
justify-paragraph etc, so lines get justified by number of UTF8
characters rather than bytes.

There are probably tons of broken stuff left, but this actually seems to
get the basics working right.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-11 10:43:16 -07:00
Linus Torvalds
0e9fc2be15 Start actually inserting full utf8 sequences
This makes it possible to cut-and-paste the UTF8 testfile into a new
buffer, and the end result looks correct.

NOTE! We still do various things wrong while editing.  For example,
while the cursor movements were fixed, simple things like deleting a
character still work on single bytes, rather than utf8 characters.

So while this is getting much closer to actually editing UTF-8 data,
it's not there yet.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-11 02:21:36 -07:00