summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2010-08-03that had to be addedHenning Brauer
2010-06-30you keep saying LIST_END. I do not think it means what you think itOwain Ainsworth
means. If we hit an OOM condition, mg started to try and dump the older undo buffer entries in order to be able to continue. OTOH, it was grabbing this entry with LIST_END, which like all *_END() list macros evaluates to NULL. Do what we actually want and switch that list to a TAILQ and use TAILQ_LAST to grab the last entry. Wrote this a loooooong time ago after a mail from Matthew Dempsky on bugs@. ok kjell@, beck@ also looked at this months ago and thought it was alright.
2010-06-26From the Loganaden Velvindron:Kjell Wooding
Make dired more sane (and emacslike): * Position cursor at first filename after .. * Don't reposition cursor on reopening * Check for permission before attempting to open directory I took forever to get this in. Thanks, Logan for being patient!
2010-06-24this just had to be here...Jasper Lievisse Adriaanse
2010-03-26dispense with some wacky escape sequences;Jason McIntyre
2010-03-03it's true!Jasper Lievisse Adriaanse
2010-01-24- revert previous; nitems() shouldn't be used in userland (yet).Jasper Lievisse Adriaanse
ok kjell@
2010-01-24use nitems here, no real changeTed Unangst
2010-01-01when asked for the benefit of pre-selecting pkgs in the installer;Ingo Schwarze
ok kettenis
2009-11-24Another one.Owain Ainsworth
"yup" henning@
2009-11-24More words of wisdom.Owain Ainsworth
ok henning@ dms@
2009-11-12fix memory leak found by parfait; ok jsg@Todd C. Miller
2009-10-28style(9) has all these fascist rules...Claudio Jeker
2009-08-12i am sorry to commit to userland from a kernel hackathonHenning Brauer
2009-07-07..couldn't resist..Jasper Lievisse Adriaanse
2009-06-23Escape ) to make "C-x )" spaced correctly in key list.Nicholas Marriott
"if it formats correctly, go for it" jmc@
2009-06-05swap function order to bring into scopeTheo de Raadt
2009-06-05emacs handles the undo of a region kill (C-w) differently than a line killKjell Wooding
(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
2009-06-05the theJason McIntyre
2009-06-04If a buffer is created with a name that starts and ends with an askeriskKjell Wooding
(e.g. *scratch*, *Completions*, *grep*) it is considered throwaway; i.e. the user will NOT be prompted to save changes when the buffer is killed.
2009-06-04Add the notion of an "ephemeral" popup, so we can flag a windowKjell Wooding
for destruction at a later date. (in the process, add a window flag field) This fixes an issue noted by maja: namely, the *completion* window that pops up when you try to complete a filename on buffer load would destroy any second window that you happened to have open. ok maja@
2009-06-04Fix problem where line numbers get out of sync on a region-kill (C-w).Kjell Wooding
Noticed and ok matthieu@
2009-06-04Rename w_flag to w_rflag. This is not a general purposeKjell Wooding
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.
2009-06-03Match comment to reality, whitespaceKjell Wooding
2009-06-02we were erroneously setting fill-column, even when the inputKjell Wooding
to set-fill-column was garbage. (common, since they keystroke is so close to find-file). Fix!
2009-06-02Fix up some comments to match realityKjell Wooding
2009-06-02Fix the long-standing crash when >NXNAME characters were insertedKjell Wooding
into minibuffer. Found and fixed by Martynas. Cleaned up a bit so that error messages display properly in the status line. Fixes Debian bug #414846
2009-04-26make djm less disappointedStuart Henderson
2009-04-26I am disappointed that the commit rate to this file is has slowed.Damien Miller
2008-12-23time to add a new one.Claudio Jeker
2008-12-17change the name displayed by the c-mode on the mode line to "c",Igor Sobrado
as other modes do, for consistency and to save a few chars. written with help from kjell@ ok kjell@
2008-12-17sort CFLAGS, SRCS and the list of compile-time options; while here,Igor Sobrado
add some missing full stops. ok kjell@
2008-11-15update the readme a bit by deleting most of the irrelevant info, such as msdosTed Unangst
support and who to mail for 5" floppies... ok kjell
2008-11-06add a description for the recently added c-mode.Igor Sobrado
ok jmc@
2008-09-15Expose the undo commands as proper mg functions.Kjell Wooding
This should have no functional change on undo, but it does facilitate testing undo behavior.
2008-09-15Enable dirty buffer detection in mg.Kjell Wooding
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
2008-08-27add a C-c target, so we can use it as a prefix for keybindings.Kjell Wooding
Now you can do something like: global-set-key "\^c\^c" compile in your ~/.mg
2008-07-30Replace GNU tutorial with public domain one, written from scratch byKjell Wooding
Mayukh Bose. Minor additions from me. Thanks!
2008-06-29documentation tweaks.Igor Sobrado
2008-06-18Don't free the buffer name until after you call adjustname.Kjell Wooding
Fixes a segfault that occurs when you write a file to an alternate name. Introduced by yours truly in 20060406. how did it last this long?
2008-06-16could not resist. OK ok buddy henningClaudio Jeker
2008-06-15first pass: it would be nice if mg users read over this page and sent usJason McIntyre
any fixes;
2008-06-15Typos, forgotten wordKjell Wooding
2008-06-15How about we actually document the 230-odd functions that make upKjell Wooding
mg now? Keymaps, too. I've guaranteed to have mucked up somewhere in here, but really - this man page can't really get less useful. Modes to come.
2008-06-14We do not need a whole MODE for blinking one character.Kjell Wooding
both emacsen automatically blink, so mg should too. This can be overridden in your ~/.mg by adding, e.g. global-set-key ")" self-insert-command So, I've eliminated blink mode, and renamed "blink-matching-paren-hack" to "blink-and-insert". It's not just for parens anyway. While I'm here, set up an empty (rescan) target for backtab, so I can bind something convenient to it; e.g. global-set-key "\e[Z" backward-char Finally, remove all references to Scribd. Theo doesn't hate this, though I would hesitate to call it an ok.
2008-06-14Add compile (c-C c-P) to the c-mode keymap (export from grep.c)Kjell Wooding
Also, attempt to make indent an atomic undo operation.
2008-06-14unf*ck undo.Kjell Wooding
No seriously. Reposition the cursor to the start of the redo position, like emacs. This gets us halfway to being emacs-finger-friendly. For the rest, introduce a rptcount variable to count successive invocations of the same function. This means undo will abort properly on C-g, and other such interruptions. This is a lot of diff for a simple-seeming problem. Emacs undo is hard.
2008-06-13One more "//" instead of "/" case. Hidden in a getcwd.Kjell Wooding
Noted, ok otto@
2008-06-13phessler noted that c-mode ignored blinking braces.Kjell Wooding
Add "c-handle-special-brace" which does a blink and indent, rather than just a selfinsert and indent
2008-06-13Allow selfinsert to be called with FFRAND; i.e. from anotherKjell Wooding
function. While here, tighten whitespace.