bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#422664: gettext-el: 50gettext.el setups when package removed (fw


From: Kevin Ryde
Subject: Re: Bug#422664: gettext-el: 50gettext.el setups when package removed (fwd)
Date: Tue, 18 May 2010 09:40:48 +1000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Santiago Vila <address@hidden> writes:
>
> How could I modify 50gettext.el minimally so that it enters emacs
> fundamental mode when po-mode.el is no longer available and the user
> tries to edit a po file?

Normally setups should be wrapped in a check for a file or directory in
package (not a conf-file).  Eg.

(if (not (file-exists-p "/usr/share/emacs/site-lisp/gettext"))
    (message "Package gettext-el removed but not purged. Skipping setup.")

  ;; setups here ...
  )

There's differences among debian packages in the exact way this is done
(and sloppiness in a few packages :-) but basically variations on the
theme.

(I think this is purely a debian matter, not a bug-gettext.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]