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: Stefan Monnier
Subject: Re: fontification problem with PODs
Date: Thu, 06 May 2010 22:55:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> 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.)

Emacs's cperl-mode is not preloaded, so (featurep 'cperl-mode) should
pretty much always return nil.
If there are issues, they would come from the parts of Emacs's
cperl-mode.el that have a ;;;###autoload cookie.  Everything else should
have no effect.


        Stefan


reply via email to

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