| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
and make the error more useful when there is a problem opening a
directory. Reported by and ok jasper@
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
"go for it" deraadt@
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
ok florian@
|
|
|
|
| |
ok florian@
|
|
|
|
| |
ok florian@
|
|
|
|
|
| |
Move xdirname call into the right if block, pointed out by Ulrich
Mueller.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
will be marked unchanged at the correct point when stepping
through the undo history.
OK jasper@
|
| |
|
|
|
|
|
| |
feedback from florian@ lum@
ok florian@
|
|
|
|
| |
directory where permissions are ok.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
| |
by reference instead. This allows the mg startup file to open other
files without unexpected things happening.
Discussed with Sunil Nimmagadda.
|
|
|
|
|
|
|
| |
does not change the behaviour with regards to mg not asking
to save throwaway buffers when exiting.
Reviewed by Sunil Nimmagadda.
|
|
|
|
|
|
| |
were given to a buffer being written.
Reviewed by Sunil Nimmagadda.
|
|
|
|
|
|
| |
existing file. This mimics emacs behaviour.
Reviewed by Sunil Nimmagadda.
|
|
|
|
|
|
|
| |
1. return an error value
2. show an error message
From Loganaden Velvindron with suggestion from millert@
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
caller, too. ok lum@
|
|
|
|
|
|
|
|
|
| |
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!
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This should have no functional change on undo, but it does facilitate
testing undo behavior.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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?
|
|
|
|
|
|
|
| |
'Prints root directory as "//" instead of "/" for root files.'
Issue was with dirname, which strips the trailing slash, except
when given "/". Wrap it in a cover function to fix. Also helps
with portability to data-munging dirname glibc.
|
|
|
|
| |
ok, kjell@, matthieu@
|
|
|
|
|
|
|
|
|
| |
line-number count for a buffer (M-X insert-file, M-> to reproduce).
While here, fix a number of bugs with incorrect line numbers
after swap point-and-mark
Originally reported via debian's bug tracking system. Fix tested by
Han Boetes and Deanna Phillips.
|
|
|
|
|
|
|
|
| |
negative to the positive. undo_boundary_enable(TRUE) makes a LOT more
sense than undo_no_boundary(FALSE).
While here, whack a global, and fix a bug noted by otto:
undoing a file insertion sometimes left stray characters around.
ok beck@, otto@
|
|
|
|
|
|
| |
of a buffer respectively. Removes an ugly construction than necessitated
"go to first line"-type comments throughout the code.
No binary change
|
|
|
|
| |
unintuitive b_linep. No binary change.
|
|
|
|
|
|
|
| |
This allows undo to clear the modified flag when undo-ing all the way
from a loaded buffer.
Originally whipped up at c2k6 after proddings from beck.
jason@ ok.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
except for the command line specified files. ok kjell,cloder
|
|
|
|
|
| |
read process. This allows code in the autoexec path (i.e. ~/.mg) to
operate on the buffer, making ~/.mg files much more useful.
|
|
|
|
|
| |
the window if you ask for whatever file you are currently visiting.
pointed out, ok beck@
|
|
|
|
|
|
| |
WFHARD -> WFFULL (Redraw full window)
WFFORCE -> WFFRAME (Reframe window).
No binary change
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
trailing buffer number appended (e.g. "file<2>") in case an existing
buffer shared its basename().
|
| |
|
| |
|