/usr/share/emacs/site-lisp/id-utils.el is in id-utils 4.6+git20120811-4ubuntu2.
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 | ;;; idutils.el --- emacs interface to `lid -R grep', a.k.a. `gid'
;;; Copyright (C) 1995-1996, 2006-2012 Free Software Foundation, Inc.
;;; Greg McGary <gkm@gnu.ai.mit.edu>.
;; This file is part of GNU idutils.
;; GNU idutils is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; GNU idutils is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; This package provides the tools meant to help editing PO files,
;;; as documented in the GNU idutils user's manual. See this manual
;;; for user documentation, which is not repeated here.
;;; To install, merely put this file somewhere GNU Emacs will find it,
;;; then add the following lines to your .emacs file:
;;;
;;; (autoload 'gid "idutils" "run idutils' gid command" t)
;;;
;;; You may also adjust some customizations variables, below, by defining
;;; them in your .emacs file.
(require 'compile)
(require 'thingatpt)
(defvar gid-command "gid" "The command run by the gid function.")
(defvar gid-mode-font-lock-keywords
'(("^\\(Compilation\\|Gid\\) \\(started\\|finished\\).*"
(0 '(face nil message nil help-echo nil mouse-face nil) t))))
(defvar gid-use-search-in-buffer-name t
"If non-nil, use the search string in the gid buffer's name.")
(define-compilation-mode gid-mode "Gid"
"Specialization of compilation-mode for use with gid."
nil)
;;;###autoload
(defun gid (args)
"Run gid, with user-specified ARGS, and collect output in a buffer.
While gid runs asynchronously, you can use the \\[next-error] command to
find the text that gid hits refer to. The command actually run is
defined by the gid-command variable."
(interactive (list (read-shell-command
(concat "Run " gid-command " (with args): ") (thing-at-point 'symbol))))
(let (compile-command
(compilation-error-regexp-alist grep-regexp-alist)
(compilation-directory default-directory)
(gid-full-buffer-name (concat "*gid-" args "*")))
(save-some-buffers (not compilation-ask-about-save) nil)
(compilation-start (concat gid-command " " args) 'gid-mode
(when gid-use-search-in-buffer-name
(function (lambda (ignore)
gid-full-buffer-name)))
(regexp-quote args))))
(provide 'idutils)
;;; idutils.el ends here
|