#
e6c7c102 |
| 23-Apr-2024 |
jsg <jsg@openbsd.org> |
correct indentation; no functional change ok tb@
|
#
5b133f3f |
| 08-Mar-2023 |
guenther <guenther@openbsd.org> |
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
|
#
31742840 |
| 22-Jun-2019 |
lum <lum@openbsd.org> |
Offering to add a new line at the end of the buffer didn't consider if the user pressed C-g. Now it does.
|
#
1fd77202 |
| 22-Jun-2019 |
lum <lum@openbsd.org> |
This diff moves the check for a newline at the end of a buffer (when saving it) earlier. This means data doesn't 'disappear' from the file on disk while the user answers 'yes' or 'no'.
|
#
e60fdf10 |
| 02-Jan-2016 |
lum <lum@openbsd.org> |
Add dired-find-alternate-file.
|
#
d3d19169 |
| 29-Oct-2015 |
lum <lum@openbsd.org> |
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@
|
#
f4e9ba22 |
| 29-Sep-2015 |
lum <lum@openbsd.org> |
Check to see if the file to be opened is a directory as soon as is feasible. Currently, mg does this check much later on which means some functions (e.g showbuffer()) are called multiple times. This
Check to see if the file to be opened is a directory as soon as is feasible. Currently, mg does this check much later on which means some functions (e.g showbuffer()) are called multiple times. This fixes the location of the cursor when opening a directory using filevisit, findvisitalt and poptofile. ok jasper@
show more ...
|
#
e7fbf380 |
| 25-Mar-2015 |
bcallah <bcallah@openbsd.org> |
We really don't need ttydef.h -- it is like sysdef.h -- once useful because supported a lot of systems and nothing was standardized. But now it only 4 defines. Move those defines into def.h since tty
We really don't need ttydef.h -- it is like sysdef.h -- once useful because supported a lot of systems and nothing was standardized. But now it only 4 defines. Move those defines into def.h since ttydef.h is only sourced in def.h
While here, MAKEBACKUP has the same #ifdef dance that LINENOMODE had. Set it directly to TRUE and remove the #ifdef block.
ok florian@
show more ...
|
#
cc6738c5 |
| 19-Mar-2015 |
bcallah <bcallah@openbsd.org> |
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 so
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@
show more ...
|
#
dabfd751 |
| 09-Apr-2014 |
florian <florian@openbsd.org> |
Revert 1.93, it breaks permission checks. "go for it" deraadt@
|
#
9bdd0361 |
| 03-Apr-2014 |
lum <lum@openbsd.org> |
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@
|
#
2b525827 |
| 31-Mar-2014 |
lum <lum@openbsd.org> |
Tidy up. No functional change.
|
#
dbf27552 |
| 20-Mar-2014 |
lum <lum@openbsd.org> |
Add some missing dobeeps. ok florian@
|
#
859bb930 |
| 14-Mar-2014 |
lum <lum@openbsd.org> |
Check if buffer is to be saved as a directory. ok florian@
|
#
40e8b105 |
| 23-Dec-2013 |
lum <lum@openbsd.org> |
Move findbuffer() to buffer.c. ok florian@
|
#
56db741b |
| 22-Oct-2013 |
florian <florian@openbsd.org> |
Fix previous; ENOCOFFEE. Move xdirname call into the right if block, pointed out by Ulrich Mueller.
|
#
08e3af62 |
| 22-Oct-2013 |
florian <florian@openbsd.org> |
Our man page states that it's not portable to rely on dirname(3) not modifying the contents of the passed string. Replace dirname(3) with mg's xdirname portability helper function (a slightly differe
Our man page states that it's not portable to rely on dirname(3) not modifying the contents of the passed string. Replace dirname(3) with mg's xdirname portability helper function (a slightly different fix than Gentoo's).
Report and initial analysis by Marien Zwart in Gentoo bug #487758 via Han Boetes (hboetes _AT_ gmail). Gentoo bugfix by Ulrich Mueller (ulm _AT_ gentoo). testing on glibc / input Ulrich Mueller; testing on glibc Han Boetes. Thanks!
OK jasper@
show more ...
|
#
b5c940e6 |
| 25-Mar-2013 |
florian <florian@openbsd.org> |
Record when the buffer was saved in the undo history. The buffer will be marked unchanged at the correct point when stepping through the undo history. OK jasper@
|
#
d2c9ceb5 |
| 10-Feb-2013 |
lum <lum@openbsd.org> |
Grammar nits.
|
#
e4a8c45e |
| 27-Nov-2012 |
jasper <jasper@openbsd.org> |
- add 'make-directory' (not bound to any shortcut).
feedback from florian@ lum@ ok florian@
|
#
d14e1428 |
| 30-Aug-2012 |
lum <lum@openbsd.org> |
oops. need to reset errno. Otherwise we can't save a new file in a directory where permissions are ok.
|
#
31ac0a12 |
| 30-Aug-2012 |
lum <lum@openbsd.org> |
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 u
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.
show more ...
|
#
769c8c85 |
| 28-Aug-2012 |
lum <lum@openbsd.org> |
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
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@
show more ...
|
#
35a5d507 |
| 18-Jun-2012 |
lum <lum@openbsd.org> |
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
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@
show more ...
|
#
5187416a |
| 25-May-2012 |
lum <lum@openbsd.org> |
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 Sun
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.
show more ...
|