From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Magnar Sveen Newsgroups: gmane.emacs.bugs Subject: bug#13863: 24.2; Cursor position after after-string on overlay at point-max Date: Sun, 03 Mar 2013 20:19:33 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1362338463 17972 80.91.229.3 (3 Mar 2013 19:21:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Mar 2013 19:21:03 +0000 (UTC) To: 13863@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 03 20:21:26 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UCETL-0006EG-I6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Mar 2013 20:21:23 +0100 Original-Received: from localhost ([::1]:41633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCET0-0003Mt-5V for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Mar 2013 14:21:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCESv-0003Mj-RZ for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:20:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCESq-0003Sk-EF for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:20:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCESp-0003Sb-UI for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:20:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UCET0-0001lb-3X for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Magnar Sveen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Mar 2013 19:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13863 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13623384086708 (code B ref -1); Sun, 03 Mar 2013 19:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Mar 2013 19:20:08 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72050 Archived-At: - 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)