 ;; smooth-scrolling.el
 ;; $Id: smooth-scrolling.el,v 1.8 2007/09/11 23:38:09 adam Exp $
 ;; Adam Spiers <emacs-ss@adamspiers.org>
-;; 
+;;
 ;; Make emacs scroll smoothly, keeping the point away from the top and
 ;; bottom of the current buffer's window in order to keep lines of
 ;; context around the point visible as much as possible, whilst

;;
;; - Maybe add option to avoid scroll jumps when point is within
;;   margin.
;; 
;;;_* Acknowledgements
;; 
;; Thanks to Mark Hulme-Jones and consolers on #emacs for helping
;; debug issues with line-wrapping.
;; 
;;;_* License
;; 
;; Released under the GNU General Public License v2 or later, with
;; all rights assigned to the Free Software Foundation.
;;

      (save-excursion
        (scroll-down
              (1+ (- smooth-scroll-margin lines-from-window-top))))))))

(defadvice next-line (after smooth-scroll-up
                            (&optional arg try-vscroll)
                            activate)
