GNU bug report logs - #27517
26.0.50; 25.2.2; Cannot add "help-echo" property to buffer regions in *lisp-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Vitalie Spinu <spinuvit@HIDDEN>; dated Wed, 28 Jun 2017 12:36:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Changed bug title to '26.0.50; 25.2.2; Cannot add "help-echo" property to buffer regions in *lisp-mode' from '26.0.50; 25.2.2; Cannot add "help-echo" property to buffer regions.' Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.

Message received at 27517 <at> debbugs.gnu.org:


Received: (at 27517) by debbugs.gnu.org; 28 Jun 2017 22:22:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 28 18:22:55 2017
Received: from localhost ([127.0.0.1]:43089 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dQLMN-0007WQ-35
	for submit <at> debbugs.gnu.org; Wed, 28 Jun 2017 18:22:55 -0400
Received: from mail-wm0-f44.google.com ([74.125.82.44]:38440)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spinuvit@HIDDEN>) id 1dQLML-0007WD-Jn
 for 27517 <at> debbugs.gnu.org; Wed, 28 Jun 2017 18:22:53 -0400
Received: by mail-wm0-f44.google.com with SMTP id b184so73017132wme.1
 for <27517 <at> debbugs.gnu.org>; Wed, 28 Jun 2017 15:22:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=iP9IOS7UzS+cL8zYF9G4Zttow8Wx/uToIX/E2KPEswY=;
 b=po/PLCwjds+AS4aNV8GTOK6L4bU6oikZqGsor9O87ZDLtEZQv5MaN9rrNDKzU2URJU
 1gVTQ2DEWhImehKgRsnLxFUUtW2fr+7RN9ug9FX8pSpFrAgv2rvJfS0+GR2Asoq0qd7J
 dwJcOcafNCJodTW121rV3t/w0JMTFkriVb6Dul6veTVllGXKM1CbCWiW3Tw1ktrUQZSm
 UMnUGYgCL8z/Gt9xoQPWDfkc62HIXU80FS6EEeFz41Lch2B4Hu+2GJYXl4Z4shuMweYN
 669FbZa2MV0GwzocWHOFiX1RGkWNUaXqLp6h4f8li+80J1J2hgP4Z0/haHjXlkjEllLi
 TkWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=iP9IOS7UzS+cL8zYF9G4Zttow8Wx/uToIX/E2KPEswY=;
 b=coJsYQQ3/IyOm7S+ePGAN34qsK90dKipQ6ALuMBgpjS1mb/Jl9WI6dGA7G8hCXsaz7
 ZEyLp6gmbPDuc6wGboVF824Kt0kC8w29wX2dkyfSJlvy0PI9wd+8YJuoehXmCOo6VpJK
 GczLQrG7LSB/YbsZOT/e/28MtKYbyPTnFI928cL41+66iIio/MkFbWU5YwNi1M9TQA3s
 Z29LE52EX0+SdXEqku/mxD/usg40K1C+UtlCMTbF10XgqQ2f31r3HWFosXVX5AqAnvF0
 JPYccoRVJS9Oy57WQyxqoW4WlWZ2kqQLmq3vPsKTochop/CofOdoRQ0lQGqu2XOyyCk/
 3Oug==
X-Gm-Message-State: AKS2vOyhWeQ7UZC6sEc8dWczxyjwpdp9uLJqjtl3fZhbVf64cksHi/sM
 0STOQf0FKOCEmJVGjc0=
X-Received: by 10.28.104.132 with SMTP id d126mr7215327wmc.49.1498688567717;
 Wed, 28 Jun 2017 15:22:47 -0700 (PDT)
Received: from localhost ([143.176.214.220])
 by smtp.gmail.com with ESMTPSA id f45sm4836234wrf.2.2017.06.28.15.22.44
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 28 Jun 2017 15:22:45 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#27517: 26.0.50; 25.2.2;
 Cannot add "help-echo" property to buffer regions.
References: <87efu4l284.fsf@galago> <83shikqd87.fsf@HIDDEN>
Date: Thu, 29 Jun 2017 00:22:44 +0200
In-Reply-To: <83shikqd87.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 28 Jun
 2017 19:38:32 +0300")
Message-ID: <87fuejiwgb.fsf@galago>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 27517
Cc: 27517 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)


Indeed. Works in other buffers.

 Vitalie

>> On Wed, Jun 28 2017 19:38, Eli Zaretskii wrote:

>> From: Vitalie Spinu <spinuvit@HIDDEN>
>> Date: Wed, 28 Jun 2017 14:35:07 +0200
>> 
>>  (put-text-property (point-min) 100 'help-echo "my-mouse-over" (current-buffer))
>> 
>> No "help-ehco" property is added. Any other property (including special
>> properties) can be added.

> But only in lisp-mode, right?

> This happens because lisp-mode.el wants itself to manage the help-echo
> property:

>   (defun lisp-mode-variables (&optional lisp-syntax keywords-case-insensitive
> 					elisp)
>   ...
>     (setq font-lock-defaults
> 	  `(,(if elisp '(lisp-el-font-lock-keywords
> 			 lisp-el-font-lock-keywords-1
> 			 lisp-el-font-lock-keywords-2)
> 	       '(lisp-cl-font-lock-keywords
> 		 lisp-cl-font-lock-keywords-1
> 		 lisp-cl-font-lock-keywords-2))
> 	    nil ,keywords-case-insensitive nil nil
> 	    (font-lock-mark-block-function . mark-defun)
> 	    (font-lock-extra-managed-props help-echo)
> 	     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> When a property appears in font-lock-extra-managed-props, font-lock
> removes that property when it's about to re-fontify some region, see
> font-lock-default-unfontify-region.

> CC'ing Stefan, who made that change.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#27517; Package emacs. Full text available.

Message received at 27517 <at> debbugs.gnu.org:


Received: (at 27517) by debbugs.gnu.org; 28 Jun 2017 16:39:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 28 12:39:02 2017
Received: from localhost ([127.0.0.1]:42826 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dQFzZ-00081E-S8
	for submit <at> debbugs.gnu.org; Wed, 28 Jun 2017 12:39:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36345)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1dQFzZ-00080y-3C
 for 27517 <at> debbugs.gnu.org; Wed, 28 Jun 2017 12:39:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1dQFzQ-0001Bf-Qr
 for 27517 <at> debbugs.gnu.org; Wed, 28 Jun 2017 12:38:55 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48374)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1dQFzQ-0001Ba-Ni; Wed, 28 Jun 2017 12:38:52 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1600
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1dQFzQ-0006ai-0Z; Wed, 28 Jun 2017 12:38:52 -0400
Date: Wed, 28 Jun 2017 19:38:32 +0300
Message-Id: <83shikqd87.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vitalie Spinu <spinuvit@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
In-reply-to: <87efu4l284.fsf@galago> (message from Vitalie Spinu on Wed, 28
 Jun 2017 14:35:07 +0200)
Subject: Re: bug#27517: 26.0.50; 25.2.2;
 Cannot add "help-echo" property to buffer regions.
References: <87efu4l284.fsf@galago>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 27517
Cc: 27517 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Vitalie Spinu <spinuvit@HIDDEN>
> Date: Wed, 28 Jun 2017 14:35:07 +0200
> 
>  (put-text-property (point-min) 100 'help-echo "my-mouse-over" (current-buffer))
> 
> No "help-ehco" property is added. Any other property (including special
> properties) can be added.

But only in lisp-mode, right?

This happens because lisp-mode.el wants itself to manage the help-echo
property:

  (defun lisp-mode-variables (&optional lisp-syntax keywords-case-insensitive
					elisp)
  ...
    (setq font-lock-defaults
	  `(,(if elisp '(lisp-el-font-lock-keywords
			 lisp-el-font-lock-keywords-1
			 lisp-el-font-lock-keywords-2)
	       '(lisp-cl-font-lock-keywords
		 lisp-cl-font-lock-keywords-1
		 lisp-cl-font-lock-keywords-2))
	    nil ,keywords-case-insensitive nil nil
	    (font-lock-mark-block-function . mark-defun)
	    (font-lock-extra-managed-props help-echo)
	     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

When a property appears in font-lock-extra-managed-props, font-lock
removes that property when it's about to re-fontify some region, see
font-lock-default-unfontify-region.

CC'ing Stefan, who made that change.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#27517; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jun 2017 12:35:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 28 08:35:32 2017
Received: from localhost ([127.0.0.1]:41781 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dQCBs-00027y-QX
	for submit <at> debbugs.gnu.org; Wed, 28 Jun 2017 08:35:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50807)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spinuvit@HIDDEN>) id 1dQCBo-00027j-1q
 for submit <at> debbugs.gnu.org; Wed, 28 Jun 2017 08:35:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1dQCBi-0001sb-3a
 for submit <at> debbugs.gnu.org; Wed, 28 Jun 2017 08:35:18 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:57502)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <spinuvit@HIDDEN>) id 1dQCBi-0001sT-02
 for submit <at> debbugs.gnu.org; Wed, 28 Jun 2017 08:35:18 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41767)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1dQCBg-0000mA-U2
 for bug-gnu-emacs@HIDDEN; Wed, 28 Jun 2017 08:35:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1dQCBd-0001qC-1o
 for bug-gnu-emacs@HIDDEN; Wed, 28 Jun 2017 08:35:16 -0400
Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:36727)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <spinuvit@HIDDEN>) id 1dQCBc-0001oq-Rt
 for bug-gnu-emacs@HIDDEN; Wed, 28 Jun 2017 08:35:12 -0400
Received: by mail-wm0-x22e.google.com with SMTP id 62so52058874wmw.1
 for <bug-gnu-emacs@HIDDEN>; Wed, 28 Jun 2017 05:35:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=xhbGThgm77PQcAnzTC6siV7Q2TabdPMH8lurqp3hZLQ=;
 b=Ra+VRN7mGsmpfdY39whnGMB6wYQQsVkJlLFQ5vP3yOsrvO1x86hC3L2M5QsAVD8Rk3
 YEHmMelrK6d0zF681IKeig2rq/rKwMSOkPUuDH84UPXSyg24OALv0YpfsZrB1fLsUA2v
 fSQU9nZlaQjPGOpHhmCC3E4Mm1y7d3CwzUmHHKQ7mL5PTac8b/aPptf7w2p4XkF6GsQj
 rmnca05sPia9qdKpg4wojptaGsV+SAq5aN2mW9ndQagwMM/ywhbWAyG/FbdtxgkMgElq
 PRuUAJRUtxfqkE8812XJIklIsKNcISLv5MJxS5ff51IySafH8w9qoKY3HVIWMRBXOshB
 uzeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=xhbGThgm77PQcAnzTC6siV7Q2TabdPMH8lurqp3hZLQ=;
 b=ZDEPqQpI/O8FPbwnVj9qQ4d7O7vWGfxJtgO7bpwNVEbXabKw8ustQI5aRO5wwjqxZj
 MfCGvLi561K6f952ojVh6K4Mw4zP1W2ZN+4ybsAmCLWT4JXtwx9X25zRbCEStUm4SylP
 s62wU8HfX8xK9xEcGC9VIbg8iFHkADOdZ9O/CMXz0T9JX/BnrAY6E7g8JVJseGONZ6tb
 l7fdSsko6IwUoa8LNrt46o0xwBWyQYAk0v4IfH/7KQes/mYq349RHIiYsLdOjhGyPE8y
 7XmtjgG2DD9Fain1eGWLUv5hSOqRayGq2e5D0UE7hdW9oYM6HFR2EQMSn6rmbhIwbOJI
 px4Q==
X-Gm-Message-State: AKS2vOwKayaYV95cEKYpwib6tqYp8IAJfxFTTuonxNwtUIpcHUNGW8wQ
 K3/rQaCnGgSHBhWkK7g=
X-Received: by 10.80.181.80 with SMTP id z16mr7541610edd.6.1498653309746;
 Wed, 28 Jun 2017 05:35:09 -0700 (PDT)
Received: from localhost ([143.176.214.220])
 by smtp.gmail.com with ESMTPSA id e28sm1544072ede.14.2017.06.28.05.35.07
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 28 Jun 2017 05:35:08 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.0.50; 25.2.2; Cannot add "help-echo" property to buffer regions.
Date: Wed, 28 Jun 2017 14:35:07 +0200
Message-ID: <87efu4l284.fsf@galago>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


Hi,

Do

 (put-text-property (point-min) 100 'help-echo "my-mouse-over" (current-buffer))

No "help-ehco" property is added. Any other property (including special
properties) can be added.

Same problem with emacs 25.2.2, but works in emacs 24.5.1.


  Vitalie


In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-06-28 built on galago
Repository revision: 5d45ba1a05bccc53d52422e867f378a0adeb8970
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Ubuntu 16.04.2 LTS




Acknowledgement sent to Vitalie Spinu <spinuvit@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#27517; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 30 Jun 2017 00:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.