Package: desktop-file-utils
Version: 0.15-2
Severity: wishlist
Tags: patch

It'd be good if desktop-entry-mode.el from the sources was included in
the package.  Chucking it in /usr/share/emacs/site-lisp and a bit of an
autoload file would be enough to start (and doesn't create a dependency
on emacs or anything.)

I get some joy from the rules.diff and debian/emacsen-startup file
below.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)

Kernel: Linux 2.6.30-1-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages desktop-file-utils depends on:
ii  libc6                         2.10.1-3   GNU C Library: Shared libraries
ii  libglib2.0-0                  2.22.4-1   The GLib library of C routines

desktop-file-utils recommends no packages.

desktop-file-utils suggests no packages.

-- no debconf information


;;; 50desktop-file-utils.el -- setups for desktop-entry-mode.el

;; this is a conf-file, so can remain after rest of package removed
(if (not (file-exists-p "/usr/share/emacs/site-lisp/desktop-entry-mode.el"))
    (message "desktop-file-utils removed but not purged, skipping setup")

  ;; autoload forms as recommended by desktop-entry-mode.el,
  ;; except use \\' not $ for end-of-string
  (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
  (add-to-list 'auto-mode-alist
               '("\\.desktop\\(\\.in\\)?\\'" . desktop-entry-mode)))

;; Coding system can be set whether desktop-entry-mode.el present or not.
;;
;; xemacs21 doesn't have utf-8 builtin, but this setting does no harm
;; (because `find-file-coding-system-for-read-from-filename' puts it through
;; `find-coding-system').  mule-ucs or similar may create a utf-8 either at
;; startup or later on by user request.
;;
;; The old "Encoding=Legacy-Mixed" format .desktop files are not utf-8, but
;; hopefully they're fairly dead.  Getting Emacs to use a different encoding
;; on each line of the file would need some hairy stuff (not impossible, but
;; not easy).
;;
(add-to-list 'file-coding-system-alist
             '("\\.desktop\\(\\.in\\)?\\'" . utf-8))
--- ../../rules.orig	2010-02-17 11:50:28.000000000 +1100
+++ rules	2010-02-17 11:53:31.000000000 +1100
@@ -9,5 +9,12 @@
 	debian/desktop-file-validate.1 \
 	debian/desktop-file-install.8
 
+# misc/Makefile only installs desktop-entry-mode.el if have an emacs at
+# build time, so explicit dh_install to ensure always.
+#
+# "rm" of anything misc/Makefile does install since it includes an emacs
+# flavour-specific .elc file.
+#
 binary-install/desktop-file-utils::
 	rm -rf debian/desktop-file-utils/usr/share/emacs
+	dh_install misc/desktop-entry-mode.el /usr/share/emacs/site-lisp

Reply via email to