On 03/10/2016 09:47 AM, Kaushal Modi wrote:
How can I make the help-echo property display the ` and ' verbatim,
without curving them?
Help strings are considered documentation, so you need to escape special
characters in help-echo property strings the same way you'd escape them
in doc strings. Something like this:
(let* ((str1 "\nhello")
(echo-str1 "left single quote (`) right single quote (') grave
accent (\\=`) apostrophe (\\=') kill-region (\\[kill-region])")
ov)
(let* ((b (+ 1 (point)))
(e (+ b (string-width str1))))
(insert str1)
(setq ov (make-overlay b e)))
(overlay-put ov 'help-echo echo-str1))