Commit graph

477 commits

Author SHA1 Message Date
Charlie Gordon
4f0ad2e393 new_shell_buffer takes a optional buffer argument
comments, simplifications
2007-12-20 20:37:16 +00:00
Charlie Gordon
0bf19ae51b added dependencies 2007-12-20 20:35:20 +00:00
Charlie Gordon
788461233d raw_save_buffer takes range and returns number of bytes written
added eb_write_buffer, returns number of bytes written
renamed save_buffer to eb_save_buffer, returns number of bytes written
added range in buffer_save method in EditBufferDataType
no longer reset undo log upon file saving
renamed do_save to do_save_buffer
added do_write_region (bound to C-X w)
renamed command execute-extended-command to execute-command
renamed command vc-toggle-read-only to toggle-read-only
fixed mark-whole-buffer to set point to start and mark to end of buffer
query-replace accept upper-case Y and N, and . for replace and quit.
shell passes universal argument to do_shell
bind next-error to C-X `
2007-12-20 16:27:21 +00:00
Charlie Gordon
30cb0c37fb simplified string coloring 2007-12-20 11:52:33 +00:00
Charlie Gordon
e86feb3b8f added offsetof macro for platforms that do not have it
added eb_clear, eb_scratch, eb_replace, eb_delete_range
added remarks about inconsistentcies
check buffer readonly status in low level buffer primitives
2007-12-20 11:49:54 +00:00
Charlie Gordon
c6514ec938 cosmetics 2007-12-20 11:45:45 +00:00
Charlie Gordon
c367d06f88 improved consistency
added remarks for commands that should take argval
2007-12-20 11:45:12 +00:00
Charlie Gordon
24b0aa5f6e use transparent background for HTML src styles 2007-12-20 11:33:55 +00:00
Charlie Gordon
fa760147c8 added Perl mode: perl.c
added Makefile mode: makemode.c
added HTML source mode: htmlsrc.c
added more dependencies in Makefile
added styles for HTML source coloring:
    html-comment, html-string, html-script, html-entity, html-tag
no longer rely on \n at end of line in c_colorize_line
2007-12-18 18:07:03 +00:00
Charlie Gordon
2d70f198fb added sanity tests
append system buffers to list instead of prepending them
2007-12-18 17:59:48 +00:00
Charlie Gordon
740f087f60 added defines for MAX_BUFFERNAME_SIZE (256) and MAX_CMDNAME_SIZE (32)
added char *get_dirname(char *dest, int size, const char *file);
added int match_extension(const char *filename, const char *extlist);
fixed prototype for umemmove
added umemcpy, umemcmp
added int get_clock_usec(void);
increased NB_LOGS_MAX to 100000 (was 50 !)
eb_printf return int
added various disabled fields in structures
added int scale(int a, int b, int c);
added "grey" color
added int get_clock_usec(void);
2007-12-18 17:57:11 +00:00
Charlie Gordon
3511cd2b4b cosmetics 2007-12-18 12:22:09 +00:00
Charlie Gordon
8a19313259 typo 2007-12-18 12:20:51 +00:00
Charlie Gordon
ee10fbca09 added C compile rule 2007-12-18 12:20:28 +00:00
Charlie Gordon
c83a481c6e remark 2007-12-18 12:19:32 +00:00
Charlie Gordon
4cc7a43a4a use ssizeof 2007-12-18 12:18:54 +00:00
Charlie Gordon
83b9190263 remarks 2007-12-18 12:18:02 +00:00
Charlie Gordon
f99b132ebe display ISO-latin1 chars as graphics in ascii dump
default display width to a multiple of 16 in ascii dump
hex mode probe returns non 0 on text files
2007-12-18 12:17:10 +00:00
Charlie Gordon
7856ba0630 cosmetics 2007-12-18 12:13:02 +00:00
Charlie Gordon
dbfe7ecfba return success code in load_ligatures 2007-12-18 12:12:28 +00:00
Charlie Gordon
105aab2f47 cosmetics 2007-12-18 12:10:50 +00:00
Charlie Gordon
bf17e23390 renamed css_isxxx and css_toxxx ctype alternatives to qe_* 2007-12-15 16:44:31 +00:00
Charlie Gordon
ca80563f98 added ssizeof, cosmetics 2007-12-15 16:33:20 +00:00
Charlie Gordon
5768f42cd8 no longer use ctype.h macros and functions
- ctype.h has strong constraints on arguments
- ctype.h implements bogus irrelevant inefficient locale specific behaviour
- use replacement css_xxx functions
- all take int arguments: can be any value, yet only test ASCII subset
- all css_isxxx return true boolean (1 or 0)
- removed utoupper(int) -> css_toupper(int) has same functionality

resolved ffmpeg clash on string functions from cutils.c module
- added #defines to make them local
- renamed some strixxx functions to strxxxx (extended behaviour)
- moved case insensitive stuff to util.c

fixed bug in strtokey: C-M-x combinations were not recognized
improved eb_changecase
fixed C comment parsing in css parser
2007-12-15 16:02:47 +00:00
Charlie Gordon
0cc650bbbf fixed C comment parsing, improved output 2007-12-15 15:44:36 +00:00
Charlie Gordon
2d99a278f5 improved colorizer:
- simplified preprocessing directives, handle comments
 - colorize char constants and strings with different styles
 - handle javascript <!-- comments
 - handle numbers
 - better support for cast detection

more code simplifications
use colorizer for do_c_forward_block: should make this command non mode specific
2007-12-15 09:57:21 +00:00
Charlie Gordon
481248bc7b added and improved some buffer functions:
renamed eb_get_str to eb_get_contents
fixed buffer size issues in eb_get_line
fixed utf-8 issues in eb_get_strline
added eb_prev_line
added eb_goto_bol2: computes number of code points skipped
added eb_goto_eol
simplified code accordingly

added set_color1 inline function
renamed parse_config to do_load_config_file (invocable from A-x)
  changed command name from parse-config-file to load-config-file
  fixed bug when invoked with a filename
renamed center_cursor to do_center_cursor (invocable from A-x)
  made it invocable as center-cursor
2007-12-15 07:34:43 +00:00
Charlie Gordon
d2f16130c9 cosmetics, fixed encoding issue in do_tex_insert_quote 2007-12-15 07:32:45 +00:00
Charlie Gordon
79c8598db5 cosmetics 2007-12-15 07:31:38 +00:00
Charlie Gordon
4e5dcc5437 0 initialize allocated QEfonts 2007-12-15 07:31:11 +00:00
Charlie Gordon
559b3bb3bc simplified code using new buffer functions 2007-12-15 07:30:20 +00:00
Charlie Gordon
2ce9cd8aab added styles string-q and number 2007-12-15 07:27:45 +00:00
Charlie Gordon
915a19edb2 added and improved some buffer functions:
renamed eb_get_str to eb_get_contents
fixed buffer size issues in eb_get_line
fixed utf-8 issues in eb_get_strline
added eb_prev_line
added eb_goto_bol2: computes number of code points skipped
added eb_goto_eol
2007-12-15 07:24:03 +00:00
Charlie Gordon
f9f6b42059 fixed subtle bug in qe_realloc: store NULL ptr upon realloc to size 0 2007-12-13 23:13:11 +00:00
Charlie Gordon
26ea3f69a0 added wrappers and utilities for safer memory allocation:
type *qe_malloc(type);
type *qe_mallocz(type);
type *qe_malloc_array(type, count);
type *qe_mallocz_array(type, count);
type *qe_malloc_hack(type, extra_bytes);
type *qe_mallocz_hack(type, extra_bytes);
void qe_free(&ptr);
void *qe_realloc(&ptr, new_size);
char *qe_strdup(const char *str);
void *qe_malloc_bytes(size_t size);
void *qe_mallocz_bytes(size_t size);
void *qe_malloc_dup(const void *src, size_t size);

pass pointer address to bmp_free()
2007-12-12 11:49:02 +00:00
Charlie Gordon
7817049123 cosmetics 2007-12-12 08:51:02 +00:00
Charlie Gordon
57c3461e0d simplified set_color API, made in inline
improved command parsing, refined argval handling, pass as optional arg
pass command arguments as an array of unions
use correct type in command dispatcher (upto 2 arguments)
merged do_goto_byte, do_goto_line, do_goto_char, extend syntax
fixed kill commands: kills are appended/prepended to kill buffer
added append_next_kill command
added do_kill_line (split from do_kill_region)
added do_kill_word (removed do_delete_word)
added do_kill_paragraph
pass argval to do_backspace and do_delete_char, fix kill behaviour
fixed kill-ring initial state bug
fixed do_yank: set mark and this_cmd_func
fixed do_yank_pop: test last_cmd_func, use eb_delete instead of do_undo
fixed do_yank_pop kill-ring bug
added clamp(int x, int min, int max);
added qs->this_cmd_func so commands can override qs->last_cmd_func
allow KEY_ESC + extended key as command binding
added do_c_forward_block, needs rewrite using colorization code
added do_c_kill_block
added insert-char command (argval repeats instead of forcing char value)
renamed delete-word to kill-word
renamed backward-delete-word to backward-kill-word
added kill-beginning-of-line
2007-12-12 02:51:05 +00:00
Charlie Gordon
83f3ec16c3 typo 2007-12-12 02:24:33 +00:00
Charlie Gordon
2eb5a83259 fixed some meta ctrl key combinations in x11 2007-12-12 02:21:45 +00:00
Charlie Gordon
0507ffacc3 fixed function key mapping issues in X11 and Wndz
fixed C lang colorizer for some multiline stuff, wide char/strings
use countof() macro
cosmetics
2007-12-10 13:28:07 +00:00
Charlie Gordon
855660ae1f added missing C keywords and types 2007-12-10 11:03:36 +00:00
Charlie Gordon
612fa09e79 updated TCVN.TXT from yudit 2.8.1 2007-12-10 10:22:10 +00:00
Charlie Gordon
ed5052c99b use yudit TCVN.TXT file 2007-12-10 10:12:11 +00:00
Charlie Gordon
3695abe5b6 added more Hebrew keymaps
support multiple output for input methods
colorize function calls in C mode
2007-12-09 23:31:38 +00:00
Charlie Gordon
2d86be74a1 fixed bug in kmap loader 2007-12-07 12:06:42 +00:00
Charlie Gordon
a064ff97a0 more ctype unsigned char fixes 2007-12-06 17:59:23 +00:00
Charlie Gordon
d286b27756 made more local variables static
fixed bug in cfb32_fill_rectangle
use c99 syntax for new style struct initializers instead of gcc specific
simplified tolower unsigned char hacks
fixed various sparse warnings
2007-12-06 17:43:47 +00:00
Charlie Gordon
0446a52d21 added more charsets
simplified charset alias system
reorganized charset functions
groomed completion functions
2007-12-06 15:28:29 +00:00
Charlie Gordon
83dc067f86 imported mapping files from Unicode and other sources
removed redundant cp files
fixed charsets (8859-7 version 2003)
improved cptoqe.c
added index file cpdata.txt
2007-12-06 09:50:03 +00:00
Charlie Gordon
0f01d80609 reordered charsets 2007-12-05 10:32:11 +00:00