From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: invisible Date: Tue, 27 Nov 2007 14:11:38 +0100 Message-ID: <474C178A.1060602@gmx.at> References: <20040225.150142.12214540.kazu@iijlab.net> <200402282128.i1SLSuY15359@raven.dms.auburn.edu> <200402290224.i1T2Oip15705@raven.dms.auburn.edu> <87sl3fdqs3.fsf@escher.local.home> <87zlxc5r2f.fsf@escher.local.home> <474059CD.1060107@gmx.at> <87r6ihi1z7.fsf@escher.local.home> <4746E2CF.4010604@gmx.at> <87k5o8q0y5.fsf@escher.local.home> <4747312D.7020605@gmx.at> <87fxywpuuy.fsf@escher.local.home> <47474B8C.9020806@gmx.at> <87bq9kpnqd.fsf@escher.local.home> <4747EFE8.5090405@gmx.at> <474A7CF6.8030802@gmx.at> <474B19DB.6030803@gmx.at> 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 1196169334 1755 80.91.229.12 (27 Nov 2007 13:15:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2007 13:15:34 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Stephen Berman , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 27 14:15:42 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 1Ix0Hs-0000wi-Nz for ged-emacs-devel@m.gmane.org; Tue, 27 Nov 2007 14:15:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ix0Hd-000764-7m for ged-emacs-devel@m.gmane.org; Tue, 27 Nov 2007 08:15:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ix0HZ-00074N-GQ for emacs-devel@gnu.org; Tue, 27 Nov 2007 08:15:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ix0HY-00072a-By for emacs-devel@gnu.org; Tue, 27 Nov 2007 08:15:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ix0HY-00072P-7M for emacs-devel@gnu.org; Tue, 27 Nov 2007 08:15:20 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ix0HX-0004Qv-QX for emacs-devel@gnu.org; Tue, 27 Nov 2007 08:15:20 -0500 Original-Received: (qmail invoked by alias); 27 Nov 2007 13:15:17 -0000 Original-Received: from N923P003.adsl.highway.telekom.at (EHLO [62.47.59.67]) [62.47.59.67] by mail.gmx.net (mp028) with SMTP; 27 Nov 2007 14:15:17 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18MozpfSJMMWznjD0eML50sMDGBepx/0qxQR7zLJj mpOY0Z//huF5Ub User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: 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:84211 gmane.emacs.pretest.bugs:20378 Archived-At: > AFAIK in all circumstances where you want line-move-ignore-invisible to > be non-nil, you'll also want disable-point-adjustment to be nil. > And vice-versa. I never set them hence I conclude you're right. > You're saying that line-move-to-column would like current-column and > friends should to treat invisible text as if it were visible? For `line-move-ignore-invisible' nil at least, yes. > In Emacs-21, I changed it so that text that's > replaced by an ellipsis is counted as if it were visible: I needed this > to be able to re-indent blocks of code while hidden by outline-minor-mode. > I didn't change it for non-ellipsis invisible text to reduce the > backward compatibility problems. > > It turns out that it's also a good behavior in the sense that you can > get the other two behaviors (ignore all invisible text properties and > obey all invisible text properties) in the following way: > > (let ((buffer-invisibility-spec nil)) (current-column)) > and > (let ((buffer-invisibility-spec t)) (current-column)) Neat. Indeed, writing (cond ((zerop col) (beginning-of-line)) (line-move-ignore-invisible (move-to-column col)) (t (let ((buffer-invisibility-spec nil)) ;; Don't ignore invisible text when moving to the end of an ;; invisible line. (move-to-column col)))) seems to work perfectly.