From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#3400: bug in add-text-properties Date: Thu, 28 May 2009 22:05:30 -0400 Message-ID: References: <4A1EAA91.6030301@gmx.at> <20090528.182658.131797994.wl@gnu.org> <20090528.234833.147211632.wl@gnu.org> Reply-To: Stefan Monnier , 3400@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243563458 21825 80.91.229.12 (29 May 2009 02:17:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 02:17:38 +0000 (UTC) Cc: 3400@emacsbugs.donarmstrong.com To: Werner LEMBERG Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 29 04:17:35 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M9rez-0002tu-RM for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 May 2009 04:17:30 +0200 Original-Received: from localhost ([127.0.0.1]:43414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9rey-0003Kl-QZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2009 22:17:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9reu-0003KO-An for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 22:17:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9rep-0003J1-Si for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 22:17:24 -0400 Original-Received: from [199.232.76.173] (port=47975 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9rep-0003In-LD for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 22:17:19 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38228) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9rep-0002eQ-2L for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 22:17:19 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4T2HGgH024733; Thu, 28 May 2009 19:17:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4T2F3Af024146; Thu, 28 May 2009 19:15:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 02:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3400 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3400-submit@emacsbugs.donarmstrong.com id=B3400.124356275823141 (code B ref 3400); Fri, 29 May 2009 02:15:03 +0000 Original-Received: (at 3400) by emacsbugs.donarmstrong.com; 29 May 2009 02:05:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4T25qQp023136 for <3400@emacsbugs.donarmstrong.com>; Thu, 28 May 2009 19:05:54 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswEAF7gHkrO+JxR/2dsb2JhbACBT8xhhA0FhgQ X-IronPort-AV: E=Sophos;i="4.41,268,1241409600"; d="scan'208";a="39257373" Original-Received: from 206-248-156-81.dsl.teksavvy.com (HELO pastel.home) ([206.248.156.81]) by ironport2-out.teksavvy.com with ESMTP; 28 May 2009 22:05:31 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 840F584BF; Thu, 28 May 2009 22:05:30 -0400 (EDT) In-Reply-To: <20090528.234833.147211632.wl@gnu.org> (Werner LEMBERG's message of "Thu, 28 May 2009 23:48:33 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 28 May 2009 22:17:23 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28280 Archived-At: >> If you hit `b', the `b' will be inserted right before "12345", and it >> will not be invisible. > So what? With `C-x =' I see `A' and get the data of `1', Point is at position 1 (i.e. just before the char "1" rather than before the char "A"), so it makes sense for C-h = to return data about that position rather than about some other position one line down. Also it makes sense to draw the cursor over the "A" because there's nowhere else to draw it. Basically, since the chars "12345\n" are invisible and intangible, the display should pretend they don't exist, but C-x = is designed to show you the actual underlying data. > Actually, there is no way to retrieve information from `A' at all. Your `intangible' span basically requests "12345\nA" to be treated as one indivisible entity, so it's indeed difficult to get info about most of those individual chars. >> BTW, why are you using `intangible'? > I've just copied some code -- I haven't checked whether I can omit it. First things first: if you're not 200% sure you absolutely need `intangible', then don't use it. It's a nasty beast. Stefan