emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tooltip-mode = nil only displays first line of multi-line text-propertie


From: Nick Roberts
Subject: tooltip-mode = nil only displays first line of multi-line text-properties or overlays
Date: Mon, 20 Mar 2006 14:39:27 +1200

 > If you have tooltip-mode disabled, multi-line help-echo text-properties and
 > overlays only display their first line.  Here's some code that reproduces
 > the behavior:
 > 
 > (let* ((min (point-min))
 >        (max (point-max))
 >        (half (/ (+ min max) 2)))
 >   (let ((overlay (make-overlay min half)))
 >     (overlay-put overlay 'help-echo "Multi\nLine\nhelp"))
 >   (put-text-property half max 'help-echo "Even\nmore\nmulti\nline\nhelp"))
 > 

If you keep tooltip-mode enabled and set tooltip-use-echo-area to t all lines
are displayed in the echo area (if that's what you want).

As an aside, in this case these lines also go to the *messages* buffer while
those displayed when tooltip-mode is disabled don't.


-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]