From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.bugs Subject: bug#27517: 26.0.50; 25.2.2; Cannot add "help-echo" property to buffer regions. Date: Thu, 29 Jun 2017 00:22:44 +0200 Message-ID: <87fuejiwgb.fsf@galago> References: <87efu4l284.fsf@galago> <83shikqd87.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498688599 10969 195.159.176.226 (28 Jun 2017 22:23:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Jun 2017 22:23:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27517@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 29 00:23:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dQLMd-0002Q8-6E for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jun 2017 00:23:11 +0200 Original-Received: from localhost ([::1]:35943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQLMi-00061K-AL for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jun 2017 18:23:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQLMX-000617-7T for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 18:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQLMU-0007YR-1e for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 18:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40412) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQLMT-0007YL-T4 for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 18:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQLMT-0007Wm-In for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2017 18:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2017 22:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27517 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27517-submit@debbugs.gnu.org id=B27517.149868857528922 (code B ref 27517); Wed, 28 Jun 2017 22:23:01 +0000 Original-Received: (at 27517) by debbugs.gnu.org; 28 Jun 2017 22:22:55 +0000 Original-Received: from localhost ([127.0.0.1]:43089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQLMN-0007WQ-35 for submit@debbugs.gnu.org; Wed, 28 Jun 2017 18:22:55 -0400 Original-Received: from mail-wm0-f44.google.com ([74.125.82.44]:38440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQLML-0007WD-Jn for 27517@debbugs.gnu.org; Wed, 28 Jun 2017 18:22:53 -0400 Original-Received: by mail-wm0-f44.google.com with SMTP id b184so73017132wme.1 for <27517@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) Original-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) In-Reply-To: <83shikqd87.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Jun 2017 19:38:32 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134005 Archived-At: Indeed. Works in other buffers. Vitalie >> On Wed, Jun 28 2017 19:38, Eli Zaretskii wrote: >> From: Vitalie Spinu >> 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.