[Pkg-jed-commit] r500 - in jed/trunk/debian: . patches

Rafael Laboissiere rafael at alioth.debian.org
Tue Jan 16 12:02:20 CET 2007


Author: rafael
Date: 2007-01-16 12:02:19 +0100 (Tue, 16 Jan 2007)
New Revision: 500

Added:
   jed/trunk/debian/patches/no-info-in-mode-hook.dpatch
Modified:
   jed/trunk/debian/changelog
   jed/trunk/debian/patches/00list
Log:
* debian/patches/no-info-in-mode-hook.dpatch: In function mode_hook(),
  to make an exception for *.info files, such that info_mode() is not
  called.


Modified: jed/trunk/debian/changelog
===================================================================
--- jed/trunk/debian/changelog	2007-01-15 17:29:44 UTC (rev 499)
+++ jed/trunk/debian/changelog	2007-01-16 11:02:19 UTC (rev 500)
@@ -6,6 +6,11 @@
     and pymode-repeat-shift, which were temporarily dropped in the last
     release (again, closes: #305668) [RL]
 
+  * debian/patches/no-info-in-mode-hook.dpatch: In function mode_hook(),
+    to make an exception for *.info files, such that info_mode() is not
+    called.  This allows editing info files directly, instead of launching
+    the info browser (closes: #180577). [RL]
+
  --
 
 jed (0.99.18-8) unstable; urgency=low

Modified: jed/trunk/debian/patches/00list
===================================================================
--- jed/trunk/debian/patches/00list	2007-01-15 17:29:44 UTC (rev 499)
+++ jed/trunk/debian/patches/00list	2007-01-16 11:02:19 UTC (rev 500)
@@ -17,3 +17,4 @@
 doc
 fix-pymode-tab-space
 pymode-repeat-shift  /* depends on fix-pymode-tab-space */
+no-info-in-mode-hook

Added: jed/trunk/debian/patches/no-info-in-mode-hook.dpatch
===================================================================
--- jed/trunk/debian/patches/no-info-in-mode-hook.dpatch	2007-01-15 17:29:44 UTC (rev 499)
+++ jed/trunk/debian/patches/no-info-in-mode-hook.dpatch	2007-01-16 11:02:19 UTC (rev 500)
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## no-info-in-mode-hook.dpatch by Rafael Laboissiere <rafael at debian.org>
+##
+
+## DP: In function mode_hook(), to make an exception for *.info files,
+## DP: such that info_mode() is not called.  This allows editing info
+## DP: files directly, instead of launching the info browser.
+
+ at DPATCH@
+
+--- jed-0.99.18.orig/lib/site.sl
++++ jed-0.99.18/lib/site.sl
+@@ -1883,8 +1883,11 @@
+    mode = strcat (strlow (ext), "_mode");
+    if (is_defined (mode) > 0)
+      {
+-	eval (mode);
+-	return;
++        if (mode != "info_mode")
++	  {
++	     eval (mode);
++	     return;
++	  }
+      }
+ 
+    !if (strncmp (strup (extract_filename (buffer_filename ())), "READ", 4))


Property changes on: jed/trunk/debian/patches/no-info-in-mode-hook.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-jed-commit mailing list