CVS: cvs.openbsd.org: src

2012-05-17 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/17 20:13:44

Modified files:
usr.bin/mg : cmode.c random.c 

Log message:
Allow no-tab-mode to compile. From James Turner.

note: no-tab-mode needs more work done before removing the NOTABs.



CVS: cvs.openbsd.org: src

2012-05-22 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/22 23:29:22

Modified files:
usr.bin/mg : fileio.c 

Log message:
Change how mg handles files beginning with a '~'.
Bring behaviour more into line with emacs.



CVS: cvs.openbsd.org: src

2012-05-24 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/24 22:56:58

Modified files:
usr.bin/mg : def.h extend.c file.c fileio.c 

Log message:
Remove static FILE pointer used for handling files in fileio.c. Pass
by reference instead. This allows the mg startup file to open other
files without unexpected things happening.

Discussed with Sunil Nimmagadda.



CVS: cvs.openbsd.org: src

2012-05-24 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/24 23:05:48

Modified files:
usr.bin/mg : main.c 

Log message:
Prepare mg buffers before startup file is parsed so multiple files can
be opened via the startup file. Having find-file, insert-file etc.. in
the startup file now work as you would expect.

Reviewed by Sunil Nimmagadda.



CVS: cvs.openbsd.org: src

2012-05-24 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/24 23:16:59

Modified files:
usr.bin/mg : search.c 

Log message:
Allow searching (C-s or C-r) to wrap around the ends of a buffer.
Even if the search string is located at the beginning or end of a
buffer.



CVS: cvs.openbsd.org: www

2012-05-25 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2012/05/25 05:34:23

Modified files:
faq: faq8.html 

Log message:
Put a reminder for DNS link/config once unbound is ready.
discussed with nick@ and sthen@



CVS: cvs.openbsd.org: src

2012-05-25 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/25 09:14:39

Modified files:
usr.bin/mg : basic.c 

Log message:
When paging down a buffer (C-v) stop earlier before having the last
line as the top line in the window. This emulates emacs behaviour.



CVS: cvs.openbsd.org: src

2012-05-25 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/25 09:29:13

Modified files:
usr.bin/mg : README tutorial 

Log message:
Move the windows section in the tutorial to a more sensible place
(next to buffers) and move the mg history into the README file which
seems a more sensible place as well.



CVS: cvs.openbsd.org: src

2012-05-25 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/25 09:41:09

Modified files:
usr.bin/mg : mg.1 

Log message:
Be consistent on how we describe key-strokes: UP-low (c-H -> C-h)



CVS: cvs.openbsd.org: src

2012-05-25 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/25 10:49:05

Modified files:
usr.bin/mg : tutorial 

Log message:
full-stops mainly.



CVS: cvs.openbsd.org: src

2012-05-28 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/28 23:40:36

Modified files:
usr.bin/mg : def.h 

Log message:
Increase the size of some window variables from char to int. This diff
improves mg on screens (xterms) with lots of lines.  Testing done by
naddy@ and myself.



CVS: cvs.openbsd.org: src

2012-05-28 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/28 23:52:46

Modified files:
usr.bin/mg : main.c 

Log message:
There is no need to use an *init* buffer if we go back and update
opened file(s)/*scratch* with default modes after they are open.
Also, pass buffer (bp) to edinit(), this fixes theo mode from the
command line (mg -f theo).



CVS: cvs.openbsd.org: src

2012-05-28 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/29 00:08:48

Modified files:
usr.bin/mg : main.c 

Log message:
There is no other reference to SYSCLEANUP in the src tree. Remove.



CVS: cvs.openbsd.org: src

2012-05-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/30 00:13:32

Modified files:
usr.bin/mg : basic.c 

Log message:
Reverse part of v1.131.  The end of buffer can still be reached so I
shouldn't have taken out the second check. Hopefully fix unpredicable
scrolling behaviour seen by mikeb@.



CVS: cvs.openbsd.org: src

2012-05-31 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/05/31 04:55:53

Modified files:
usr.bin/mg : basic.c 

Log message:
Currently, mg's cursor jumps from top to bottom of the screen as you
scroll upwards, make the cursor behave like emacs and stay at bottom
of window. Tested by mikeb@.



CVS: cvs.openbsd.org: src

2012-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/01 05:22:06

Modified files:
usr.bin/mg : basic.c 

Log message:
While scrolling, show a message and beep when you reach either end of
a buffer.



CVS: cvs.openbsd.org: src

2012-06-04 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/04 14:46:05

Modified files:
usr.bin/mg : theo.c 

Log message:
Open theo mode without splitting window in 2.



CVS: cvs.openbsd.org: src

2012-06-07 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/07 09:15:05

Modified files:
usr.bin/mg : Makefile README def.h funmap.c keymap.c mg.1 
 tags.c 
Added files:
usr.bin/mg : cscope.c 

Log message:
Add some cscope support to mg. From Sunil Nimmagadda.  Due to some
structural limitations in mg, mg doesn't behave exactly the same as
emacs cscope (see the README) but is still very usable.

man page bits reviewed by jmc@, otherwise tested and reviewed by
myself.



CVS: cvs.openbsd.org: src

2012-06-07 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/07 23:10:50

Modified files:
usr.bin/mg : basic.c 

Log message:
Fix bug where line-number counter would go a bit hay-wire when paging
up with only 1 line of the buffer visible.



CVS: cvs.openbsd.org: src

2012-06-08 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/08 07:41:16

Modified files:
usr.bin/top: top.c 

Log message:
Add checks for command line input (or the TOP environment var)
ommitted from 1.78.  Now a $ top -U -username -U username command will
behave the same as interactive mode. ok brynet@



CVS: cvs.openbsd.org: src

2012-06-08 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/08 15:21:58

Modified files:
usr.bin/mg : basic.c 

Log message:
>From an email to tech@:

Bit difficult to explain this one. If you have a file open that is 3
or 4 times longer than the length of the viewable window and are at
the bottom of the buffer then scroll up to the top using M-v, your
cursor should remain at the bottom left of the window once you reach
the top of the buffer.

mg behaves like this since the last couple of scrolling diffs I've
committed. However, and as an example, if you start with the window
viewing the top of a buffer and press C-v twice, then C-p four times
then M-v twice to scroll back to the top, you will find your cursor is
NOT at the bottom left of the window. tut tut. This diff makes the
cursor stay at the bottom left, like emacs.



CVS: cvs.openbsd.org: src

2012-06-11 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/11 12:30:03

Modified files:
usr.bin/mg : fileio.c 

Log message:
Change error message to reflect the correct filename: nname is 'New
name' as opposed to tname 'Temp name'



CVS: cvs.openbsd.org: src

2012-06-14 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/14 11:21:22

Modified files:
usr.bin/mg : def.h fileio.c funmap.c mg.1 

Log message:
Allow mg to save backup files to a users home directory.
Suggestions from eric@ and Sunil Nimmagadda.
Remarks deraadt@.



CVS: cvs.openbsd.org: src

2012-06-14 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/14 11:25:46

Modified files:
usr.bin/mg : README 

Log message:
Add paragraph about "non-standard" mg commands.



CVS: cvs.openbsd.org: src

2012-06-15 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/15 11:52:42

Modified files:
usr.bin/mg : fileio.c 

Log message:
Fixes a problem where if you try to open a file that doesn't exist and has
a name longer than LOGIN_NAME_MAX and also has a tilde at the front
e.g:

$ mg ~01234567890123456789012345678901

mg will give a "Login name too long" instead of opening a new buffer
named ~01234567890123456789012345678901



CVS: cvs.openbsd.org: src

2012-06-18 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/18 03:19:21

Modified files:
usr.bin/mg : file.c 

Log message:
Removing this 'if' statement allows dired buffers to not have their
forward and backward line pointers pointing to the same line, causing
mg to spin when asked to split the window. This happens if a directory
is opened via the command line sequentially first, and other windows
need to opened afterwards (for other files).

Since the information within this 'if' statement is updated later for
files and directories I can see no problem with removing this. No
regressions viewable either.

Problem reported by and diff tested by jasper@



CVS: cvs.openbsd.org: src

2012-06-18 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/18 03:26:03

Modified files:
usr.bin/mg : basic.c 

Log message:
When using M-> Place cursor at the bottom of the window (minus 3
lines) like emacs, instead of middle of page.



CVS: cvs.openbsd.org: src

2012-06-18 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/18 05:35:31

Modified files:
usr.bin/mg : mg.1 

Log message:
Add ~/.mg.d to FILES. Reviewed by jmc@



CVS: cvs.openbsd.org: src

2012-06-18 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/18 07:55:24

Modified files:
usr.bin/mg : mg.1 

Log message:
Add a BACKUP FILES section.
Suggested by jmc@
He will review further.



CVS: cvs.openbsd.org: src

2012-06-21 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/06/21 11:55:10

Modified files:
usr.bin/mg : mg.1 

Log message:
Shuffle leave-tmpdir-backups up to correct place in alphabetic order.
(the command name changed at one point from move-... -> leave-...)



CVS: cvs.openbsd.org: src

2012-07-02 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/07/02 02:08:31

Modified files:
usr.bin/mg : cscope.c tags.c 

Log message:
Maintain mg's Public Domain license heritage.

Sunil Nimmagadda agrees.



CVS: cvs.openbsd.org: src

2012-07-09 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/07/10 00:28:12

Modified files:
usr.bin/mg : fileio.c 

Log message:
Fix an outstanding debian bug: #658539

"looks good" kjell



CVS: cvs.openbsd.org: www

2012-07-09 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2012/07/10 00:34:46

Modified files:
.  : cvsync.html 

Log message:
Remove dead link and small grammar fix.



CVS: cvs.openbsd.org: www

2012-08-27 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2012/08/27 09:42:11

Modified files:
.  : plus.html 

Log message:
2 x . -> ,.



CVS: cvs.openbsd.org: src

2012-08-28 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/08/28 05:37:49

Modified files:
usr.bin/mg : file.c 

Log message:
Make mg behave more like emacs with regards to opening a new buffer:

1. If parent directory is read-only, make buffer read-only.
2. If parent doesn't exist; give user a message and create buffer
as readable.

Reviewed by Sunil Nimmagadda.
ok jasper@



CVS: cvs.openbsd.org: src

2012-08-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/08/30 00:09:12

Modified files:
usr.bin/mg : buffer.c file.c main.c 

Log message:
This diff allows the user to decide what to do with buffers that
experience write errors during C-x C-c (exiting mg). Emacs stops the
exiting process when it encounters problem buffers and lets the user
decide what to do, currently mg continues exiting and the contents of
these buffers are lost. This diff bring mg more into line with emacs.

Review and observations from Sunil Nimmagadda.



CVS: cvs.openbsd.org: src

2012-08-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/08/30 00:25:30

Modified files:
usr.bin/mg : buffer.c 

Log message:
Some line counter goodness from Florian Obser.

If you open an already open buffer via C-x C-f, odd things can happen
with the cursor and line counter for that buffer. This diff stops that
behaviour and no regressions viewable.



CVS: cvs.openbsd.org: src

2012-08-30 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/08/30 15:36:48

Modified files:
usr.bin/mg : file.c 

Log message:
oops. need to reset errno. Otherwise we can't save a new file in a
directory where permissions are ok.



CVS: cvs.openbsd.org: src

2012-08-31 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/08/31 12:06:42

Modified files:
usr.bin/mg : buffer.c def.h main.c 

Log message:
Allow an error message for a filename that is too long to be seen and
let the error stop mg exiting when C-x C-c is called.



CVS: cvs.openbsd.org: www

2012-09-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2012/09/01 12:48:38

Modified files:
.  : want.html 

Log message:
1.5 hour commute, something like this would be useful.



CVS: cvs.openbsd.org: www

2012-09-05 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2012/09/05 13:16:19

Modified files:
.  : 52.html 

Log message:
Add mg's coolest new feature in 20 years.



CVS: cvs.openbsd.org: src

2012-09-07 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/09/07 13:01:56

Modified files:
usr.bin/mg : search.c 

Log message:
Make C-r not screw up the line counter if the pattern ends up not
matching.

More goodness from Florian Obser. (and a tweak by me)



CVS: cvs.openbsd.org: www

2012-09-07 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2012/09/07 13:12:46

Modified files:
.  : 52.html 

Log message:
Add mg's new cscope support.



CVS: cvs.openbsd.org: src

2012-09-25 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2012/09/25 13:16:52

Modified files:
usr.bin/mg : echo.c 

Log message:
Stop the space char completing a file name. This mimics more recent
versions of emacs.

kjell and jasper@ agree.



CVS: cvs.openbsd.org: www

2013-02-10 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2013/02/10 05:15:56

Modified files:
.  : want.html 

Log message:
I have one of these now.



CVS: cvs.openbsd.org: src

2013-02-10 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/02/10 08:38:18

Modified files:
usr.bin/mg : file.c tutorial 

Log message:
Grammar nits.



CVS: cvs.openbsd.org: src

2013-02-12 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/02/12 13:24:32

Modified files:
usr.bin/last   : last.c 

Log message:
Reflect the -f option in last's output. Original diff from Jacob L. Leifman.
Other feedback from Callum Davies and sthen@
ok mpi@ ian@ kettenis@



CVS: cvs.openbsd.org: src

2013-02-17 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/02/17 08:42:21

Modified files:
usr.bin/mg : paragraph.c 

Log message:
Fix line counting when using forward-paragraph and backward-paragraph.
Feedback and ok florian@



CVS: cvs.openbsd.org: www

2013-02-18 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2013/02/18 14:48:41

Modified files:
.  : security.html 

Log message:
Link to 5.2 advisories.



CVS: cvs.openbsd.org: www

2013-02-26 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2013/02/26 14:41:05

Modified files:
.  : 53.html 

Log message:
sp configureable -> configurable



CVS: cvs.openbsd.org: src

2013-05-16 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/16 22:59:29

Modified files:
usr.bin/mg : dir.c 

Log message:
If directory exists when trying to create a new one, warn user.

ok jasper@



CVS: cvs.openbsd.org: src

2013-05-17 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/17 14:35:49

Modified files:
usr.bin/mg : tutorial 

Log message:
Describe the file -> buffer semantic.

Reviewed and suggestions from jmc@.



CVS: cvs.openbsd.org: src

2013-05-17 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/17 23:51:51

Modified files:
usr.bin/mg : tutorial 

Log message:
Update last updated date.



CVS: cvs.openbsd.org: src

2013-05-17 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/17 23:53:59

Modified files:
usr.bin/mg : fileio.c 

Log message:
and and -> and



CVS: cvs.openbsd.org: src

2013-05-18 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/18 05:23:29

Modified files:
usr.bin/mg : dir.c 

Log message:
Use adjustname() for path. ok jasper@



CVS: cvs.openbsd.org: src

2013-05-19 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/19 04:27:11

Modified files:
usr.bin/mg : paragraph.c 

Log message:
Make the cursor position when moving backwards by paragraph behave the
same as emacs: move to line above paragraph. ok florian@



CVS: cvs.openbsd.org: src

2013-05-22 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/22 13:23:45

Modified files:
usr.bin/mg : def.h funmap.c keymap.c mg.1 region.c 

Log message:
Shuffle shell-command-on-region around to give shell-command.
ok florian@ jasper@
Testing Sunil Nimmagadda



CVS: cvs.openbsd.org: src

2013-05-25 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/25 07:33:47

Modified files:
bin/pax: cpio.c 

Log message:
Fix typo. From Caspar Schutijser via tech@.



CVS: cvs.openbsd.org: src

2013-05-27 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/27 12:16:32

Modified files:
usr.bin/mg : mg.1 

Log message:
Add dired commands. ok and suggestions jmc@



CVS: cvs.openbsd.org: src

2013-05-27 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/27 12:24:44

Modified files:
usr.bin/mg : dired.c 

Log message:
Add dired-create-directory to function maps.



CVS: cvs.openbsd.org: src

2013-05-28 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/28 12:35:10

Modified files:
usr.bin/mg : dired.c 

Log message:
In dired mode the commands:

dired-copy-file
dired-rename-file
dired-create-directory

do not refresh the dired buffer. Now they do.



CVS: cvs.openbsd.org: src

2013-05-28 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/28 23:28:49

Modified files:
usr.bin/mg : dired.c 

Log message:
Use same method as elsewhere in mg to inidicate a failure of strdup.



CVS: cvs.openbsd.org: src

2013-05-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/29 13:16:48

Modified files:
usr.bin/mg : dired.c 

Log message:
Make the mg dired commands:

dired-flag-file-deleted
dired-backup-unflag
dired-unflag

behave more like emacs when the cursor stays on the first character of
the file name.



CVS: cvs.openbsd.org: src

2013-05-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/29 22:17:25

Modified files:
usr.bin/mg : def.h dir.c dired.c 

Log message:
Reuse the makedir() function in dir.c for dired's
dired-create-directory command.
ok jasper@



CVS: cvs.openbsd.org: src

2013-05-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/29 22:27:18

Modified files:
usr.bin/mg : dired.c 

Log message:
Use adjustname() before trying to use the path to be dired.
ok jasper@



CVS: cvs.openbsd.org: src

2013-05-30 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/30 11:43:43

Modified files:
usr.bin/mg : dired.c 

Log message:
Use adjustname() for the dired-copy-file and dired-rename-file
commands.



CVS: cvs.openbsd.org: src

2013-05-31 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/05/31 12:03:45

Modified files:
usr.bin/mg : Makefile basic.c def.h display.c echo.c 
 funmap.c kbd.c main.c match.c mg.1 re_search.c 
 search.c window.c 
Added files:
usr.bin/mg : bell.c 

Log message:
Make the system bell toggleable via 'audible-bell', and if switched
off, make available an alternative 'visible-bell'.

ok florian@ jasper@ Feedback Sunil Nimmagadda.



CVS: cvs.openbsd.org: src

2013-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/01 03:46:31

Modified files:
usr.bin/mg : paragraph.c 

Log message:
Adjust M-} (forward-paragraph) to behave like emacs.
Bug fix and ok florian@



CVS: cvs.openbsd.org: src

2013-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/01 03:50:47

Modified files:
usr.bin/mg : paragraph.c 

Log message:
tidy-up int declarations as suggested by florian@



CVS: cvs.openbsd.org: src

2013-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/01 04:17:01

Modified files:
usr.bin/mg : line.c 

Log message:
The k*() functions were moved to yank.c in 2005. Update the comment to
reflect this.



CVS: cvs.openbsd.org: src

2013-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/01 04:23:40

Modified files:
usr.bin/mg : paragraph.c 

Log message:
Update the forw/backpara comments to reflect recent changes.



CVS: cvs.openbsd.org: src

2013-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/01 08:27:32

Modified files:
usr.bin/mg : paragraph.c 

Log message:
Make 'kill-paragraph' behave like emacs. ok florian@



CVS: cvs.openbsd.org: src

2013-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/01 08:47:08

Modified files:
usr.bin/mg : mg.1 

Log message:
Add dired key bindings. ok and advice jmc@



CVS: cvs.openbsd.org: src

2013-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/01 10:27:56

Modified files:
usr.bin/mg : undo.c 

Log message:
If popbuf() fails, calling function should return FALSE.



CVS: cvs.openbsd.org: src

2013-06-01 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/01 11:31:11

Modified files:
usr.bin/mg : grep.c 

Log message:
Remove 'lint' mode. lint(1) is gone, and the mode was not documented
anywhere.
ok jasper@ florian@



CVS: cvs.openbsd.org: src

2013-06-02 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/02 03:53:42

Modified files:
usr.bin/mg : dired.c mg.1 

Log message:
Rename the dired-* commands to be like the emacs equivalents.



CVS: cvs.openbsd.org: src

2013-06-02 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/02 03:57:23

Modified files:
usr.bin/mg : dired.c 

Log message:
Fix return value in refreshbuffer.



CVS: cvs.openbsd.org: src

2013-06-02 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/02 04:09:21

Modified files:
usr.bin/mg : buffer.c dired.c mg.1 

Log message:
Add the 'quit-window' dired command and receive a basic English lesson
from jmc@ again.



CVS: cvs.openbsd.org: www

2013-06-02 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2013/06/02 12:52:23

Modified files:
faq: current.html 

Log message:
Add mg's dired command changes. Suggested by jasper@.



CVS: cvs.openbsd.org: www

2013-06-02 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2013/06/02 12:58:56

Modified files:
faq: faq8.html 

Log message:
make the reference to emacs more general.



CVS: cvs.openbsd.org: src

2013-06-02 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/02 23:10:59

Modified files:
usr.bin/mg : dired.c mg.1 

Log message:
Add the 'g' character and dired-revert to refresh the dired buffer.
ok jmc@ for man page.



CVS: cvs.openbsd.org: src

2013-06-14 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/14 13:49:19

Modified files:
usr.sbin/bgpd  : bgpd.8 

Log message:
grammar. ok jmc@



CVS: cvs.openbsd.org: src

2013-06-15 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/06/15 13:58:39

Modified files:
usr.bin/mg : paragraph.c 

Log message:
Move upwards passed multiple lines with no characters instead of
stopping when first line with no characters is found.



CVS: cvs.openbsd.org: src

2013-12-19 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/12/19 12:04:56

Modified files:
usr.bin/mg : dired.c 

Log message:
Make dired-unmark-backward behave the same as emacs: move cursor up a
line then remove 'D' instead of remove 'D' then move up a line.
input/ok florian@



CVS: cvs.openbsd.org: src

2013-12-19 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/12/19 12:09:27

Modified files:
usr.bin/mg : mg.1 

Log message:
Amend dired-unmark-backward to fit with recent change and
include DEL in DIRED KEY BINDINGS.



CVS: cvs.openbsd.org: src

2013-12-20 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/12/20 08:49:00

Modified files:
usr.bin/mg : dired.c 

Log message:
Remove a spurious message that appears in dired mode if you press a
key without a function bound to it.
ok florian@



CVS: cvs.openbsd.org: src

2013-12-23 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2013/12/23 07:58:16

Modified files:
usr.bin/mg : buffer.c def.h file.c 

Log message:
Move findbuffer() to buffer.c.
ok florian@



CVS: cvs.openbsd.org: src

2014-03-14 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/03/14 04:02:52

Modified files:
usr.bin/mg : file.c 

Log message:
Check if buffer is to be saved as a directory.
ok florian@



CVS: cvs.openbsd.org: src

2014-03-20 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/03/20 01:47:29

Modified files:
usr.bin/mg : basic.c buffer.c cscope.c dir.c dired.c echo.c 
 extend.c file.c fileio.c grep.c line.c macro.c 
 modes.c paragraph.c re_search.c region.c 
 search.c tags.c ttyio.c undo.c window.c word.c 
 yank.c 

Log message:
Add some missing dobeeps.
ok florian@



CVS: cvs.openbsd.org: src

2014-03-22 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/03/22 04:00:58

Modified files:
usr.bin/mg : tags.c 

Log message:
If no default tag defined, still let user input a tag to find.
>From Sunil Nimmagadda.



CVS: cvs.openbsd.org: src

2014-03-22 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/03/22 05:05:37

Modified files:
usr.bin/mg : bell.c def.h main.c 

Log message:
donebell is no longer required.



CVS: cvs.openbsd.org: src

2014-03-26 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/03/26 16:02:06

Modified files:
usr.bin/mg : mg.1 random.c 

Log message:
Previously, C-t (transpose two chars) did not behave the same as
Emacs.  This diff makes mg behave more so. Though new-line characters
are treated as any other.

Difference from emacs observed and reported by deraadt@. First diff
tested and ridiculed by deraadt@. Second diff not tested and not
ridiculed by deraadt@ but at least email responded to.



CVS: cvs.openbsd.org: src

2014-03-31 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/03/31 12:00:58

Modified files:
usr.bin/mg : dir.c 

Log message:
Allow more than one level of directories to be create via
make-directory again. ok florian@ jasper@



CVS: cvs.openbsd.org: src

2014-03-31 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/03/31 15:29:59

Modified files:
usr.bin/mg : file.c 

Log message:
Tidy up. No functional change.



CVS: cvs.openbsd.org: src

2014-04-02 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/04/02 14:32:00

Modified files:
usr.bin/mg : extend.c mg.1 

Log message:
Add the '#' character as a comment character in the startup file.
Include ';' and '#' into man page.  ok deraadt@ phessler@



CVS: cvs.openbsd.org: src

2014-04-03 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2014/04/03 14:17:12

Modified files:
usr.bin/mg : def.h dir.c dired.c file.c 

Log message:
When finding a file in a non-existant directory:

C-x C-f ~/no/dir/here/fn

offer to make the directory by pressing 'y', instead of suggesting the
make-directory command. ok jasper@



CVS: cvs.openbsd.org: src

2015-10-13 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2015/10/13 14:10:09

Modified files:
usr.bin/mg : dired.c 

Log message:
Check if a file name can be extracted from a line before marking for
deletion.



CVS: cvs.openbsd.org: www

2015-10-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:www
Changes by: l...@cvs.openbsd.org2015/10/29 02:26:44

Modified files:
.  : plus58.html 

Log message:
5.8 has been released. ok jasper@



CVS: cvs.openbsd.org: src

2015-10-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2015/10/29 13:46:47

Modified files:
usr.bin/mg : def.h dired.c file.c main.c 

Log message:
Fix opening dired from the command line. Incorrect cursor placement
and make the error more useful when there is a problem opening a
directory. Reported by and ok jasper@



CVS: cvs.openbsd.org: src

2015-10-29 Thread Mark Lumsden
CVSROOT:/cvs
Module name:src
Changes by: l...@cvs.openbsd.org2015/10/29 14:20:49

Modified files:
usr.bin/mg : window.c 

Log message:
I assume KRANDOM was the previous name for FFRAND. KRANDOM is not in
the mg source now.



  1   2   3   4   >