From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Kurn Newsgroups: gmane.emacs.bugs Subject: bug#10072: 23.3; invisible text Date: Fri, 18 Nov 2011 11:14:36 -0800 Message-ID: <20111118191436.GA21091@sfu.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1321643721 21844 80.91.229.12 (18 Nov 2011 19:15:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2011 19:15:21 +0000 (UTC) To: 10072@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 18 20:15:16 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RRTu7-0004ed-FH for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Nov 2011 20:15:15 +0100 Original-Received: from localhost ([::1]:40305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRTu6-0003U2-Vk for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Nov 2011 14:15:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRTu0-0003R9-ON for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 14:15:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRTtw-0007lm-Td for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 14:15:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRTtw-0007li-Qd for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 14:15:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RRTus-0003Fn-4v for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 14:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Kurn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2011 19:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10072 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.132164376012498 (code B ref -1); Fri, 18 Nov 2011 19:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Nov 2011 19:16:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRTum-0003FS-LG for submit@debbugs.gnu.org; Fri, 18 Nov 2011 14:16:00 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRTuh-0003FG-9t for submit@debbugs.gnu.org; Fri, 18 Nov 2011 14:15:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRTth-0007iF-GL for submit@debbugs.gnu.org; Fri, 18 Nov 2011 14:14:53 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:54557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRTth-0007iB-Ev for submit@debbugs.gnu.org; Fri, 18 Nov 2011 14:14:49 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRTtd-0003Ni-KB for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 14:14:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRTtZ-0007h6-Bu for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 14:14:45 -0500 Original-Received: from pobox.sfu.ca ([142.58.101.28]:53321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRTtZ-0007gg-4m for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 14:14:41 -0500 Original-Received: from fraser.sfu.ca (fraser.sfu.ca [142.58.101.25]) by pobox.sfu.ca (8.13.6/8.13.5/SFU-6.0G) with ESMTP id pAIJEbsg007421 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 18 Nov 2011 11:14:37 -0800 (PST) Original-Received: (from kurn@localhost) by fraser.sfu.ca (8.13.8+Sun/8.14.3/SFU-6.0C) id pAIJEaY1028489 for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 11:14:36 -0800 (PST) Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 18 Nov 2011 14:16:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:54048 Archived-At: I'm seeing a collection of funny behavior around invisible text. Here are some examples. emacs -Q -nw (setq s "XXX,") (put-text-property 0 3 'invisible t s) (setq s (concat s s s)) (insert s) If I move the cursor around, it will stop before an invisible X. This is not the advertised behavior. (I discover its position by using Ctl-X =) >From sec. 38.6 of E-Lisp: --- However, if a command ends with point inside or immediately before invisible text, the main editing loop moves point further forward or further backward (in the same direction that the command already moved it) until that condition is no longer true. Thus, if the command moved point back into an invisible range, Emacs moves point back to the beginning of that range, and then back one more character. If the command moved point forward into an invisible range, Emacs moves point forward up to the first visible character that follows the invisible text. --- Also, this: (let () (with-current-buffer (get-buffer-create "B") (goto-char 1) (insert s) (goto-char 1) (re-search-forward ",X") ) ) will leave point at an invisible position, where it stays if you pop up a window on B. --- I have one more bug, which I'm having trouble reproducing, where an /after-string/ of blanks attached to an overlay on invisible text displays fewer than requested. If you know what this one is already you can save me some trouble. --- Best regards, Andrew In GNU Emacs 23.3.1 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48) of 2011-11-14 on d142-058-206-239.surrey.sfu.ca Windowing system distributor `Apple', version 10.3.824 configured using `configure '--with-ns'' 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: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: n g SPC r M-! t r o u b l e SPC r e p r o d u c i n g , SPC w h e r e SPC a n SPC / a f t e r - s t r i n g / RET o f SPC b l a n k s SPC d i s p l a y s SPC f e w e r SPC t h a n SPC r e q u e s t e d . SPC SPC I f SPC y o u SPC k n o w SPC w h a t SPC t h i s SPC o n e SPC i s SPC a l r e a d y RET y o u SPC c a n SPC s a v e SPC m e SPC s o m e SPC t r o u b l e . ESC O D ESC O A ESC ] h L ESC ] h L ESC ] h L a t t a c h e d SPC t o SPC i n v i s i b l e SPC t e x t SPC ESC O A ESC O A ESC ] f E ESC x f i l l - r e g TAB RET RET RET ESC O A ESC O A ESC O A ESC ] h L ESC ] h L ESC ] h L ESC ] h L a n SPC o v e r l a y s SPC o n SPC ESC O D ESC O D ESC O D ESC O D M-! ESC O A ESC O A ESC ] f E ESC x r e p o r t TAB RET Recent messages: Char: " (34, #o42, #x22) point=13 of 27056 (0%) column=7 Char: " (34, #o42, #x22) point=7 of 27056 (0%) column=6 Char: " (34, #o42, #x22) point=5 of 27056 (0%) column=4 Char: , (44, #o54, #x2c) point=6 of 27056 (0%) column=5 Char: " (34, #o42, #x22) point=7 of 27056 (0%) column=6 [2 times] Auto-saving...done (New file) Mark set [6 times] Auto-saving...done Mark set [2 times] Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-fns help-mode view apropos info tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)