Age | Commit message (Collapse) | Author |
|
(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
|
|
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.
|
|
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
|
|
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.
|
|
Add "c-handle-special-brace" which does a blink and indent, rather
than just a selfinsert and indent
|
|
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.
|
|
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@
|
|
behavior (every buffer maintains its own cwd) and the old behavior of
one global working directory. This makes it slightly easier to hack
on things like kernel code, where compilation, etc, are initiated from
a different directory than you are working in.
While here, fix setting/handling of global wd.
|
|
ago.
ok kjell
|
|
|
|
negative to the positive. undo_boundary_enable(TRUE) makes a LOT more
sense than undo_no_boundary(FALSE).
While here, whack a global, and fix a bug noted by otto:
undoing a file insertion sometimes left stray characters around.
ok beck@, otto@
|
|
* add <signal.h> to sysdef.h (needed for sig_atomic_t on linux, and
we get it by accident on OpenBSD)
* remove <signal.h> from tty.c/spawn.c (not needed now that it's in sysdef.h)
ok beck
|
|
of a buffer respectively. Removes an ugly construction than necessitated
"go to first line"-type comments throughout the code.
No binary change
|
|
unintuitive b_linep. No binary change.
|
|
This allows undo to clear the modified flag when undo-ing all the way
from a loaded buffer.
Originally whipped up at c2k6 after proddings from beck.
jason@ ok.
|
|
way to do it, but all the clever and pretty ways utterly failed.
Basic use seems fine. We'll turdshine the special cases later.
If it bothers you, use M-x line-number-mode, or put same in your ~/.mg
file to disable.
ok cloder, jason
|
|
except for the command line specified files. ok kjell,cloder
|
|
Also missed the ok cloder.
|
|
WFHARD -> WFFULL (Redraw full window)
WFFORCE -> WFFRAME (Reframe window).
No binary change
|
|
|
|
|
|
grep, compile, lint work as expected (act on current buffer's cwd).
Display this path when opening or replacing a file, rather than
relying on the user to guess, or remember.
|
|
trailing buffer number appended (e.g. "file<2>") in case an existing
buffer shared its basename().
|
|
feedback from Philip Guenther and Han Boetes
|
|
suspended. Problem reported and fixed tested by reyk@; tweak by
kjell@; ok kjell@
|
|
struct/union/casting nightmare when building the list of names for filename
completion. In particular, be consistent about strduping and freeing
the list data.
|
|
|
|
|
|
|
|
This will help move to a kill-ring.
|
|
|
|
|
|
|
|
|
|
leftover (unused) variable.
|
|
dired functions that were written, but not bound to keys. No other
functional change.
Tested by Han Boetes.
|
|
ok cloder@
|
|
Noticed by Han Boetes
|
|
a directory. Modified version of patch from Han Boetes.
ok cloder@
|
|
the path of the invoking buffer.
Also, make subshell output look more like emacs (show directory,
completion time). oked at one point by deraadt@
|
|
This is nonsensical, and utterly broken if you are undo-ing across
multiple buffers. Change them back to being associated with the BUFFER
struct. (effectively, just revert the original change)
ok deraadt@
|
|
Niklas, this one is for you.
ok deraadt@, cloder@
|
|
Undo boundaries are now placed at newlines, and undo
of search-replace works as expected. Fixes bad behaviour
reported by matthieu
Ok deraadt@, beck@
|
|
ok millert@, deraadt@
|
|
adds eread flag EFDEF allowing null minibuffer response
noticed by otto
ok cloder@ jason@, works otto@
|