Mg v3.4
Most important news is the new modeline and support for building and running without Ncurses, or termcap/terminfo!
Packages for Debian 10, and compatible Ubuntu releases, available at https://deb.troglobit.com/
Changes
- Support for building without termcap/terminfo/ncurses. This feature will be welcome for embedded systems, and others who cannot, or do not want to, bundle the complete ncurses
- Support for opening
.gz
text files, as read-only - Support for
C-h t
to access the Mg tutorial - Support for
C-h q
to toggle*quick*
help buffer - New default key bindings for cursor movement, from GNU Emacs:
- C-up backward-paragraph
- C-down forward-paragraph
- C-left backward-word, also M-left
- C-right forward-word, also M-right
- C-PgUp beginning-of-buffer
- C-PgDn end-of-buffer
- Sync with OpenBSD:
- Update all
$OpenBSD: id$ strings - Fix -Wshadow warnings
- Fix missing return value checks
- Update all
- Modeline changes to mimic GNU Emacs
- Drop
Mg:
, similar to yur3i/mg/commit/@84ce23b - Use space instead of dash
-
as separator, same as @yur3i - Hard code std encoding and UNIX end-of-line mode
- Show (line,column) and place before buffer modes
- Upper case for each mode listed
- New
display-time-mode
, toggle current time in modeline
- Drop
- Enable column-number-mode by default
- Add new internal
mglog_misc()
debug API - Clear status line after killing/switching buffer by name, fixes lingering prompt after said action
- Rename Debian package: mg -> mg2a, provides mg
Fixes
- Check return value from all
fopen()
calls in internal log API - Duplicate definitions of global variables in def.h, found by GCC-10. Patched by Ulrich Mueller of Gentoo, via OpenBSD and Han Boetes
- Avoid NULL deref in regexec when searching for empty lines, from OpenBSD by Hiltjo Posthuma
- Prevent segfault with query-replace-regex replacing ^, from OpenBSD by Mark Williamson
- Avoid running out of memory with query-replace-regex ^, from OpenBSD by Mark Williamson