summaryrefslogtreecommitdiff
path: root/editors/mg/patches/patch-aa
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2009-02-13 11:04:14 +0000
committerabs <abs@pkgsrc.org>2009-02-13 11:04:14 +0000
commit26b3f56cd0984e9bc1cf7030c1ad85dfdba41d70 (patch)
treea5b388672e476b2fd8021a7fcb289fd0496c2fb4 /editors/mg/patches/patch-aa
parentde0a05fdffe88ac0dd8bfbfe05c852e4b1415664 (diff)
downloadpkgsrc-26b3f56cd0984e9bc1cf7030c1ad85dfdba41d70.tar.gz
Added editors/mg version 20090107
This is the portable version of the OpenBSD mg editor Mg (mg) is a Public Domain EMACS style editor. It is "broadly" compatible with GNU Emacs, the latest creation of Richard M. Stallman, Chief GNUisance and inventor of Emacs. GNU Emacs (and other portions of GNU as they are released) are essentially free, (there are handling charges for obtaining it) and so is Mg. You may never have to learn another editor. (But probably will, at least long enough to port Mg...) Mg was formerly named MicroGnuEmacs, the name change was done at the request of Richard Stallman. Mg is not associated with the GNU project, and most of it does not have the copyright restrictions present in GNU Emacs. (However, some of the system dependent modules and the regular expression module do have copyright notices. Look at the source code for exact copyright restrictions.) The Mg authors individually may or may not agree with the opinions expressed by Richard Stallman in "The GNU Manifesto". This program is intended to be a small, fast, and portable editor for people who can't (or don't want to) run real Emacs for one reason or another. It is compatible with GNU because there shouldn't be any reason to learn more than one Emacs flavor.
Diffstat (limited to 'editors/mg/patches/patch-aa')
-rw-r--r--editors/mg/patches/patch-aa19
1 files changed, 19 insertions, 0 deletions
diff --git a/editors/mg/patches/patch-aa b/editors/mg/patches/patch-aa
new file mode 100644
index 00000000000..3a814c4fa37
--- /dev/null
+++ b/editors/mg/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $
+
+--- dired.c.orig 2008-12-30 12:40:28.000000000 +0000
++++ dired.c
+@@ -570,11 +570,11 @@ d_makename(struct line *lp, char *fn, si
+ ep = lp->l_text + llength(lp);
+ p++; /* skip action letter, if any */
+ for (i = 0; i < NAME_FIELD; i++) {
+- while (p < ep && isspace(*p))
++ while (p < ep && isspace((unsigned char)*p))
+ p++;
+- while (p < ep && !isspace(*p))
++ while (p < ep && !isspace((unsigned char)*p))
+ p++;
+- while (p < ep && isspace(*p))
++ while (p < ep && isspace((unsigned char)*p))
+ p++;
+ if (p == ep)
+ return (ABORT);