unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Re: line-beginning-position/line-end-position undefined
       [not found] <4A5028372622294A99B8FFF6BD06EB7B0410B57C@USDALSMBS03.ad3.ad.alcatel.com>
@ 2008-03-25 11:15 ` Kurt Hornik
  2008-04-04 15:46   ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Kurt Hornik @ 2008-03-25 11:15 UTC (permalink / raw)
  To: ATKINSON Lee; +Cc: Kurt.Hornik, bug-gnu-emacs

>>>>> ATKINSON Lee writes:

> Kurt,
>   While editing an octave dot-m file i get "Symbol's function definition
> is void: line-beginning-position" whenever I attempt to put a space in a
> comment line or insert an assignment, etc.
> I am using XEmacs 21.4.19\586-pc-win32
> I feel comfortable editing emacs or XEmacs dot-el (lisp) files and
> believe there may be several variables that are undefined. The above
> should probably be aliased to point-at-bol/point-at-eol or something
> like that.
 
> Do you already have a known fix?
> Thanks for your Help!
> ________________________________________ 
> Lee Atkinson 

> Software Engineer 
>   FTTU - OLT Software 	
>   Alcatel-Lucent 	
> 2301 Sugar Bush Road, Raleigh, NC 27612 
> Office 2A018 / 919-850-5186 
> E-mail:    lee.atkinson@alcatel-lucent.com
> <mailto:lee.atkinson@alcatel-lucent.com> 
 
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.  Or, maybe upgrade to a more recent version
of XEmacs :-)

Don't this this is a bug report for GNU Emacs, though ...

Best
-k




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: line-beginning-position/line-end-position undefined
  2008-03-25 11:15 ` line-beginning-position/line-end-position undefined Kurt Hornik
@ 2008-04-04 15:46   ` Reiner Steib
  2008-04-07 10:34     ` Martin Maechler
  0 siblings, 1 reply; 3+ messages in thread
From: Reiner Steib @ 2008-04-04 15:46 UTC (permalink / raw)
  To: Kurt Hornik; +Cc: ATKINSON Lee, bug-gnu-emacs

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/




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: line-beginning-position/line-end-position undefined
  2008-04-04 15:46   ` Reiner Steib
@ 2008-04-07 10:34     ` Martin Maechler
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Maechler @ 2008-04-07 10:34 UTC (permalink / raw)
  To: Reiner Steib; +Cc: ATKINSON Lee, bug-gnu-emacs, ESS-core

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 <reinersteib+gmane@imap.cc>
>>>>>     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/





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-07 10:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4A5028372622294A99B8FFF6BD06EB7B0410B57C@USDALSMBS03.ad3.ad.alcatel.com>
2008-03-25 11:15 ` line-beginning-position/line-end-position undefined Kurt Hornik
2008-04-04 15:46   ` Reiner Steib
2008-04-07 10:34     ` Martin Maechler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).