Up to [local] / src / usr.bin / mg
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.104 / (download) - annotate - [select for diffs], Tue Jun 4 06:51:15 2024 UTC (6 days, 4 hours ago) by op
Branch: MAIN
CVS Tags: HEAD
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored)
now that we have dired-up-directory, use it in dired-jump too it's handy to be able to do C-x C-j (dired-jump) repeatedly to navigate upwards starting from a buffer, and follows GNU Emacs behaviour too.
Revision 1.103 / (download) - annotate - [select for diffs], Tue Jun 4 06:48:34 2024 UTC (6 days, 4 hours ago) by op
Branch: MAIN
Changes since 1.102: +35 -4 lines
Diff to previous 1.102 (colored)
add dired-up-directory bound to ^ to go up on directory in dired buffers diff from Dante Catalfamo (date [at] lambda [dot] cx) with some minor style nits and the manpage bits from me. ok florian@
Revision 1.102 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:11 2023 UTC (15 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3
Changes since 1.101: +1 -15 lines
Diff to previous 1.101 (colored)
Delete obsolete /* ARGSUSED */ lint comments. ok miod@ millert@
Revision 1.101 / (download) - annotate - [select for diffs], Sat Oct 15 17:01:14 2022 UTC (19 months, 3 weeks ago) by op
Branch: MAIN
Changes since 1.100: +2 -2 lines
Diff to previous 1.100 (colored)
replace ewprintf("") calls with eerase(): no functional difference. ok florian@
Revision 1.100 / (download) - annotate - [select for diffs], Sun May 2 14:13:17 2021 UTC (3 years, 1 month ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.99: +2 -1 lines
Diff to previous 1.99 (colored)
dired-shell-command is listed in the man page under 'DIRED KEY BINDINGS' but not under 'DIRED COMMANDS'. Add it in.
Revision 1.99 / (download) - annotate - [select for diffs], Tue Apr 20 10:02:50 2021 UTC (3 years, 1 month ago) by lum
Branch: MAIN
Changes since 1.98: +54 -6 lines
Diff to previous 1.98 (colored)
Add 'dired-jump' from Philip K. <philip@warpmail.net> sent to tech@ over a year ago. Comments and testing from gkoehler@. Thanks to both. Also, some modifications from me.
Revision 1.98 / (download) - annotate - [select for diffs], Fri Mar 5 16:16:53 2021 UTC (3 years, 3 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9
Changes since 1.97: +5 -2 lines
Diff to previous 1.97 (colored)
If there is a problem with opening a directory via M-x dired, let the user know. EACCESS is currently accounted for, but nothing else.
Revision 1.97 / (download) - annotate - [select for diffs], Mon Mar 1 10:51:14 2021 UTC (3 years, 3 months ago) by lum
Branch: MAIN
Changes since 1.96: +4 -3 lines
Diff to previous 1.96 (colored)
Put the hardcoded '\n' character which is found throughout mg into a buffer specific variable. The diff should not produce any behavourial changes in mg.
Revision 1.96 / (download) - annotate - [select for diffs], Fri Feb 26 07:21:23 2021 UTC (3 years, 3 months ago) by lum
Branch: MAIN
Changes since 1.95: +10 -7 lines
Diff to previous 1.95 (colored)
Some more improvements from Joachim Wiberg's version of mg. check before using variable in list remove unnecessary variable declaration check value of adjustname() add a '< 0' return value of snprintf
Revision 1.95 / (download) - annotate - [select for diffs], Fri Feb 26 01:17:21 2021 UTC (3 years, 3 months ago) by lum
Branch: MAIN
Changes since 1.94: +8 -4 lines
Diff to previous 1.94 (colored)
Some improvements from Joachim Wiberg's version of mg. check value of adjustname() use int for return value of snprintf
Revision 1.94 / (download) - annotate - [select for diffs], Wed Feb 24 13:58:46 2021 UTC (3 years, 3 months ago) by lum
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)
snprintf() does indeed return an int. From an email Joachim Nilsson sent to tech@ many moons ago. Sorry for the delay.
Revision 1.93 / (download) - annotate - [select for diffs], Thu Jul 11 18:20:18 2019 UTC (4 years, 11 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.92: +19 -19 lines
Diff to previous 1.92 (colored)
Allow functions that have 1 or more parameters receive and process multiple arguments when evaluated in a startup file or via one of the 'eval' commands. This diff does treat the '(' and ')' chars differently during evaluation than previously, in-so-far as they are not ignored if they are at the end or start of a line now. However, even though these characters are not ignored, this diff should not change the behaviour of an extant .mg file, with '(' and ')' chars at the end and start of a line. This situation is accomodated for in this diff (with limited testing though).
Revision 1.92 / (download) - annotate - [select for diffs], Mon Jul 1 19:36:17 2019 UTC (4 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.91: +10 -3 lines
Diff to previous 1.91 (colored)
Check if user tries to go to current directory in dired-goto-file.
Revision 1.91 / (download) - annotate - [select for diffs], Mon Jul 1 08:56:36 2019 UTC (4 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.90: +53 -3 lines
Diff to previous 1.90 (colored)
add dired-goto-file
Revision 1.90 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:02 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
Revision 1.89 / (download) - annotate - [select for diffs], Thu Jun 27 16:55:08 2019 UTC (4 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.88: +8 -0 lines
Diff to previous 1.88 (colored)
Display an error message if trying to copy or rename a file to itself.
Revision 1.88 / (download) - annotate - [select for diffs], Thu Jun 27 16:13:01 2019 UTC (4 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.87: +3 -1 lines
Diff to previous 1.87 (colored)
Print out message after copying a file.
Revision 1.87 / (download) - annotate - [select for diffs], Thu Jun 27 16:08:12 2019 UTC (4 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.86: +16 -1 lines
Diff to previous 1.86 (colored)
This diff uses the existing filename as the new filename if none is specified while renaming in dired mode, and new file location is in a different directory.
Revision 1.86 / (download) - annotate - [select for diffs], Wed Jun 26 16:48:00 2019 UTC (4 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.85: +14 -1 lines
Diff to previous 1.85 (colored)
This diff uses the existing filename as the new filename if none is specified while copying in dired mode.
Revision 1.85 / (download) - annotate - [select for diffs], Tue Jun 25 13:51:47 2019 UTC (4 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.84: +4 -3 lines
Diff to previous 1.84 (colored)
Add 'dired-revert' to the dired funmap, the 'g' command already works but I missed adding the command name. Also, list the commands in alphabetical order.
Revision 1.84 / (download) - annotate - [select for diffs], Sun Dec 30 23:09:58 2018 UTC (5 years, 5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.83: +1 -2 lines
Diff to previous 1.83 (colored)
Delete unnecessary <libgen.h> #includes ok deraadt@
Revision 1.83 / (download) - annotate - [select for diffs], Fri Oct 7 00:17:20 2016 UTC (7 years, 8 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)
Switch a SLIST_FOREACH loop containing SLIST_REMOVE to SLIST_FOREACH_SAFE. ok lum@ sunil@
Revision 1.82 / (download) - annotate - [select for diffs], Sat Jan 2 10:39:19 2016 UTC (8 years, 5 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.81: +17 -3 lines
Diff to previous 1.81 (colored)
Add dired-find-alternate-file.
Revision 1.81 / (download) - annotate - [select for diffs], Fri Dec 11 20:21:23 2015 UTC (8 years, 6 months ago) by mmcc
Branch: MAIN
Changes since 1.80: +2 -3 lines
Diff to previous 1.80 (colored)
Remove NULL-checks before free().
Revision 1.80 / (download) - annotate - [select for diffs], Thu Oct 29 19:46:47 2015 UTC (8 years, 7 months ago) by lum
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)
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@
Revision 1.79 / (download) - annotate - [select for diffs], Tue Oct 13 20:10:09 2015 UTC (8 years, 7 months ago) by lum
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)
Check if a file name can be extracted from a line before marking for deletion.
Revision 1.78 / (download) - annotate - [select for diffs], Mon Oct 12 19:08:39 2015 UTC (8 years, 8 months ago) by lum
Branch: MAIN
Changes since 1.77: +179 -9 lines
Diff to previous 1.77 (colored)
Maintain a list of files marked for deletion while refreshing a dired buffer. Previously, when refreshing the buffer the files marked for deletion would be lost. Since the relationship between the files that have been marked for deletion and those that exist on disk is volatile, I have chosen to implement the discovery of marked files during the refresh function as opposed to maintaining a dired buffer specific list.
Revision 1.77 / (download) - annotate - [select for diffs], Mon Sep 28 11:56:17 2015 UTC (8 years, 8 months ago) by lum
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)
Make dired mode treat a double '/' in a path like fundamental mode. Problem reported by jasper@ and ok jasper@
Revision 1.76 / (download) - annotate - [select for diffs], Sat Sep 26 21:51:58 2015 UTC (8 years, 8 months ago) by jasper
Branch: MAIN
Changes since 1.75: +7 -7 lines
Diff to previous 1.75 (colored)
whitespace
Revision 1.75 / (download) - annotate - [select for diffs], Thu Sep 24 18:20:52 2015 UTC (8 years, 8 months ago) by lum
Branch: MAIN
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored)
Fix where the cursor is positioned after expunging files. ok jasper@
Revision 1.74 / (download) - annotate - [select for diffs], Wed Sep 23 05:03:03 2015 UTC (8 years, 8 months ago) by lum
Branch: MAIN
Changes since 1.73: +21 -4 lines
Diff to previous 1.73 (colored)
fix line number handling in dired delete functions.
Revision 1.73 / (download) - annotate - [select for diffs], Mon Sep 21 06:59:54 2015 UTC (8 years, 8 months ago) by lum
Branch: MAIN
Changes since 1.72: +11 -7 lines
Diff to previous 1.72 (colored)
If you open the same directory twice in dired mode, mg does not behave correctly. In effect what should happen is the existing dired buffer is brought to the fore, and if the directory contents has changed inform the user. ok sunil@
Revision 1.72 / (download) - annotate - [select for diffs], Mon Sep 14 16:37:19 2015 UTC (8 years, 8 months ago) by lum
Branch: MAIN
Changes since 1.71: +6 -2 lines
Diff to previous 1.71 (colored)
Calculate the correct line number when opening in dired mode. ok florian@
Revision 1.71 / (download) - annotate - [select for diffs], Thu Mar 19 21:48:05 2015 UTC (9 years, 2 months ago) by bcallah
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.70: +6 -13 lines
Diff to previous 1.70 (colored)
More unifdef cleanup: -UDIRED_XMAPS and -UFUND_XMAPS: you can't build mg the other way. -DTIOCGWINSZ: you have this if you have term.h Remove a #define TERMCAP which isn't being used. Remove defines for NDIRED_XMAPS, NFUND_XMAPS, and IMAPEXT. They are all defined to be 0 and are only ever used in addition. We don't need to add 0. Simply lines that were using those defines. ok florian@
Revision 1.70 / (download) - annotate - [select for diffs], Thu Mar 19 21:22:15 2015 UTC (9 years, 2 months ago) by bcallah
Branch: MAIN
Changes since 1.69: +15 -11 lines
Diff to previous 1.69 (colored)
Clean up the includes in mg. This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
Revision 1.69 / (download) - annotate - [select for diffs], Tue Dec 30 22:05:32 2014 UTC (9 years, 5 months ago) by bcallah
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)
Remove some checks that will always evaluate to true. Noticed by a very recent clang. ok schwarze@ lum@
Revision 1.68 / (download) - annotate - [select for diffs], Sun Nov 16 04:16:41 2014 UTC (9 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.67: +3 -2 lines
Diff to previous 1.67 (colored)
Stop using <sys/param.h>; replace MAXPATHLEN with PATH_MAX, stop using MAX(), and pull in <limits.h> for *_MAX constants. inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com) ok bcallah@
Revision 1.67 / (download) - annotate - [select for diffs], Thu Apr 3 20:17:12 2014 UTC (10 years, 2 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)
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@
Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 20 07:47:29 2014 UTC (10 years, 2 months ago) by lum
Branch: MAIN
Changes since 1.65: +20 -2 lines
Diff to previous 1.65 (colored)
Add some missing dobeeps. ok florian@
Revision 1.65 / (download) - annotate - [select for diffs], Fri Dec 20 15:49:00 2013 UTC (10 years, 5 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)
Remove a spurious message that appears in dired mode if you press a key without a function bound to it. ok florian@
Revision 1.64 / (download) - annotate - [select for diffs], Thu Dec 19 19:04:56 2013 UTC (10 years, 5 months ago) by lum
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)
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@
Revision 1.63 / (download) - annotate - [select for diffs], Mon Jun 3 05:10:59 2013 UTC (11 years ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.62: +16 -3 lines
Diff to previous 1.62 (colored)
Add the 'g' character and dired-revert to refresh the dired buffer. ok jmc@ for man page.
Revision 1.62 / (download) - annotate - [select for diffs], Sun Jun 2 10:09:21 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.61: +11 -2 lines
Diff to previous 1.61 (colored)
Add the 'quit-window' dired command and receive a basic English lesson from jmc@ again.
Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 2 09:57:23 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)
Fix return value in refreshbuffer.
Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 2 09:53:42 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.59: +7 -7 lines
Diff to previous 1.59 (colored)
Rename the dired-* commands to be like the emacs equivalents.
Revision 1.59 / (download) - annotate - [select for diffs], Thu May 30 17:43:43 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.58: +14 -8 lines
Diff to previous 1.58 (colored)
Use adjustname() for the dired-copy-file and dired-rename-file commands.
Revision 1.58 / (download) - annotate - [select for diffs], Thu May 30 04:27:18 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.57: +6 -6 lines
Diff to previous 1.57 (colored)
Use adjustname() before trying to use the path to be dired. ok jasper@
Revision 1.57 / (download) - annotate - [select for diffs], Thu May 30 04:17:25 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.56: +7 -16 lines
Diff to previous 1.56 (colored)
Reuse the makedir() function in dir.c for dired's dired-create-directory command. ok jasper@
Revision 1.56 / (download) - annotate - [select for diffs], Wed May 29 19:16:48 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.55: +4 -7 lines
Diff to previous 1.55 (colored)
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.
Revision 1.55 / (download) - annotate - [select for diffs], Wed May 29 05:28:48 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.54: +5 -3 lines
Diff to previous 1.54 (colored)
Use same method as elsewhere in mg to inidicate a failure of strdup.
Revision 1.54 / (download) - annotate - [select for diffs], Tue May 28 18:35:10 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.53: +31 -4 lines
Diff to previous 1.53 (colored)
In dired mode the commands: dired-copy-file dired-rename-file dired-create-directory do not refresh the dired buffer. Now they do.
Revision 1.53 / (download) - annotate - [select for diffs], Mon May 27 18:24:44 2013 UTC (11 years ago) by lum
Branch: MAIN
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)
Add dired-create-directory to function maps.
Revision 1.52 / (download) - annotate - [select for diffs], Sat Nov 3 15:36:03 2012 UTC (11 years, 7 months ago) by haesbaert
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.51: +4 -3 lines
Diff to previous 1.51 (colored)
Don't leak a file descriptor when testing for permissions, also make sure directory is executable, otherwise we can't list it. Found by and original diff from RustyBSD. While here, strlen returns a size_t not an int. ok florian.
Revision 1.51 / (download) - annotate - [select for diffs], Wed Mar 14 13:56:35 2012 UTC (12 years, 2 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2
Changes since 1.50: +1 -9 lines
Diff to previous 1.50 (colored)
Remove the NO_HELP conditional directives. If defined, mg will not compile and has not done so for numerous years. Not hard to fix, but just remove anyway. ok kjell@ millert@
Revision 1.50 / (download) - annotate - [select for diffs], Wed Aug 31 03:40:53 2011 UTC (12 years, 9 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.49: +114 -84 lines
Diff to previous 1.49 (colored)
Allow dired mode to open files regardless of characters in filename, from Henri Kemppainen. Tested, reviewed and a tweak each from Loganaden Velvindron and myself. ok jasper@
Revision 1.49 / (download) - annotate - [select for diffs], Mon Aug 29 11:02:06 2011 UTC (12 years, 9 months ago) by lum
Branch: MAIN
Changes since 1.48: +111 -26 lines
Diff to previous 1.48 (colored)
In dired mode, make point move up and down first character of file name. Also add some missing keybindings. Initial diff and numerous revisions from Loganaden Velvindron, contributions from Henri Kemppainen and myself. Much testing done by Nima Hoda. ok jasper@
Revision 1.48 / (download) - annotate - [select for diffs], Sun Jan 23 00:45:03 2011 UTC (13 years, 4 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9
Changes since 1.47: +21 -13 lines
Diff to previous 1.47 (colored)
Wrap basename,dirname with xbasename, xdirname funtions, which have fewer special cases, and use the strlcpy/strlcat src/dst/buffer len semantic. More portable to boot. Discussion and feedback from Henri Kemppainen
Revision 1.47 / (download) - annotate - [select for diffs], Tue Jan 18 17:35:42 2011 UTC (13 years, 4 months ago) by lum
Branch: MAIN
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)
Add missing prototypes and move dired.c to "extensions" in Makefile. ok kjell@
Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 26 16:18:43 2010 UTC (13 years, 11 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.45: +23 -3 lines
Diff to previous 1.45 (colored)
From the Loganaden Velvindron: 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!
Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 4 23:39:37 2009 UTC (15 years ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)
Add the notion of an "ephemeral" popup, so we can flag a window 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@
Revision 1.44 / (download) - annotate - [select for diffs], Thu Jun 4 02:23:37 2009 UTC (15 years ago) by kjell
Branch: MAIN
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored)
Rename w_flag to w_rflag. This is not a general purpose 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.
Revision 1.43 / (download) - annotate - [select for diffs], Tue Sep 11 15:47:17 2007 UTC (16 years, 9 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.42: +2 -5 lines
Diff to previous 1.42 (colored)
use strcspn to properly overwrite '\n' in fgets returned buffer ok pyr@, ray@, millert@, moritz@, chl@
Revision 1.42 / (download) - annotate - [select for diffs], Wed Nov 1 06:02:29 2006 UTC (17 years, 7 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.41: +5 -2 lines
Diff to previous 1.41 (colored)
Don't overwrite line[strlen(line) - 1] when line is zero-length. Initial patch by Charles Longeau <chl at tuxfamily dot org>. OK kjell@.
Revision 1.41 / (download) - annotate - [select for diffs], Tue Jul 25 08:27:09 2006 UTC (17 years, 10 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)
Add bfirstlp(), blastlp() macros, returning the first and last lines of a buffer respectively. Removes an ugly construction than necessitated "go to first line"-type comments throughout the code. No binary change
Revision 1.40 / (download) - annotate - [select for diffs], Tue Jul 25 08:22:32 2006 UTC (17 years, 10 months ago) by kjell
Branch: MAIN
Changes since 1.39: +6 -6 lines
Diff to previous 1.39 (colored)
Rename the header line of a buffer to b_headp, from the remarkably unintuitive b_linep. No binary change.
Revision 1.39 / (download) - annotate - [select for diffs], Thu Jun 1 09:00:50 2006 UTC (18 years ago) by kjell
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)
Display line number in the mg statusbar. Yes, it seems like a fugly way to do it, but all the clever and pretty ways utterly failed. Basic use seems fine. We'll turdshine the special cases later. If it bothers you, use M-x line-number-mode, or put same in your ~/.mg file to disable. ok cloder, jason
Revision 1.38 / (download) - annotate - [select for diffs], Thu Jun 1 05:34:52 2006 UTC (18 years ago) by jason
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)
make // /~ path rewriting optional in adjustname() and use it everywhere except for the command line specified files. ok kjell,cloder
Revision 1.37 / (download) - annotate - [select for diffs], Sun May 28 23:30:16 2006 UTC (18 years ago) by kjell
Branch: MAIN
Changes since 1.36: +7 -7 lines
Diff to previous 1.36 (colored)
Make Window Flags more mnemonic (and less dumb); i.e. WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
Revision 1.36 / (download) - annotate - [select for diffs], Tue May 2 17:10:25 2006 UTC (18 years, 1 month ago) by kjell
Branch: MAIN
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)
Make buffers store their own working directory. This makes things like grep, compile, lint work as expected (act on current buffer's cwd). Display this path when opening or replacing a file, rather than relying on the user to guess, or remember.
Revision 1.35 / (download) - annotate - [select for diffs], Tue Dec 20 05:04:28 2005 UTC (18 years, 5 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.34: +5 -3 lines
Diff to previous 1.34 (colored)
Do some delinting of strl-type functions. Also, remove a superfluous word in the undo-list.
Revision 1.34 / (download) - annotate - [select for diffs], Tue Dec 13 07:20:13 2005 UTC (18 years, 6 months ago) by kjell
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)
Last round of easy delinting.
Revision 1.33 / (download) - annotate - [select for diffs], Tue Dec 13 06:01:27 2005 UTC (18 years, 6 months ago) by kjell
Branch: MAIN
Changes since 1.32: +31 -31 lines
Diff to previous 1.32 (colored)
More name-clash delinting
Revision 1.32 / (download) - annotate - [select for diffs], Sun Nov 20 03:24:17 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.31: +1 -5 lines
Diff to previous 1.31 (colored)
toast NO_DIRED #ifdef; ok kjell
Revision 1.31 / (download) - annotate - [select for diffs], Fri Nov 18 20:56:52 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +28 -27 lines
Diff to previous 1.30 (colored)
greedy use of typedef struct was making code harder to read; ok kjell cloder
Revision 1.30 / (download) - annotate - [select for diffs], Sun Nov 13 07:49:02 2005 UTC (18 years, 7 months ago) by kjell
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)
Better error checking of snprintfs. From Han Boetes.
Revision 1.29 / (download) - annotate - [select for diffs], Sat Nov 12 20:13:47 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)
break in case
Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 7 23:46:18 2005 UTC (18 years, 7 months ago) by kjell
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)
KNF
Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 7 23:32:20 2005 UTC (18 years, 7 months ago) by kjell
Branch: MAIN
Changes since 1.26: +39 -3 lines
Diff to previous 1.26 (colored)
Move most of the dired hooks into dired.c. While here, enable some dired functions that were written, but not bound to keys. No other functional change. Tested by Han Boetes.
Revision 1.26 / (download) - annotate - [select for diffs], Fri Oct 14 19:46:46 2005 UTC (18 years, 8 months ago) by kjell
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)
add missing /* ARGSUSED */ to quiet lint.
Revision 1.25 / (download) - annotate - [select for diffs], Fri Oct 14 15:41:33 2005 UTC (18 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +4 -3 lines
Diff to previous 1.24 (colored)
unused variables
Revision 1.24 / (download) - annotate - [select for diffs], Fri Oct 14 06:41:47 2005 UTC (18 years, 8 months ago) by kjell
Branch: MAIN
Changes since 1.23: +91 -3 lines
Diff to previous 1.23 (colored)
move the dired routines into dired.c where they belong. ok cloder@
Revision 1.23 / (download) - annotate - [select for diffs], Thu Oct 13 05:47:44 2005 UTC (18 years, 8 months ago) by kjell
Branch: MAIN
Changes since 1.22: +115 -94 lines
Diff to previous 1.22 (colored)
Fix dired mode. Make deletions work, and keystrokes match emacs. * 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.
Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 11 01:28:29 2005 UTC (18 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)
prevent trashing of errno in signal handler
Revision 1.21 / (download) - annotate - [select for diffs], Tue Aug 9 00:53:48 2005 UTC (18 years, 10 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.20: +19 -14 lines
Diff to previous 1.20 (colored)
Clean up eread handling in mg. (basically, fallout from the 'enter often means abort' behaviour added during the hackathon). Eliminates redundant ereply function, fixes miscellaneous cores when aborting, and move a number of assumed pathnames into the prompt text, since they are used there anyway. All changes consistent with emacs behavior ok beck@ many, many moons ago.
Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 14 18:14:40 2005 UTC (19 years ago) by kjell
Branch: MAIN
Changes since 1.19: +6 -3 lines
Diff to previous 1.19 (colored)
Add explicit public domain notices to all public domain files. ok millert@, deraadt@
Revision 1.19 / (download) - annotate - [select for diffs], Sat May 28 01:53:37 2005 UTC (19 years ago) by cloder
Branch: MAIN
Changes since 1.18: +13 -4 lines
Diff to previous 1.18 (colored)
Dired now prompts in the minibuffer using the current directory name or the name of the directory of the current buffer's file. OK kjell, jason
Revision 1.18 / (download) - annotate - [select for diffs], Sun May 15 21:19:08 2005 UTC (19 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.17: +7 -6 lines
Diff to previous 1.17 (colored)
Fix insert-buffer prompt format string. strlcpy returns size_t, not int (from Han Boetes). Improve error messages (from Han Boetes). OK otto, jaredy, beck
Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 28 07:14:09 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)
That should be FALSE in previous commit.
Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 28 07:13:01 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)
NULL is not an int. Han Boetes.
Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 3 02:09:28 2005 UTC (19 years, 2 months ago) by db
Branch: MAIN
Changes since 1.14: +128 -129 lines
Diff to previous 1.14 (colored)
This is a no binary change which does: - spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@
Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 22 01:25:24 2004 UTC (19 years, 10 months ago) by vincent
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.13: +33 -27 lines
Diff to previous 1.13 (colored)
stage 1 of the infinite minibuffer work - add support for on the fly buffer reallocation in veread(). This commit only changes the API. All the buffers have exactly the same bounds as before for now. tested by a couple of my very helpful testers!
Revision 1.13 / (download) - annotate - [select for diffs], Sat Aug 16 00:24:51 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)
spacing
Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 15 23:23:18 2003 UTC (20 years, 10 months ago) by vincent
Branch: MAIN
Changes since 1.11: +257 -20 lines
Diff to previous 1.11 (colored)
make dired work more like emacs. (well, make it _work_, and then add a bunch of missing commands)
Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 26 23:04:10 2003 UTC (20 years, 11 months ago) by vincent
Branch: MAIN
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored)
protos ok deraadt
Revision 1.10 / (download) - annotate - [select for diffs], Mon Mar 11 13:02:56 2002 UTC (22 years, 3 months ago) by vincent
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2,
OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.9: +11 -23 lines
Diff to previous 1.9 (colored)
* Move to ANSI function definitions. * Add a whole lot of consts where I thought it made sense no ok, but no objections either...
Revision 1.9 / (download) - annotate - [select for diffs], Fri Feb 15 01:04:59 2002 UTC (22 years, 3 months ago) by vincent
Branch: MAIN
Changes since 1.8: +24 -1 lines
Diff to previous 1.8 (colored)
make pressing return in dired mode open the file we're currently at. ok deraadt@
Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 14 22:58:20 2002 UTC (22 years, 3 months ago) by vincent
Branch: MAIN
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)
d_makename now takes a length parameter so we can remove the strcpy call.
Revision 1.7 / (download) - annotate - [select for diffs], Thu May 24 03:05:21 2001 UTC (23 years ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.6: +18 -18 lines
Diff to previous 1.6 (colored)
spaces
Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 29 01:58:06 2001 UTC (23 years, 4 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9
Changes since 1.5: +2 -0 lines
Diff to previous 1.5 (colored)
$OpenBSD$
Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 13 06:12:14 2000 UTC (24 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7
Changes since 1.4: +168 -146 lines
Diff to previous 1.4 (colored)
The start of KNF + -Wall. The code has been run through indent but needs hand fixup. I stopped at keymap.c...
Revision 1.4 / (download) - annotate - [select for diffs], Sun Feb 27 05:55:30 2000 UTC (24 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)
use rmdir, not unlinkdir hack
Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 26 23:22:44 2000 UTC (24 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)
Use uid_t, gid_t and mode_t where applicable. Pull in changes from the BSD-specific sysdef.h and fileio.c: kill bogus unlinkdir() and rename() kludges since we have rmdir(2) and rename(2) define SYMBLINK since we have symlinks TODO: merge BSD spawn.c and ttyio.c
Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 26 22:53:16 2000 UTC (24 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)
change WINDOW -> MGWIN to avoid curses type conflict convert to terminfo in tty*.c add support for some keypad function keys (arrows, pgup, pgdown)
Revision 1.1 / (download) - annotate - [select for diffs], Fri Feb 25 19:08:47 2000 UTC (24 years, 3 months ago) by deraadt
Branch: MAIN
initial import of mg2a