From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Brockman Newsgroups: gmane.emacs.devel Subject: Invisibility bug: `invisible' vs `display' Date: Mon, 12 Feb 2007 20:00:11 +0100 Message-ID: <87sldbtd50.fsf@wigwam.brockman.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1171306861 10836 80.91.229.12 (12 Feb 2007 19:01:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2007 19:01:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 12 20:00:55 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HGgPp-00008F-Os for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2007 20:00:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGgPp-0006Bk-Bm for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2007 14:00:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGgPa-0006A6-Gq for emacs-devel@gnu.org; Mon, 12 Feb 2007 14:00:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGgPY-00065k-0f for emacs-devel@gnu.org; Mon, 12 Feb 2007 14:00:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGgPX-00065M-Ri for emacs-devel@gnu.org; Mon, 12 Feb 2007 14:00:23 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HGgPX-0005tP-8h for emacs-devel@gnu.org; Mon, 12 Feb 2007 14:00:23 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HGgPU-0006hw-NY for emacs-devel@gnu.org; Mon, 12 Feb 2007 20:00:20 +0100 Original-Received: from c-a4fee255.09-32-6c6b7013.cust.bredbandsbolaget.se ([85.226.254.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Feb 2007 20:00:20 +0100 Original-Received: from daniel by c-a4fee255.09-32-6c6b7013.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Feb 2007 20:00:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 96 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-a4fee255.09-32-6c6b7013.cust.bredbandsbolaget.se X-Face: :&2UWGm>e24)ip~'K@iOsA&JT3JX*v@1-#L)=dUb825\Fwg#`^N!Y*g-TqdS AevzjFJe96f@V'ya8${57/T'"mTd`1o{TGYhHnVucLq!D$r2O{IN)7>.0op_Y`%r;/Q +(]`3F-t10N7NF\.Mm0q}p1:%iqTi:5]1E]rDF)R$9.!,Eu'9K':y9^U3F8UCS1M+A$ 8[[[WT^`$P[vu>P+8]aQMh9giu&fPCqLW2FSsGs User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) Cancel-Lock: sha1:/F5rtETOBb7aq0cRAxqCTs5B/3I= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66305 Archived-At: --=-=-= Try this: --=-=-= Content-Type: application/x-emacs-lisp Content-Disposition: inline (with-current-buffer (get-buffer-create "*Invisibility test*") (insert "A: " (propertize "*" 'invisible t) "\n") (insert "B: " (propertize "?" 'invisible t 'display "!") "\n") (insert "C: " (propertize "*" 'invisible t) (propertize "?" 'invisible t 'display "!") "\n") (insert "D: " (propertize "?" 'invisible t 'display "!") (propertize "*" 'invisible t) "\n") (insert "E: " (propertize "*" 'invisible t) (propertize "?" 'invisible t 'display "!") (propertize "*" 'invisible t) "\n") (insert "F: " (propertize "?" 'invisible t 'display "!") (propertize "*" 'invisible t) (propertize "?" 'invisible t 'display "$") "\n") (insert "G: " (propertize "?" 'invisible t 'display "!") (propertize "?" 'invisible t 'display "!") "\n") (display-buffer (current-buffer))) --=-=-= The test inserts the following text: A: * B: ? C: *? D: ?* E: *?* F: ?*? G: ?? The `*' and `?' characters have `invisibile' properties with a value of `t', so I expect to see none of them. The `?' characters all have `display' properties with a value of "!" (one of them has "$" instead, for clarity). This, I believe, _should_ be irrelevant. In other words, I expect to see the following: A: B: C: D: E: F: G: The actual result I get is this: A: B: ? C: D: ? E: F: ? G: ?! Those exclamation marks should not be there. What they all have in common is that none of them are preceded by invisible characters _without_ `display' properties. That is, a character with both `invisible' and `display' properties appears to display correctly (i.e., not at all) if and only if it is preceded by an invisible character without a `display' property. I get the same (AFAICS) erroneous results if I put an image or some space instead of a string on the `display' property. -- Daniel Brockman --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--