Permalink
Browse files

First cut at cleaning up notes-mode.

- Followed the usual header/footer conventions in Elisp.
- Updated copyright.
- Remove configury scripts.
- Bind $NOTES_BIN_DIR in notes-first while running notesinit.
- Use $NOTES_BIN_DIR rather than /home/johnh in scripts.
- Add `dir' file.
- Remove non-"notes-"-prefixed functions from notes-aux.el.
- Remove notes-bootstrap.
- Remove notes-platform-font-lock (was broken on XEmacs anyway).
- Use define-derived-mode for notes-index-mode.
- Setup notes-mode-map once at top-level.
- Prefer expand-file-name to `concat'.
- Put the Info file in the `Emacs' category.
- Use \` and \' regexp at a few places.
- Use load-file-name to initialize notes-utility-dir.
- Avoid find-file-noselect when loading the cache to avoid autoinsert prompting
   the user.
- Use (featurep 'xemacs)
- Remove autoloads from notes-variables.
- Don't mess with the user's .emacs in notesinit.
- Bump release number to 1.30.
- Remove strftime.c.
  • Loading branch information...
monnier committed Oct 22, 2012
1 parent dd37919 commit e7d1fbc51cf0d04539b50085d404e1f095ce73ff
Showing with 1,151 additions and 4,437 deletions.
  1. +624 −291 COPYING
  2. +0 −13 Makefile.in
  3. +1 −1 Notes.pm
  4. +1 −1 NotesIndex.pm
  5. +2 −2 NotesVars.pm
  6. +20 −48 README
  7. +2 −2 catsubject
  8. +0 −3,025 configure
  9. +0 −157 configure.in
  10. +20 −0 dir
  11. +0 −238 install-sh
  12. +2 −2 mkall
  13. +2 −3 mkconfig
  14. +1 −1 mkindex
  15. +1 −1 mkindexcache
  16. +2 −2 mknew
  17. +1 −1 mkprevnext
  18. +2 −2 mkrawindex
  19. +33 −78 notes-aux.el
  20. +0 −23 notes-bootstrap.el
  21. +25 −40 notes-emacs.el
  22. +34 −19 notes-first.el
  23. +54 −50 notes-index-mode.el
  24. +102 −107 notes-mode.el
  25. +55 −54 notes-mode.info
  26. BIN notes-mode.ps.gz
  27. +28 −46 notes-mode.texi
  28. +49 −38 notes-url.el
  29. +60 −119 notes-variables.el
  30. +24 −21 notes-xemacs.el
  31. +4 −9 notesinit
  32. +1 −1 release
  33. +1 −1 setcrontab
  34. +0 −41 strftime.c
View
915 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -44,17 +44,10 @@ OTHERS = \
configure \
configure.in \
install-sh \
- strftime.c \
notes-mode.texi \
notes-mode.info \
notes-mode.ps.gz
-#SRCS = \
-# strftime.c
-
-#BINS = \
-# strftime
-
SCRIPTS = \
mkall mkindex mkprevnext mkrawindex mkindexcache \
mkconfig mknew catsubject notesinit setcrontab \
@@ -64,7 +57,6 @@ ELS = \
notes-variables.el \
notes-mode.el notes-index-mode.el \
notes-url.el notes-aux.el \
- notes-bootstrap.el \
notes-emacs.el notes-xemacs.el \
notes-first.el
@@ -79,11 +71,6 @@ MY_EL_DIR=/home/johnh/LIB/EMACS
# Compliation stuff.
#
-# all: strftime
-# all: strftime
-
-# strftime: strftime.c
-
all:
@echo "nothing required for make; just run \"make install\""
View
2 Notes.pm 100644 → 100755
@@ -4,7 +4,7 @@
# Notes.pm
# $Id: Notes.pm,v 1.9 2010/06/20 18:31:22 johnh Exp $
#
-# Copyright (C) 1996-2006 by John Heidemann.
+# Copyright (C) 1996-2006,2012 Free Software Foundation, Inc.
# Comments to <johnh@isi.edu>.
#
# This file is under the Gnu Public License, version 2.
View
2 NotesIndex.pm 100644 → 100755
@@ -4,7 +4,7 @@
# NotesIndex.pm
# $Id: NotesIndex.pm,v 1.3 2003/05/23 16:26:19 johnh Exp $
#
-# Copyright (C) 1996 by John Heidemann.
+# Copyright (C) 1996,2012 Free Software Foundation, Inc.
# Comments to <johnh@isi.edu>.
#
# This file is under the Gnu Public License, version 2.
View
4 NotesVars.pm 100644 → 100755
@@ -4,7 +4,7 @@
# NotesVars.pm
# $Id: NotesVars.pm,v 1.8 2003/05/23 16:26:22 johnh Exp $
#
-# Copyright (C) 1996 by John Heidemann.
+# Copyright (C) 1996,2012 Free Software Foundation, Inc.
# Comments to <johnh@isi.edu>.
#
# This file is under the Gnu Public License, version 2.
@@ -19,7 +19,7 @@ require 5.000;
BEGIN {
no strict 'vars'; # avoid %::notes
$notes{'home'} = ((getpwuid($<))[7]);
- my(@config) = `/home/johnh/NOTES/BIN/mkconfig perl`;
+ my(@config) = `"$ENV{'NOTES_BIN_DIR'}/mkconfig" perl`;
die "$0: mkconfig failed\n" if ($#config == -1);
eval join("", @config);
unshift(@INC, $notes{'bin_dir'});
View
68 README
@@ -1,25 +1,13 @@
-
Notes-mode
----------
by John Heidemann, <johnh@isi.edu>
For documentation, see
notes-mode.info
- notes-mode.ps.gz
HTML/notes-mode.html
or <http://www.isi.edu/~johnh/SOFTWARE/NOTES_MODE/>
-WHAT'S NEW IN NOTES-MODE?
--------------------------
-
-Changed ( 8-Aug-08): version 1.27:
-
-Change I/O in @file{mkindexcache} to use locale (the sadly correct thing)
-rather than forcing utf-8 (the Righteous Path).
-Bug report from Geoff Kuenning, a man with an older Unix environment than I.
-
-
WHAT IS NOTES-MODE?
-------------------
@@ -40,38 +28,17 @@ see <http://www.isi.edu/~johnh/SOFTWARE/NOTES_MODE/notes-mode_1.html>
REQUIREMENTS
------------
-Notes-mode requires emacs or xemacs version 19 or 20 (or possibly
-later) and Perl-5. For information:
-
- emacs http://www.gnu.org/software/emacs/emacs.html
- xemacs http://www.xemacs.org
- perl http://www.perl.com
+Notes-mode requires Perl-5. For information: http://www.perl.com
INSTALLATION
------------
-First, get notes mode from <http://www.isi.edu/~johnh/SOFTWARE/NOTES_MODE/>.
-
-To install the basic package:
- 1. ./configure
- 2. make install
-
-(To control what's installed where, use --prefix=/where, or
---with-lisp-dir=/where, --datadir=/where (for scripts),
-and --infodir=/where.)
-
For each user:
1. Run notesinit
(from where it's installed, /usr/local/bin/notesinit
by default)
-If you have problems with paths being incorrect, please be aware that
-you CANNOT run notes directly out of where you untar it. The
-installation process customizes the programs for where things are on
-your system. Make sure you move out of the directory where you
-untarred it before running it.
-
After you've installed notes mode you're encouraged to subscribe
to the mailing lists:
Send the message "subscribe" to
@@ -83,18 +50,23 @@ Send the message "subscribe" to
COPYRIGHT
---------
-Notes-mode is Copyright (C) 1994-2002 by John Heidemann,
-<johnh@isi.edu>. Notes-mode comes with ABSOLUTELY NO WARRANTY. This
-is free software, and you are welcome to redistribute it under certain
-conditions. See the file ``COPYING'' for details about both of these
-conditions.
-
-
-CHANGE HISTORY
---------------
-
-README:
-$Id: README,v 1.21 2008/08/08 20:33:36 johnh Exp $
-
-See the changes entry in the texinfo documentation.
+Notes-mode is Copyright (C) 1994-2002,2012 Free Software Foundation, Inc.
+Notes-mode comes with ABSOLUTELY NO WARRANTY.
+This is Free Software, and you are welcome to redistribute it under certain
+conditions. See the file ``COPYING'' for details about both of
+these conditions.
+
+
+TODO
+----
+
+- figure out how to pass the configured file names to the Perl scripts.
+- Use `completion-at-point-functions'.
+- Use epa/epg for encryption.
+- Figure out what to do about mkall.
+- Use defcustom and get rid of "* in docstrings.
+- Remove notes-use-font-lock.
+- Don't run notes-first just because we load the .el files.
+- Unify notes-utility-dir and notes-bin-dir.
+- Add support for mouse-1-click-follows-link.
View
@@ -4,7 +4,7 @@
# catsubject
# $Id: catsubject,v 1.7 2003/05/23 16:26:24 johnh Exp $
#
-# Copyright (C) 1996 by John Heidemann.
+# Copyright (C) 1996,2012 Free Software Foundation, Inc.
# Comments to <johnh@isi.edu>.
#
# This file is under the Gnu Public License, version 2.
@@ -45,7 +45,7 @@ my(%opts);
#}
use POSIX;
-BEGIN { unshift(@INC, "/home/johnh/NOTES/BIN"); };
+BEGIN { unshift(@INC, $ENV{'NOTES_BIN_DIR'}); };
use NotesVars;
use Notes;
use NotesIndex;
Oops, something went wrong.

0 comments on commit e7d1fbc

Please sign in to comment.