From unknown Fri Jun 20 07:27:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#62540 <62540@debbugs.gnu.org> To: bug#62540 <62540@debbugs.gnu.org> Subject: Status: 30.0.50; incorrect cursor positioning after overlay when put-text-property 'cursor t Reply-To: bug#62540 <62540@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:27:12 +0000 retitle 62540 30.0.50; incorrect cursor positioning after overlay when put-= text-property 'cursor t reassign 62540 emacs submitter 62540 Platon Pronko severity 62540 normal tag 62540 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 30 06:59:32 2023 Received: (at submit) by debbugs.gnu.org; 30 Mar 2023 10:59:32 +0000 Received: from localhost ([127.0.0.1]:55902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phq0B-0006Ch-P3 for submit@debbugs.gnu.org; Thu, 30 Mar 2023 06:59:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:40942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phq08-0006CZ-PC for submit@debbugs.gnu.org; Thu, 30 Mar 2023 06:59:29 -0400 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 1phq07-0008UZ-FY for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 06:59:28 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phq03-0001Ew-Ie for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 06:59:26 -0400 Received: by mail-pj1-x102a.google.com with SMTP id r7-20020a17090b050700b002404be7920aso17500589pjz.5 for ; Thu, 30 Mar 2023 03:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680173961; x=1682765961; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=HrR1WkcjKEhZYZoWE+oTLw1Tl03Ha8J8AwfCeGZTMIE=; b=nsJJEln2sXiGSYFinIXvg9K4emJDCi9bsuZe9NQoKK2ntSxupTdYng+n0sBo6c0ZHc FBOGVsobFCnR309nagrKXzFod+0R1gTA+us9Z6R0Vr74iyuVqbHMI9RAXA/xXORoNHJS Iehg7Db1AHwDGxQUcfhMeYB9jaa1mOWVva09gQHYe94IehjFFa+nDkhYRvgo+nwD4on/ P2e3qZ9Ec1M6+MeBN99rlwxl7mKjl911WL5bwM072T/ldxBmFgSd7db+KWyblHlGPZIG +yPhBvcaQWa6uEK+/Ah4qyLdppjCLAasia23dMy3zc0Ek3hh+/VS+Bkh2iYsnKm5GWm2 o7Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680173961; x=1682765961; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=HrR1WkcjKEhZYZoWE+oTLw1Tl03Ha8J8AwfCeGZTMIE=; b=ILghUTsMlVKs7GJ/PTvGhF323IhPeVniVvPlhIB574Pbr9fhe2HKaArOLHb/7FSVp6 bgp+ipfVPL1VKfha3SMNW+DruRlKFxH/mCtSdu4gd7xoV7OpAudvvblN4NE/MEh8gKU1 sHDfo0jSj/GJAL3XbLTUSky0QQtscr/ZEo+ErqMezJL5SN93XFzwdUGXAQWj3MZa7Z2x WkZtfrumcfBzlRTKsaAFFC53EXIlafYnhJXHfDCXOAJmFRuPWoo1OyiAEctsAiVTG0Lp BvN2GA8lEF5G7vwXJv5xdUbNK3Jr8iOZF2/ji4iYqF1IKgCbbuCoX78aKVT2uyHTOX42 M4Fw== X-Gm-Message-State: AO0yUKWEnmpnsWn1VekHQ9nJ7lypbchofNeE2GTX54PyNL3e5j2uhyYr z32/JRo4FDZExkW8Ep/6c5QHsFI6H8Y= X-Google-Smtp-Source: AK7set8ETm/f2QIaz7j4d6E858syTWNgC7aqtcXBN0haQrVZ4UvfNBXSKnes3tUzOw5ZVOV7UxN7eA== X-Received: by 2002:a05:6a20:8c14:b0:db:da69:3deb with SMTP id j20-20020a056a208c1400b000dbda693debmr18568473pzh.21.1680173960573; Thu, 30 Mar 2023 03:59:20 -0700 (PDT) Received: from [192.170.1.133] ([103.24.106.35]) by smtp.gmail.com with ESMTPSA id j17-20020aa78dd1000000b005d6999eec90sm10117882pfr.120.2023.03.30.03.59.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Mar 2023 03:59:20 -0700 (PDT) Message-ID: <608539f1-df76-c667-ed13-57ef31b0d081@gmail.com> Date: Thu, 30 Mar 2023 18:59:15 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Platon Pronko Subject: 30.0.50; incorrect cursor positioning after overlay when put-text-property 'cursor t Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=platon7pronko@gmail.com; helo=mail-pj1-x102a.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) According to documentation, if a character in the overlay text string has 'cursor property set to t, then cursor should be shown on that character while point is in the overlay. However, it seems that this doesn't work at the moment - cursor is still shown after the overlay. Here's a test file to reproduce the problem: ``` AD (defun test-overlay-cursor (completion pt) (remove-overlays) (save-excursion (let* ((p-completion (propertize completion 'face 'error)) (ov (make-overlay pt pt nil t t))) ;; doesn't work, cursor is shown after overlay (put-text-property 0 1 'cursor t p-completion) ;; works, cursor is shown before overlay ;; (put-text-property 0 1 'cursor 1 p-completion) (overlay-put ov 'display "") (overlay-put ov 'after-string p-completion))) (goto-char 2)) (test-overlay-cursor "BC" 2) ``` When I run the last sexp I observe the cusor being shown after the overlay: ABCD While the expected position is: ABCD Workaround is to use the integer argument instead of t. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.17.8) of 2023-03-29 built on the-big-maker Repository revision: 2002ac376c97382cace161ef0832a6faf6f376e8 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-modules --without-libotf --without-m17n-flt --without-gconf --with-native-compilation=no --with-xinput2 --with-x-toolkit=gtk3 --without-xaw3d --with-sound=no --with-tree-sitter --without-gpm --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_TIME: en_SE.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: recentf-mode: t rainbow-delimiters-mode: t global-so-long-mode: t global-git-gutter-mode: t global-git-commit-mode: t magit-auto-revert-mode: t server-mode: t counsel-mode: t ivy-mode: t smartparens-strict-mode: t smartparens-mode: t shell-dirtrack-mode: t global-auto-revert-mode: t global-whitespace-mode: t whitespace-mode: t global-dvorak-mode: t dvorak-minor-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Features: (shadow sort mail-extr emacsbug mule-util cal-move org-indent oc-basic conf-mode make-mode yaml-mode scroll-lock sh-script smie executable dabbrev pulse recentf magit-bookmark bookmark pp shortdoc ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util ace-window smartparens-javascript js c-ts-common typescript-mode smartparens-c cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs bs sql tramp-sh tramp-cache time-stamp smartparens-scala scala-mode scala-mode-prettify-symbols scala-mode-imenu scala-mode-map scala-mode-fontlock scala-mode-indent scala-mode-paragraph scala-mode-syntax scala-mode-lib goto-addr vc vc-dispatcher bug-reference magit-extras face-remap flymake-proc flymake lsp-diagnostics company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb lsp-modeline lsp-lens misearch multi-isearch view lsp-zig lsp-tilt lsp-steep lsp-svelte lsp-sqls lsp-ruby-syntax-tree lsp-ruby-lsp lsp-yaml lsp-xml lsp-vimscript lsp-vhdl lsp-volar lsp-vetur lsp-html lsp-verilog lsp-vala lsp-v lsp-typeprof lsp-ttcn3 lsp-toml lsp-terraform lsp-tex lsp-sorbet lsp-solargraph lsp-rust lsp-rf lsp-ruff-lsp lsp-remark lsp-racket lsp-r lsp-purescript lsp-pylsp lsp-pyls lsp-pwsh lsp-php lsp-pls lsp-perlnavigator lsp-perl lsp-openscad lsp-ocaml lsp-magik lsp-nix lsp-nim lsp-nginx lsp-mint lsp-marksman lsp-markdown lsp-lua lsp-kotlin lsp-json lsp-javascript lsp-idris lsp-haxe lsp-groovy lsp-hack lsp-graphql lsp-gleam lsp-go lsp-completion lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-emmet lsp-elixir lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp lsp-crystal lsp-cmake lsp-clojure lsp-semantic-tokens lsp-clangd lsp-beancount lsp-bash lsp-astro lsp-ansible lsp-angular lsp-ada lsp-actionscript smartparens-python python treesit ffap rainbow-delimiters ol-w3m ol-rmail ol-mhe ol-irc ol-info org-habit org-agenda org-element org-persist org-id avl-tree org-refile ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range gnus-win ol-eww eww url-queue shr pixel-fill kinsoku url-file svg xml dom mm-url gnus nnheader range ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb copilot editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch jsonrpc warnings so-long lsp lsp-mode lsp-protocol tree-widget wid-edit spinner network-stream nsm smartparens-markdown markdown-mode inline ht f f-shortdoc s ewoc company-box company-box-doc frame-local company-box-icons company git-gutter-fringe fringe-helper git-gutter magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit message sendmail yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor server magit-mode transient magit-git magit-base magit-section crm compat org-archive lispy lispy-inline avy etags fileloop generator edebug debug backtrace help-fns radix-tree lispy-tags mode-local zoutline smartparens-org org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs noutline outline icons counsel xdg xref project dired dired-loaddefs swiper ivy delsel ivy-faces ivy-overlay colir color cl-extra hydra lv edmacro kmacro smartparens-config smartparens-text smartparens-rust smartparens advice loadhist dash tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp format-spec lpr rust-utils thingatpt rust-mode rx rust-rustfmt rust-playpen rust-compile compile text-property-search comint ansi-osc ansi-color ring rust-cargo autorevert filenotify disp-table whitespace quail help-mode easy-mmode darcula-theme finder-inf rust-mode-autoloads editorconfig-autoloads web-mode-autoloads smartparens-autoloads magit-autoloads pcase haskell-mode-autoloads wgrep-autoloads git-commit-autoloads transient-autoloads php-mode-autoloads yaml-mode-autoloads typescript-mode-autoloads solidity-mode-autoloads magit-section-autoloads lsp-mode-autoloads markdown-mode-autoloads ht-autoloads scala-mode-autoloads f-autoloads with-editor-autoloads compat-autoloads git-gutter-autoloads lorem-ipsum-autoloads go-mode-autoloads lispy-autoloads ace-window-autoloads company-box-autoloads company-autoloads dash-autoloads counsel-autoloads swiper-autoloads hydra-autoloads info ivy-autoloads s-autoloads frame-local-autoloads avy-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 904294 1544161) (symbols 48 56550 9) (strings 32 251815 84039) (string-bytes 1 7281465) (vectors 16 121863) (vector-slots 8 2259338 974086) (floats 8 633 12970) (intervals 56 40467 9510) (buffers 984 80)) From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 30 09:33:36 2023 Received: (at 62540) by debbugs.gnu.org; 30 Mar 2023 13:33:36 +0000 Received: from localhost ([127.0.0.1]:56148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phsPH-0004gn-Qw for submit@debbugs.gnu.org; Thu, 30 Mar 2023 09:33:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phsPF-0004gX-NB; Thu, 30 Mar 2023 09:33:34 -0400 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 1phsP8-0003yv-LB; Thu, 30 Mar 2023 09:33:28 -0400 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=P0EBjlFqjAT0io4/pSpbuqcdwEbrMuirJ5RxOVUlzIg=; b=g3pNQDAnEkVZ TSQFxLy9mQEO8lhrpWKdQRunMy14F6gPFXQR3bwB0DJE+mTAS2TVNDROYHNbdgr+q/ADL3bxDtrsZ tHJF2cruRDDyrqy4A2RBBsyIR4iq6Ffz+QfylU84Qj2oicvNMowadjjLIFi7DPPKGZoZY9UZ/1iCe H/FEW/GDyRYxdyUz3mB+0Rq8jMxtD4v9kVQGm3Hy3JHhRu5WGaZlxMcUM5pWs9hiiM+zdJqn1wwvU ZeDZpyw1i91xY/9A2/sWZ9ZfjkPen97sIWbZBkoIfZVbEJkGAse+H8cqfKPtSQE9NYIX7ph/cVqdi o7yUMphHyzA3MYb5npNI7Q==; Received: from [87.69.77.57] (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 1phsOo-0003Bi-VQ; Thu, 30 Mar 2023 09:33:24 -0400 Date: Thu, 30 Mar 2023 16:33:16 +0300 Message-Id: <83zg7u4b4z.fsf@gnu.org> From: Eli Zaretskii To: Platon Pronko In-Reply-To: <608539f1-df76-c667-ed13-57ef31b0d081@gmail.com> (message from Platon Pronko on Thu, 30 Mar 2023 18:59:15 +0800) Subject: Re: bug#62540: 30.0.50; incorrect cursor positioning after overlay when put-text-property 'cursor t References: <608539f1-df76-c667-ed13-57ef31b0d081@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62540 Cc: 62540@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 62540 notabug thanks > Date: Thu, 30 Mar 2023 18:59:15 +0800 > From: Platon Pronko > > According to documentation, if a character in the overlay text string has 'cursor property set to t, > then cursor should be shown on that character while point is in the overlay. > > However, it seems that this doesn't work at the moment - cursor is still shown after the overlay. > > Here's a test file to reproduce the problem: > > ``` > AD > > (defun test-overlay-cursor (completion pt) > (remove-overlays) > (save-excursion > (let* ((p-completion (propertize completion 'face 'error)) > (ov (make-overlay pt pt nil t t))) > ;; doesn't work, cursor is shown after overlay > (put-text-property 0 1 'cursor t p-completion) > ;; works, cursor is shown before overlay > ;; (put-text-property 0 1 'cursor 1 p-completion) > (overlay-put ov 'display "") > (overlay-put ov 'after-string p-completion))) > (goto-char 2)) > (test-overlay-cursor "BC" 2) > > ``` > > When I run the last sexp I observe the cusor being shown after the overlay: > > ABCD > > While the expected position is: > > ABCD Your overlay is "empty": it doesn't hide any buffer text characters from being shown on display. So Emacs has no reason to try to display the cursor inside the overlay text: ity could simply show the cursor on the character at point. If you change the make-overlay call in your test-overlay-cursor function to say this instead: (ov (make-overlay pt (1+ pt) nil t t))) ^^^^^^^ then it will work as you expect. Note that the ELisp manual explicitly talks about "when the overlay or display string make point not visible on display". This doesn't happen in your case. > Workaround is to use the integer argument instead of t. Yes, if you must use "empty" overlays. But that is basically a side effect of the implementation, and you should not rely on that too much. Better not use "empty" overlays at all if you want to show the cursor inside the overlay string. This is not a bug. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 03 06:37:14 2023 Received: (at 62540-done) by debbugs.gnu.org; 3 Sep 2023 10:37:14 +0000 Received: from localhost ([127.0.0.1]:39681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qckTi-0000VE-5W for submit@debbugs.gnu.org; Sun, 03 Sep 2023 06:37:14 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:62587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qckTg-0000V1-Ar for 62540-done@debbugs.gnu.org; Sun, 03 Sep 2023 06:37:12 -0400 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-500bdef7167so1709496e87.0 for <62540-done@debbugs.gnu.org>; Sun, 03 Sep 2023 03:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693737416; x=1694342216; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=E5SssJC8YChpJb0brJ6fSWyjgHRvibVUYqCYtwHoUVE=; b=nKGpzT/sLVJUn2FXdITLZDMCMUVAuCkK+5TKF2geX2Pcr/AmbxHmI9b1HNyLOXvR5P qUeKqidNEyO745X25eQpxjK0HmCa6XMtwAV4JEanu+tFlDxkFEqahr552vq3l9fyude7 zBBuJT7GW65BrCb2E1IyI5BJQkgUR7YUyHGR4BwYHnNkJ5G3T/6QlC+htqnENNVh/o54 +DaCWXoiG25ahvE1IOHhBJQ4my/puqfzEfLyFQ2hAaIQO7UwrcZnZFQHodU2VrYcIXK1 +m8QQj9KjP2FFUzCJy4L2D7+86ISg/QiwIkLPTwLhkMoo9/Y697FbWKg3igSe/WI1cl0 8ARQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693737416; x=1694342216; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=E5SssJC8YChpJb0brJ6fSWyjgHRvibVUYqCYtwHoUVE=; b=hZzdnkE8XIkyaSevLpBKh6V/HkN7t5aWnDWNdmMOxUkOhdiDyk/vU6hlKPaq8fv3qh IwNU2RXhJUHXhCHdwJfF5t5PbepzbOnfQQp674vFB54W+MvIxCBgvJg5JNEgIUAZXbvi uQUFJ8/d1znmfCj+eXETvm5nW3mdpDAi3morfj6yo6lgepaYrlvjn0TF/tNStfPCuD3V Y9nItY+DE7BIUZsfq5seAPGl/9s1hoN+Pr/HkfNtVSiLsA4G7kEw/WU7CMmL8rV7GwX6 vj0dUFUSRu/IV+KtLDntdKII2wPoRWWVhCYJ+xLcpEESSnhwrMYGz+MbFvOsR4UhTmOG lzng== X-Gm-Message-State: AOJu0Ywo8U+GOq6jnpceOQWhOmYPV6gADmIfuoVvaMydaNmbhzsdD8KY VzYrC/RuRU5P8Ft558593BFraayNrVkqMUAW4kKqn86t86c= X-Google-Smtp-Source: AGHT+IHcaSwzb2DHITxt2NPxlPTpMMnSGRdDgTNp+gmGJQHysMhxfgBual4UJUabY7uG6ujMeNMN1UTRDSKRjmchg3M= X-Received: by 2002:ac2:4e87:0:b0:500:d8d6:fbd9 with SMTP id o7-20020ac24e87000000b00500d8d6fbd9mr1815209lfr.0.1693737416103; Sun, 03 Sep 2023 03:36:56 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 3 Sep 2023 03:36:55 -0700 From: Stefan Kangas In-Reply-To: <83zg7u4b4z.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 30 Mar 2023 16:33:16 +0300") References: <608539f1-df76-c667-ed13-57ef31b0d081@gmail.com> <83zg7u4b4z.fsf@gnu.org> MIME-Version: 1.0 Date: Sun, 3 Sep 2023 03:36:55 -0700 Message-ID: Subject: Re: bug#62540: 30.0.50; incorrect cursor positioning after overlay when put-text-property 'cursor t To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62540-done Cc: Platon Pronko , 62540-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > tags 62540 notabug > thanks [...] > This is not a bug. I'm therefore closing this bug report. From unknown Fri Jun 20 07:27:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 01 Oct 2023 11:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator