This file is indexed.

/usr/share/jed/jed-extra/drop-in/infomisc.sl is in jed-extra 2.5.6-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
% infomisc.sl -*- mode: SLang; mode: fold -*-
% autoloaded functions for info

require("info");
use_namespace("info");
%{{{ full search
public define info_search ()
{
   variable this_line, this_file, str, err_str, file, wline, ifile, ext;
   err_str = "String not found.";
   
   str = read_mini("Re-Search:", LAST_SEARCH, Null_String);
   ifnot (strlen(str)) return;
   save_search_string(str);
   widen(); go_right_1 (); 
   if (re_fsearch(str)) 
     {
	info_narrow();
	return;
     }
   
   %
   %  Not found.  Look to see if this is split.
   %
   if (indirect == NULL)
     {
	info_narrow();
	throw RunTimeError, err_str;
     }
   
   this_file = Info_This_Filename;
   this_line = what_line();
   wline = window_line(); %need this so state can be restored after a failure.
   
   variable is_later=0;
   foreach file (indirect.files)
     {
	ifnot (is_later)
	  {
	     if (file == extract_filename(this_file))
	       is_later = 1;
	     continue;
	  }
	flush("Searching " + file);
	(ifile, ext) = info_make_file_name(file);
#ifdef UNIX OS2
	if (strlen(ext))
	  {
	     variable re = str;
	     
	     % Not all greps support -e option.  So, try this:
	     if (re[0] == '-') re = "\\" + re;
	     
	     setbuf(" *Info*zcat*"); erase_buffer();
	     
	     () = run_shell_cmd(sprintf("%s %s%s | grep -ci '%s'",
					make_unzip_cmd (ext),
					ifile, ext,
					re));
	     bob();
	     if (looking_at_char ('0'))
	       {
		  % what's this for?
		  continue;
	       }
	  }
	else
#endif
	  ifnot (search_file(ifile, str, 1))
	  {
	     continue;
	  }
	
	info_find_file(file);
	()=fsearch(str);
	info_narrow();
	info_push_position(this_file, indirect, this_line);
	return;
     }
   widen();
   info_find_file (this_file);
   goto_line(this_line); eol();
   info_narrow();
   recenter(wline);
   throw RunTimeError, err_str;
}

%}}}
%{{{ index search

private variable index = NULL;

public define info_index_next()
{
   if (index==NULL) throw RunTimeError, "do an index search first";
   ifnot (length(index.matches)) throw RunTimeError, "no matches";
   if (index.file != info_extract_pointer("File"))
     info_find_node(sprintf("(%s)Top",index.file));
   info_find_node(index.matches[index.index]);
   vmessage("found %s (%d more)", index.matches[index.index],
	    length(index.matches) - index.index -1);
   index.index++;
   if (index.index == length(index.matches))
     index.index = 0;
}

% Do index search on an info file. The optional arg is
% used by info_lookup.
public define info_index()		       %  [topic]
{
   variable matches = Assoc_Type[Integer_Type],
     this_match = "", next_node, have_index = 0, wline;
   index = struct
     {
	matches,
	index,
	file
     };
   index.file=info_extract_pointer("File");
   
   if (bufferp("*Info*"))
     {
	sw2buf("*Info*");
     }
   ifnot (_NARGS)
     read_mini("index: ", "", "");
   variable s = ();
   wline = window_line();

   info_find_node("Top");
   index.matches = {};
   index.index = 0;
   variable e;
   try (e)
     {     
	ifnot(re_fsearch("^* .*[Ii]ndex:"))
	  throw RunTimeError, "no index";
	info_keep_history = 0;
	follow_menu;
	if (s == "") 
	  {
	     info_keep_history = 1;
	     return;
	  }
	forever
	  {
	     ifnot(fsearch(s))
	       {
		  ifnot(have_index) break;
		  next_node = info_extract_pointer("Next");
		  if (next_node != NULL && is_substr(next_node, "Index"))
		    {
		       info_find_node(next_node);
		       continue;
		    }
		  break;
	       }
	     eol;
	     push_mark;
	     () = bfind_char(':');
	     skip_chars(": \t");
	     this_match = strtrim_end(bufsubstr, " \t.");
	     this_match = extract_element(this_match, 0, '.');
	     eol;
	     if (strlen(this_match) && not assoc_key_exists(matches, this_match))
	       {
		  matches[this_match]=1;
		  list_append(index.matches, this_match);
	       }
	  }
	index.index = 0;
	info_index_next();
	info_keep_history = 1;
     }
   catch RunTimeError:
     {
	info_keep_history = 1;
	pop_position;
	recenter(wline);
	throw RunTimeError, e.message;
     }
}


%}}}