1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-24 10:06:30 -05:00
Commit Graph

66 Commits

Author SHA1 Message Date
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
Thiago Farina
2d0b568559 uemacs: Add -g options to the output usage.
While I'm here, improve the word of the above two options.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-08-22 09:37:08 -07:00
Christian Faulhammer
da3d470b8d Fix a tiny typo
Signed-off-by: Christian Faulhammer <christian@faulhammer.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-13 07:34:23 -07:00
Thiago Farina
5664b10291 uemacs/version.c: Add version function to output the version string information.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-07 13:55:02 -07:00
Thiago Farina
74336ca924 uemacs: Get rid of the CALLED macro.
uemacs is not a subprogram and doesn't seem it will be, so there is no reason
to leave this macro. And this macro is defined to 0, so we never reach the path
where we test for this macro.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-07 13:47:00 -07:00
Pekka Enberg
0f05e53f99 uemacs: Fix return statements
Return statement is not a function so remove superfluous use of parenthesis.

Cc: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-29 08:15:23 -07:00
Thiago Farina
78f045749f uemacs: Add more two options to the usage output.
Added + and +<n> to the usage output.

Also fixed the following warning:

  main.c: In function ‘main’:
  main.c:121: warning: ‘gline’ may be used uninitialized in this function

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-29 08:15:23 -07:00