[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: line-beginning-position/line-end-position undefined

From: Martin Maechler
Subject: Re: line-beginning-position/line-end-position undefined
Date: Mon, 7 Apr 2008 12:34:14 +0200

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 <address@hidden>
>>>>>     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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]