From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#14346: 24.3; beginning-of-visual-line jumps to previous line in org-mode Date: Tue, 7 May 2013 02:34:40 +0100 Message-ID: References: <8338u3m2ke.fsf@gnu.org> <831u9nm2dm.fsf@gnu.org> <83y5bvkki7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2a8e43221e404dc16d2d8 X-Trace: ger.gmane.org 1367890516 30460 80.91.229.3 (7 May 2013 01:35:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 May 2013 01:35:16 +0000 (UTC) Cc: 14346@debbugs.gnu.org To: Eli Zaretskii , emacs-orgmode@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 07 03:35:14 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UZWoC-0004nq-Ht for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 May 2013 03:35:12 +0200 Original-Received: from localhost ([::1]:57001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZWoC-0007BD-58 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2013 21:35:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZWo5-000701-R3 for bug-gnu-emacs@gnu.org; Mon, 06 May 2013 21:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZWo2-0003MQ-Va for bug-gnu-emacs@gnu.org; Mon, 06 May 2013 21:35:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZWo2-0003Li-SJ for bug-gnu-emacs@gnu.org; Mon, 06 May 2013 21:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UZWp0-0008ED-8W for bug-gnu-emacs@gnu.org; Mon, 06 May 2013 21:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: E Sabof Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 May 2013 01:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14346 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14346-submit@debbugs.gnu.org id=B14346.136789054531545 (code B ref 14346); Tue, 07 May 2013 01:36:02 +0000 Original-Received: (at 14346) by debbugs.gnu.org; 7 May 2013 01:35:45 +0000 Original-Received: from localhost ([127.0.0.1]:60400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZWoi-0008Cb-De for submit@debbugs.gnu.org; Mon, 06 May 2013 21:35:45 -0400 Original-Received: from mail-qa0-f41.google.com ([209.85.216.41]:36428) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZWof-0008CJ-BH for 14346@debbugs.gnu.org; Mon, 06 May 2013 21:35:42 -0400 Original-Received: by mail-qa0-f41.google.com with SMTP id bv4so1834400qab.7 for <14346@debbugs.gnu.org>; Mon, 06 May 2013 18:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=d2WQpvlhckEO7+wj39Em6IgSQM/mEo33TNOBtPXzGtU=; b=OZukf+r9rVLoG+3iv5sBf9iQL3/2Zx2Z9PKuMw9bPA41S+PftOKP5OJKjWymckcJeg Nk8azTPCZFBEFnttS9rqINuVU7sSHgy5TS9CuVJToDriehJNpGAPjkS8/8/4pvu+Ap9i vBhq/mZQBiL0P4FMwl2WWyqZNZK3kudrbNu5Lwe61Ylq7NvW64L9oVba2DI9+FWK3EG3 eO4PSOm/VyF+RP1yG8zCCY3mVan+SnSf9mkkj3Cg29EEwj0DCIMY0aU9ZH4voaUk968C cVQnID1/1nq8ewJTQdBuhBsz7YjaJxnf+GbaLA2zOfuBDTfhULV/zk10ZfrFz6vYR84b mCRw== X-Received: by 10.229.59.71 with SMTP id k7mr9699589qch.50.1367890480732; Mon, 06 May 2013 18:34:40 -0700 (PDT) Original-Received: by 10.49.117.40 with HTTP; Mon, 6 May 2013 18:34:40 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74033 Archived-At: --001a11c2a8e43221e404dc16d2d8 Content-Type: text/plain; charset=ISO-8859-1 Even if the behavior doesn't change (soon), could the equivalent of the following be implemented in org-mode? It's the only place where this has been problematic for me. (defadvice org-beginning-of-line (after smart-point-adjustment activate) (setq disable-point-adjustment (or (not (invisible-p (point))) (not (invisible-p (max (point-min) (1- (point)))))))) (defadvice org-end-of-line (after smart-point-adjustment activate) (setq disable-point-adjustment (or (not (invisible-p (point))) (not (invisible-p (max (point-min) (1- (point)))))))) Evgeni On Sat, May 4, 2013 at 2:27 PM, E Sabof wrote: > Wouldn't it be better if forward/backward-char kept the old behavior, and > the rest of the commands did something similar to this in the end: > > (setq disable-point-adjustment > (preceding-or-following-character-visible-p)) > > I'm not entirely sure whether it would be better, but at the moment, I > can't think of a case where it wouldn't. > > Evgeni > > > On Sat, May 4, 2013 at 1:16 PM, Eli Zaretskii wrote: > >> > Date: Sat, 4 May 2013 12:17:35 +0100 >> > From: E Sabof >> > Cc: 14346@debbugs.gnu.org >> > >> > I see what you mean. But it still looks like a bug - whether I follow >> the >> > above recipe, or press C-e C-a, the point will (should?) go to the same >> > position, but the behavior is different. >> >> The behavior depends on the direction point was moving before ending >> up in the invisible text. It's a heuristic, and as every heuristic, >> it sometimes fails. >> > > --001a11c2a8e43221e404dc16d2d8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Even if the behavior doesn't change (soon), could the = equivalent of the following be implemented in org-mode? It's the only p= lace where this has been problematic for me.=A0

(de= fadvice org-beginning-of-line (after smart-point-adjustment activate)
=A0 (setq disable-point-adjustment
=A0 =A0 =A0 =A0 (or (not = (invisible-p (point)))
=A0 =A0 =A0 =A0 =A0 =A0 (not (invisible-p = (max (point-min) (1- (point))))))))

(defadvice org= -end-of-line (after smart-point-adjustment activate)
=A0 (setq disable-point-adjustment
=A0 =A0 =A0 =A0 (or (not = (invisible-p (point)))
=A0 =A0 =A0 =A0 =A0 =A0 (not (invisible-p = (max (point-min) (1- (point))))))))

Ev= geni


On Sat, May 4, 2013 at 2:27 PM, E Sabof = <esabof@gmail.com> wrote:
Wouldn't it be better if forward/backward-char kept th= e old behavior, and the rest of the commands did something similar to this = in the end:

(setq disable-point-adjustment
=A0 =A0 =A0 (preceding-or-following-character-visible-p))
<= br>
I'm not entirely sure whether it would be better, but at = the moment, I can't think of a case where it wouldn't.

Evgeni


On Sat, May 4, = 2013 at 1:16 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Sat, 4 May 2013 12:17:35 +0100 > From: E Sabof <esabof@gmail.com>
> Cc: 14346@d= ebbugs.gnu.org
>
> I see what you mean. But it still looks like a bug - whether I follow = the
> above recipe, or press C-e C-a, the point will (should?) go to the sam= e
> position, but the behavior is different.

The behavior depends on the direction point was moving before ending<= br> up in the invisible text. =A0It's a heuristic, and as every heuristic,<= br> it sometimes fails.


--001a11c2a8e43221e404dc16d2d8--