summaryrefslogtreecommitdiff
path: root/usr.bin/mg/file.c
AgeCommit message (Expand)Author
2012-04-11When writing a file via 'C-x C-w', ask user if they want to overwrite anlum
2011-08-31On a file write fail:lum
2011-01-23Wrap basename,dirname with xbasename, xdirname funtions,Kjell Wooding
2011-01-21It volates style(9), but in mg, #include"def.h" goes first. 'twas the way it ...Kjell Wooding
2011-01-18augbname immediately does a basename. No need to do it in theKjell Wooding
2010-06-26From the Loganaden Velvindron:Kjell Wooding
2009-06-04Add the notion of an "ephemeral" popup, so we can flag a windowKjell Wooding
2009-06-04Rename w_flag to w_rflag. This is not a general purposeKjell Wooding
2008-09-15Expose the undo commands as proper mg functions.Kjell Wooding
2008-09-15Enable dirty buffer detection in mg.Kjell Wooding
2008-06-18Don't free the buffer name until after you call adjustname.Kjell Wooding
2008-06-13Fix debian bug #432656Kjell Wooding
2008-03-21Reset startrow when opening multiple files. Spotted by matthieu@Pierre-Yves Ritschard
2006-12-24Fix a bug where inserting a file resulted in an incorrectKjell Wooding
2006-11-17Fix a needless inversion of flag names; i.e. change them from theKjell Wooding
2006-07-25Add bfirstlp(), blastlp() macros, returning the first and last linesKjell Wooding
2006-07-25Rename the header line of a buffer to b_headp, from the remarkablyKjell Wooding
2006-07-08Introduce a 'MODIFIED' boundary type for undo records.Kjell Wooding
2006-06-01Display line number in the mg statusbar. Yes, it seems like a fuglyKjell Wooding
2006-06-01make // /~ path rewriting optional in adjustname() and use it everywhereJason Wright
2006-06-01Initialize current window, and clear the readonly flag earlier in fileKjell Wooding
2006-06-01find-file-other-window and find-buffer-other-window should splitKjell Wooding
2006-05-28Make Window Flags more mnemonic (and less dumb); i.e.Kjell Wooding
2006-05-02Make buffers store their own working directory. This makes things likeKjell Wooding
2006-04-06Fix a bug whereby a written buffer (^X^W) would not have the correctKjell Wooding
2006-04-03few more int that can become a size_tTheo de Raadt
2006-04-03lint love; ok kjellTheo de Raadt
2005-12-20Clean up the ugly casted frees. In one case, this meant eliminating a nastyKjell Wooding
2005-12-20Do some delinting of strl-type functions. Also, remove a superfluousKjell Wooding
2005-12-13More name-clash delintingKjell Wooding
2005-11-20Kill the NO_BACKUP #ifdefKjell Wooding
2005-11-20toast NO_DIRED #ifdef; ok kjellTheo de Raadt
2005-11-18greedy use of typedef struct was making code harder to read; ok kjell cloderTheo de Raadt
2005-11-13Copy buffer before handing it to basename().Kjell Wooding
2005-10-14add missing /* ARGSUSED */ to quiet lint.Kjell Wooding
2005-10-13spacingTheo de Raadt
2005-10-13Make dired buffer read-only by default.Kjell Wooding
2005-10-13Use dired mode automatically if file specified for loading isKjell Wooding
2005-10-13KNF and minor cleanup. Remove an impossible condition check.Kjell Wooding
2005-08-09Clean up eread handling in mg. (basically, fallout from the 'enter oftenKjell Wooding
2005-06-14Add explicit public domain notices to all public domain files.Kjell Wooding
2005-06-03Clean up find-alternate-file (C-x C-v) so abort returns to originalKjell Wooding
2005-05-30add find-alternate-file command and binding for ^X^V; ok cloderJason Wright
2005-05-27In find file, behave like emacs: the default starting directory forChad Loder
2005-04-21correct strlcpy abuse, and always check for NULL return from find_bufferBob Beck
2005-04-03This is a no binary change which does:David Berghoff
2005-03-10fix more BACKUP/NOBACKUP/NO_BACKUP confusion, again no binary change.Henning Brauer
2005-03-09fix mg's behaviour with regards to files on which we do not haveJean-Francois Brousseau
2004-07-22stage 1 of the infinite minibuffer work - add support for on the flyVincent Labrecque
2003-11-09fix the undo record size for insert-file so we do not get an extra byteVincent Labrecque