OpenBSD CVS

CVS log for src/usr.bin/mg/funmap.c


[BACK] Up to [local] / src / usr.bin / mg

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.67 / (download) - annotate - [select for diffs], Fri Apr 21 13:39:37 2023 UTC (12 months, 4 weeks ago) by op
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored)

mg: allow to change the tab width

This makes the tab width customizable per-buffer.  The new function
`set-tab-width' changes it for the current buffer or the default value
for new buffers if called with a prefix argument (or from the startup
file.)

The default tab width is still 8 column.

Together with the newly resurrected no-tab-mode, allows to use mg for a
variety of programming languages and coding styles.

Note that it's not possible to call set-tab-width with auto-execute in
the startup file due to limitations in how auto-execute and the parser
work.

ok tb@

Revision 1.66 / (download) - annotate - [select for diffs], Mon Apr 17 09:49:04 2023 UTC (13 months ago) by op
Branch: MAIN
Changes since 1.65: +1 -5 lines
Diff to previous 1.65 (colored)

resurrect mg' no-tab-mode

It's a mode that makes mg insert spaces up to the next tab stop upon
pressing TAB, along with the various tweaks needed in other places so
for e.g. auto-indent-mode also uses spaces.

This is not just an unifdef NOTAB: even under no-tab-mode mg should
consider literal TAB characters wide up to the next tab stop, while the
hidden code considered hard tabs to be just control character (i.e. ^I)
with width of two columns.  I'm also introducing the helper function
doindent() in utils.c to de-obfuscate the insertion of tabs/spaces until
the given column.

ok tb@

Revision 1.65 / (download) - annotate - [select for diffs], Mon Dec 26 19:16:02 2022 UTC (16 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

spelling fixes; from paul tagliamonte
amendments to his diff are noted on tech

Revision 1.64 / (download) - annotate - [select for diffs], Thu Oct 20 18:59:24 2022 UTC (18 months, 4 weeks ago) by op
Branch: MAIN
Changes since 1.63: +3 -1 lines
Diff to previous 1.63 (colored)

add zap-to-char and zap-up-to-char; bind zap-to-char to M-z.

ok florian@

Revision 1.63 / (download) - annotate - [select for diffs], Thu Apr 22 19:50:55 2021 UTC (3 years 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.62: +2 -1 lines
Diff to previous 1.62 (colored)

Add a non-interactive version of query-replace-regexp function called
replace-regexp. Unfortunately query-replace-regexp can't be used in a
startup file.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Apr 20 16:34:20 2021 UTC (3 years ago) by lum
Branch: MAIN
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored)

Indicate if an mg function is unsuitable for a startup file (requires
user interaction).

Revision 1.61 / (download) - annotate - [select for diffs], Tue Apr 20 10:02:50 2021 UTC (3 years ago) by lum
Branch: MAIN
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (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.60 / (download) - annotate - [select for diffs], Tue Mar 23 18:33:05 2021 UTC (3 years, 1 month ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.59: +31 -31 lines
Diff to previous 1.59 (colored)

Correct how many arguments some functions take for interpreter.c.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jul 11 18:20:18 2019 UTC (4 years, 10 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.58: +215 -184 lines
Diff to previous 1.58 (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.58 / (download) - annotate - [select for diffs], Wed Jul 3 18:11:07 2019 UTC (4 years, 10 months ago) by lum
Branch: MAIN
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

selfinsert() can't be called directly from a startup file or by
'eval-current-buffer' since it is by design, meant to be called interactively
as characters are typed in a buffer. ask_selfinsert() allows selfinsert() to
be used by excline(). Having ask_selfinsert() helps with regression testing.
No manual page entry since use case is a bit obscure. See 'insert' command.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jul 2 16:25:39 2019 UTC (4 years, 10 months ago) by lum
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

I totally forgot about the instance where blink-and-insert can be
called from the mg startup file. My previous diff broke that instance.
So this diff reverts my change but adds a man page line to
blink-and-insert in case someone should try to use it interactively,
again.  Also, should anyone ever want to add an interactive version of
blink-and-insert in the future, the code is there. And the code could
be useful in another, related instance.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jun 26 16:42:30 2019 UTC (4 years, 10 months ago) by lum
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

This diff makes blink-and-insert do as the man page says it should do.
If you do 'M-x blink-and-insert', you are asked for a character. mg
will then insert it at the current cursor position and then search
backwards for a corresponding match.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Dec 13 14:59:16 2018 UTC (5 years, 5 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored)

Allow all non-ephemeral buffers to be toggled writable or read-only
while mg is running: toggle-read-only-all

Revision 1.54 / (download) - annotate - [select for diffs], Wed Aug 29 07:50:16 2018 UTC (5 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored)

Add set-case-replaced to toggle case-preserving replace on or off.

By default, replacing "foo" with "bar" turns "FOO" into "BAR".
With case-replace turned off, "FOO" will turn into "bar".

OK florian@ tb@

Revision 1.53 / (download) - annotate - [select for diffs], Thu Apr 14 17:05:32 2016 UTC (8 years, 1 month ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

Add 'sentence-end-double-space'.

If you prefer "lighter" punctuation and one space between sentences,
for example:

Mr and Mrs Jones are from the UK. They arrived today.

over more liberal use of full stops and double spaces between
sentences:

Mr. and Mrs. Jones are from the U.K.  They arrived today.

then toggling 'sentence-end-double-space' will make mg's
fill-paragraph function format text using one space instead of two
(the default) between sentences. However, be careful, should you have
a double spaced document and accidentally "format" it to have single
spaces, then you may have a problem. mg won't be able to revert the
formatting for you (unless you have a previous version of the text in
the "undo" history, or are using mg's backup facility and haven't
opened and saved multiple times!).

Comments from schwarze@

Revision 1.52 / (download) - annotate - [select for diffs], Tue Dec 29 19:44:32 2015 UTC (8 years, 4 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

Add transpose-words, ok jasper@.
Limited to one iteration until 'undo' is looked into.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Sep 26 15:03:15 2015 UTC (8 years, 7 months ago) by lum
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

Add transpose-paragraphs. ok jasper@

Revision 1.50 / (download) - annotate - [select for diffs], Thu Sep 24 07:07:59 2015 UTC (8 years, 7 months ago) by lum
Branch: MAIN
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored)

Add mark-paragraph. ok jasper@

Revision 1.49 / (download) - annotate - [select for diffs], Thu Mar 19 21:22:15 2015 UTC (9 years, 2 months ago) by bcallah
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.48: +8 -2 lines
Diff to previous 1.48 (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.48 / (download) - annotate - [select for diffs], Mon Mar 16 13:47:48 2015 UTC (9 years, 2 months ago) by bcallah
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

Change the internal name of the newline function to deconflict with a
function of the same name in term.h. This is the first step towards
cleaning up mg's includes. No user-visible changes.
ok florian@

Revision 1.47 / (download) - annotate - [select for diffs], Fri May 31 18:03:44 2013 UTC (10 years, 11 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.46: +3 -1 lines
Diff to previous 1.46 (colored)

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

ok florian@ jasper@ Feedback Sunil Nimmagadda.

Revision 1.46 / (download) - annotate - [select for diffs], Wed May 22 19:23:45 2013 UTC (10 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Thu Dec 27 18:51:52 2012 UTC (11 years, 4 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)

diff-buffer-with-file
input gsoares@, Sunil Nimmagadda, jasper@
ok jasper@, benno@

Revision 1.44 / (download) - annotate - [select for diffs], Tue Dec 4 10:54:20 2012 UTC (11 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

Bring back column numbers and make them configurable, off by default
to not kill slow serial lines.
Committing my independently written, slightly different version, as
requested by jasper@.

OK jasper@, OK reyk@ for jasper@'s version of the diff
"Sure, if you think so then." deraadt@

Revision 1.43 / (download) - annotate - [select for diffs], Tue Nov 27 19:46:46 2012 UTC (11 years, 5 months ago) by jasper
Branch: MAIN
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

- add 'make-directory' (not bound to any shortcut).

feedback from florian@ lum@
ok florian@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Nov 20 13:10:16 2012 UTC (11 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.41: +32 -30 lines
Diff to previous 1.41 (colored)

keep functnames sorted
ok jasper, lum

Revision 1.41 / (download) - annotate - [select for diffs], Fri Oct 12 21:13:46 2012 UTC (11 years, 7 months ago) by jasper
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

- implement "revert-buffer", which reverts the current buffer to what's on disk
- split gotoline() into the argument handling part and the part that actually
  goes to the specified line number so it can be re-used by revertbuffer()

input/ok florian@ haesbaert@

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jun 14 17:21:22 2012 UTC (11 years, 11 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.39: +3 -1 lines
Diff to previous 1.39 (colored)

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

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jun 7 15:15:04 2012 UTC (11 years, 11 months ago) by lum
Branch: MAIN
Changes since 1.38: +14 -1 lines
Diff to previous 1.38 (colored)

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.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 12 04:47:59 2012 UTC (12 years, 1 month ago) by lum
Branch: MAIN
Changes since 1.37: +1 -11 lines
Diff to previous 1.37 (colored)

Remove the conditional directives NO_MACRO and NO_STARTUP.
They have not compiled for numerous years.
ok kjell@ millert@

Revision 1.37 / (download) - annotate - [select for diffs], Wed Apr 11 17:51:10 2012 UTC (12 years, 1 month ago) by lum
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

Add:
 1. C-x h to mark whole buffer.
 2. M-| to pipe current region to external command.
From Sunil Nimmagadda.

Feedback from deraadt@ and myself. ok for man page amendments from jmc@

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 14 13:56:35 2012 UTC (12 years, 2 months ago) by lum
Branch: MAIN
Changes since 1.35: +1 -7 lines
Diff to previous 1.35 (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.35 / (download) - annotate - [select for diffs], Mon Nov 28 04:41:39 2011 UTC (12 years, 5 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored)

Add some ctags support to mg. From Sunil Nimmagadda.

Man page review and suggestions from jmc@

Revewied and tested by myself, and ok deraadt@

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 18 16:25:40 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.33: +2 -1 lines
Diff to previous 1.33 (colored)

Add join-line, bound to M-^
Join the current line to the previous.

original diff by Henri Kemppainen. minor mod to add undo boundaries.
Thanks!

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 17 03:12:06 2011 UTC (13 years, 4 months ago) by kjell
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

Add back-to-indentation. (M-m)
Move the dot to the first non-whitespace character on the current line.
from Henri Kemppainen . ok theo

Revision 1.32 / (download) - annotate - [select for diffs], Mon Sep 15 16:13:35 2008 UTC (15 years, 8 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.31: +4 -1 lines
Diff to previous 1.31 (colored)

Expose the undo commands as proper mg functions.
This should have no functional change on undo, but it does facilitate
testing undo behavior.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Jun 14 08:46:30 2008 UTC (15 years, 11 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.30: +2 -3 lines
Diff to previous 1.30 (colored)

We do not need a whole MODE for blinking one character.

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.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jun 11 23:18:33 2008 UTC (15 years, 11 months ago) by kjell
Branch: MAIN
Changes since 1.29: +5 -2 lines
Diff to previous 1.29 (colored)

Add delete-leading-space, delete-trailing-space,
indent-current-line utility functions for stripping leading/trailing
whitespace, and setting a fixed indent respectively.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jun 10 23:23:53 2008 UTC (15 years, 11 months ago) by kjell
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Add a clear-mark function.
Use it to clear the region it is copied (M-w), or yanked (C-w).
This matches xemacs behavior, is not horribly different from gnu
emacs, and way less wrong than the current behavior.
Noticed by Han Boetes. ok otto@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jun 10 00:19:31 2008 UTC (15 years, 11 months ago) by kjell
Branch: MAIN
Changes since 1.27: +4 -24 lines
Diff to previous 1.27 (colored)

Remove copyright notices and put these files back into the public domain.
ok art

Revision 1.27 / (download) - annotate - [select for diffs], Mon May 28 17:52:17 2007 UTC (16 years, 11 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Add a global-wd-mode command, which toggles between the current
behavior (every buffer maintains its own cwd) and the old behavior of
one global working directory. This makes it slightly easier to hack
on things like kernel code, where compilation, etc, are initiated from
a different directory than you are working in.
While here, fix setting/handling of global wd.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Dec 21 18:06:02 2006 UTC (17 years, 5 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.25: +1 -3 lines
Diff to previous 1.25 (colored)

Eliminate BSMAP #ifdef (we didn't define it). This exposes bsmap-mode,
which swaps ^H and DEL.

ok jason@

Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 16 17:00:03 2006 UTC (17 years, 5 months ago) by kjell
Branch: MAIN
Changes since 1.24: +1 -5 lines
Diff to previous 1.24 (colored)

Get rid of PREFIXREGION ifdef, since we always enable it anyway.
no binary change.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 1 09:00:50 2006 UTC (17 years, 11 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Tue Dec 20 06:17:36 2005 UTC (18 years, 5 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Clean up the ugly casted frees. In one case, this meant eliminating a nasty
struct/union/casting nightmare when building the list of names for filename
completion. In particular, be consistent about strduping and freeing
the list data.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 13 06:01:27 2005 UTC (18 years, 5 months ago) by kjell
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

More name-clash delinting

Revision 1.21 / (download) - annotate - [select for diffs], Sun Nov 20 18:47:11 2005 UTC (18 years, 6 months ago) by kjell
Branch: MAIN
Changes since 1.20: +1 -5 lines
Diff to previous 1.20 (colored)

#ifdef NO_DIR can go too. From Han Boetes.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 20 04:17:25 2005 UTC (18 years, 6 months ago) by kjell
Branch: MAIN
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

Don't bind help to a null function

Revision 1.19 / (download) - annotate - [select for diffs], Sun Nov 20 04:16:34 2005 UTC (18 years, 6 months ago) by kjell
Branch: MAIN
Changes since 1.18: +1 -3 lines
Diff to previous 1.18 (colored)

Kill the NO_BACKUP #ifdef

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 19 20:14:38 2005 UTC (18 years, 6 months ago) by kjell
Branch: MAIN
Changes since 1.17: +1 -3 lines
Diff to previous 1.17 (colored)

Goodbye NO_METAKEY
(#ifdef is for emacs developers)

Revision 1.17 / (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.16: +3 -3 lines
Diff to previous 1.16 (colored)

greedy use of typedef struct was making code harder to read; ok kjell cloder

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 7 23:32:20 2005 UTC (18 years, 6 months ago) by kjell
Branch: MAIN
Changes since 1.15: +1 -13 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Fri Oct 14 15:45:38 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

more replstr into the #ifdef

Revision 1.14 / (download) - annotate - [select for diffs], Mon May 30 13:13:50 2005 UTC (18 years, 11 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

add find-alternate-file command and binding for ^X^V; ok cloder
(you're welcome kjell)

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 27 08:08:18 2005 UTC (18 years, 11 months ago) by cloder
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Add emacs-style replace-string function that does not prompt you
to confirm replacements.
OK jason, deraadt

Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 28 07:23:56 2005 UTC (19 years ago) by otto
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Get rid of unused arg to complete_function_list(). Han Boetes.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Apr 3 02:09:28 2005 UTC (19 years, 1 month ago) by db
Branch: MAIN
Changes since 1.10: +17 -21 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Wed Mar 9 16:20:48 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

fix mg's behaviour with regards to files on which we do not have
write access.  diff originally from vincent@ and forgotten for
a while.

ok rohee@, "toss it in, i'll bitch if it doesn't work" henning@

Revision 1.9 / (download) - annotate - [select for diffs], Wed May 29 12:41:42 2002 UTC (21 years, 11 months ago) by vincent
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

 add an "auto-execute" feature, that allows binding function calls to
certain patterns. for example, `auto-execute "*.c" auto-indent-mode'.

 ok art@

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 29 12:33:36 2002 UTC (21 years, 11 months ago) by vincent
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

 add an entry for "find-file-read-only" and one for toggle-read-only,
which was missing for an unknown reason.

 ok art@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 16 15:10:11 2002 UTC (22 years, 2 months ago) by vincent
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

 map undo_dump to the "undo-list" command.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 11 13:02:56 2002 UTC (22 years, 2 months ago) by vincent
Branch: MAIN
Changes since 1.5: +7 -7 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Wed Feb 20 22:30:54 2002 UTC (22 years, 3 months ago) by vincent
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

 Add undo code to mg.

 needs further hacking.

 ok `whole bunch of people on icb'@

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 8 21:21:11 2002 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +1 -5 lines
Diff to previous 1.3 (colored)

more gosmacs

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 24 13:00:45 2001 UTC (23 years ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.2: +24 -0 lines
Diff to previous 1.2 (colored)

add blobs.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 24 10:49:10 2001 UTC (23 years ago) by art
Branch: MAIN
Changes since 1.1: +0 -5 lines
Diff to previous 1.1 (colored)

No need for the extra prefixes here anymore.

Revision 1.1 / (download) - annotate - [select for diffs], Thu May 24 09:47:34 2001 UTC (23 years ago) by art
Branch: MAIN

Break out function -> name mappings to an own file.
Add a possibility to dynamically extend the function table.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.