From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.bugs Subject: Re: line-beginning-position/line-end-position undefined Date: Fri, 04 Apr 2008 17:46:29 +0200 Message-ID: References: <4A5028372622294A99B8FFF6BD06EB7B0410B57C@USDALSMBS03.ad3.ad.alcatel.com> <18408.57067.526770.607574@fangorn.hornik.net> 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 1207324093 24321 80.91.229.12 (4 Apr 2008 15:48:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 15:48:13 +0000 (UTC) Cc: ATKINSON Lee , bug-gnu-emacs@gnu.org To: Kurt Hornik Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 04 17:48:45 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jho9T-0001rb-Ek for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 17:48:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jho8l-0004ps-Kw for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 11:47:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jho8f-0004m6-9F for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 11:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jho8W-0004aj-CY for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 11:47:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jho8W-0004aO-7m for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 11:47:28 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jho8U-0000s5-JM for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 11:47:28 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m34Fkj8u003845; Fri, 4 Apr 2008 17:46:46 +0200 (MEST) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 76FDD12FB5; Fri, 4 Apr 2008 17:46:44 +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: Kurt.Hornik@wu-wien.ac.at, "ATKINSON Lee" , bug-gnu-emacs@gnu.org User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2.50 (gnu/linux) X-DCC-CollegeOfNewCaledonia-Metrics: poseidon 1189; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: by amavisd-new X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17798 Archived-At: On Tue, Mar 25 2008, Kurt Hornik wrote: > I see that ESS has > > ;; XEmacs <= 21.4.15 needs this > (if (not (fboundp 'line-beginning-position)) > (defalias 'line-beginning-position 'point-at-bol)) > > so this should do the job. Bad idea. This is a recipe for trouble. No package should define function out of its own namespace. Please report it as a bug to the ESS maintainer. ,----[ (info "(elisp)Coding Conventions") ] | * 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)) `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/