head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.50 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.48 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.46 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.44 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.42 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.40 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.38 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.36 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.34 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.32 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.30 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.28 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.26 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.24 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.22 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.20 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.18 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.16 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.14 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.12 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.10 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.8 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.6 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.4 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.2 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.3 date 2004.06.03.08.52.23; author adam; state dead; branches; next 1.2; 1.2 date 2003.04.27.17.45.31; author cjep; state Exp; branches; next 1.1; 1.1 date 2001.05.22.12.23.28; author wiz; state Exp; branches; next ; desc @@ 1.3 log @Changes 3.1: * Regex and incremental search (jmacs ^S) now work for UTF-8 * More and improved syntax highlighting files, including Mason * Use ^T E to set character set of file (hit at the prompt for a list of available character sets). * Can install custom "i18n" style byte oriented character set definition files. * No longer depends on iconv() (easier to compile) * Fix bug where right arrow was not doing right thing on last line * Fix UTF-8 codes between 0x10000 - 0x1FFFF * Now prints for unicode control characters * Improved smart home, indent, etc. * TAB completion is now more "bash"-like * When multiple files are given on command line, they end up in same order on the screen in JOE (before they were shuffled). * Menu size is now variable (40% of window size or smaller if it's not filled). * Added -icase option for case insensitive search by default. * Added -wrap option, which makes searches wrap * Added status line sequence %x: shows current context (function name if you're editing C). * Added tab completion at search prompts and ESC-Enter for tab completion within text windows. * Warn if file changed on save. * Added Ctrl-space block selection method * Added Ctrl-arrow key block selection method * ^K E asks if you want to load original version of the file * jmacs bugs fixes: upperase word, transpose words, ^X ^C is more emacs-like., ^X k and ^X ^V more like emacs. * Much improved compile system ^[ c * Much improved jpico * aspell support. @ text @$NetBSD: patch-ag,v 1.2 2003/04/27 17:45:31 cjep Exp $ --- ufile.c.orig 1995-01-13 17:13:16.000000000 +0000 +++ ufile.c @@@@ -135,7 +135,7 @@@@ BW *bw; int cp(from,to) char *from, *to; { - int f, g, amnt; + int f, g, amnt, rc; struct stat sbuf; #ifdef HAVEUTIME @@@@ -157,8 +157,8 @@@@ char *from, *to; } while((amnt=read(f,stdbuf,stdsiz))>0) if(amnt!=write(g,stdbuf,amnt)) break; - close(f); close(g); - if(amnt) return -1; + close(f); rc = close(g); + if(amnt || rc) return -1; #ifdef HAVEUTIME #ifdef NeXT @ 1.2 log @Use time_t rather than guess int or long. Fixes build on NetBSD/shark et al. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Add one patch from OpenBSD to not use ./.joerc, and two from FreeBSD, one against a symlink attack on 'DEADJOE', and one to use vi-style file locking. Bump version to 2.8nb1. @ text @d3 9 a11 8 --- b.h.orig Wed Dec 21 13:04:46 1994 +++ b.h @@@@ -60,6 +60,7 @@@@ int rdonly; /* Set for read-only */ int internal; /* Set for internal buffers */ int er; /* Error code when file was loaded */ + int filehandle; /* File handle for locking */ }; d13 12 a24 1 extern int force; /* Set to have final '\n' added to file */ @