Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

18.55 function (line-move)

0 views
Skip to first unread message

Brian Oplinger

unread,
Apr 24, 1992, 12:36:54 PM4/24/92
to
I have a function which I acquired from someone once upon a time...

It uses line-move. The function is a new next-line which does not add
new lines at the end of the file. I have grown rather accustomed to
it. We are in the process of moving to version 18.57 of emacs and this
command now generated "Symbol's function definition is void:
line-move" which to me means that emacs no longer has a function
called 'line-move'. However, I cannot find an equivalent function
using info. Is there an equivalent function or group of functions?

Thanks alot.

--
brian
opli...@ra.crd.ge.com

<#include standard.disclaimer>

Brian Oplinger

unread,
Apr 27, 1992, 9:54:30 AM4/27/92
to
In a previous article I asked:

>I have a function which I acquired from someone once upon a time...
>
>It uses line-move. The function is a new next-line which does not add
>new lines at the end of the file. I have grown rather accustomed to
>it. We are in the process of moving to version 18.57 of emacs and this
>command now generated "Symbol's function definition is void:
>line-move" which to me means that emacs no longer has a function
>called 'line-move'. However, I cannot find an equivalent function
>using info. Is there an equivalent function or group of functions?

I had a number of usefull answer which I post below.

From: ky...@wendy-fate.uu.net
(defun next-line (count) (interactive "p") (previous-line (- count)))

From: david d `zoo' zuhn <z...@cygnus.com>
;; line-move is an internal to 18.55, and it was replace with
;; next-line-internal in 18.57 (and is the same in 18.58). They have
;; the same semantics (in fact the same source).

(if (not (fboundp 'line-move))
(defun line-move (arg)
(next-line-internal arg)))

0 new messages