Package: gettext-el
Version: 0.18.1.1-3
Severity: normal
File: /etc/emacs/site-start.d/50gettext.el
Visiting a .po file in a tar-mode .tar file such as
touch x.po
tar cf x.tar x.po
emacs -q x.tar
press Return (`tar-extract')
gets an error
Wrong type argument: stringp, ("x.po" . #<buffer *tar-data x.tar*>)
I think the po-compat.el `po-find-file-coding-system' doesn't recognise
the "filename" passed to a file coding system handler func can be a cons
(NAME . BUFFER), in recent emacs at least.
emacs23 already has a `po-find-file-coding-system' and .po coding system
setups, I think 50gettext.el might leave that alone. In that file I
think its test
(featurep 'po-find-file-coding-system)
is probably wrong. `po-find-file-coding-system' is a function
not a feature as such. Perhaps something like the following
;; emacs21 up has `po-find-file-coding-system' etc builtin
;; xemacs21 requires gettext/po-compat.el
(unless (functionp 'po-find-file-coding-system)
(autoload 'po-find-file-coding-system "gettext/po-compat")
(if (fboundp 'modify-coding-system-alist)
(modify-coding-system-alist 'file "\\.po[tx]?\\'\\|\\.po\\."
'po-find-file-coding-system)))
Incidentally, instead of conditionalizing modify-coding-system-alist if
there's doubt about it being available, it may be easier to simply
(add-to-list 'file-coding-system-alist ...) explicitly.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages gettext-el depends on:
ii emacs21 [emacsen] 21.4a+1-5.7 The GNU Emacs editor
ii emacs22-gtk [emacsen] 22.3+1-1.2 The GNU Emacs editor (with GTK use
ii emacs23 [emacsen] 23.3+1-1 The GNU Emacs editor (with GTK+ us
ii gettext 0.18.1.1-3 GNU Internationalization utilities
ii xemacs21-mule [emacsen] 21.4.22-3 highly customizable text editor --
gettext-el recommends no packages.
gettext-el suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]