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.help Subject: Re: Displaying the cursor inside an overlay? Date: Sun, 09 Jan 2022 14:09:49 +0200 Message-ID: <831r1haz5e.fsf@gnu.org> References: <87iluttfdz.fsf.ref@yahoo.com> <87iluttfdz.fsf@yahoo.com> <837db92obd.fsf@gnu.org> <87a6g5tc51.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14745"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 09 13:11:29 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1n6X2m-0003ci-TP for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 13:11:29 +0100 Original-Received: from localhost ([::1]:59692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6X2k-0007FM-Oa for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 07:11:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6X1O-0007AO-HH for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 07:10:03 -0500 Original-Received: from [2001:470:142:3::e] (port=53482 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6X1O-0003lt-7c for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 07:10:02 -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=BAp/zEN+ZQpM2Fhwrn33iQHKXZcS67uC+JnOdKhwIto=; b=XxVy+oNYDD8T hCAync/w8msEYmip6Ovvs6d+BbmN2ZW0qBZwNIn3mudrBuaY/ZkUXmj3a6LH6wy02ZHu5euXehZhM MbIdzdmV0dAom31DXL5VlvKPAmr2NDiGeNIdBdMOm9a47KJyyi64fPWVOmPyyHH01rlMyz2XEeH2r f3nKTMZ9Ghsm+/eoGaXQGjl4xnxButa3Z/uhX3cePN828cLqZ+LsaPlhgco2NwILkaTLmKwEROjtM b+SdprhpZQQIr0mQ6rgw3jY/tvN7p6aXyBNvWR9rDM3/hz2Jo1CBDd34UVq3cGl5TF6Mfg5Hsu/Su NSbAJbbfdbBoxh415naotw==; Original-Received: from [87.69.77.57] (port=1430 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6X1N-0007Ze-Hq for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 07:10:02 -0500 In-Reply-To: <87a6g5tc51.fsf@yahoo.com> (message from Po Lu on Sun, 09 Jan 2022 18:51:54 +0800) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135146 Archived-At: > From: Po Lu > Cc: help-gnu-emacs@gnu.org > Date: Sun, 09 Jan 2022 18:51:54 +0800 > > Eli Zaretskii writes: > > > Use the 'cursor' property on the string. (This doesn't depend on the > > cursor's shape, so it should work with a bar cursor as it does with a > > block cursor.) > > Thanks, I must've missed that. I see it in the index of the Lisp > reference manual now. Yes, but judging by the code you installed, I'm not sure you used the property correctly. It's supposed to be on a single character, and AFAIU your use case its value should be t, not a number. (This discussion should probably move to emacs-devel.)