From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: invisible Date: Fri, 30 Nov 2007 18:19:57 +0100 Message-ID: <4750463D.4000504@gmx.at> References: <20040225.150142.12214540.kazu@iijlab.net> <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> <474C65FF.3070403@gmx.at> <474E93EC.9040909@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070106060900040001020803" X-Trace: ger.gmane.org 1196443305 20526 80.91.229.12 (30 Nov 2007 17:21:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 17:21:45 +0000 (UTC) Cc: Stephen.Berman@gmx.net, rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 30 18:21:52 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 1Iy9Ya-00012L-A9 for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 18:21:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy9YK-00027i-2u for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 12:21:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iy9Xk-0001RX-SV for emacs-devel@gnu.org; Fri, 30 Nov 2007 12:20:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy9Xj-0001Ou-3N for emacs-devel@gnu.org; Fri, 30 Nov 2007 12:20:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy9Xi-0001OU-Pr for emacs-devel@gnu.org; Fri, 30 Nov 2007 12:20:46 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Iy9Xi-0002Kk-2c for emacs-devel@gnu.org; Fri, 30 Nov 2007 12:20:46 -0500 Original-Received: (qmail invoked by alias); 30 Nov 2007 17:20:43 -0000 Original-Received: from N860P030.adsl.highway.telekom.at (EHLO [62.47.51.126]) [62.47.51.126] by mail.gmx.net (mp016) with SMTP; 30 Nov 2007 18:20:43 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+7bE9GhoW76NS2agZaZKS76hPGbnZo1VMBzKTuLD dJ9VO03FLH73lL 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:84368 Archived-At: This is a multi-part message in MIME format. --------------070106060900040001020803 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Hmm... I didn't notice that part. But then do they also appear with > a line-move-ignore-invisible set to nil and a disable-point-adjustment > set to t? I would guess not (this case being trivial). > > If so, maybe the solution is to do as I suggested: get rid of > line-move-ignore-invisible and use (not disable-point-adjustment) in > its place. FWIW, the following seems to work: Disable point-adjustment in interactive use of `next-line' and `previous-line' and apply one of my earlier proposed changes. Stephen, please try again with default rear-stickiness. --------------070106060900040001020803 Content-Type: text/plain; name="simple.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="simple.patch" *** simple.el.~1.888.~ Sat Nov 10 09:23:20 2007 --- simple.el Fri Nov 30 18:13:12 2007 *************** *** 3595,3601 **** (line-move arg nil nil try-vscroll)) (if (interactive-p) (condition-case nil ! (line-move arg nil nil try-vscroll) ((beginning-of-buffer end-of-buffer) (ding))) (line-move arg nil nil try-vscroll))) nil) --- 3595,3606 ---- (line-move arg nil nil try-vscroll)) (if (interactive-p) (condition-case nil ! (progn ! (unless line-move-ignore-invisible ! ;; Interactively, disable point-adjustment when ! ;; `line-move-ignore-invisible' is nil. ! (setq disable-point-adjustment t)) ! (line-move arg nil nil try-vscroll)) ((beginning-of-buffer end-of-buffer) (ding))) (line-move arg nil nil try-vscroll))) nil) *************** *** 3621,3627 **** (or arg (setq arg 1)) (if (interactive-p) (condition-case nil ! (line-move (- arg) nil nil try-vscroll) ((beginning-of-buffer end-of-buffer) (ding))) (line-move (- arg) nil nil try-vscroll)) nil) --- 3626,3637 ---- (or arg (setq arg 1)) (if (interactive-p) (condition-case nil ! (progn ! (unless line-move-ignore-invisible ! ;; Interactively, disable point-adjustment when ! ;; `line-move-ignore-invisible' is nil. ! (setq disable-point-adjustment t)) ! (line-move (- arg) nil nil try-vscroll)) ((beginning-of-buffer end-of-buffer) (ding))) (line-move (- arg) nil nil try-vscroll)) nil) *************** *** 3862,3868 **** (save-excursion ;; Like end-of-line but ignores fields. (skip-chars-forward "^\n") ! (while (and (not (eobp)) (invisible-p (point))) (goto-char (next-char-property-change (point))) (skip-chars-forward "^\n")) (point)))) --- 3872,3879 ---- (save-excursion ;; Like end-of-line but ignores fields. (skip-chars-forward "^\n") ! (while (and line-move-ignore-invisible ! (not (eobp)) (invisible-p (point))) (goto-char (next-char-property-change (point))) (skip-chars-forward "^\n")) (point)))) --------------070106060900040001020803 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------070106060900040001020803--