This file is indexed.

/usr/share/gps/plug-ins/editors.py is in gnat-gps-common 6.1.2016-1ubuntu1.

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
"""Add a menu to close all editors

This script adds a new menu /File/Close All Editors that close all open editors
(and only editors) upon activation.
"""

############################################################################
# No user customization below this line
############################################################################

import GPS
import gps_utils


@gps_utils.interactive(name='close all editors')
def close_editors():
    """
    Save and close all source editors.
    """
    GPS.execute_action("/File/Save More/All")
    for ed in GPS.EditorBuffer.list():
        ed.close(True)


@gps_utils.interactive(name='close all editors except current')
def close_editors_except_current():
    """
    Save and close all source editors, except the curret one.
    """
    buffer = GPS.EditorBuffer.get(open=False)
    GPS.execute_action("/File/Save More/All")
    for ed in GPS.EditorBuffer.list():
        if ed != buffer:
            ed.close(True)