From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: Readings for an emacs package maintainer ? Date: Mon, 01 Jun 2009 20:56:23 +0200 Message-ID: <87fxeju6js.fsf@marauder.physik.uni-ulm.de> References: <87k53wh16c.wl%xma@gnu.org> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243882620 17489 80.91.229.12 (1 Jun 2009 18:57:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2009 18:57:00 +0000 (UTC) Cc: Xavier Maillard To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 01 20:56:57 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 1MBCgq-0008L7-EG for ged-emacs-devel@m.gmane.org; Mon, 01 Jun 2009 20:56:56 +0200 Original-Received: from localhost ([127.0.0.1]:33528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBCgp-0002bW-P4 for ged-emacs-devel@m.gmane.org; Mon, 01 Jun 2009 14:56:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBCga-0002TU-9a for emacs-devel@gnu.org; Mon, 01 Jun 2009 14:56:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBCgV-0002Ps-QB for emacs-devel@gnu.org; Mon, 01 Jun 2009 14:56:39 -0400 Original-Received: from [199.232.76.173] (port=46233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBCgU-0002PW-O5 for emacs-devel@gnu.org; Mon, 01 Jun 2009 14:56:34 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]:49140) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBCgR-0005Zd-A1; Mon, 01 Jun 2009 14:56:31 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n51IuQrN010137; Mon, 1 Jun 2009 20:56:26 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 47F361CCE3; Mon, 1 Jun 2009 20:56:26 +0200 (CEST) X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.; yo.b yq4$p; ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Followup-To: emacs-devel@gnu.org, Xavier Maillard In-Reply-To: (Drew Adams's message of "Mon, 1 Jun 2009 09:14:20 -0700") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:111258 Archived-At: > 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/