jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Opening *.info files without launching info_mode


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
--- 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))

[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]