Bug#180577: Opening *.info files without launching info_mode

Rafael Laboissiere rafael at debian.org
Tue Jan 16 10:44:04 CET 2007


package jed 
tags 180577 upstream
thanks

[Please, respect the M-F-T header when replying.]

A bug report (http://bugs.debian.org/180577) has been filed against the the
jed package in Debian regarding the behavior of JED when opening a file with
the .info extension.  In this situation, instead of opening a window for
editing the file directly, info_mode() is called, which results in the info
browser being launched.  This can confuse users.

I am considering to apply the patch attached below to sitel.sl in order to
make an exception for *.info files in mode_hook().  After all, there is no
mode to edit directly info files, since these are files generated from
texinfo sources.

Please tell me whether this solution is acceptable or if there is a better
fix.

-- 
Rafael Laboissiere
-------------- next part --------------
--- 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))


More information about the Pkg-jed-devel mailing list