From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Maechler Newsgroups: gmane.emacs.bugs Subject: Re: line-beginning-position/line-end-position undefined Date: Mon, 7 Apr 2008 12:34:14 +0200 Message-ID: <18425.63654.844690.65173@stat.math.ethz.ch> References: <4A5028372622294A99B8FFF6BD06EB7B0410B57C@USDALSMBS03.ad3.ad.alcatel.com> <18408.57067.526770.607574@fangorn.hornik.net> Reply-To: Martin Maechler NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207587500 1748 80.91.229.12 (7 Apr 2008 16:58:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2008 16:58:20 +0000 (UTC) Cc: ATKINSON Lee , bug-gnu-emacs@gnu.org, ESS-core@stat.math.ethz.ch To: Reiner Steib Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 07 18:58:50 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 1Jiug1-0004HN-M3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Apr 2008 18:58:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiufO-0001Gs-Mc for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Apr 2008 12:57:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jioh7-0005Sp-Ab for bug-gnu-emacs@gnu.org; Mon, 07 Apr 2008 06:35:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jioh1-0005S1-1t for bug-gnu-emacs@gnu.org; Mon, 07 Apr 2008 06:35:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jiogz-0005RR-Ar for bug-gnu-emacs@gnu.org; Mon, 07 Apr 2008 06:35:13 -0400 Original-Received: from hypatia.math.ethz.ch ([129.132.145.15]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jiogy-00055E-JN for bug-gnu-emacs@gnu.org; Mon, 07 Apr 2008 06:35:12 -0400 Original-Received: from lynne.ethz.ch (lynne [129.132.58.30]) by hypatia.math.ethz.ch (8.14.1/8.14.1) with ESMTP id m37AYFDh022733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Apr 2008 12:34:15 +0200 Original-Received: (from maechler@localhost) by lynne.ethz.ch (8.13.8/8.13.1/Submit) id m37AYEPv021865; Mon, 7 Apr 2008 12:34:14 +0200 In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 07 Apr 2008 12:57:52 -0400 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:17813 Archived-At: This is now fixed for ESS 5.3.7 (the next version). Thank you for the notice. Martin Maechler, ETH Zurich, for the ESS core team. >>>>> "RS" == Reiner Steib >>>>> on Fri, 04 Apr 2008 17:46:29 +0200 writes: RS> 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. RS> Bad idea. This is a recipe for trouble. No package should define RS> function out of its own namespace. Please report it as a bug to the RS> ESS maintainer. RS> ,----[ (info "(elisp)Coding Conventions") ] RS> | * If a package needs to define an alias or a new function for RS> | compatibility with some other version of Emacs, name it with the RS> | package prefix, not with the raw name with which it occurs in the RS> | other version. Here is an example from Gnus, which provides many RS> | examples of such compatibility issues. RS> | RS> | (defalias 'gnus-point-at-bol RS> | (if (fboundp 'point-at-bol) RS> | 'point-at-bol RS> | 'line-beginning-position)) RS> `---- RS> Bye, Reiner. RS> -- RS> ,,, RS> (o o) RS> ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/