summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2022-10-20add zap-to-char and zap-up-to-char; bind zap-to-char to M-z.Omar Polo
ok florian@
2022-10-15replace ewprintf("") calls with eerase(): no functional difference.Omar Polo
ok florian@
2022-10-15typo in comment: Funtion -> FunctionOmar Polo
2022-06-28transistion -> transitionJonathan Gray
2022-05-24fix some dobeep_msgs callsop
dobeep_msgs isn't printf-like: it just prints the two arguments separated by a space. When it was introduced, some calls from ewprintf were incorrectly translated and the "%s" remained. ok florian@
2022-05-24automatically delete trailing whitespaces on RET in c-mode andop
auto-indent-mode (only after computing the auto indent.) tested also by Mikhail (thanks!). ok tb@
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2022-01-28When it's the possessive of 'it', it's spelled "its", without thePhilip Guenther
apostrophe.
2022-01-20mg: fix -Wunused-but-set-variable warningsChristian Weisgerber
strtonum() is only called to verify that a string is numerical, the return value is unused. inlist is no longer used after the code was refactored. ok millert@ guenther@
2021-05-12Count the number of arguments in each expression as we initially goMark Lumsden
through the expression. To be used in checking function parameter profiles later.
2021-05-08Perhaps the syntax '((' and '()' will be valid one day, but not at theMark Lumsden
moment. This diff works the two checks for them into the main for parsing loop.
2021-05-08stop parsing if a digit is found as first character of an expression.Mark Lumsden
2021-05-07Give an error if quoted string is found as first non-white char afterMark Lumsden
'('.
2021-05-07Take a note of expression length when it is extracted from lineMark Lumsden
submitted to excline().
2021-05-06Add the line number of an error to error messages.Mark Lumsden
2021-05-06Add a number to parameters for ewprintf() via beeping.Mark Lumsden
2021-05-06Give parse error if character found between blocks.Mark Lumsden
2021-05-05Check the characters preceeding and following quotes.Mark Lumsden
2021-05-03When parsing a variable value within double quotes, allow parenthesisMark Lumsden
to be accomodated for.
2021-05-03When parsing a variable value within double quotes, allow an escapedMark Lumsden
\" to be accomodated for. Also, move the variable structure to be global in scope within mg.
2021-05-02dired-shell-command is listed in the man page under 'DIRED KEYMark Lumsden
BINDINGS' but not under 'DIRED COMMANDS'. Add it in.
2021-04-22Add a non-interactive version of query-replace-regexp function calledMark Lumsden
replace-regexp. Unfortunately query-replace-regexp can't be used in a startup file.
2021-04-21Use the plenteous BUFSIZE found in mg in lieu of 128.Mark Lumsden
2021-04-20Indicate if an mg function is unsuitable for a startup file (requiresMark Lumsden
user interaction).
2021-04-20Allow more than one block of code to exist on a single line. Also,Mark Lumsden
move the code which expands variables to be ran when variables are discovered instead of in multiarg() just before execution. This means a variable who's value is included in anothers', won't change the others value if its own is changed. I have also included code, which is commented out at the moment, which implements a function map specific to interpreter. Not sure if I can ultimately avoid using it though.
2021-04-20Add 'dired-jump' from Philip K. <philip@warpmail.net> sent to tech@Mark Lumsden
over a year ago. Comments and testing from gkoehler@. Thanks to both. Also, some modifications from me.
2021-03-26Invert the 'R' indicator which seems rather unintuitive at the moment,Mark Lumsden
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:'.'->'>'.
2021-03-26Add 'get-environment-variable', in a fashion:Mark Lumsden
(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.
2021-03-26Change the regex for define names. Make more characters available.Mark Lumsden
Keep the same regex for mg function names. Though perhaps for user-defined functions other characters could be ok....
2021-03-26Change two more bool counters to pointer NULL checks.Mark Lumsden
2021-03-25Move the expression list create item code into a single function.Mark Lumsden
2021-03-25Add an (exit) method.Mark Lumsden
2021-03-25User a pointer's value (!NULL) instead of a boolean to indicate someMark Lumsden
kind of data being found.
2021-03-25Use length of line to indicate end of characters to process inMark Lumsden
foundparen(). No intended functional change. regress tests ok and they all use excline().
2021-03-23Use a pointer called bufp to point to a buffer called bufnMark Lumsden
consistantly.
2021-03-23Correct how many arguments some functions take for interpreter.c.Mark Lumsden
2021-03-23Make a parameter to an mg function not throw an error justMark Lumsden
because it is numerical.
2021-03-22Start the move to TAILQ for expressions instead of an SLIST.Mark Lumsden
2021-03-21Add quoted strings capability in list values, no special charsMark Lumsden
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.
2021-03-20Looking at loading all expressions initially, working towards multiMark Lumsden
line. Next to look at "values" (quotes around values). Current regress tests pass.
2021-03-20Add a 'batch' mode to mg via the '-b' command line option which willMark Lumsden
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.
2021-03-18From Joachim Wiberg's version of mg.Mark Lumsden
"This patch makes sure to clear the status/echo line after killing and switching buffers by name. Otherwise the kill/switch prompt lingers"
2021-03-08Start looking at parsing text to find separators.Mark Lumsden
2021-03-08Put regex tests into a function.Mark Lumsden
2021-03-05If there is a problem with opening a directory via M-x dired, let theMark Lumsden
user know. EACCESS is currently accounted for, but nothing else.
2021-03-02It is now possible to define single value variables in the startup file:Mark Lumsden
(define myfile d.txt) And use them like: (find-file myfile)
2021-03-02This diff soaks up the user input while the the maximum characterMark Lumsden
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@.
2021-03-02Update logging with comments made by florian@ some time ago (i've notMark Lumsden
updated logging to $HOME, but will do so). Also include mglog_misc() which takes formatted input from Joachim Wiberg's mg. Thankyou both.
2021-03-01Put the hardcoded '\n' character which is found throughout mg into aMark Lumsden
buffer specific variable. The diff should not produce any behavourial changes in mg.
2021-02-28Add dobeep functions that take messages to buffer.c and cscope.cMark Lumsden
No functional change intended.