From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Nicolas P. Rougier (inria)" Newsgroups: gmane.emacs.devel Subject: Re: Reading text properties from a yanked text Date: Sun, 27 Nov 2022 07:08:42 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21011"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.11; emacs 28.2 Cc: emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 27 07:16:26 2022 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 1ozAxm-0005H1-6Z for ged-emacs-devel@m.gmane-mx.org; Sun, 27 Nov 2022 07:16:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozAxL-0003D1-Kq; Sun, 27 Nov 2022 01:15:59 -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 1ozAxC-0003BK-2o for emacs-devel@gnu.org; Sun, 27 Nov 2022 01:15:57 -0500 Original-Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozAx6-0005nl-KY for emacs-devel@gnu.org; Sun, 27 Nov 2022 01:15:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=references:from:to:cc:subject:date:in-reply-to: message-id:mime-version:content-transfer-encoding; bh=h+zO1PEIAA6dbcl3CTX0NTM+ppyn1EJ/yx49hdNFg+Q=; b=etegitwUM5jj+vagfeaWxwE3UETmrjnrrSOOY6bwI72E6YdgrmKeWeQH CY5nwyycAyFWeO7EU+DX5nNIs7lHikK5ouJ0PCnCUcMaWC5Ob/S79gTJD KnRg6vueJzNaqI6PA1ETWSK0Gf6Wv961DFIwg2313675rma4uu2GKjmLh 0=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=nicolas.rougier@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.96,197,1665439200"; d="scan'208";a="80237534" Original-Received: from 91-160-114-139.subs.proxad.net (HELO M-E7-NPR) ([91.160.114.139]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2022 07:15:39 +0100 In-reply-to: Received-SPF: pass client-ip=192.134.164.83; envelope-from=nicolas.rougier@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:300612 Archived-At: Gregory Heytings [2022-11-26 at 23:26] wrote: > I think I see what you mean (but I'm not sure). > Is your recipe the following one? >=20 > emacs -Q > M-x text-mode RET > M-: (insert (propertize "Hello" 'face 'bold)) RET > C-SPC > M-b > M-w > M-: (text-properties-at 0 "") RET >=20 > in which you see the text in bold in the minibuffer before=20 > pressing > RET? (Instead of M-: you could also type (text-properties-at 0=20 > " C-y>") followed by C-x C-e somewhere else.) Yes, I think this is equivalent to what I did: Instead of using the M-x / M-:, I write the first line in the=20 *scratch* buffer and evaluate it (eval-last-sexp). Then I copy the=20 output and I write the second line using the killed text. I can see the bold text in the buffer when I yank it but when I=20 evaluate the second line (text-properties...), it says there is no=20 properties. However, if I use M-x: describe-char on any of the=20 yanked character, it says, it has a bold face. Nicolas --=20 Nicolas P. Rougier =E2=80=94=E2=80=94 www.labri.fr/perso/nrougier Institute of Neurodegenerative Diseases, Bordeaux