Age | Commit message (Collapse) | Author |
|
|
|
"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.
|
|
If you use this, change your habits (and .mg) to use the following
commands instead:
mail-mode => auto-fill-mode
mail-set-margin => set-fill-column
ok henning@. Will also "fix" debian bug #460189
|
|
'Prints root directory as "//" instead of "/" for root files.'
Issue was with dirname, which strips the trailing slash, except
when given "/". Wrap it in a cover function to fix. Also helps
with portability to data-munging dirname glibc.
|
|
Two issues: *scratch* did not inherit any modes set from
~/.mg, as it was created too early. Switch to using *init* buffer
until after autoexec, then kill it and inherit correct *scratch*.
Second, -f should force the mode. Not toggle it.
ok phessler@
|
|
automatically go there during a macro def, the macro recording
is CANCELED. This sucks rocks.
This fixes the incremental searches to
automagically invoke the non-incremental varieties during
macro recording and playback.
ok art
|
|
(with appropriate indenting):
/*
* comment
*/
and
foo(); /* comment */
Whew. A lot of code for a seemingly simple idea.
ok phessler@
|
|
This replaces the ridiculous "move cursor to where you want to wrap things
and invoke this comment" behavior of before.
Note, this makes auto-fill-mode the moral equivalent of mail-mode.
(and set-fill-column the moral equivalent of mail-set-margin)
|
|
|
|
The intent of this mode is NOT to copy emacs's monster cc-mode.
It is intended to handle basic KNF-format C, assisting
with indentation (to catch obvious typos), and strip
trailing whitespace. It is NOT enabled unless you ask for it (c-mode).
Basically, tab on start-of-line whitespace acts like tab.
Otherwise, tab indents.
Please try it out and let me know where it falls down.
Feedback Reyk, phessler. "hack in tree" from henning, theo
|
|
|
|
indent-current-line utility functions for stripping leading/trailing
whitespace, and setting a fixed indent respectively.
|
|
|
|
placed in the public domain.
This means mg (minus theo.c) is once again a public domain
piece of code. Please try to keep it that way.
|
|
and leaving terminal in an inusable state if setupterm failed.
ok kjell
|
|
Use it to clear the region it is copied (M-w), or yanked (C-w).
This matches xemacs behavior, is not horribly different from gnu
emacs, and way less wrong than the current behavior.
Noticed by Han Boetes. ok otto@
|