summaryrefslogtreecommitdiff
path: root/usr.bin/mg/def.h
AgeCommit message (Collapse)Author
2006-02-25Fix a coredump occurring when the terminal is resized while mg isOtto Moerbeek
suspended. Problem reported and fixed tested by reyk@; tweak by kjell@; ok kjell@
2005-12-20Clean up the ugly casted frees. In one case, this meant eliminating a nastyKjell Wooding
struct/union/casting nightmare when building the list of names for filename completion. In particular, be consistent about strduping and freeing the list data.
2005-12-13Last round of easy delinting.Kjell Wooding
2005-12-13More name-clash delintingKjell Wooding
2005-12-13If you're going to pass a length parameter, you should use it.Kjell Wooding
2005-11-22Move kill-related commands to their own file.Kjell Wooding
This will help move to a kill-ring.
2005-11-20toast NO_DIRED #ifdef; ok kjellTheo de Raadt
2005-11-18Split kill buffer code into a separate function.Kjell Wooding
2005-11-18clean up some comments after theo's cleanupKjell Wooding
2005-11-18greedy use of typedef struct was making code harder to read; ok kjell cloderTheo de Raadt
2005-11-18Casefold on replace was killed ages ago (it was wrong). Remove aKjell Wooding
leftover (unused) variable.
2005-11-07Move most of the dired hooks into dired.c. While here, enable someKjell Wooding
dired functions that were written, but not bound to keys. No other functional change. Tested by Han Boetes.
2005-10-14move the dired routines into dired.c where they belong.Kjell Wooding
ok cloder@
2005-10-13Make dired buffer read-only by default.Kjell Wooding
Noticed by Han Boetes
2005-10-13Use dired mode automatically if file specified for loading isKjell Wooding
a directory. Modified version of patch from Han Boetes. ok cloder@
2005-10-13Make mg's grep and compile more path-aware, by defaulting toKjell Wooding
the path of the invoking buffer. Also, make subshell output look more like emacs (show directory, completion time). oked at one point by deraadt@
2005-10-11A while back, undo records were moved from the BUFFER struct to MGWIN.Kjell Wooding
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@
2005-10-11Enable the 'next-error' (C-x `) keybinding by default.Kjell Wooding
Niklas, this one is for you. ok deraadt@, cloder@
2005-10-06Make mg undo much more emacs like (and correct).Kjell Wooding
Undo boundaries are now placed at newlines, and undo of search-replace works as expected. Fixes bad behaviour reported by matthieu Ok deraadt@, beck@
2005-06-14Add explicit public domain notices to all public domain files.Kjell Wooding
ok millert@, deraadt@
2005-05-31fix broken minibuffer defaults introduced in echo.c:1.33Kjell Wooding
adds eread flag EFDEF allowing null minibuffer response noticed by otto ok cloder@ jason@, works otto@
2005-05-30add find-alternate-file command and binding for ^X^V; ok cloderJason Wright
(you're welcome kjell)
2005-05-27Add emacs-style replace-string function that does not prompt youChad Loder
to confirm replacements. OK jason, deraadt
2005-04-03This is a no binary change which does:David Berghoff
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@
2005-03-12spacingTheo de Raadt
2005-03-10fix more BACKUP/NOBACKUP/NO_BACKUP confusion, again no binary change.Henning Brauer
spotted by jmc@
2005-03-09fix mg's behaviour with regards to files on which we do not haveJean-Francois Brousseau
write access. diff originally from vincent@ and forgotten for a while. ok rohee@, "toss it in, i'll bitch if it doesn't work" henning@
2004-07-22stage 1 of the infinite minibuffer work - add support for on the flyVincent Labrecque
buffer reallocation in veread(). This commit only changes the API. All the buffers have exactly the same bounds as before for now. tested by a couple of my very helpful testers!
2004-07-09when saving a file, check whether it is newline terminated and if it is not,Vincent Labrecque
prompt the user and add the newline if he agrees. tested by a lot of helpful tech@ guys, approved by henning
2004-01-27make mail-mode more intelligent on middle-of-line insertions, and add aVincent Labrecque
comment to change the wrapping column. (mail-set-margin) tested by henning and phessler, thanks!
2003-11-29save the previous undo position as an offset in the buffer instead ofVincent Labrecque
a line/offset pair
2003-11-09remove the only use of the hackish undo_add_custom function.Vincent Labrecque
2003-11-09remove unused structure elementVincent Labrecque
2003-10-27fix crash on startup by using the good allocation routine in edinit()Vincent Labrecque
spotted and ok by henning
2003-10-21make undo records per MGWIN, not per BUFFER...Vincent Labrecque
2003-08-15make dired work more like emacs. (well, make it _work_, and then add aVincent Labrecque
bunch of missing commands)
2003-06-26protosVincent Labrecque
ok deraadt
2003-05-05add a mail-mode, to do automatic line-wrapping.Vincent Labrecque
(at the same time, change the command line parsing to support a -f <mode> that is slightly different from the one in gnu emacs, we apply it to all buffers created from command line arguments, so you can use "mg -f mail-mode" as your editor. manpage change coming soon) ok henning
2003-01-06support +number; rewritten from buggy code by mjc@bitz.ca, vincent okTheo de Raadt
2002-07-24 remove the CHANGE undo record type, use a combination of delete and insertVincent Labrecque
to have the same behavior in a simpler way. ok art@
2002-07-01KNF + ansi; from zyrnix (only the easy part of his diffs)Vincent Labrecque
2002-06-21remove the "extern" for a variable that does not exist anymore.Vincent Labrecque
2002-05-29 add an "auto-execute" feature, that allows binding function calls toVincent Labrecque
certain patterns. for example, `auto-execute "*.c" auto-indent-mode'. ok art@
2002-05-29 add a function to visit a file read-only mapped to C-x C-vVincent Labrecque
ok art@
2002-03-18 Enter the new undo code. it is still disabled since it has bugs, but it'sVincent Labrecque
somewhat more useful.... ok millert@ + no objections on ICB
2002-03-16 This should've been commited yesterday, before the funmap change.Vincent Labrecque
ok millert@
2002-03-16 add readonly buffer supportVincent Labrecque
plus some KNF ok art@
2002-03-11 * Move to ANSI function definitions.Vincent Labrecque
* Add a whole lot of consts where I thought it made sense no ok, but no objections either...
2002-02-26keep undo records in the BUFFER structures insteda of having a huge list.Vincent Labrecque
2002-02-21KNFTheo de Raadt