[Top][All Lists]

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

Re: Readings for an emacs package maintainer ?

From: Reiner Steib
Subject: Re: Readings for an emacs package maintainer ?
Date: Mon, 01 Jun 2009 20:56:23 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux)

> There are other tips in the Elisp manual, node Coding
> Conventions. These, for instance:
>  If a package needs to define an alias or a new function for
>  compatibility with some other version of Emacs, name it with the
>  package prefix, not with the raw name with which it occurs in the
>  other version.  Here is an example from Gnus, which provides many
>  examples of such compatibility issues.
>   (defalias 'gnus-point-at-bol
>     (if (fboundp 'point-at-bol)
>         'point-at-bol
>       'line-beginning-position))
>  Redefining or advising an Emacs primitive is a bad idea.  It may do
>  the right thing for a particular program, but there is no telling
>  what other programs might break as a result.

It's funny that I pointed Xavier to this very node in March 2008 when
reporting such a bug in color-theme (see https://gna.org/bugs/?9494)
which overwrites `replace-in-string' in an incompatible way which
breaks Gnus, Muse, emacs-jabber, etc.  Unfortunately Xavier didn't fix
this up to now, AFAIK.

Bye, Reiner.
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

reply via email to

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