From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: invisible Date: Mon, 26 Nov 2007 15:16:35 -0500 Message-ID: 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=us-ascii X-Trace: ger.gmane.org 1196108225 22875 80.91.229.12 (26 Nov 2007 20:17:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 20:17:05 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Stephen Berman , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 26 21:17:10 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 1IwkOD-0005Hr-10 for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 21:17:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwkNx-0005pJ-MO for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 15:16:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwkNt-0005oD-El for emacs-devel@gnu.org; Mon, 26 Nov 2007 15:16:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwkNs-0005mW-3S for emacs-devel@gnu.org; Mon, 26 Nov 2007 15:16:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwkNr-0005mJ-Ue for emacs-devel@gnu.org; Mon, 26 Nov 2007 15:16:47 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwkNn-0005zd-04; Mon, 26 Nov 2007 15:16:43 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 8ECBB2CE9C3; Mon, 26 Nov 2007 15:16:42 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id EF0B03FE0; Mon, 26 Nov 2007 15:16:35 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id DA9936CA42; Mon, 26 Nov 2007 15:16:35 -0500 (EST) In-Reply-To: <474B19DB.6030803@gmx.at> (martin rudalics's message of "Mon, 26 Nov 2007 20:09:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:84165 gmane.emacs.pretest.bugs:20374 Archived-At: > I lost you here. `line-move-ignore-invisible' nil means do not skip > invisible newlines and explicitly should affect only C-n and C-p. > `disable-point-adjustment' is about a lot of other things as well. 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. >>> This function works only in certain cases, >>> because what we really need is for `move-to-column' >>> and `current-column' to be able to ignore invisible text." >> This text seems odd: AFAIK they *do* ignore invisible text. Does it >> want to say that they sould ignore the `invisible' text property? > Personally I think they should ignore all properties. 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 reference: the pre-21 behavior was to treat all invisible text as if it weren't there. 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)) >> The docstring of line-move-to-column is too vague: it doesn't say what >> it intends to do, really: "considering invisibility" is not much help. >> If someone knows what it intends to do, really, maybe we can figure out >> how to fix it (probably the best fix will be to change the C code). > `line-move-ignore-invisible' per se is vague. > What is an invisible line? Indeed. We also need to improve that docstring. Stefan