Commit graph

216 commits

Author SHA1 Message Date
Charlie Gordon
a0bfcd45bd fixed unsigned char issues
added TODOs
bumped version to 0.4.0dev
mention chqrlie in --version
cosmetics: reindented Makefile
2007-02-06 17:41:16 +00:00
Charlie Gordon
eb3afbb862 renamed do_less_quit() to do_less_exit() for consistency with command name
fixed crash in do_less_exit() when invoking "less-exit" with A-x
fixed c auto-indenter to not move point unless within the indent space
fixed the electric-c mode
2007-01-12 15:06:16 +00:00
Charlie Gordon
494e9f7866 include cflags.mk for extra gcc warnings if present
utf8_encode now returns the number of characters copied,
  simplified code accordingly
made local functions static
tagged unused function arguments
fixed shadowing issues
added support for GCC attributes for unused arguments and format strings
use snprintf() instead of sprintf()
moved scattered declarations to qe.h
removed duplicate declarations in header files
eb_write() payload argument is now const
fixed crash bug: reset trace_buffer upon deletion
improved trace_buffer readability: trace all pseudo tty streams separately
added missing structure initializers
removed buffered string handling from cutils.h
added new buffered string API for statically allocated buffers (should unify)
small improvements in X11 initialization
improved consistency in tty.c (function names...)
  added STDIN and STDOUT streams in QEditScreen to stop using stdin and stdout
  use unlocked stream I/O if available (faster)
  changed and documented terminal setup and exit sequences
  improved charset handling
mode_line functions now return the character count (like snprintf)
2006-12-31 19:34:00 +00:00
Charlie Gordon
45636730b0 include cflags.mk for extra gcc warnings if present
utf8_encode now returns the number of characters copied
simplified code accordingly
made local functions static
fixed shadowing issues
added __attr_printf() attributes for gcc to check printf arguments
use snprintf() instead of sprintf()
2006-12-28 11:27:30 +00:00
Charlie Gordon
b47f7998df allocate tty screen and shadow buffer in the same block
use various simple techniques to reduce tty refresh traffic
2006-12-12 01:03:03 +00:00
Charlie Gordon
714157c255 added TTY_STATE_STRING state to ignore escape string sequences
improved tty_goto_xy() [renamed from tty_gotoxy()] x and y can be specified
   as relative independently
fixed bug on relative y argument: caused bogus display
fixed another bug in tty_goto_xy() : caused last non blank character on row
   to be missing sometimes.
factorized code
added comments about many more colors and escape sequences
made ^H erase the character on the left (back_color_erase capability)
simplified CSI escape sequence parsing, default argument values to 1
added support for alt_charset_mode with 32 char kludge
ignore set-window-title xterm command: \E]0xxxxxxx\007
added \E[xG (goto_column_address) and \E[xd (goto y)
implement \E[xX erase n characters
document \E[y;xr change_scroll_region, still unimplemented
2006-12-11 23:35:45 +00:00
Charlie Gordon
0fe70595b6 simplified bogus utf-8 terminal test
fixed bogus tty_resize() : used to fill screen buffer attribute slots with
  invalid values, causing spurious ????? output on ^L
simplified tracing of tty input
improved term_flush(), further improvements pending.
2006-12-11 23:24:59 +00:00
Charlie Gordon
1c91b22914 moved charset_complete() to charset.c
added do_set_trace()
added mode_completion()
simplified command_completion()
simplified style_completion()
simplified buffer_completion()
fixed bogus terminal display for character ^? (DEL or 127)
2006-12-11 23:21:04 +00:00
Charlie Gordon
3fa9f0ab84 moved charset_complete() to charset.c
made charset names case insensitive (also ignore spaces, dashes, underscores)
2006-12-11 23:17:03 +00:00
Charlie Gordon
cc82df1fa4 moves basic types to top of declarations
added missing prototypes
added eb_find_window()
added eb_trace_bytes() trace_buffer_state and EB_TRACE_TTY, EB_TRACE_SHELL
  for trace buffer management.
2006-12-11 23:15:42 +00:00
Charlie Gordon
685d35964f added set-trace command 2006-12-11 23:11:31 +00:00
Charlie Gordon
fac6bd9acf added eb_find_window()
added eb_trace_bytes()
improved eb_printf(): removed potential buffer overflow
2006-12-11 23:10:33 +00:00
Charlie Gordon
7128c65b41 use 20% of width for dired/bufed modes 2006-12-11 23:08:50 +00:00
Charlie Gordon
e120f926a6 simplified completion enumerators 2006-12-11 23:07:58 +00:00
Charlie Gordon
4f5fc748c6 more TODOs about colors and tty emulation 2006-12-11 23:05:01 +00:00
Charlie Gordon
e549c9ae96 made color names case insensitive, simplified color_completion 2006-12-11 23:04:21 +00:00
Charlie Gordon
20c9993c3d changed stristart to ignore space, - and _
addded stricmp: same as strcasecmp, and ignore , - and _
2006-12-11 23:03:21 +00:00
Charlie Gordon
d447798717 added missing licence header
fixed typos
added constness
comments about potential problems
identified 64 bit portability problem
fixed small issue in get_default_path()
allow signed numbers in config file
added comments about old code for reference (tty.c, shell.c)
2006-12-09 19:47:20 +00:00
Charlie Gordon
c402c17a7a fixed typos, added comments about potential problems 2006-12-09 19:04:15 +00:00
Charlie Gordon
3551c36226 fixed typos, comments 2006-12-09 19:02:07 +00:00
Charlie Gordon
a42c2c8be4 use proper escaping for M-{ and M-}, use newer version of texi2html 1.76 2006-12-09 18:37:12 +00:00
Charlie Gordon
2123a3d4b1 typo 2006-12-09 17:45:53 +00:00
Charlie Gordon
6f747dbdaf default X11 window size to 80x50 2006-12-09 17:45:26 +00:00
Charlie Gordon
17c08b7f4a added more TODOs 2006-12-09 17:44:30 +00:00
Charlie Gordon
5d5e1c5a0a use newer version 1.66 of texi2html to generate html documentation 2006-05-07 10:43:31 +00:00
Charlie Gordon
bfc549ce42 initialize all fields in find_file_open 2006-04-27 15:24:14 +00:00
Charlie Gordon
b78ca68086 Display number of rows upon resize 2006-04-27 15:22:26 +00:00
Charlie Gordon
4fd86a71d4 Defensive programming: clear ptr after free 2006-04-27 15:20:12 +00:00
Charlie Gordon
020ed7b1d6 use libpng 1.2 interface, let library allocate structures.
use struct instead of volatile trick to silence gcc warnings about setjmp
  variable clobbering
2006-04-24 13:49:38 +00:00
Charlie Gordon
e306b6643b cosmetics, spacing, typos 2006-04-24 11:58:17 +00:00
Charlie Gordon
2fffd2ce7c allow multi-registering of command tables
added command do_minibuffer_get_binary (bound to minibuffer M-=)
  reads a word from the current buffer and display its value in decimal
  using CPU default endianness and long word size.  should take optional
  parameters to specify endianness, word size and destination.
2006-04-24 11:44:57 +00:00
Charlie Gordon
040a0add4a added binding: hex-mode M-g goto-byte
created separated command tables for hex and ascii modes
2006-04-24 11:32:29 +00:00
Charlie Gordon
b4845e8db7 improved configure autodetection of png, ffmpeg and x11 support
added --disable-ffmpeg option
2006-04-20 15:58:06 +00:00
Charlie Gordon
949b03c210 oops: msg was not submitted with previous changes ;-)
Added -funsigned-char compile option
Fixed various warnings about signed/unsigned clashes
Fixed extern/static clashes for gcc-4.0 build
Fixed QEColor signed/unsigned mismatches
Make screen size report visible when window is resized
2005-07-08 13:02:04 +00:00
Charlie Gordon
ade489eba5 msg 2005-07-08 09:30:43 +00:00
Charlie Gordon
240b6edfd0 applied patch by Guido Classen:
use the new attribute __used__ for the initcall/exitcall
sections to prevent gcc 3.4 and above from droping contents of this
sections.
2005-06-15 16:36:45 +00:00
Charlie Gordon
b9cee713fb added shell-intr to send kill signal on C-c 2005-06-01 23:49:30 +00:00
Charlie Gordon
2176037305 - added diagnostics messages for shell command failure
- added extra escape sequences for full screen mode switch
- added shell-yank as a pass-thru to shell getline
2005-06-01 23:43:37 +00:00
Charlie Gordon
2f2959b3b7 applied patch by Guido Classen: removed spurious ';' in vt100 escape sequence. 2005-05-18 22:35:57 +00:00
Charlie Gordon
cd81b0f9f9 applied patch by Guido Classen: removed spurious 2005-05-18 22:35:14 +00:00
Charlie Gordon
3f73242a38 fixed compilation warning. 2005-05-18 22:34:42 +00:00
Charlie Gordon
1b3eed74c5 added '*' in command argument strings for commands that modify buffer contents
changed command definitions accordingly.
added C-x C-g binding for abort
added C-\ binding for call-last-kbd-macro
changed binding for switch-input-method to C-x C-\
added commands:
  not-modified on A-~ (reset buffer modified flag)
  load-file-from-path(file)
  mark-whole-buffer() on C-x h
  count-lines() on C-x l
  what-cursor-position on C-x =
allow key_grabber to quit and unget last key.
added splitpath() to dispatch directory and filename into separate buffers.
make separate functions for show_version and show_usage.
make separate function for parse_command_line.
added command line options:
  --help          -h   display help message and exit
  --no-init-file  -q   do not load config files
  --user          -u   load ~USER/.qe/config instead of your own
  --version       -V   display version information and exit
merged Flavien Lebarbé's patch on init macros for gcc 3.4.3.
a better fix might be to remove the static keyword on the symbol itself ?
2005-05-14 08:14:37 +00:00
Charlie Gordon
2aada1a78b - fixed some compilation errors.
- Added disabled commands.
- Much work needed ;-)
- fixed TODOs
2005-05-13 10:14:37 +00:00
Charlie Gordon
f6867f8b51 - Added font locking to fix crash bugs in html/css.
- select_font() now locks the font, which must be unlocked with
  release_font().  Extra locks can be added with lock_font().
- Added release_font() wherever needed.
- Added put_error() to store errors in *errors* system buffer.
- Make put_status() store messages in *messages* system buffer.
2005-05-13 10:05:23 +00:00
Charlie Gordon
5c37cc9049 moved utility functions from cutils.c to util.c to fix conflict with
ffmpeg's own cutils.c module
fixed Makefile to skip cutils when linking with ffmpeg
2005-05-13 09:56:44 +00:00
Charlie Gordon
888f045e4f cosmetics only 2005-05-13 09:53:45 +00:00
Charlie Gordon
6f7b797b69 removed unused variable 2005-05-12 17:03:56 +00:00
Charlie Gordon
65daffbd4f fixed filename buffer sizes (MAX_FILENAME_SIZE)
various cosmetics (spacing, untabify)
fixed some cursor bugs on long lines
commented on portability issues in command invokation
improved defaut_path_name on fileless buffers
added status with screen size upon screen resizing
2005-05-11 15:51:53 +00:00
Charlie Gordon
5c4499580d cosmetics only 2005-05-11 15:49:36 +00:00
Charlie Gordon
11ea924d6a fixed filename buffer sizes (MAX_FILENAME_SIZE)
various cosmetics (spacing, untabify)
2005-05-11 15:48:31 +00:00