a42c60045d
Improve consistency of tab insertion behaviour while indenting and brace matching.
2016-02-25 17:08:27 +08:00
998559464b
In C mode, insure indentation is correct when inserting newline at end of white lines.
2016-02-24 22:18:37 +08:00
3436443807
Introduce boolean $hardtab to control insertion of hardcoded tab or soft ones (spaces). Review insert_tab accordingly.
2016-02-24 21:17:45 +08:00
8dfa92ba44
Review inspound, '#' insertion in C mode.
2016-02-24 20:00:44 +08:00
c390cf2a3e
Remove tab width constraints, was [2, 4, 8], now [1...
2016-02-24 13:22:54 +08:00
db30d6d734
Mode commands based on newmlarg (replacement of mlreply).
2015-10-01 08:19:39 +08:00
d3b02af275
Missing random.c from commit 198980b
, review of newmlargt interface.
2015-09-29 15:06:08 +08:00
ce4d105794
Allow either dynamic or pre-defined input size from message line.
...
Insure to capture ABORT status when doing input from message line.
2015-09-28 17:46:00 +08:00
3ffa8967ef
Align implementation of overwrite-string with insert-string.
2015-09-28 13:37:22 +08:00
cbbd860bdc
Rework insert-string for dynamic token input.
2015-09-27 22:13:20 +08:00
51967939b8
Harmonize usage of mlreply, mlreplyt and nextarg based on actual needs (input always terminated either on meta or newline characters).
2015-08-25 09:17:41 +08:00
af919c3f9c
^X= buffer-position displays EOL character as \r for DOS. Number of characters in file is also reported correctly.
2015-05-05 12:17:56 +08:00
80cbd37f5c
Add extra warning check and fix signed to unsigned comparison issues.
2015-02-28 20:29:00 +08:00
e2be62323b
Review scope of exported variables and functions for bind, eval, file,fileio, random.
2015-02-16 11:39:16 +08:00
bb44fc57ad
Limit the scope of mlforce to eval.
2015-02-13 17:46:42 +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
3f1ac2596c
Fix getccol reporting when dealing with characters in range 0x80 .. 0xA0.
2015-02-09 13:31:39 +08:00
356a003194
buffer-position reports character under cursor according to type (either 0xXX or \uXXXX).
2015-02-08 14:47:56 +08:00
2cef071492
Insure correct UTF-8 encoding: asc( chr( 0x800)) == 0x800.
...
buffer-position displays unicode value of character under cursor instead of first byte of unicode sequence.
2015-02-06 13:20:51 +08:00
434c9ba7ab
Review mlforce to avoid necessity to double '%' in input string, thus avoiding potential buffer overflow in caller functions (mdbugout and write-message).
2015-01-15 17:57:12 +08:00
79b57c96d1
insert-string can insert strings up to 512 characters.
2014-12-22 20:57:47 +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
e9142541a9
Review visibility of tabsize variable and nextab() macro.
2014-12-22 20:55:56 +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
96ca2e8580
Move global fillcol to random.
2014-12-22 17:42:50 +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
a3be4fea81
Recompile on Linux; Replace stricmp by strcasecmp.
2014-12-22 17:39:25 +08:00
1d5cbe67a4
Move global color variable with color names in random.
2014-12-22 17:39:17 +08:00
526c1e3baa
Review global literals for mode names and color names.
2014-12-22 17:38:58 +08:00
097de3bcdf
Recompile under Cygwin64. Move color names as private to random.
2014-12-22 17:37:37 +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
45ea35f2a7
Move dependencies from display to log.
2014-12-22 16:09:23 +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
b321dce49e
Remove efunc as dependencies.
2014-12-22 15:06:48 +08:00
4e24edf715
Remove basic from efunc.
2014-12-22 15:06:17 +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
0b093b8228
Remove main from efunc.
2014-12-22 15:04:37 +08:00
1428d9e2aa
Remove search from efunc.
2014-12-22 15:03:52 +08:00
9c311a1ba8
split efunc into corresponding headers.
2014-12-22 14:46:16 +08:00
Linus Torvalds
ddd45dbff1
Fix 'getccol()' and 'getgoal()' functions for multibyte UTF-8 characters
...
These functions convert the byte offset into the column number
(getccol()) and vice versa (getgoal()).
Getting this right means that moving up and down the text gets us the
right columns, rather than moving randomly left and right when you move
up and down. We also won't end up in the middle of a utf-8 character,
because we're not just moving into some random byte offset, we're moving
into a proper column.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-15 14:36:38 -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
Thiago Farina
af19da1a99
uemacs: Move structure line and its functions to its own header file.
...
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-15 08:46:20 -08: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
Yong Luk Stanley Elijah Goh
89fea23de5
uemacs: Compiles on Mac OS X.
...
Compiles on Mac OS X 10.6.4.
setmode() is renamed to setemode() to avoid conflict with OS X's unistd.h's
setmode().
Modify Makefile to enable the appropriate DEFINES to compile on Mac OS X.
Signed-off-by: Yong Luk Stanley Elijah Goh <stan@t0xt.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-24 10:55:02 -07:00
Thiago Farina
c7e30a9636
uemacs: convert typdef struct LINE to struct line.
...
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-28 07:46:47 -07:00
Pekka Enberg
74ffb9e254
uemacs: remove use of 'register' keyword
...
Lets welcome uEmacs/PK to the year 2010! As expected, the patch has no effect
on the generated code:
text data bss dec hex filename
106002 8864 18616 133482 2096a em
106002 8864 18616 133482 2096a em.new
Cc: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-02-27 16:17:44 -08:00