From: Glenn Morris Date: Wed, 7 Jul 2010 03:52:05 +0000 (-0700) Subject: Minor zone.el fix. X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/49554388208ef121ca91a20212645d47d8cd56ed Minor zone.el fix. * play/zone.el (zone-fall-through-ws): Fix next-line -> forward-line fallout. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e4bd2cce4b..1aa812bb53 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-07-07 Glenn Morris + + * play/zone.el (zone-fall-through-ws): Fix next-line -> + forward-line fallout. + 2010-07-06 Chong Yidong * mouse.el (mouse-appearance-menu): Add docstring. diff --git a/lisp/play/zone.el b/lisp/play/zone.el index 367c301de4..cf22be164d 100644 --- a/lisp/play/zone.el +++ b/lisp/play/zone.el @@ -1,7 +1,7 @@ ;;; zone.el --- idle display hacks -;; Copyright (C) 2000, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, +;; 2009, 2010 Free Software Foundation, Inc. ;; Author: Victor Zandy ;; Maintainer: Thien-Thi Nguyen @@ -487,8 +487,10 @@ If the element is a function or a list of a function and a number, (wait 0.15) newpos fall-p) (while (when (save-excursion - (forward-line 1) - (and (= col (current-column)) + (and (zerop (forward-line 1)) + (progn + (forward-char col) + (= col (current-column))) (setq newpos (point)) (string= spaces (buffer-substring-no-properties newpos (+ newpos cw-ceil)))