From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Readings for an emacs package maintainer ? Date: Mon, 1 Jun 2009 21:04:46 +0200 Message-ID: References: <87k53wh16c.wl%xma@gnu.org> <87fxeju6js.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243883112 19295 80.91.229.12 (1 Jun 2009 19:05:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2009 19:05:12 +0000 (UTC) To: Reiner Steib , emacs-devel@gnu.org, Xavier Maillard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 01 21:05:05 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MBCof-0006Rz-Hu for ged-emacs-devel@m.gmane.org; Mon, 01 Jun 2009 21:05:02 +0200 Original-Received: from localhost ([127.0.0.1]:50700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBCof-0007MZ-34 for ged-emacs-devel@m.gmane.org; Mon, 01 Jun 2009 15:05:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBCoZ-0007MO-KT for emacs-devel@gnu.org; Mon, 01 Jun 2009 15:04:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBCoU-0007Ln-58 for emacs-devel@gnu.org; Mon, 01 Jun 2009 15:04:54 -0400 Original-Received: from [199.232.76.173] (port=48503 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBCoT-0007Lk-WC for emacs-devel@gnu.org; Mon, 01 Jun 2009 15:04:50 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:58058) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBCoR-000885-T1; Mon, 01 Jun 2009 15:04:48 -0400 Original-Received: by fxm17 with SMTP id 17so8620017fxm.42 for ; Mon, 01 Jun 2009 12:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=gZIr4U/vive/pLInpuZrGb/CQfkgm07+kiBhvLOHlvE=; b=Fuz2wx6ZBymAzTmElV5L063WPrDEhoMH00r2zZ1qnvUQC1cytf4/Q5Z/mL/SAtkTzN C7zvfujQ9R+YiIyIvTC7bFUxB5pI836Z5EMsvvZQxgo4S0jWORPuqQt/if6gR4BJVMX6 XhR9oMPy40/q8HLgxIhyicA3YXbMirLFm7Qbw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=f8p5Q8Kk9ueCZGu0AhM2dmxhldJLIxx4gd6NqjyPGH9ueCGCCVLuACOOQU4Q7yZyAM fH3eyEpzlzSb2t4uI3wOCKXG/X+i88TqyA1sXHKmBoiUgPtrMabKbqp0Qo2P2CZ0I7Vy WzMsboHrPamBgOmhOivaJ06Ui2fwXibaZhouY= Original-Received: by 10.239.154.3 with SMTP id b3mr440814hbc.114.1243883086294; Mon, 01 Jun 2009 12:04:46 -0700 (PDT) In-Reply-To: <87fxeju6js.fsf@marauder.physik.uni-ulm.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111259 Archived-At: On Mon, Jun 1, 2009 at 8:56 PM, Reiner Steib wr= ote: >> There are other tips in the Elisp manual, node Coding >> Conventions. These, for instance: >> >> =C2=A0If a package needs to define an alias or a new function for >> =C2=A0compatibility with some other version of Emacs, name it with the >> =C2=A0package prefix, not with the raw name with which it occurs in the >> =C2=A0other version. =C2=A0Here is an example from Gnus, which provides = many >> =C2=A0examples of such compatibility issues. >> >> =C2=A0 (defalias 'gnus-point-at-bol >> =C2=A0 =C2=A0 (if (fboundp 'point-at-bol) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 'point-at-bol >> =C2=A0 =C2=A0 =C2=A0 'line-beginning-position)) >> >> =C2=A0Redefining or advising an Emacs primitive is a bad idea. =C2=A0It = may do >> =C2=A0the right thing for a particular program, but there is no telling >> =C2=A0what 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. =C2=A0Unfortunately Xavier didn't f= ix > 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.)