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 12:31:02 +0200 Message-ID: <837db92obd.fsf@gnu.org> References: <87iluttfdz.fsf.ref@yahoo.com> <87iluttfdz.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40017"; 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 11:32:09 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 1n6VUe-000AFm-P3 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 11:32:08 +0100 Original-Received: from localhost ([::1]:53770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6VUd-0006mg-Ku for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 05:32:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6VTn-0006RL-QI for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 05:31:15 -0500 Original-Received: from [2001:470:142:3::e] (port=52222 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 1n6VTn-0006zY-IQ for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 05:31:15 -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=FmtdYoZ0d8DuiVgySGxlECqUWLcyIeJ41qk3NlM4FOk=; b=NOLdxukvVEKU YuLW2zoPGNAoxo3YeZn7+7iqUNSP64Ee0g+IKQHtvuD/S6HZ4u3xqjsvwqs3tIUXi7ODtOKXuyhBb 3zjbS5xjxjK9YWqTIOthRm3c2rCYNrXNfzAe/mr94q10+HRMvS3v1hYWc/Wya+/xt6b7zspnT6MoR lmxo5+GwfP31jYgUiki7yB1shJUCNjYIZ7R0PrlPy+fUi6+PI//fhhWInKyonk1Dz5fHRSSGy5SPD K3hJu6bpss+wOQqAss0vpMpxgGOLcYddorsm9xXNvlupodYSYrchyZaD4yeYyiOFcP5IkWgXljW63 Wd1XGIeWzWpFPBGLlKX7yw==; Original-Received: from [87.69.77.57] (port=3321 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 1n6VTm-00072Q-Tp for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 05:31:15 -0500 In-Reply-To: <87iluttfdz.fsf@yahoo.com> (message from Po Lu on Sun, 09 Jan 2022 17:41:44 +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:135144 Archived-At: > From: Po Lu > Date: Sun, 09 Jan 2022 17:41:44 +0800 > > Is there a way to display the (bar) cursor at some position inside an > overlay's before or after string? 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.)