From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Eggert Subject: Re: [PATCH] Fix the single quote printed in the message printed by org-table-edit-formulas Date: Thu, 10 Mar 2016 17:39:54 -0800 Message-ID: <56E221EA.4080106@cs.ucla.edu> References: <87oaamuw2q.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeC3f-000727-Vb for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 20:40:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeC3c-0004n3-La for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 20:40:03 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeC3c-0004mh-FH for emacs-orgmode@gnu.org; Thu, 10 Mar 2016 20:40:00 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kaushal Modi , Kyle Meyer Cc: emacs-org list 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))