unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Reiner Steib <Reiner.Steib@gmx.de>,
	emacs-devel@gnu.org, Xavier Maillard <xma@gnu.org>
Subject: Re: Readings for an emacs package maintainer ?
Date: Mon, 1 Jun 2009 21:04:46 +0200	[thread overview]
Message-ID: <e01d8a50906011204q75a1e3b0hc73348fa625bf607@mail.gmail.com> (raw)
In-Reply-To: <87fxeju6js.fsf@marauder.physik.uni-ulm.de>

On Mon, Jun 1, 2009 at 8:56 PM, Reiner Steib <reinersteib+gmane@imap.cc> wrote:
>> 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.


Ah, I wondered why a lot of things stopped working when I tested
color-themes. (This is very troublesome with something like mumamo
since debugging fontification errors is hard and time consuming.)




  reply	other threads:[~2009-06-01 19:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-01  7:18 Readings for an emacs package maintainer ? Xavier Maillard
2009-06-01  9:13 ` Lennart Borgman
2009-06-01 16:14   ` Drew Adams
2009-06-01 18:56     ` Reiner Steib
2009-06-01 19:04       ` Lennart Borgman [this message]
2009-06-01 19:11       ` Drew Adams
2009-06-01 12:43 ` Xavier MAILLARD
2009-06-01 14:15   ` Miles Bader
2009-06-02  2:17     ` Stephen J. Turnbull
2009-06-02  2:36       ` Miles Bader
2009-06-02 12:02       ` Deniz Dogan
2009-06-02 14:07         ` Stephen J. Turnbull
2009-06-01 16:15   ` Drew Adams
2009-06-01 16:21 ` Bastien
2009-06-01 17:05   ` Drew Adams
2009-06-01 20:35 ` Stefan Monnier
2009-06-01 22:01   ` Leo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50906011204q75a1e3b0hc73348fa625bf607@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=xma@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).