From: Reiner Steib <reinersteib+gmane@imap.cc>
To: emacs-devel@gnu.org
Cc: Xavier Maillard <xma@gnu.org>
Subject: Re: Readings for an emacs package maintainer ?
Date: Mon, 01 Jun 2009 20:56:23 +0200 [thread overview]
Message-ID: <87fxeju6js.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <D0734B74B7874AAEA165BF72F10FEAF4@us.oracle.com> (Drew Adams's message of "Mon, 1 Jun 2009 09:14:20 -0700")
> 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/
next prev parent reply other threads:[~2009-06-01 18:56 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 [this message]
2009-06-01 19:04 ` Lennart Borgman
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=87fxeju6js.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--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).