Commit graph

89 commits

Author SHA1 Message Date
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
Charlie Gordon
c52d77ea70 cosmetics only (spacing, untabify) 2005-05-11 15:12:14 +00:00
Charlie Gordon
3fa679698c cosmetics (untabify); fixed filename buffer sizes 2005-05-11 14:37:16 +00:00
Charlie Gordon
c01661ec0e cosmetics only 2005-05-11 14:35:54 +00:00
Charlie Gordon
15b5b42d34 fixed gcc warning on incomplete initializers, and protect macro args 2005-05-11 12:22:51 +00:00
Charlie Gordon
c2c4061aa3 use simplistic test to disable png support 2005-05-11 12:16:59 +00:00
Charlie Gordon
312836fc43 fixed some buffer sizes, cosmetics 2005-05-11 12:13:56 +00:00
Charlie Gordon
9b1a0ea97b cleaned up filename issue 2005-05-11 12:04:30 +00:00
Charlie Gordon
40bf14fbba added some TODOs and DONEs 2005-05-11 12:03:13 +00:00
Charlie Gordon
74970610a0 limit fallback sequence in font lookup
fixed crash bug when font fallback scheme fails
2005-05-11 12:01:32 +00:00
Charlie Gordon
e27c83422d extended MAX_SCREEN_WIDTH to 1024 2005-05-11 11:59:03 +00:00
Charlie Gordon
6789e229c1 cosmetics 2005-05-11 09:04:12 +00:00
Charlie Gordon
76fda12164 use splitpath instead of deprecated pathname in get_default_path 2005-05-10 20:56:42 +00:00
Charlie Gordon
33c43fccbf removed pathname()
moved pstrncpy() to cutils.h/cutils.c
allow NULL pointers in splitpath for extraction for dirname or basename alone
changed sizes of filename or pathname buffers to MAX_FILENAME_SIZE
2005-05-10 18:53:03 +00:00
Charlie Gordon
c5655e7859 mark stuff as DONE 2005-05-09 17:27:14 +00:00
Charlie Gordon
2c62d409f1 fix CONFIG_xxx summary 2005-05-09 17:24:13 +00:00
Charlie Gordon
6dbffb4024 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
added -- as a marker for end of command line options.
allow most keys to be transmitted to shell process, including function keys.
improved shell buffer escape sequence parser.
added automatic detection of full screen shell applications and grab all keys
  try mc, Menuconfig, or even qemacs within qemacs !
improved *trace* buffer: do not trace keys when trace buffer is current,
  thus allowing navigation without side-effects
improved Makefile to not make html stuff if disabled
reduced CONFIG_TINY feature set
2005-05-09 09:10:37 +00:00
Charlie Gordon
421067af0b added fake charset vt100 for shell buffer
use simpler utf8 terminal test, ie: compatible with shell buffer.
added terminal dependant escape sequences,
  with limited support for vt100 variants.
more precise escape sequence parser in shell buffer.
trace shell output in trace_buffer.
improved file_completion :
  fix buffer overflows,
  ignore . and .. and backup files
  ignore file_completion_ignore_extensions,
2005-05-09 06:21:49 +00:00
Charlie Gordon
9dc81376fc cosmetics only : untabified 2005-05-09 06:03:07 +00:00
Charlie Gordon
86150616b0 simplified do_latex command construction 2005-05-09 05:58:47 +00:00
Charlie Gordon
c6fa69e7d4 added more shell buffer emulation stuff.
select charsets in vt100 tty.
2005-05-09 03:32:19 +00:00
Charlie Gordon
ff7d6f4c34 another try for linedrawing chars using alternate charsets 2005-05-09 03:24:22 +00:00
Charlie Gordon
811a16a0e3 changed do_line_numbers to do_toggle_line_numbers
changed do_line_truncate to do_toggle_truncate_lines
fixed define_kbd_macro string arguments mixup
added edit_find() to locate window with a given buffer
removed test kludge in term_flush()
various cosmetics.
2005-05-09 03:19:36 +00:00
Charlie Gordon
64d8b56fb6 try kludge for line drawing chars 2005-05-09 02:51:04 +00:00
Charlie Gordon
c5c717474c ignore more target files 2005-05-09 02:47:03 +00:00
Charlie Gordon
1f1df524cd added commands:
non-incremental search-forward, search-backward.
  unconditional replace-string
  set-visited-file-name with optional file rename
  set-emulation
  cd (change directory)
  set-mode
start in dired mode when invoked with no arguments
2005-05-09 02:42:07 +00:00
Charlie Gordon
8fac0ab42e reordered KEY_xxx definitions
added KEY_DEL=127 (formerly KEY_BACKSPACE)
added KEY_BS=8  C-H  to handle control-h as backspace on some ttys
fixed KEY_F6 thru KEY_F12 (were off by one)
added strtokeys() to convert a string with key names to a key buffer
added define-kbd-macro() from key string
added execute-macro-keys() to execute commands from a key string
improved qe_key_process().
changed method to update shell cursor : tty_update_cursor disabled
  shell_display_hook() used instead
greatly improved shell buffer behaviour, charset handling.
much improved tty input handling : support more key combinations and modes.
added missing charset declarations in qe.h
added borders_invalid and complete_refresh window flags
made C-L completely refresh display
moved window border display to separate function
changed edit_display() to allow complete redisplay even with popups
fixed window delete crash bugs by improving consistency with
  edit_attach and edit_detach.
2005-05-09 02:17:47 +00:00
Charlie Gordon
8d2cbbb4cc no longer infer binary file on form feed character 2005-05-09 01:37:13 +00:00