From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: Displaying the cursor inside an overlay? Date: Sun, 09 Jan 2022 20:14:09 +0800 Message-ID: <87wnj9rtri.fsf@yahoo.com> References: <87iluttfdz.fsf.ref@yahoo.com> <87iluttfdz.fsf@yahoo.com> <837db92obd.fsf@gnu.org> <87a6g5tc51.fsf@yahoo.com> <831r1haz5e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35375"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 09 13:15:57 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 1n6X76-0008zr-RW for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 13:15:56 +0100 Original-Received: from localhost ([::1]:60724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6X74-0001ZF-OF for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 07:15:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6X5f-0001Vm-KS for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 07:14:27 -0500 Original-Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:41559) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6X5d-0004jp-Jw for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 07:14:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1641730463; bh=WVNP5uyOyiU72NGUtS8ivk06pSXzzDKUR8IM4o23s6M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=C6wsoHuSPo/V9UrKm4860xfl7+zyiKiudkv9OMPJ1LuzyjgQ627dVP0NA9YdoOq4d9gGbpU3klpiTD0/2SWQgID+EbVlI/uDVW1HznoqobBALmFitxyPgxWZHCkTHtu4l9IbX5a3VyCnzrImKpBp08Cc0CHkKeaBzN02m76UnlYNNozmizt1n/UkgCZsMDm4P3jJvFFmrkEd3aWPD6UTn7fsG+VeZARIVmR3ODbV0KUCfvORzqBgt29IrNrBtDhSZMP1LWwXXuWrdkZs4O203/iq87xGd4+IrQ4reGEJqwliN3GQdmNRrkcAXiOBYtGoDScB0812AVP0MF9UgZj7hA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1641730463; bh=hBFLcDNrVYGQYHZJsE3rVmlrzNTqao5kDaNLi+2p/+W=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=i10CKpz+3VOY91BJt1l10yl8ONrSpQYxtGNbvkWGpFFz8b0BbA3TrsmDMdf3xyBoMFxVKlZj/6evbpzRzBjXqZMwAEp6+ArGoPShWviCXdSr+SLZ1/yrxNPupfKKX3c0/JVtYE3d0dtp9pVLw07bDaAVPqyflKgUpAEk3MsZqrIHvwvivGuDuVeULhdMBdukhrwGI/dkSVQ/qOY4GLAEd7DqfAYNutvSjhC59A92oBZh+nq9kOpGpSLIHXOnNQETuAnXv6d7IRj+/m+F06u/qEX89fnj/tFXeA4IHfx6J6/RwnCzUATSiH6Vs9qO1lzcmu4pXbrsInQaDCwu1rVNpg== X-YMail-OSG: MoovO24VM1kCtmhb_Ppq9dxnyiuCNEbitE_.WkROOLJerMNDXtooxhJILl9FbkH ZCOWI.5EptaiJvhlUZwoMOBZ4.9JEQS78PZ0EOQxBukp3wAVCUHMDkX_44Zi9lIHKxAIZy2eZOtW PH1GUf9Pu7nNkBXbFZ0ezolm.MF6kPjNKHM9ZMqwY1DCs8mPGDsRyGqo5VEFwmoKBLXXdK01FNtz d0RAfHgoSAbnqMUhlIGhkTzL19TD9S1i.q_K4uVy4Jm2UPAFSvgXiOFQSGExPRB73n2Cm7XOaTQ4 4vRoTjNYQ.FaO31CEuGjo_w9TyM3xvag_azmMZT0WC5Q_F.XhFEukyTQ7cbySyZZB4xska3tDwh4 ubrxqmF2BEyxldAjuFZrtxta_y9Rw8hgHibYRSQgvVV7yEhBMRbDhGgrEFdO83zDXmlV6ol8MAaA noT8vAmu1.DCQOwkCC5L4UalN8L_RetYNQEq6r9OWOcnUR5ccczPRfXb22bfcoYXQnQ2EcjkZw.v pVf_NTBB9GfPnaMSvZkUpPKmodNCpHbFQYWZ55uzbPIuNTibud1CzWbwN8JeJMxyux_mCMq.ADDb Y5Ba3Wns4r6Ul5kJkbI8qpGDdmlpOwA92WR5g26KrPK5hUZ5kosyIAKc9tAYbF985WW9rp670P5_ Q6JB487R0pWHRR5h21OMVQrCCLoqyWyk9PY5IriJAN9B8H.gu1YfH1grsX19ylm44rXja8kDk6Qp EKP1bhIfmE0s7LRbD0kBKR_xa3pHMnszWeQLkstjp7AL2T.IzK4y.tmDGYdoMy98buAWo08N7BvK BcKLKB7z1KwxLvYGXN1O22GB8j9R34uc8xMV1Czjik X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sun, 9 Jan 2022 12:14:23 +0000 Original-Received: by kubenode513.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 5f5b37fb1ff1e6f9af2838220b3171df; Sun, 09 Jan 2022 12:14:19 +0000 (UTC) In-Reply-To: <831r1haz5e.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 Jan 2022 14:09:49 +0200") X-Mailer: WebService/1.1.19551 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.146; envelope-from=luangruo@yahoo.com; helo=sonic309-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:135147 Archived-At: Eli Zaretskii writes: >> 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. Ahh, thanks, I understand now. Dunno why it seemed to work: probably my input method is set up in some queer way.