changeset 51535:4e4427be69f9

(Info-fontify-node): Make `invisible' property non-sticky so that whitespace added by filling stays visible. Make refilling less agressive by starting at beginning of current line rather than beginning of current paragraph.
author Kim F. Storm <storm@cua.dk>
date Mon, 09 Jun 2003 22:00:34 +0000
parents e9384e053437
children e92c269c0cde
files lisp/info.el
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/info.el	Mon Jun 09 21:59:54 2003 +0000
+++ b/lisp/info.el	Mon Jun 09 22:00:34 2003 +0000
@@ -2859,7 +2859,7 @@
 	  ;; on frames that can display the font above.
 	  (when (memq (framep (selected-frame)) '(x pc w32 mac))
 	    (add-text-properties (1- (match-beginning 2)) (match-end 2)
-				 '(invisible t))))
+				 '(invisible t front-sticky nil rear-nonsticky t))))
 	(goto-char (point-min))
 	(while (re-search-forward "\\(\\*Note[ \t]*\\)\n?[ \t]*\\([^:]*\\)\\(:[^.,:(]*\\(([^)]*)[^.,:]*\\)?[,:]?\n?\\)" nil t)
 	  (unless (= (char-after (1- (match-beginning 0))) ?\") ; hack
@@ -2882,7 +2882,7 @@
 		(goto-char next))
 	      (if hide-tag
 		  (add-text-properties (match-beginning 1) (match-end 1)
-				       '(invisible t)))
+				       '(invisible t front-sticky nil rear-nonsticky t)))
 	      (add-text-properties
 	       (match-beginning 2) (match-end 2)
 	       (cons 'help-echo
@@ -2893,7 +2893,7 @@
 			     mouse-face highlight))))
 	      (when (eq Info-hide-note-references t)
 		(add-text-properties (match-beginning 3) (match-end 3)
-				     '(invisible t)))
+				     '(invisible t front-sticky nil rear-nonsticky t)))
 	      (when other-tag
 		(save-excursion
 		  (goto-char (match-beginning 1))
@@ -2913,11 +2913,10 @@
 	      (setq paragraph-markers (cdr paragraph-markers))
 	      (when (< m (point))
 		(goto-char m)
-		(move-to-left-margin)
-		(when (zerop (forward-paragraph))
-		  (let ((end (point))
-			(beg (progn (backward-paragraph) (point))))
-		    (fill-individual-paragraphs beg end nil nil)
+		(beginning-of-line)
+		(let ((beg (point)))
+		  (when (zerop (forward-paragraph))
+		    (fill-individual-paragraphs beg (point) nil nil)
 		    (goto-char beg))))
 	      (set-marker m nil))))