[Pkg-jed-commit] r698 - in jed-extra/trunk/debian: . examples

Guenter Milde milde-guest at alioth.debian.org
Wed May 16 08:04:42 UTC 2007


Author: milde-guest
Date: 2007-05-16 08:04:42 +0000 (Wed, 16 May 2007)
New Revision: 698

Modified:
   jed-extra/trunk/debian/changelog
   jed-extra/trunk/debian/compile
   jed-extra/trunk/debian/contents.txt
   jed-extra/trunk/debian/control
   jed-extra/trunk/debian/examples/50jed-extra.sl
   jed-extra/trunk/debian/examples/jed-extra.rc
Log:
control: update feature list
compile: apply Joergs patch for jed (remove slc and dfa files before install)
contents.txt: sort svn mode (should become "A" once the mode is tested)
examples/*: documentation|example update


Modified: jed-extra/trunk/debian/changelog
===================================================================
--- jed-extra/trunk/debian/changelog	2007-05-16 07:49:42 UTC (rev 697)
+++ jed-extra/trunk/debian/changelog	2007-05-16 08:04:42 UTC (rev 698)
@@ -2,6 +2,9 @@
 
   * debian/po/de.po: Added German translation, thanks to Helge Kreutzmann
     (closes: #424115)
+  * svn.sl: new mode for version control (interface to SVN and CVS) in
+    "extra" section
+  * remove old byte-compiled files and dfa cache files before installation  
 
  --
 

Modified: jed-extra/trunk/debian/compile
===================================================================
--- jed-extra/trunk/debian/compile	2007-05-16 07:49:42 UTC (rev 697)
+++ jed-extra/trunk/debian/compile	2007-05-16 08:04:42 UTC (rev 698)
@@ -4,18 +4,19 @@
 PREPARSE=/usr/share/jed/compile/jed-extra-preparse.sl
 
 case "$1" in
-  install)
-	jed-script $PREPARSE || true
-        # don't worry if jed-script is missing, because jed runs this scipt
-        # again at installation
-	;;
-  remove)
-        # option -delete requires findutils (>= 4.2.9) (not in sarge)
-	# find $LIBDIR \( -name \*.slc -o -name \*.dfa \
-        #                 -o -name ini.sl* -o -name libfuns.txt \) -delete
-	find $LIBDIR \( -name \*.slc -o -name \*.dfa \
-                        -o -name ini.sl* -o -name libfuns.* \) -print0 \
+  install|remove)
+        # Remove the files in both cases, because some .sl files may have
+        # gone and some .slc files may not work with the new jed version
+	find $LIBDIR \( -name \*.slc -o -name \*.dfa \) -print0 \
         | xargs -0 --no-run-if-empty rm
+
+        case "$1" in
+          install)
+		jed-script $PREPARSE || true
+		# don't worry if jed-script is missing, because jed runs this 
+		# script again at installation
+                ;;
+        esac
 	;;
   *)
 	echo "unknown argument --> \"$1"\" >&2

Modified: jed-extra/trunk/debian/contents.txt
===================================================================
--- jed-extra/trunk/debian/contents.txt	2007-05-16 07:49:42 UTC (rev 697)
+++ jed-extra/trunk/debian/contents.txt	2007-05-16 08:04:42 UTC (rev 698)
@@ -103,6 +103,7 @@
 X   services       uri_hooks for some common URI schemes
 U   sl_utils       Basic SLang programming utils
 A   snake          Eat the apples and stay away from the walls
+X   svn            Interface to the CVS and SVN version control systems
 A   sql            Syntax highlighting for SQL modes
 U   sprint_var     Pretty printing of variable values (required by diagnose mode)
 U   strutils       String processing functions

Modified: jed-extra/trunk/debian/control
===================================================================
--- jed-extra/trunk/debian/control	2007-05-16 07:49:42 UTC (rev 697)
+++ jed-extra/trunk/debian/control	2007-05-16 08:04:42 UTC (rev 698)
@@ -27,7 +27,7 @@
   * new or enhanced modes for:
        Jed help, file management, Gnu info, man pages, calculator, calendar,
        dict dictionary lookup (including thesaurus), spellchecking,
-       "Game of Life", and snake
+       "Game of Life" and snake, version control (CVS/SVN interface)
   * additional language modes:
        CSS, email, gnuplot, make, man, mupad, po_mode, reStructuredText, 
        ruby, SQL, yodl

Modified: jed-extra/trunk/debian/examples/50jed-extra.sl
===================================================================
--- jed-extra/trunk/debian/examples/50jed-extra.sl	2007-05-16 07:49:42 UTC (rev 697)
+++ jed-extra/trunk/debian/examples/50jed-extra.sl	2007-05-16 08:04:42 UTC (rev 698)
@@ -48,16 +48,16 @@
 % argument to 1 in append_libdir($1 + "utils/", 1) above)
 % () = evalfile("utils/ini.sl");          % autoloads for all utilit functions
 
-% call extension-dependend modes
+% Set modes for known filename extensions
 add_mode_for_extension ("css1", "css");
 add_mode_for_extension ("css1", "css1");
 add_mode_for_extension ("gnuplot", "gnuplot");  % gnuplot plotting program
 add_mode_for_extension ("gnuplot", "gp");
-add_mode_for_extension ("mupad", "mu"); % mode for mupad files
 foreach (["man", "1", "2", "3", "4", "5", "6", "7", "8"]) {
   $2 = ();
   add_mode_for_extension ("manedit", $2);
 }
+add_mode_for_extension ("mupad", "mu"); % mode for mupad files
 add_mode_for_extension ("ruby", "rb");
 add_mode_for_extension ("sql", "sql");
 

Modified: jed-extra/trunk/debian/examples/jed-extra.rc
===================================================================
--- jed-extra/trunk/debian/examples/jed-extra.rc	2007-05-16 07:49:42 UTC (rev 697)
+++ jed-extra/trunk/debian/examples/jed-extra.rc	2007-05-16 08:04:42 UTC (rev 698)
@@ -51,7 +51,7 @@
 %   
 %   Another option is to require() or autoload() with the path
 %   relative to the jed-library-path, (you can copy autoloads from
-%   /usr/share/jed/jed-extra/extra/ini.sl)  
+%   /usr/share/jed/jed-extra/extra/ini.sl and prepend "extra/" to the path)  
 %   
 %   However, this approach will fail if the mode depends on another "extra"
 %   mode and expects it in the jed-library-path.
@@ -71,7 +71,18 @@
 %
 % % services.sl: uri_hooks for some common URI schemes.
 % require("services", "extra/services.sl");
+%
+% % svn.sl: Add a "File>Version Control" popup
+% autoload("svn_menu_callback", "extra/svn");
+% define svn_load_popup_hook(menubar)
+% {
+%    variable menu = "Global.&File";
+%    menu_insert_popup("Canc&el Operation", menu, "&Version Control");
+%    menu_set_select_popup_callback(menu+".&Version Control", &svn_menu_callback);
+% }
+% append_to_hook("load_popup_hooks", &svn_load_popup_hook);
 
+
 % Full activation of "extra" modes (Uncomment at your own risc)
 % append_libdir($1 + "extra/", 0);  % append but do not initialize
 % append_libdir($1 + "extra/", 1);  % append and initialize




More information about the Pkg-jed-commit mailing list