|
From: | Kaushal Modi |
Subject: | Re: [O] [PATCH] Fix the single quote printed in the message printed by org-table-edit-formulas |
Date: | Thu, 10 Mar 2016 22:22:41 -0500 |
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))
[Prev in Thread] | Current Thread | [Next in Thread] |