From unknown Wed Aug 20 00:03:00 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#13863 <13863@debbugs.gnu.org> To: bug#13863 <13863@debbugs.gnu.org> Subject: Status: 24.2; Cursor position after after-string on overlay at point-max Reply-To: bug#13863 <13863@debbugs.gnu.org> Date: Wed, 20 Aug 2025 07:03:00 +0000 retitle 13863 24.2; Cursor position after after-string on overlay at point-= max reassign 13863 emacs submitter 13863 Magnar Sveen severity 13863 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 03 14:20:08 2013 Received: (at submit) by debbugs.gnu.org; 3 Mar 2013 19:20:08 +0000 Received: from localhost ([127.0.0.1]:57451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCES7-0001k8-6g for submit@debbugs.gnu.org; Sun, 03 Mar 2013 14:20:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42563) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCES2-0001jX-ET for submit@debbugs.gnu.org; Sun, 03 Mar 2013 14:20:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCERj-0002ab-Lv for submit@debbugs.gnu.org; Sun, 03 Mar 2013 14:19:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:51201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCERj-0002aX-Io for submit@debbugs.gnu.org; Sun, 03 Mar 2013 14:19:43 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCERh-0003En-CR for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:19:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCERf-0002Zx-91 for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:19:41 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:57587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCERe-0002Zt-U9 for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:19:39 -0500 Received: by mail-lb0-f180.google.com with SMTP id q12so3446982lbc.11 for ; Sun, 03 Mar 2013 11:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=Dh+CX0dxC1WwJ6aBnUXB0w5Z5Ky2J72pEnJ0PBhLyjE=; b=UmPzgPcxEWrUTZXakqaZoniY4x+3XkvMoIyUq1b9wiKUVfeNPzBrufqgipFuAaY5hS t58SAOnfkwS/215XJ9LxMXLy9zN/zE0gEl2jUtM9196xoFIFzAfDYsYz1yMcFypofb2z kaIHCNfPuiMSuMmOvD1b8S5in5xFK+McxS6f9qPEQd2RHvfAgpYkfjr4/+2xSKGdOh+m XkPlygeBPTTbLtStomfrujonA7EIkVuUOvWT6kXI184sVTVEP1fvim2AJzA8TrS/reKL OFOg8zbMsnydjfYpOz5ks3F86Z/faZtj6601DiLniPSITBVp3pARqwM6yvFMXWbtBzww C59Q== X-Received: by 10.112.23.136 with SMTP id m8mr3531912lbf.53.1362338377591; Sun, 03 Mar 2013 11:19:37 -0800 (PST) Received: from localhost (94.79-160-154.customer.lyse.net. [79.160.154.94]) by mx.google.com with ESMTPS id fl9sm6497013lbb.9.2013.03.03.11.19.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 11:19:36 -0800 (PST) From: Magnar Sveen To: bug-gnu-emacs@gnu.org Subject: 24.2; Cursor position after after-string on overlay at point-max Date: Sun, 03 Mar 2013 20:19:33 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) - Write some text into a buffer - Create this overlay: (let ((o (make-overlay (point-max) (point-max) nil t t)) (s "There's\na multiline\nstring here")) (set-text-properties 0 (length s) `(face (:foreground ,(format "#%02x%02x%02x" 90 90 90))) s) (overlay-put o 'priority 100) (overlay-put o 'after-string s)) ;; the text-properties aren't important, it's just there to ;; separate the overlay visually. =20=20=20=20=20=20 - Go to point-max. - Type something. Notice that the point of insertion is not reflected by the position of the cursor. Basically, the cursor is positioned after the after-string of an overlay at point-max, even if it does not accurately reflect where text is inserted. If the after-string is large enough, you could be inserting text outside the screen and not know about it. I am trying to use this so that I can display some extra information after contents of the buffer. However, it gets mighty annoying when the cursor is placed after all the second-order information I am displaying there. Maybe the placement of the cursor should depend on the the value of rear-advance? - Magnar In GNU Emacs 24.2.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36) of 2012-09-04 on fi-bp-202.local Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure '--prefix=3D/usr/local/Cellar/emacs/24.2' '--without-dbus' '--enable-locallisppath=3D/usr/local/share/emacs/site-lisp' '--infodir=3D/usr/local/Cellar/emacs/24.2/share/info/emacs' '--with-ns' '--disable-ns-self-contained' 'CC=3D/usr/bin/gcc-4.2' 'CFLAGS=3D-Os -w -pipe -march=3Dcore2 -msse4 -mmacosx-version-min=3D10.6' 'LDFLAGS=3D-L/usr/local/lib'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: utf-8 default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t elisp-slime-nav-mode: t show-paren-mode: t global-hl-line-mode: t ido-ubiquitous-mode: t eproject-mode: t eldoc-mode: t paredit-mode: t persp-mode: t yas/global-mode: t yas/minor-mode: t global-undo-tree-mode: t undo-tree-mode: t global-subword-mode: t subword-mode: t recentf-mode: t delete-selection-mode: t global-auto-revert-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: s SPC s-/ n a SPC m u l t i l i n e s-/=20 n s t r i n g SPC h e r e C-f C-f C-f C-j =20 C-n C-@ M-w C-y C-p C-p C-p M-j C-n C-e C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-f C-d=20 9 C-f C-f C-b C-b C-f C-f C-d 9 C-f C-f C-d 9 C-n C-p=20 C-p C-n C-n C-p M-j C-n C-n C-n C-b C-b C-@ s C-p M-j=20 C-e C-x 2 C-c b H e r e ' s SPC s o m e SPC=20 t e x t C-@ M-w M-: C-y q=20 C-n C-n C-n C-n C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-@ C-@ C-=C3=A6 o C-e C-n=20 C-e C-@ M-w M-: C-y C-p=20 C-f C-f C-f C-f C-f f f f C-n C-n C-n=20 C-p C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-b=20 C-p C-f C-f C-f C-f C-f C-f C-f=20 C-f a C-p C-f C-x k C-c b C-n C-n C-p=20 C-p C-p C-p C-n C-e C-b C-b C-b C-b C-f C-f =20 n i l C-n C-n C-n C-n C-n C-x C-e a s d f=20 P f f C-_ C-p C-p C-p C-p C-_ C-_=20 C-n C-n C-n C-n C-n C-b f C-f f C-_ C-p=20 C-p C-p C-p C-p C-a C-@ M-w M-: C-y =20 f f C-@ M-w C-x k C-x k =20 C-x 0 M-x e m a c s - b u Recent messages: windmove-do-window-select: No window right from selected window line-move-visual: Beginning of buffer [2 times] #("There's a multiline string here" 0 31 (face (:foreground "#5a5a5a"))) er/mark-outside-pairs #("There's a multiline string here" 0 31 (face (:foreground "#5a5a5a"))) er/mark-outside-pairs Load-path shadows: /Users/fimasvee/.emacs.d/elpa/hardcore-mode-1.0.0/hardcore-mode hides /User= s/fimasvee/.emacs.d/site-lisp/hardcore-mode/hardcore-mode /Users/fimasvee/.emacs.d/site-lisp/fill-column-indicator/fill-column-indica= tor hides /Users/fimasvee/.emacs.d/site-lisp/fill-column-indicator ~/.emacs.d/users/fimasvee/init hides ~/.emacs.d/init /Users/fimasvee/.emacs.d/elpa/magit-20130123.1617/rebase-mode hides /usr/lo= cal/share/emacs/site-lisp/rebase-mode /Users/fimasvee/.emacs.d/site-lisp/delsel/delsel hides /usr/local/Cellar/em= acs/24.2/share/emacs/24.2/lisp/delsel ~/.emacs.d/custom hides /usr/local/Cellar/emacs/24.2/share/emacs/24.2/lisp/= custom /usr/local/share/emacs/site-lisp/trampver hides /usr/local/Cellar/emacs/24.= 2/share/emacs/24.2/lisp/net/trampver /usr/local/share/emacs/site-lisp/tramp hides /usr/local/Cellar/emacs/24.2/s= hare/emacs/24.2/lisp/net/tramp /usr/local/share/emacs/site-lisp/tramp-uu hides /usr/local/Cellar/emacs/24.= 2/share/emacs/24.2/lisp/net/tramp-uu /usr/local/share/emacs/site-lisp/tramp-smb hides /usr/local/Cellar/emacs/24= .2/share/emacs/24.2/lisp/net/tramp-smb /usr/local/share/emacs/site-lisp/tramp-sh hides /usr/local/Cellar/emacs/24.= 2/share/emacs/24.2/lisp/net/tramp-sh /usr/local/share/emacs/site-lisp/tramp-loaddefs hides /usr/local/Cellar/ema= cs/24.2/share/emacs/24.2/lisp/net/tramp-loaddefs /usr/local/share/emacs/site-lisp/tramp-gw hides /usr/local/Cellar/emacs/24.= 2/share/emacs/24.2/lisp/net/tramp-gw /usr/local/share/emacs/site-lisp/tramp-ftp hides /usr/local/Cellar/emacs/24= .2/share/emacs/24.2/lisp/net/tramp-ftp /usr/local/share/emacs/site-lisp/tramp-compat hides /usr/local/Cellar/emacs= /24.2/share/emacs/24.2/lisp/net/tramp-compat /usr/local/share/emacs/site-lisp/tramp-cmds hides /usr/local/Cellar/emacs/2= 4.2/share/emacs/24.2/lisp/net/tramp-cmds /usr/local/share/emacs/site-lisp/tramp-cache hides /usr/local/Cellar/emacs/= 24.2/share/emacs/24.2/lisp/net/tramp-cache /Users/fimasvee/.emacs.d/elpa/magit-20130123.1617/.dir-locals hides /usr/lo= cal/Cellar/emacs/24.2/share/emacs/24.2/lisp/gnus/.dir-locals Features: (shadow sort mail-extr emacsbug debug org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb mule-util git-commit-mode setup-magit magit-svn magit-bisect magit-key-mode magit diff-mode log-edit pcvs-util add-log misearch multi-isearch cus-start cus-load ibuf-ext ibuffer tabify network-stream starttls tls vc-git adventur-mode alternatives-mode adv-typos adv-typo-list adv-refill refill adv-indentation adv-keybindings adv-play adv-defuns adv-refactorings adv-new-number adv-named-rooms adv-room-info adv-search adv-requirements pp adv-enter adv-tab adv-escape adv-dash adv-jump-candidate adv-syntax-highlighting adv-intelli nrepl arc-mode archive-mode setup-clojure-mode clj-refactor clojure-mode-expansions clojure-mode inf-lisp tramp tramp-compat tramp-loaddefs setup-shell shell-command shell adv-utils adv-regexes regex-dsl unsafep elisp-slime-nav etags oppdrag-mode my-defuns server setup-mu4e mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view epa epg epg-config browse-url longlines mu4e-headers mu4e-compose mu4e-actions org-capture org-mks setup-org org-mode-expansions org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete org-list org-faces org-compat org-entities org-macs noutline outline cal-menu calendar cal-loaddefs rfc2368 smtpmail auth-source gnus-util password-cache sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode setup-dired dired-details dired mu4e-about mu4e-vars message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader mu4e-meta diminish mac my-misc appearance zoom-frm frame-cmds frame-fns avoid paren hl-line key-bindings windmove misc smex setup-ido ido-ubiquitous ido browse-kill-ring fill-column-indicator multifiles change-inner smart-forward wgrep setup-rgrep grep compile comint ansi-color eproject esh-var esh-io esh-cmd esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util ace-jump-mode jump-char multiple-cursors mc-separate-operations rectangular-region-mode mc-mark-more thingatpt mc-cycle-cursors mc-edit-lines multiple-cursors-core rect inline-string-rectangle mark-more-like-this mark-multiple expand-region text-mode-expansions expand-region-custom expand-region-core file-defuns imenu mode-mappings setup-paredit s dash regexp-opt paredit setup-html-mode setup-ffip find-file-in-project setup-perspective perspective setup-yasnippet buster-snippets buster-snippet-helpers yasnippet dropdown-list derived help-mode view assoc setup-hippie exec-path-from-shell sane-defaults uniquify undo-tree edmacro kmacro diff cl smooth-scrolling warnings advice help-fns advice-preload subword winner ring recentf tree-widget wid-edit easymenu delsel easy-mmode autorevert setup-package elisp-slime-nav-autoloads es-lib-autoloads exec-path-from-shell-autoloads gist-autoloads gh-autoloads eieio byte-opt bytecomp byte-compile cconv macroexp git-commit-mode-autoloads gitconfig-mode-autoloads gitignore-mode-autoloads goto-last-change-autoloads hardcore-mode-autoloads htmlize-autoloads logito-autoloads magit-autoloads move-text-autoloads nrepl-autoloads clojure-mode-autoloads paredit-autoloads pcache-autoloads finder-inf popwin-autoloads slime-js-autoloads slime-repl-autoloads slime-autoloads package tabulated-list saveplace time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 03 16:21:56 2013 Received: (at 13863) by debbugs.gnu.org; 3 Mar 2013 21:21:56 +0000 Received: from localhost ([127.0.0.1]:57599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCGLz-0004lA-V5 for submit@debbugs.gnu.org; Sun, 03 Mar 2013 16:21:56 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:51776) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCGLw-0004kv-T2 for 13863@debbugs.gnu.org; Sun, 03 Mar 2013 16:21:54 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MJ300D00RV0ND00@a-mtaout20.012.net.il> for 13863@debbugs.gnu.org; Sun, 03 Mar 2013 23:20:26 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJ300DFASLYO620@a-mtaout20.012.net.il>; Sun, 03 Mar 2013 23:20:22 +0200 (IST) Date: Sun, 03 Mar 2013 23:20:13 +0200 From: Eli Zaretskii Subject: Re: bug#13863: 24.2; Cursor position after after-string on overlay at point-max In-reply-to: X-012-Sender: halo1@inter.net.il To: Magnar Sveen Message-id: <83mwuktc36.fsf@gnu.org> References: X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Magnar Sveen > Date: Sun, 03 Mar 2013 20:19:33 +0100 > > - Write some text into a buffer > - Create this overlay: > > (let ((o (make-overlay (point-max) (point-max) nil t t)) > (s "There's\na multiline\nstring here")) > (set-text-properties 0 (length s) > `(face (:foreground , (format "#%02x%02x%02x" 90 90 90))) s) > (overlay-put o 'priority 100) > (overlay-put o 'after-string s)) > > ; ; the text-properties aren't important, it's just there to > ; ; separate the overlay visually. > > - Go to point-max. > - Type something. > > Notice that the point of insertion is not reflected by the position of > the cursor. > > Basically, the cursor is positioned after the after-string of an overlay > at point-max, even if it does not accurately reflect where text is > inserted. If the after-string is large enough, you could be inserting > text outside the screen and not know about it. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4587] X-Debbugs-Envelope-To: 13863 Cc: 13863@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) > From: Magnar Sveen > Date: Sun, 03 Mar 2013 20:19:33 +0100 > > - Write some text into a buffer > - Create this overlay: > > (let ((o (make-overlay (point-max) (point-max) nil t t)) > (s "There's\na multiline\nstring here")) > (set-text-properties 0 (length s) > `(face (:foreground ,(format "#%02x%02x%02x" 90 90 90))) s) > (overlay-put o 'priority 100) > (overlay-put o 'after-string s)) > > ;; the text-properties aren't important, it's just there to > ;; separate the overlay visually. > > - Go to point-max. > - Type something. > > Notice that the point of insertion is not reflected by the position of > the cursor. > > Basically, the cursor is positioned after the after-string of an overlay > at point-max, even if it does not accurately reflect where text is > inserted. If the after-string is large enough, you could be inserting > text outside the screen and not know about it. Emacs always behaved like that with after-string display. > I am trying to use this so that I can display some extra information > after contents of the buffer. However, it gets mighty annoying when the > cursor is placed after all the second-order information I am displaying > there. > > Maybe the placement of the cursor should depend on the the value of > rear-advance? Try this (note the marked line I added): (let ((o (make-overlay (point-max) (point-max) nil t t)) (s "There's\na multiline\nstring here")) (set-text-properties 0 (length s) `(face (:foreground ,(format "#%02x%02x%02x" 90 90 90))) s) (put-text-property 0 1 'cursor t s) ;;; <<<<<<<<<<<<<<<<<<<<<< (overlay-put o 'priority 100) (overlay-put o 'after-string s)) IOW, when Emacs is too dumb to put the cursor where you want, you can guide it with the 'cursor' text property. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 14:31:59 2013 Received: (at 13863) by debbugs.gnu.org; 4 Mar 2013 19:31:59 +0000 Received: from localhost ([127.0.0.1]:59131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCb78-0006Ac-Tr for submit@debbugs.gnu.org; Mon, 04 Mar 2013 14:31:59 -0500 Received: from mail-la0-f51.google.com ([209.85.215.51]:50688) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCb77-0006AP-0Y for 13863@debbugs.gnu.org; Mon, 04 Mar 2013 14:31:58 -0500 Received: by mail-la0-f51.google.com with SMTP id fo13so5256498lab.24 for <13863@debbugs.gnu.org>; Mon, 04 Mar 2013 11:31:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:user-agent:in-reply-to :date:message-id:mime-version:content-type; bh=7JDpgiZ4vKqRAZavWIjWjeCPD9vQd9i+T8qgQ/0fqHo=; b=vizr35ivauh14U8++vaMFKVjwFMrhJ5Mb+fjWZ5V/E2OscHQiIkqbzTiSqrsrg7tuH EV4DEZVtpYXorBsXTl7GoFsY4HD0JnrCaneMTd/ct6QbWdqOo8IZWciSJmqOpqf0THcT v6nSkaDM6JBY74i6iYBWpdlyi6iCI9UG9tpdArONzfJsDWTvoZAGBNe/2prekG/uwwvw mgVJU3djQBLAvrNk5iCWcYuL/WqzhP9W4RnbDUkrU0IZZOSdkwZENmppqkYgQTmKELF6 UvyenCL8xJjQle9shmF79coTcVMNKKaS8wn5Szry7173ISfWfrFtWdWeHKl9gvLS7AjT khRw== X-Received: by 10.152.113.164 with SMTP id iz4mr18997978lab.50.1362425494640; Mon, 04 Mar 2013 11:31:34 -0800 (PST) Received: from localhost (94.79-160-154.customer.lyse.net. [79.160.154.94]) by mx.google.com with ESMTPS id i3sm7651239lbn.0.2013.03.04.11.31.31 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 04 Mar 2013 11:31:33 -0800 (PST) From: Magnar Sveen To: "Eli Zaretskii" Subject: Re: bug#13863: 24.2; Cursor position after after-string on overlay at point-max References: ,<83mwuktc36.fsf@gnu.org> User-agent: mu4e 0.9.9; emacs 24.2.1 In-reply-to: <83mwuktc36.fsf@gnu.org> Date: Mon, 04 Mar 2013 20:31:30 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 13863 Cc: 13863@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Eli Zaretskii writes: > IOW, when Emacs is too dumb to put the cursor where you want, you can > guide it with the 'cursor' text property. Thanks Eli, this solved my problem. > Emacs always behaved like that with after-string display. Normally I'd say that something always having been like that, is not a good argument against fixing unintuitive and buggy behavior. However, in the case of Emacs and its exceedingly large code base and dependents, I see greater value in backwards compatibility. - Magnar From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 15:20:19 2013 Received: (at 13863-done) by debbugs.gnu.org; 4 Mar 2013 20:20:19 +0000 Received: from localhost ([127.0.0.1]:59163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCbrt-0007JH-T2 for submit@debbugs.gnu.org; Mon, 04 Mar 2013 15:20:18 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]:43788) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCbrr-0007Iy-C3 for 13863-done@debbugs.gnu.org; Mon, 04 Mar 2013 15:20:16 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MJ500800K0SH600@a-mtaout21.012.net.il> for 13863-done@debbugs.gnu.org; Mon, 04 Mar 2013 22:19:29 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJ5008SIKGH8BB0@a-mtaout21.012.net.il>; Mon, 04 Mar 2013 22:19:29 +0200 (IST) Date: Mon, 04 Mar 2013 22:19:23 +0200 From: Eli Zaretskii Subject: Re: bug#13863: 24.2; Cursor position after after-string on overlay at point-max In-reply-to: X-012-Sender: halo1@inter.net.il To: Magnar Sveen Message-id: <831ubuuddg.fsf@gnu.org> References: <83mwuktc36.fsf@gnu.org> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Magnar Sveen > Cc: 13863@debbugs.gnu.org > Date: Mon, 04 Mar 2013 20:31:30 +0100 > > > IOW, when Emacs is too dumb to put the cursor where you want, you can > > guide it with the 'cursor' text property. > > Thanks Eli, this solved my problem. > > > Emacs always behaved like that with after-string display. > > Normally I'd say that something always having been like that, is not a > good argument against fixing unintuitive and buggy behavior. However, in > the case of Emacs and its exceedingly large code base and dependents, I > see greater value in backwards compatibility. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.169 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4971] X-Debbugs-Envelope-To: 13863-done Cc: 13863-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) > From: Magnar Sveen > Cc: 13863@debbugs.gnu.org > Date: Mon, 04 Mar 2013 20:31:30 +0100 > > > IOW, when Emacs is too dumb to put the cursor where you want, you can > > guide it with the 'cursor' text property. > > Thanks Eli, this solved my problem. > > > Emacs always behaved like that with after-string display. > > Normally I'd say that something always having been like that, is not a > good argument against fixing unintuitive and buggy behavior. However, in > the case of Emacs and its exceedingly large code base and dependents, I > see greater value in backwards compatibility. I meant that after-string display was explicitly coded this way since day one. IOW, it's not a regression. I will close the bug, then. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 16:43:38 2013 Received: (at 13863) by debbugs.gnu.org; 4 Mar 2013 21:43:38 +0000 Received: from localhost ([127.0.0.1]:59234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCdAY-0000r9-4j for submit@debbugs.gnu.org; Mon, 04 Mar 2013 16:43:38 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:64509) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCdAW-0000qv-G6 for 13863@debbugs.gnu.org; Mon, 04 Mar 2013 16:43:36 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLvL/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFFxLvL/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="3017149" Received: from 69-196-187-203.dsl.teksavvy.com (HELO pastel.home) ([69.196.187.203]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Mar 2013 16:43:06 -0500 Received: by pastel.home (Postfix, from userid 20848) id 4CEC46BF75; Mon, 4 Mar 2013 16:43:07 -0500 (EST) From: Stefan Monnier To: Magnar Sveen Subject: Re: bug#13863: 24.2; Cursor position after after-string on overlay at point-max Message-ID: References: <83mwuktc36.fsf@gnu.org> Date: Mon, 04 Mar 2013 16:43:07 -0500 In-Reply-To: (Magnar Sveen's message of "Mon, 04 Mar 2013 20:31:30 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 13863 Cc: Eli Zaretskii , 13863@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.5 (/) > Normally I'd say that something always having been like that, is not a > good argument against fixing unintuitive and buggy behavior. However, in > the case of Emacs and its exceedingly large code base and dependents, I > see greater value in backwards compatibility. Actually, I don't think backward compatibility is a big issue in this case. The more real problem is that it's difficult to fix: IIRC last time I looked at this code, at the point where the cursor is displayed, we don't have easy access to the needed info (we have access to the sequence of displayed chars, and their provenance, but their provenance only says "this (after) string" without any reference to the corresponding overlay). Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 22:38:22 2013 Received: (at 13863) by debbugs.gnu.org; 5 Mar 2013 03:38:22 +0000 Received: from localhost ([127.0.0.1]:59495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCihn-0001Ch-50 for submit@debbugs.gnu.org; Mon, 04 Mar 2013 22:38:19 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:41116) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCihf-0001CM-04 for 13863@debbugs.gnu.org; Mon, 04 Mar 2013 22:38:14 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MJ6005004NWA800@a-mtaout22.012.net.il> for 13863@debbugs.gnu.org; Tue, 05 Mar 2013 05:37:27 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJ6005R64QF1P60@a-mtaout22.012.net.il>; Tue, 05 Mar 2013 05:37:27 +0200 (IST) Date: Tue, 05 Mar 2013 05:37:21 +0200 From: Eli Zaretskii Subject: Re: bug#13863: 24.2; Cursor position after after-string on overlay at point-max In-reply-to: X-012-Sender: halo1@inter.net.il To: Stefan Monnier Message-id: <83wqtmsej2.fsf@gnu.org> References: <83mwuktc36.fsf@gnu.org> X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 13863 Cc: magnars@gmail.com, 13863@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Stefan Monnier > Cc: "Eli Zaretskii" , 13863@debbugs.gnu.org > Date: Mon, 04 Mar 2013 16:43:07 -0500 > > Actually, I don't think backward compatibility is a big issue in this > case. The more real problem is that it's difficult to fix: IIRC last > time I looked at this code, at the point where the cursor is displayed, > we don't have easy access to the needed info (we have access to the > sequence of displayed chars, and their provenance, but their provenance > only says "this (after) string" without any reference to the > corresponding overlay). That is correct. From unknown Wed Aug 20 00:03:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 02 Apr 2013 11:24:03 +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