help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: fontification problem with PODs


From: Juanma Barranquero
Subject: Re: fontification problem with PODs
Date: Fri, 7 May 2010 03:31:39 +0200

On Thu, May 6, 2010 at 22:08, Ilya Zakharevich <nospam-abuse@ilyaz.org> wrote:

> How
> should a module writer deal with a possibility to have a buggy version
> preloaded?

Assuming your version is loaded with `load' (because with `require' it
won't be loaded if the buggy version already is), perhaps some
variation of this:

(when (featurep 'cperl-mode)  ; or some other check
  (unload-feature 'cperl-mode)
  (require 'cperl-mode))

How effective that is depends on how well `unload-feature' deals with
cperl-mode. (Not very well, at the moment, but a
cperl-mode-unload-function could be added to standard Emacs.)

    Juanma




reply via email to

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