[OS X Emacs] Bug with visual-line-down?

David Reitter david.reitter at gmail.com
Wed Feb 18 17:32:36 EST 2009


On 18 Feb 2009, at 16:35, Robert Morelli wrote:

> I ran into an unexpected behavior running a keyboard macro with an  
> argument.
> The macro has a ctrl-n in it,  but every time it reaches the bottom  
> of the window
> it fails with:

It's a bit hard to tell without knowing what version of Aquamacs  
you're using, and which customizations are in effect.
Do you have track-eol set to `t' ?

If so, the patch below might help; but I then again, the error message  
doesn't quite match.
(Don't forget to byte-compile or remove visual-line.elc after applying  
the patch.)


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!



*** site-lisp/visual-line.el	17 Dec 2008 16:04:03 -0500	1.22
--- site-lisp/visual-line.el	18 Feb 2009 17:29:51 -0500	
***************
*** 203,213 ****
   	    (setq rel-next-line-start  (- (point) beg-of-line 1)))
   	    (unless (= beg-of-line (point-max))
   	      ;; handle track-eol...
- 	      ;; handle track-eol...
   	      (if (and track-eol (= old-point (1- next-line-start))
   		       ;; Don't count beg of empty line as end of line
   		       ;; unless we just did explicit end-of-line.
! 		       (or (not (= 0 visual-col))
   			   (eq last-command 'end-of-line)))
   		  (setq visual-movement-temporary-goal-column 9999))
   	
--- 203,212 ----
   	    (setq rel-next-line-start  (- (point) beg-of-line 1)))
   	    (unless (= beg-of-line (point-max))
   	      ;; handle track-eol...
   	      (if (and track-eol (= old-point (1- next-line-start))
   		       ;; Don't count beg of empty line as end of line
   		       ;; unless we just did explicit end-of-line.
! 		       (or (not (= 0 visual-pixel-col))
   			   (eq last-command 'end-of-line)))
   		  (setq visual-movement-temporary-goal-column 9999))
   	

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2193 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20090218/e270c157/attachment.p7s>


More information about the MacOSX-Emacs mailing list