From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: fontification problem with PODs Date: Thu, 06 May 2010 22:55:06 -0400 Message-ID: References: <91a903ec-dfbe-4f8c-b607-4253d832e0d1@m20g2000vbp.googlegroups.com> <87bpibd4lz.fsf@kzsu.stanford.edu> <32490ecc-3fcd-438c-890e-18f1040d7898@c3g2000yqd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273236071 6046 80.91.229.12 (7 May 2010 12:41:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 May 2010 12:41:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 07 14:41:08 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OAMrc-0005cp-GP for geh-help-gnu-emacs@m.gmane.org; Fri, 07 May 2010 14:41:08 +0200 Original-Received: from localhost ([127.0.0.1]:34061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAMrb-0000p0-RX for geh-help-gnu-emacs@m.gmane.org; Fri, 07 May 2010 08:41:07 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe23.iad.POSTED!7564ea0f!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:UYiFC9vsJJz95OUKAKcdw7YJF8E= Original-Lines: 23 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Fri, 07 May 2010 02:55:06 UTC Original-Xref: usenet.stanford.edu gnu.emacs.help:178021 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73554 Archived-At: >> 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