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)


_______________________________________________
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to