summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2005-11-18kill more dumb or contextless.Kjell Wooding
2005-11-17"#ifdef is for emacs developers.", back after kjell criedChad Loder
2005-11-16I think some people are missing the point of this fileChad Loder
2005-11-16Remove some random stuff theo said once to someoneChad Loder
2005-11-16anotherChad Loder
2005-11-13Better error checking of snprintfs. From Han Boetes.Kjell Wooding
2005-11-13Copy buffer before handing it to basename().Kjell Wooding
Inspired by a patch from Han Boetes.
2005-11-12break in caseTheo de Raadt
2005-11-12remove unused variable; ok kjellTheo de Raadt
2005-11-12Paranoia. Check if last of a series of strlcats overflows. Pointed out byKjell Wooding
Han Boetes.
2005-11-11Now that we have an editable minibuffer, revert parsing ofKjell Wooding
"//" and "/~" as '/' and '~' respectively. I know emacs does it, but it is weird, and breaks things that foolishly use filenames like "/tmp//crontab.xxxx". Proddings from matthieu and deraadt. Error report from Bernd Ahlers.
2005-11-11spacingTheo de Raadt
2005-11-11Enable some of the more common editing keybindings in the minibuffer.Kjell Wooding
i.e. left, right, ^B, ^F, ^Y, ^K, ^A, ^E Also, make completions work as you would expect them to i.e. a *Completions* buffer pops up with your choices in it when you hit a second TAB or SP. It's ugly, but it works. ok deraadt.
2005-11-07add missing ctype.hKjell Wooding
2005-11-07KNFKjell Wooding
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-11-07Allow ctrl-key patterns ("^X^C") in keybind function. WillKjell Wooding
allow more modularization of keymaps later. Also, improved error checking suggested by cloder.
2005-10-18Don't consider the last line of the compilation buffer asKjell Wooding
parsable output. It is always a status message. While here, some better error checking. looks ok, cloder@.
2005-10-18make fill-paragraph undoableKjell Wooding
2005-10-18When attempting to open a filename, walk backwards through minibuffer:Kjell Wooding
a> if you run into the beginning of the string, use the whole thing b> if you run into a // combo, use everything starting from the second / c> if you run into a /~ combo, use everything starting from the ~ i.e. do like emacs. From (and for) Jason Wright
2005-10-17make undo of word-based capitalization functions workKjell Wooding
ok beck@
2005-10-17Fix string handling. LOGIN_NAME_MAX includes the NUL, so don't reserve extraKjell Wooding
space. Fix usage of strlcpy. Correct test for terminating slash. "looks good" deraadt@
2005-10-14add missing /* ARGSUSED */ to quiet lint.Kjell Wooding
2005-10-14more replstr into the #ifdefTheo de Raadt
2005-10-14put proto in same #ifdef as codeTheo de Raadt
2005-10-14more headers to please lintTheo de Raadt
2005-10-14unused variablesTheo de Raadt
2005-10-14Whoops. C-x C-v (filevisitalt) didn't work on inital scratch buffer.Kjell Wooding
It does now. Noted by deraadt.
2005-10-14move the dired routines into dired.c where they belong.Kjell Wooding
ok cloder@
2005-10-13toast unused variableTheo de Raadt
2005-10-13use strtonum() correctlyTheo de Raadt
2005-10-13spacingTheo de Raadt
2005-10-13Make dired buffer read-only by default.Kjell Wooding
Noticed by Han Boetes
2005-10-13Make undoing of a yank operation work as expectedKjell Wooding
(i.e. undo boundaries are placed around entire yanked block) ok cloder@
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-13add the (emacs) toggle-readonly keybinding (C-x C-q).Kjell Wooding
Also, remove a silly non-emacsism.
2005-10-13check if current line is null. fixes a core in dired.Kjell Wooding
2005-10-13Fix dired mode. Make deletions work, and keystrokes match emacs.Kjell Wooding
* dired-other-window should default to current buffer's path. * Remove redundant code (from Han Boetes) * Move initialization (and since we're here, fix mail-mode initialization too) * Remove redundant keymap in dired.c, and replace it with the better one that was being ignored in keymap.c.
2005-10-13KNF and minor cleanup. Remove an impossible condition check.Kjell Wooding
Also, remove annoying "now readonly" message, as this information is already reflected in the statusbar
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-11bit more consistency in the list of key bindings;Jason McIntyre
ok kjell@
2005-10-11fix undo BUGS entry. ok deraadt@Kjell Wooding
2005-10-11document a few more things; kjell okTheo de Raadt
2005-10-11prevent trashing of errno in signal handlerTheo de Raadt
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-11Allow the more traditional emacs keybindings during search/replace, tooKjell Wooding
(i.e. 'y' to accept, 'n' to skip, and <CR> to end) ok deraadt@, cloder@
2005-10-11Enable the 'next-error' (C-x `) keybinding by default.Kjell Wooding
Niklas, this one is for you. ok deraadt@, cloder@
2005-10-11Be more explicit in error prompt. ok deraadt.Kjell Wooding
2005-10-06Add find-file-read-only keybinding (c-X c-R), as in emacs.Kjell Wooding
closes PR4523. Enjoy, jason!
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@