| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
currently a '*' next to a file's name indicates it is writable. With
this diff it now means it is read-only. Also make the active buffer
indicator more visible:'.'->'>'.
|
|
|
|
|
|
|
|
| |
(define curdir(get-environment-variable CURDIR))
(insert curdir)
Should now print the value of the environment variable CURDIR's value,
or error if it is not set.
|
|
|
|
|
| |
Keep the same regex for mg function names. Though perhaps for
user-defined functions other characters could be ok....
|
| |
|
| |
|
| |
|
|
|
|
| |
kind of data being found.
|
|
|
|
|
| |
foundparen(). No intended functional change. regress tests ok and they
all use excline().
|
|
|
|
| |
consistantly.
|
| |
|
|
|
|
| |
because it is numerical.
|
| |
|
|
|
|
|
|
|
| |
detection in between them though. Add limitation to characters
allowed in symbol names, equivalent to mg function names (A-Za-z-),
quite restrictive but can grow of course. If value is not quoted and
is not a variable, give an error.
|
|
|
|
|
|
| |
line. Next to look at "values" (quotes around values).
Current regress tests pass.
|
|
|
|
|
|
|
| |
initialise a pty, run the specified file of mg commands and then exit.
This is to facilitate mg fitting into the OpenBSD regress test
framework and be able to run via a cron job.
|
|
|
|
|
| |
"This patch makes sure to clear the status/echo line after killing and
switching buffers by name. Otherwise the kill/switch prompt lingers"
|
| |
|
| |
|
|
|
|
| |
user know. EACCESS is currently accounted for, but nothing else.
|
|
|
|
|
|
|
|
| |
(define myfile d.txt)
And use them like:
(find-file myfile)
|
|
|
|
|
|
| |
length boundary is crossed in the minbuffer and allows the user to see
the error message and respond accordingly. The goto named "null"
changed to "skipkey" as per Emil Engler's suggestion on tech@.
|
|
|
|
|
| |
updated logging to $HOME, but will do so). Also include mglog_misc()
which takes formatted input from Joachim Wiberg's mg. Thankyou both.
|
|
|
|
|
| |
buffer specific variable. The diff should not produce any behavourial
changes in mg.
|
|
|
|
| |
No functional change intended.
|
|
|
|
| |
No functional change intended.
|
|
|
|
|
|
|
| |
check before using variable in list
remove unnecessary variable declaration
check value of adjustname()
add a '< 0' return value of snprintf
|
|
|
|
|
| |
check value of adjustname()
use int for return value of snprintf
|
|
|
|
|
|
|
|
| |
ago. Sorry for the delay.
- Make sure we don't deref NULL ptr in skipwhite()
- Only deref vendp if not NULL
- Strings must be at least 2 chars for terminating NUL character
|
|
|
|
| |
sent to tech@ many moons ago. Sorry for the delay.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Choosing ! (replace rest) never advances beyond the current line
and keeps inserting the replacement test, and mg eventually runs
out of memory.
Patch from Mark Willson with minor stylistic tweaks.
Looks good to Hiltjo Posthuma who would have preferred making forward
replacing on empty lines work. Mark argued that this makes it behave
consistently with the current behaviour when searching for ^ and the
point at the beginning of a non-empty line in which case the cursor does
not move either.
Also tested by krw
|
|
|
|
| |
Patch from Mark Willson with a minor tweak
|
|
|
|
| |
Report & tweak from Hiltjo Posthuma
|
|
|
|
|
|
|
| |
in every source file that includes def.h
Found by gcc10 in portable in gentoo and fedora.
Patch from Ulrich Mueller (ulm AT gentoo.org) via Han Boetes, thanks!
Ok tb
|
|
|
|
|
|
|
| |
make-backup-files toggles backup, so when you add it in your ~/.mg this
disables backup.
ok benno@
|
| |
|
| |
|
|
|
|
|
| |
Just to get things working. Best get rid of that nonsense sooner
rather than later.
|
|
|
|
| |
calls to a clean-up variable function.
|
| |
|
| |
|
|
|
|
| |
work, including a proper parser.
|
| |
|
|
|
|
|
| |
fewer lines. While working in extend.c change relevant calls to
dobeep.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
multiple arguments when evaluated in a startup file or via one of the
'eval' commands.
This diff does treat the '(' and ')' chars differently during
evaluation than previously, in-so-far as they are not ignored if they
are at the end or start of a line now. However, even though these
characters are not ignored, this diff should not change the behaviour
of an extant .mg file, with '(' and ')' chars at the end and start of
a line. This situation is accomodated for in this diff (with limited
testing though).
|
|
|
|
|
| |
another file in a startup file (e.g via find-file), then experience
another unrelated error with one of the lines being evaluated.
|
|
|
|
|
|
|
| |
'eval-current-buffer' since it is by design, meant to be called interactively
as characters are typed in a buffer. ask_selfinsert() allows selfinsert() to
be used by excline(). Having ask_selfinsert() helps with regression testing.
No manual page entry since use case is a bit obscure. See 'insert' command.
|
| |
|
|
|
|
|
|
|
|
|
| |
called from the mg startup file. My previous diff broke that instance.
So this diff reverts my change but adds a man page line to
blink-and-insert in case someone should try to use it interactively,
again. Also, should anyone ever want to add an interactive version of
blink-and-insert in the future, the code is there. And the code could
be useful in another, related instance.
|