Skip to content

Commit

Permalink
Update comment-line documentation and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
paaguti committed Nov 20, 2020
1 parent 827b2d7 commit 9fb284a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README.reference
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,10 @@ starts with "cygwin", and "termdoesonlybmp" is set to 1.

Local variables:

Some variables can be set locally per-buffer. They are "fill-column",
"fill-options", "make-backup", "soft-tab-size", "tab-options", "tabs-
with-spaces" and "trim-whitespace".
Some variables can be set locally per-buffer. Integer local variables are
"fill-column", "fill-options", "make-backup", "soft-tab-size", "tab-options",
"tabs-with-spaces" and "trim-whitespace". String local variables are
"comment-begin" and "comment-end"

"local-set-variable" - Sets a local variable to an (integer) value. A short
form alias is "lv".
Expand Down Expand Up @@ -425,12 +426,15 @@ Commands from GNU Emacs that were not in Mg2a:
toggle-read-only (^X ^Q)
transpose-paragraphs
transpose-words (ESC t)
comment-line (ESC ;)

The syntax is different but "ignore-errors" ignores the errors of one
command on the same line. "nil" has a use as the command to undefine a
key using "define-key". "transpose-words" and "transpose-paragraphs"
transpose only adjacent items.

"comment-line" needs, at least "comment-begin" to be defined. Called without
arguments, "comment-line" will comment the *WHOLE* line. called with a non-zero
argument, "comment-line" will comment from the point to the end of line.

Commands neither from GNU Emacs nor other Mg:s:

Expand Down
5 changes: 5 additions & 0 deletions bl/dot.mg3
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
;
(global-set-key "\e[5~" 'scroll-down)
(global-set-key "\e[6~" 'scroll-up)
;
; Fri, 20 Nov 2020 07:11:28 +0100
;
(global-set-key "\^x;" "comment-line 1")

;
; Tue, 04 Apr 2017 15:04:44 +0200
;
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([mg3a],[20201117],[paaguti@gmail.com])
AC_INIT([mg3a],[20201120],[paaguti@gmail.com])
AM_INIT_AUTOMAKE
dnl AC_CONFIG_SRCDIR([display.c])
AC_CONFIG_HEADERS([config.h])
Expand Down
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
mg3a (201120-1) unstable; urgency=low

* Make make-mode non-default in compilation
* Postpone comment-region
* Document comment-line, comment-begin and comment-end
* Add latest dot.mg3 to examples

-- Pedro A. Aranda <paag@gmail.com> Fri, 20 Nov 2020 07:11:57 +0100
mg3a (201117-1) unstable; urgency=low

* Make comment delimiters buffer local
Expand Down

0 comments on commit 9fb284a

Please sign in to comment.