From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#3400: bug in add-text-properties Date: Thu, 28 May 2009 19:12:17 +0200 Message-ID: <4A1EC5F1.20603@gmx.at> References: <20090527.072638.71846358.wl@gnu.org> <4A1EAA91.6030301@gmx.at> <20090528.182658.131797994.wl@gnu.org> Reply-To: martin rudalics , 3400@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243531784 1146 80.91.229.12 (28 May 2009 17:29:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2009 17:29:44 +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 Thu May 28 19:29:41 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 1M9jQA-0007ju-Rk for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2009 19:29:39 +0200 Original-Received: from localhost ([127.0.0.1]:53123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9jQA-0000nf-CR for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2009 13:29:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9jPs-0000d9-Or for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 13:29:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9jPo-0000bL-6Q for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 13:29:20 -0400 Original-Received: from [199.232.76.173] (port=38951 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9jPn-0000b1-N2 for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 13:29:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60924) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9jPm-0004qz-PP for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 13:29:15 -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 n4SHTCiB018570; Thu, 28 May 2009 10:29:13 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4SHK7T1017400; Thu, 28 May 2009 10:20:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 28 May 2009 17:20:07 +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.124353075016611 (code B ref 3400); Thu, 28 May 2009 17:20:07 +0000 Original-Received: (at 3400) by emacsbugs.donarmstrong.com; 28 May 2009 17:12:30 +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 n4SHCPU5016604 for <3400@emacsbugs.donarmstrong.com>; Thu, 28 May 2009 10:12:27 -0700 Original-Received: (qmail invoked by alias); 28 May 2009 17:12:20 -0000 Original-Received: from 88-117-40-185.adsl.highway.telekom.at (EHLO [88.117.40.185]) [88.117.40.185] by mail.gmx.net (mp070) with SMTP; 28 May 2009 19:12:20 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19J4CdiY01JUKswcn4gFkGOjsdZ5Zl6J7fgGOtHU/ K3LxFRbaDtVbuh User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <20090528.182658.131797994.wl@gnu.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.63 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 28 May 2009 13:29:20 -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:28269 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. Then the value of `point' at the time you invoke that command is counterintuitive. >> So IMHO this is not a bug in `add-text-properties'. > > Maybe. I don't know the internal details of Emacs. However, calling > add-text-properties triggers the problem I experience. > >> It's arguable whether point should be allowed to be there in your >> case, > > In this particular case I don't care where `point' is. I want to get > the correct result of `C-x ='. Don't blame `describe-char' here. It must be able to work on any buffer position including those preceded and/or followed by invisible text. >> but then where to move point when the entire buffer is invisible? > > This might be handled as a special case. Maybe. But then you admit that the problem is with the position of `point' ;-) Anyway, IIRC the idea was that you should be able put a visible overlay before invisible text at the beginning of the buffer and be able to move the cursor there. I have no idea whether that ever worked, though. >>> A side effect is that `C-a' no longer moves to the beginning of the >>> line. >> A side effect of what? > > Of calling add-text-properties as described in my report. I do expect > that C-a moves the blinking cursor to the beginning of the line and > not to the *second* character in the buffer, letter `B'. This _is_ a bug and I doubt it's the only one with respect to moving point over invisible text. martin