Package: dpkg-dev-el
Version: 24.11-1
Severity: wishlist
The code below is an idea for /etc/emacs/site-start.d/50dpkg-dev-el.el
to get the correct coding system (ie. utf-8) for the changelog file in
a debian native package, eg. /usr/share/doc/adduser/changelog.gz.
This is for gnu emacs, xemacs seems to do something different when
visiting compressed files. There's no actual harm in xemacs, it just
doesn't have the intended effect.
(defun debian-changelog-coding-system (args)
"Return the coding system for a /usr/share/doc/[package]/changelog file.
If [package] is a debian native (no separate changelog.Debian) then answer
`utf-8', otherwise remove ourselves from `file-coding-system-alist' and see
what other rules say."
(let ((dirname (file-name-directory (cadr args))))
(if (file-exists-p (concat dirname "changelog.Debian.gz"))
(let ((file-coding-system-alist
(remove '("/usr/share/doc/[^/]+/changelog\\'"
. debian-changelog-coding-system)
file-coding-system-alist)))
(apply 'find-operation-coding-system args))
'utf-8)))
(modify-coding-system-alist 'file "/usr/share/doc/[^/]+/changelog\\'"
'debian-changelog-coding-system)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i586)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.10-1-386
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_AU)
Versions of packages dpkg-dev-el depends on:
ii debian-el 24.11-1 Emacs helpers specific to Debian u
ii emacs21 [emacsen] 21.4a-1 The GNU Emacs editor
ii xemacs21-mule [emacsen] 21.4.17-2 highly customizable text editor --
Versions of packages dpkg-dev-el recommends:
ii wget 1.10-2 retrieves files from the web
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]