Age | Commit message (Collapse) | Author |
|
Convert eread(buf, a2, a3, a4) to eread("%s", a2, a3, a4, buf)
ok millert@ lum@
|
|
"Looks fine." deraadt@
|
|
This does the following:
Moves all POSIX headers from sysdef.h into the individual .c files so that
each file now only includes what it needs. All headers are properly sorted.
Moves the remainder of sysdef.h to other files (mostly def.h) and deletes
sysdef.h now that it's no longer contains anything.
Tweak a comment that references sysdef.h so that it no longer does that.
ok florian@
|
|
and pull in <limits.h> for *_MAX constants.
inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com)
ok bcallah@
|
|
ok florian@
|
|
1) When answering "No newline at end of file, add one?" with y and
dot is not at the end of buffer dotline is off by one
2) When displaying the same buffer in two windows, dot in the
second window is below dot in the first and a newline is entered in
the first window dotline is not updated in the second.
OK lum
|
|
reflect this.
|
|
test len against INT_MAX, not SIZE_MAX. 'looks good' jasper@
|
|
|
|
(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
|
|
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
|
|
line-number count for a buffer (M-X insert-file, M-> to reproduce).
While here, fix a number of bugs with incorrect line numbers
after swap point-and-mark
Originally reported via debian's bug tracking system. Fix tested by
Han Boetes and Deanna Phillips.
|
|
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@
|
|
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.
|
|
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
|
|
WFHARD -> WFFULL (Redraw full window)
WFFORCE -> WFFRAME (Reframe window).
No binary change
|
|
|
|
struct/union/casting nightmare when building the list of names for filename
completion. In particular, be consistent about strduping and freeing
the list data.
|
|
word in the undo-list.
|
|
|
|
|
|
This will help move to a kill-ring.
|
|
batching string before prepending.
ok cloder, (grudgingly) beck
|
|
|
|
|
|
|
|
|
|
leftover (unused) variable.
|
|
|
|
|
|
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@
|
|
- spelling, punctuation fixes
- variable declaration lineup
- use parentheses for return and sizeof
- K&R function declarations -> ANSI
- other minor code beautification
ok henning@
|
|
prompt the user and add the newline if he agrees.
tested by a lot of helpful tech@ guys, approved by henning
|
|
comment to change the wrapping column. (mail-set-margin)
tested by henning and phessler, thanks!
|
|
|
|
lrealloc() - don't realloc if new size <= old size. Avoids a realloc(p, 0)
vincent@ OK
|
|
|
|
somewhat more useful....
ok millert@ + no objections on ICB
|
|
plus some KNF
ok art@
|
|
That makes mg behave more like GNU emacs.
|
|
needs further hacking.
ok `whole bunch of people on icb'@
|
|
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
|
|
|
Use mg specific _MG_U/_MG_L chartypes instead of systemwide ones.
|
|
structures all the time.
|
|
|