From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Why does show_help_echo call substitute_command_keys? Date: Thu, 20 Jul 2017 19:05:45 +0200 Message-ID: <4f821efa-1448-8ba0-d164-abeff36180d4@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1500570401 1603 195.159.176.226 (20 Jul 2017 17:06:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Jul 2017 17:06:41 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 20 19:06:34 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYEuI-0008Df-EC for ged-emacs-devel@m.gmane.org; Thu, 20 Jul 2017 19:06:34 +0200 Original-Received: from localhost ([::1]:39205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYEuJ-0003Qj-9A for ged-emacs-devel@m.gmane.org; Thu, 20 Jul 2017 13:06:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYEtc-0003P4-Hy for emacs-devel@gnu.org; Thu, 20 Jul 2017 13:05:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYEtY-0004rn-HF for emacs-devel@gnu.org; Thu, 20 Jul 2017 13:05:52 -0400 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:35277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYEtY-0004rK-B4 for emacs-devel@gnu.org; Thu, 20 Jul 2017 13:05:48 -0400 Original-Received: by mail-wm0-x231.google.com with SMTP id w126so29820528wme.0 for ; Thu, 20 Jul 2017 10:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=6Df9mGwNAlUjFVH5xiRA7IiYG2prZNIU3cbNCujW+wQ=; b=cVZhpurY2yCKIY4I9wsAFtEmCKt+Qs/uMk7SyEcXEwTEWMdX5k54qGvDuKSMrmtru8 /F0Kf5H/2nVbe0KqUUrnj6nRoJrRELPa/KeWWJKJVIdeG7eXbu3MuG+BWnlKVT/BL2pE pfxV/RzR3Ve+eirnOpzvGh86TiETO/W+pty06dS+BPwiUadKBxGYvKvRXA6bwY3Fyh1G Gch58QO6kqODlHpH5bP05G1v42GikA1D/rJzP+usqxlGvzI+jkZkaJt81alMk4I30X4g MF5atbZZ3fAYCjU/TGAtJmqoPLDMtsUZ2te5q2Zj4/0BgO1ek1rPDorCNEc3+CnqIA9N PH0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=6Df9mGwNAlUjFVH5xiRA7IiYG2prZNIU3cbNCujW+wQ=; b=dcR4WtsWNniRpzqa0z2WJonNPBLfHThqRtw3Vxyw3YPVvsKSv/iktPkF4wamZkX00f eP4ehTyTV5IXJL3rg/1wGSYQQAgXauKN9aKplw8SnecOii5+PBFC83ILg6TzoHTGf2+r 0pjqw1Rb4qFtqSzO24RnFxUAczyrVvaI7B5d3UyB8g9WltB9A5Yd7b4p/K/3HpCfk0dU QHrgYEbeampA44paqj+NeAktqpShP0vaDscUaYEwXRmDyXp1ZhCkzZBmqLepIjPs2Ouf Y+kIJvNKBYa4MgweGdhzDWzs5tNzgZ3PB6p0/kUA621hyhufV3aN9NzmPk7PopvfmR/y +2bA== X-Gm-Message-State: AIVw1111Wao7EnzK85+Wni8pA8uvoldz57yPsrFeTiPHXglcsb7mlQjg tPuYxr9ShGsCF2ZkQWw= X-Received: by 10.28.134.138 with SMTP id i132mr892235wmd.175.1500570347033; Thu, 20 Jul 2017 10:05:47 -0700 (PDT) Original-Received: from [128.93.70.6] ([128.93.70.6]) by smtp.gmail.com with ESMTPSA id 123sm2746563wmp.1.2017.07.20.10.05.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jul 2017 10:05:46 -0700 (PDT) Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216903 Archived-At: Hi emacs-devel, I'm puzzled by this bit of code in show_help_echo: if (STRINGP (help) || NILP (help)) { if (!NILP (Vshow_help_function)) call1 (Vshow_help_function, Fsubstitute_command_keys (help)); help_echo_showing_p = STRINGP (help); } This is causing trouble in Flycheck, because we set help-echo properties on error spans and we expect them to be displayed without modifications when users hover over them. Is there a way to disable command-key- (and quote-) substitution in help-echo strings? Concrete example: (with-current-buffer (get-buffer-create "A") (erase-buffer) (insert "AAA") (put-text-property (point-min) (point-max) 'help-echo "Expected a 'list<'a>', got a 'pair<'a,'a>'") (pop-to-buffer (current-buffer))) (put your mouse on the "AAA" part, and notice that the quotes were substituted) Thanks! Clément.