Age | Commit message (Collapse) | Author |
|
both forwards and backwards cases, though the forward case is better
tested. This is required because the actual character deleter
function (ldelete) requires an exact count. If it runs short, it will
not put the deletion into the kill buffer. This is complicated by how
mg internals consider newline's as counted characters even though they
do not occur in the buffers... and then there is the no newline at EOF
fiasco....
|
|
|
|
|
|
ok nick@ schwarze@ miod@ kjell@
|
|
which have fewer special cases, and use the strlcpy/strlcat
src/dst/buffer len semantic. More portable to boot.
Discussion and feedback from Henri Kemppainen
|
|
was built. no binary change here. confirmed by lum@, tested by Henri Kemppainen
|
|
filename completion. Avoids a recurring portability headache.
ok lum@
"concerns assuaged to the soothing sounds of Martin Denny blambert@"
(I worry about that guy...)
|
|
clean up undo boundaries for functions in random.c
This catches an error, where twiddling in an empty file could
disable undo boundaries for the rest of the session.
proper undo boundaries around newline() will have to wait until
proper reference counting is done... Thanks!
|
|
|
|
ok kjell@
|
|
caller, too. ok lum@
|
|
test len against INT_MAX, not SIZE_MAX. 'looks good' jasper@
|
|
Join the current line to the previous.
original diff by Henri Kemppainen. minor mod to add undo boundaries.
Thanks!
|
|
Move the dot to the first non-whitespace character on the current line.
from Henri Kemppainen . ok theo
|
|
capitalization for keys in Control and Meta for both key bindings
and descriptions.
ok kjell@
|
|
|
|
means.
If we hit an OOM condition, mg started to try and dump the older undo buffer
entries in order to be able to continue. OTOH, it was grabbing this entry with
LIST_END, which like all *_END() list macros evaluates to NULL.
Do what we actually want and switch that list to a TAILQ and use
TAILQ_LAST to grab the last entry.
Wrote this a loooooong time ago after a mail from Matthew Dempsky on
bugs@. ok kjell@, beck@ also looked at this months ago and thought it
was alright.
|
|
Make dired more sane (and emacslike):
* Position cursor at first filename after ..
* Don't reposition cursor on reopening
* Check for permission before attempting to open directory
I took forever to get this in. Thanks, Logan for being patient!
|
|
|
|
|
|
|
|
ok kjell@
|
|
|
|
ok kettenis
|
|
"yup" henning@
|
|
ok henning@ dms@
|
|
|
|
|
|
|
|
|
|
"if it formats correctly, go for it" jmc@
|
|
|
|
(C-k) with respect to cursor position. The former leaves the cursor at the end,
the latter at the beginning of the region.
emacs is wacky.
Make mg undo do the same. ok deraadt
|
|
|
|
(e.g. *scratch*, *Completions*, *grep*) it is considered throwaway; i.e.
the user will NOT be prompted to save changes when the buffer is killed.
|
|
for destruction at a later date. (in the process, add a window flag field)
This fixes an issue noted by maja: namely, the *completion*
window that pops up when you try to complete a filename on
buffer load would destroy any second window that you happened
to have open.
ok maja@
|
|
Noticed and ok matthieu@
|
|
flag: it is for redisplay options only. I need an additional all-purpose
flag, so renaming removes the desire to wrongly overload the existing one.
Turdshine. No functional chage.
|
|
|
|
to set-fill-column was garbage. (common, since they keystroke is
so close to find-file). Fix!
|
|
|
|
into minibuffer. Found and fixed by Martynas. Cleaned up
a bit so that error messages display properly in the status line.
Fixes Debian bug #414846
|
|
|
|
|
|
|
|
as other modes do, for consistency and to save a few chars.
written with help from kjell@
ok kjell@
|
|
add some missing full stops.
ok kjell@
|
|
support and who to mail for 5" floppies... ok kjell
|
|
ok jmc@
|
|
This should have no functional change on undo, but it does facilitate
testing undo behavior.
|