changeset 112060:d75c0dfd5c92

* help-fns.el (describe-variable): Fix 2010-12-17 change (Bug#7511).
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 20 Dec 2010 19:31:15 +0800
parents 3252d895c242
children 2b8e51d977c3 4bb564da3320
files lisp/ChangeLog lisp/help-fns.el
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Dec 20 01:18:15 2010 +0000
+++ b/lisp/ChangeLog	Mon Dec 20 19:31:15 2010 +0800
@@ -1,3 +1,7 @@
+2010-12-20  Leo  <sdl.web@gmail.com>
+
+	* help-fns.el (describe-variable): Fix 2010-12-17 change.
+
 2010-12-20  Juri Linkov  <juri@jurta.org>
 
 	* isearch.el (isearch-lazy-highlight-error): New variable.
--- a/lisp/help-fns.el	Mon Dec 20 01:18:15 2010 +0000
+++ b/lisp/help-fns.el	Mon Dec 20 19:31:15 2010 +0800
@@ -639,7 +639,7 @@
 		(let ((from (point)))
 		  (terpri)
 		  (pp val)
-		  (if (< (point) (- 68 (line-beginning-position -1)))
+		  (if (< (point) (+ 68 (line-beginning-position 0)))
 		      (delete-region from (1+ from))
 		    (delete-region (1- from) from)))))
 	    (terpri)