From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.bugs Subject: bug#3400: bug in add-text-properties Date: Thu, 28 May 2009 23:48:33 +0200 (CEST) Message-ID: <20090528.234833.147211632.wl@gnu.org> References: <4A1EAA91.6030301@gmx.at> <20090528.182658.131797994.wl@gnu.org> Reply-To: Werner LEMBERG , 3400@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243548892 24486 80.91.229.12 (28 May 2009 22:14:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2009 22:14:52 +0000 (UTC) Cc: 3400@emacsbugs.donarmstrong.com To: monnier@IRO.UMontreal.CA Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 29 00:14:48 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 1M9ns7-0005qx-W1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 May 2009 00:14:48 +0200 Original-Received: from localhost ([127.0.0.1]:33002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9ns7-0008Lt-92 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2009 18:14:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9nbJ-0001xr-B7 for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 17:57:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9nbE-0001si-QH for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 17:57:24 -0400 Original-Received: from [199.232.76.173] (port=58506 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9nbE-0001sb-FL for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 17:57:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39630) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9nbD-000573-Do for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 17:57: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 n4SLvGOW020250; Thu, 28 May 2009 14:57:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4SLt4wX019704; Thu, 28 May 2009 14:55:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Werner LEMBERG Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 28 May 2009 21:55:04 +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.124354733018967 (code B ref 3400); Thu, 28 May 2009 21:55:04 +0000 Original-Received: (at 3400) by emacsbugs.donarmstrong.com; 28 May 2009 21:48:50 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n4SLmjs6018962 for <3400@emacsbugs.donarmstrong.com>; Thu, 28 May 2009 14:48:47 -0700 Original-Received: (qmail invoked by alias); 28 May 2009 21:48:39 -0000 Original-Received: from 88-134-56-17-dynip.superkabel.de (EHLO localhost) [88.134.56.17] by mail.gmx.net (mp010) with SMTP; 28 May 2009 23:48:39 +0200 X-Authenticated: #54312696 X-Provags-ID: V01U2FsdGVkX189t7k8Qks9n0G64ewZgCNS+SaUuQI33mz9F5FocP 09Q6UejvOY4in/ In-Reply-To: X-Mailer: Mew version 6.2.51 on Emacs 23.0.93.1 / Mule 6.0 (HANACHIRUSATO) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 28 May 2009 17:57:24 -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:28278 Archived-At: >> Hmm. If I have > >> 12345 >> ABCDE > >> and I make `12345' + the newline after the `5' invisible and >> intangible, I see > >> ABCDE > >> in the buffer. If the blinking cursor stays on the `A', and you >> press `C-x =', do you *really* expect to see the properties of >> character `1' instead of `A'? This is completely counterintuitive >> IMHO. > > 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', this is what I consider a bug. Actually, there is no way to retrieve information from `A' at all. > BTW, why are you using `intangible'? I've just copied some code -- I haven't checked whether I can omit it. BTW, the problem is not restricted to the beginning of the buffer. With this input 12345 ABCDE abcde and this lisp code (defun make-second-line-invisible () (interactive) (goto-line 2) (setq start (line-beginning-position)) (setq end (1+ (line-end-position))) ; handle \n (add-text-properties start end '(invisible t intangible t))) there is the same problem: After calling the function you get 12345 abcde and `C-x =' (positioned on the `a') reports the info of the now invisible character `A'. Similarly, C-a only moves to character `b'. Werner