Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
Emulate the emacs behavior: after suspend/resume, buffer switch,
or at save time, warn (prompt) the user if the file has been modified
on disk in the interim.
This has already saved my butt numerous times.
ok phessler
|
|
Now you can do something like:
global-set-key "\^c\^c" compile
in your ~/.mg
|
|
Mayukh Bose. Minor additions from me. Thanks!
|
|
|
|
Fixes a segfault that occurs when you write a file to an alternate name.
Introduced by yours truly in 20060406. how did it last this long?
|
|
|
|
any fixes;
|
|
|
|
mg now? Keymaps, too.
I've guaranteed to have mucked up somewhere in here, but really -
this man page can't really get less useful.
Modes to come.
|
|
both emacsen automatically blink, so mg should too. This can be
overridden in your ~/.mg by adding, e.g.
global-set-key ")" self-insert-command
So, I've eliminated blink mode, and renamed "blink-matching-paren-hack"
to "blink-and-insert". It's not just for parens anyway.
While I'm here, set up an empty (rescan) target for backtab, so I can
bind something convenient to it; e.g.
global-set-key "\e[Z" backward-char
Finally, remove all references to Scribd.
Theo doesn't hate this, though I would hesitate to call it an ok.
|
|
Also, attempt to make indent an atomic undo operation.
|
|
No seriously. Reposition the cursor to the start of the redo
position, like emacs. This gets us halfway to being emacs-finger-friendly.
For the rest, introduce a rptcount variable to count successive invocations
of the same function. This means undo will abort properly on C-g, and
other such interruptions.
This is a lot of diff for a simple-seeming problem. Emacs undo is hard.
|
|
Noted, ok otto@
|
|
Add "c-handle-special-brace" which does a blink and indent, rather
than just a selfinsert and indent
|
|
function. While here, tighten whitespace.
|