From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Confusion regarding invisible text Date: Wed, 01 Oct 2008 21:47:30 +0200 Message-ID: References: <87r674y1jg.fsf@arcor.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222890480 30023 80.91.229.12 (1 Oct 2008 19:48:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 19:48:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 21:48:58 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-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 1Kl7gv-0004Nn-ND for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2008 21:48:57 +0200 Original-Received: from localhost ([127.0.0.1]:44075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl7fs-0007Sj-Qb for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2008 15:47:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl7fa-0007SD-Dk for help-gnu-emacs@gnu.org; Wed, 01 Oct 2008 15:47:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl7fY-0007Ri-QV for help-gnu-emacs@gnu.org; Wed, 01 Oct 2008 15:47:34 -0400 Original-Received: from [199.232.76.173] (port=42667 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl7fY-0007Rf-Md for help-gnu-emacs@gnu.org; Wed, 01 Oct 2008 15:47:32 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:34982) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kl7fY-0001Sx-7Q for help-gnu-emacs@gnu.org; Wed, 01 Oct 2008 15:47:32 -0400 Original-Received: from thursday (BAH2e71.bah.pppool.de [77.135.46.113]) by dd18200.kasserver.com (Postfix) with ESMTP id 3B74C18C2BF53 for ; Wed, 1 Oct 2008 21:47:37 +0200 (CEST) In-Reply-To: <87r674y1jg.fsf@arcor.de> (David's message of "Sun\, 28 Sep 2008 13\:04\:19 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58263 Archived-At: David wrote: > This seems to imply that cursor movement would skip over invisible text, > or am I misunderstanding this paragraph? I'd appreciate if someone could > explain this behavior to me, and maybe also how to best avoid a > situation like the above. I come to the same conclusions as you, David, and think this is a bug. Please report it using M-x report-emacs-bug. Surprisingly, it works as expected when using overlays, i.e.: (save-excursion (set-buffer (get-buffer-create "invtest")) (erase-buffer) (insert "xxxx\naaaaa\nbbbbb\n") (goto-char (point-min)) (forward-line 1) (let ((ov (make-overlay (point) (1+ (point-at-eol))))) (overlay-put ov 'invisible t))) regards, Nikolaj Schumacher