help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: scrolling


From: Doug Lewan
Subject: RE: scrolling
Date: Fri, 9 Nov 2012 19:52:32 +0000

Consider using `line-number-at-pos'.

> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of drain
> Sent: Friday, 2012 November 09 14:11
> To: Help-gnu-emacs@gnu.org
> Subject: scrolling
> 
> Any Emacs Lisp suggestions on scrolling by paragraph?
> 
> The following code could be easily adapted if forward / backward
> paragraph returned line numbers:
> 
> (defun gcm-scroll-up (&optional arg)
>   (interactive "P")
>   (if arg
>       (scroll-down arg)
>     (scroll-down 1)))
> 
> 
> 
> 
> --
> View this message in context:
> http://emacs.1067599.n5.nabble.com/scrolling-tp269271.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.




reply via email to

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