summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2005-06-14Add explicit public domain notices to all public domain files.Kjell Wooding
ok millert@, deraadt@
2005-06-14Three more ereply that should be ereads. This fixes henning's "replaceKjell Wooding
with null string is busted" observation. ok henning@, cloder@
2005-06-05if functions permits null reply from minibuffer, use eread (withKjell Wooding
EFNUL), not ereply. ok cloder
2005-06-03Make M-x gid tokenize C identifiers correctly. Problem reported by mjc.Chad Loder
Testing and OK mjc
2005-06-03Fix memory leak. OK kjell, with comments by beck and kjellChad Loder
2005-06-03Like emacs, handle ^W during incremental search. Pressing ^W duringChad Loder
search will add the rest of the word from the current buffer to the pattern buffer. Testing and comments by kjell and marc
2005-06-03Clean up find-alternate-file (C-x C-v) so abort returns to originalKjell Wooding
file, like its emacs ancestor. ok cloder@
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-29Try to undo crazy Quebecois stuff that was breaking undoChad Loder
2005-05-28Dired now prompts in the minibuffer using the current directory nameChad Loder
or the name of the directory of the current buffer's file. OK kjell, jason
2005-05-28If the user gets into a minibuffer, they will not know how to hitChad Loder
Ctrl+g to get out of it. Let them hit enter, like in emacs. OK kjell, jason
2005-05-27In find file, behave like emacs: the default starting directory forChad Loder
completion is the directory of the current buffer's file, if any, rather than the working directory from where you launched mg. Prodding by reyk, ok reyk and fgont
2005-05-27Add emacs-style replace-string function that does not prompt youChad Loder
to confirm replacements. OK jason, deraadt
2005-05-27Fix dumb bug in initial prompt for search-forwardChad Loder
OK jason, kjell
2005-05-27Do not dump core if user hits ^g to exit minibuffer from search-forward.Chad Loder
Found by deraadt, ok kjell
2005-05-27moreJason Wright
2005-05-25Mention isearch wrapChad Loder
2005-05-25Incremental search will now wrap to beginning (or end if backwards) ifChad Loder
you hit the search key again after a failure. OK jason
2005-05-25in M-x compile, after prompting for command, check buffers and optionallyJason Wright
save them. ok cloder@
2005-05-25'1' in buffer-list mode should open the listed buffer in its own windowJason Wright
(ie. it's just like ^M, except for a call to onlywind()).
2005-05-24'notherHenning Brauer
2005-05-23make ^S/^R behave like 'emacs': mixed case patterns forces a case sensitiveJason Wright
search. all lower case patterns is a case insensitive search; ok art
2005-05-22at the bbqTodd T. Fries
2005-05-15Fix insert-buffer prompt format string. strlcpy returns size_t, not intChad Loder
(from Han Boetes). Improve error messages (from Han Boetes). OK otto, jaredy, beck
2005-05-05anotherTodd T. Fries
2005-05-01anotherjoshua stein
2005-04-29Remove unneeded include. Han Boetes.Otto Moerbeek
2005-04-28anotherDamien Miller
2005-04-28Get rid of unused arg to complete_function_list(). Han Boetes.Otto Moerbeek
2005-04-28That should be FALSE in previous commit.Otto Moerbeek
2005-04-28NULL is not an int. Han Boetes.Otto Moerbeek
2005-04-21correct strlcpy abuse, and always check for NULL return from find_bufferBob Beck
ok cloder@, feedback from many
2005-04-13use STD{IN,OUT,ERR}_FILENOTheo de Raadt
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-12sync usage() w/ synopsis;Jason McIntyre
2005-03-12- tweak synopsisJason McIntyre
- avoid line splits - minor tweaks
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-10spacingTheo de Raadt
2005-03-10add -n command line switch to disable backup file generation, handyHenning Brauer
when you use mg for your mail from within mutt etc from PR3930, Carson Harding <harding@motd.ca>, Thanks!
2005-03-10the realpath() was needed to do do relative to absolute pathHenning Brauer
conversion. revert my diff that takes it out, and instead, on realpath() failure (like when you have no perms on pwd) just return the unexpanded path. everything still fine with that, just tab completeion and the like does not work (obviously). this was mainly for "sudo mg /etc/something" from ~ where ~ is nfs-mounted with root mapped to -2 and now, that case works as well as tab completion on insert-file etc.
2005-03-09remove useless -DBACKUP from CFLAGS and change the comment for BACKUPHenning Brauer
to NOBACKUP what the code actually uses (and reverse the descr too of course) spotted by jmc@ quite some time ago, no binary change.
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@
2005-03-09the mg binary is too small, if we keep adding theo quotes we might beHenning Brauer
as big as vi one day
2005-03-02slacking is a medical conditionJolan Luff
2005-02-01make fbackupfile() return FALSE when the rename(2) from theHenning Brauer
mkstemp()-derived name to the filename~ one fails From: Han Boetes <han@mijncomputer.nl>
2005-01-31Safer backup file generation using mkstemp(); henning@ OKTodd C. Miller
2005-01-15hatrickJolan Luff
2005-01-14Couldn't resist this one...Marco Peereboom