From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: help-echo property disappearing Date: Fri, 15 Dec 2023 10:51:42 +0200 Message-ID: <8334w3q25d.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32354"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Nicolas P. Rougier (inria)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 15 09:52:23 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rE3vh-0008Dx-MY for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Dec 2023 09:52:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rE3vH-0002vv-0j; Fri, 15 Dec 2023 03:51:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rE3vE-0002vU-Kg for emacs-devel@gnu.org; Fri, 15 Dec 2023 03:51:53 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rE3v5-0008LH-Kv; Fri, 15 Dec 2023 03:51:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wIvWhl80syAMRcx0uHY0NYSuwPGNguggHHebu+PqaPM=; b=PV416SVFqdNI V7AM2OH7JTDbwsnB9c883tRqDK2b/bsmvwc5O9WoTg9rQ8hjPdMv35gz7mnv+fyGughpqPVXRUrNr Hy07buWZQkQnuHMrzjKZPY0c3P3UkXjmBolO9Uy+VSw2hdMR1Go3qOHeS9UQINI9W1FfjZbJlTyL5 5TsESO/C9UFwvatOXCDGONYKeusQAPapxdCasmqB4oAXmf10mpyd0cnUzF/DiAAMm0YoVtZhUYUkv oUkhdl0NXilaNMWEbpekUe6ktV7QlLRyIZFxQByexR5BL/opcBzMa5IsPnw064EM65pxBOkFW4FOw z4KOGev1VXaGZzPOGhYoxw==; In-Reply-To: (nicolas.rougier@inria.fr) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313849 Archived-At: > From: "Nicolas P. Rougier (inria)" > Date: Fri, 15 Dec 2023 08:29:24 +0100 > > > I'm playing with the help-echo property and it keeps disappearing > for no obvious reason. I would like to confirm the behavior and to > know if this is the intended behavior. Here is a simple example: > > (progn > (goto-char (point-min)) > (insert (propertize "TEST" > 'another-property "Test message" > 'help-echo "Test message")) > (goto-char (point-min)) > (kill-visual-line) (yank)) > > Before kill/yank, the string has both the `help-echo` and > `another-property` set, but the yanked string has only the > `another-property` set. This is in text-mode, using Emacs 29.1. I > also observed that in prog-modes, I cannot set the help-echo > property at all (with no warning). This is the intended behavior, see yank-excluded-properties.