aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2003-06-09 22:00:34 +0000
committerKim F. Storm2003-06-09 22:00:34 +0000
commit79ff129679cb988a7b7bc3ace88ee02184f5d893 (patch)
treebab9a94eb6b10fb2fdef76a3fd8d0c95411a60b1
parent37cb08e728c7b94c92258b24dee510ecbaa7a2bc (diff)
downloademacs-79ff129679cb988a7b7bc3ace88ee02184f5d893.tar.gz
emacs-79ff129679cb988a7b7bc3ace88ee02184f5d893.zip
(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.
-rw-r--r--lisp/info.el15
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/info.el b/lisp/info.el
index bfee15c4cbb..919a548c552 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -2859,7 +2859,7 @@ the variable `Info-file-list-for-emacs'."
2859 ;; on frames that can display the font above. 2859 ;; on frames that can display the font above.
2860 (when (memq (framep (selected-frame)) '(x pc w32 mac)) 2860 (when (memq (framep (selected-frame)) '(x pc w32 mac))
2861 (add-text-properties (1- (match-beginning 2)) (match-end 2) 2861 (add-text-properties (1- (match-beginning 2)) (match-end 2)
2862 '(invisible t)))) 2862 '(invisible t front-sticky nil rear-nonsticky t))))
2863 (goto-char (point-min)) 2863 (goto-char (point-min))
2864 (while (re-search-forward "\\(\\*Note[ \t]*\\)\n?[ \t]*\\([^:]*\\)\\(:[^.,:(]*\\(([^)]*)[^.,:]*\\)?[,:]?\n?\\)" nil t) 2864 (while (re-search-forward "\\(\\*Note[ \t]*\\)\n?[ \t]*\\([^:]*\\)\\(:[^.,:(]*\\(([^)]*)[^.,:]*\\)?[,:]?\n?\\)" nil t)
2865 (unless (= (char-after (1- (match-beginning 0))) ?\") ; hack 2865 (unless (= (char-after (1- (match-beginning 0))) ?\") ; hack
@@ -2882,7 +2882,7 @@ the variable `Info-file-list-for-emacs'."
2882 (goto-char next)) 2882 (goto-char next))
2883 (if hide-tag 2883 (if hide-tag
2884 (add-text-properties (match-beginning 1) (match-end 1) 2884 (add-text-properties (match-beginning 1) (match-end 1)
2885 '(invisible t))) 2885 '(invisible t front-sticky nil rear-nonsticky t)))
2886 (add-text-properties 2886 (add-text-properties
2887 (match-beginning 2) (match-end 2) 2887 (match-beginning 2) (match-end 2)
2888 (cons 'help-echo 2888 (cons 'help-echo
@@ -2893,7 +2893,7 @@ the variable `Info-file-list-for-emacs'."
2893 mouse-face highlight)))) 2893 mouse-face highlight))))
2894 (when (eq Info-hide-note-references t) 2894 (when (eq Info-hide-note-references t)
2895 (add-text-properties (match-beginning 3) (match-end 3) 2895 (add-text-properties (match-beginning 3) (match-end 3)
2896 '(invisible t))) 2896 '(invisible t front-sticky nil rear-nonsticky t)))
2897 (when other-tag 2897 (when other-tag
2898 (save-excursion 2898 (save-excursion
2899 (goto-char (match-beginning 1)) 2899 (goto-char (match-beginning 1))
@@ -2913,11 +2913,10 @@ the variable `Info-file-list-for-emacs'."
2913 (setq paragraph-markers (cdr paragraph-markers)) 2913 (setq paragraph-markers (cdr paragraph-markers))
2914 (when (< m (point)) 2914 (when (< m (point))
2915 (goto-char m) 2915 (goto-char m)
2916 (move-to-left-margin) 2916 (beginning-of-line)
2917 (when (zerop (forward-paragraph)) 2917 (let ((beg (point)))
2918 (let ((end (point)) 2918 (when (zerop (forward-paragraph))
2919 (beg (progn (backward-paragraph) (point)))) 2919 (fill-individual-paragraphs beg (point) nil nil)
2920 (fill-individual-paragraphs beg end nil nil)
2921 (goto-char beg)))) 2920 (goto-char beg))))
2922 (set-marker m nil)))) 2921 (set-marker m nil))))
2923 2922