[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/tex-fold.el
From: |
Ralf Angeli |
Subject: |
[AUCTeX-diffs] Changes to auctex/tex-fold.el |
Date: |
Thu, 09 Jun 2005 07:41:55 -0400 |
Index: auctex/tex-fold.el
diff -u auctex/tex-fold.el:1.48 auctex/tex-fold.el:1.49
--- auctex/tex-fold.el:1.48 Thu May 12 16:27:44 2005
+++ auctex/tex-fold.el Thu Jun 9 11:41:55 2005
@@ -163,6 +163,9 @@
(defvar TeX-fold-unfolded-face 'TeX-fold-unfolded-face
"Face for folded content when it is temporarily opened.")
+(defvar TeX-fold-ellipsis "..."
+ "String used as display string for overlays instead of a zero-length
string.")
+
(defvar TeX-fold-open-spots nil)
(make-variable-buffer-local 'TeX-fold-open-spots)
@@ -589,6 +592,8 @@
"[Error: No content found]")))
(display-string (if (listp computed) (car computed) computed))
(face (when (listp computed) (cadr computed))))
+ ;; Cater for zero-length display strings.
+ (when (string= display-string "") (setq display-string TeX-fold-ellipsis))
;; Add a linebreak to the display string and adjust the overlay end
;; in case of an overfull line.
(when (TeX-fold-overfull-p ov-start ov-end display-string)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] Changes to auctex/tex-fold.el,
Ralf Angeli <=