emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Oorja Sandhu" <oorja.sandhu@inoutbox.com>
To: emacs-orgmode@gnu.org
Subject: Bug: table header line mode causes next-line to reach beginning of line
Date: Sat, 17 Apr 2021 18:45:20 +0200	[thread overview]
Message-ID: <1b8b1a96-149e-4409-9738-fc45fad3a604@www.fastmail.com> (raw)

[-- Attachment #1.1: Type: text/plain, Size: 1396 bytes --]

   This is about the new org-table-header-line-mode, which is very useful to me, thanks.

Attached is the smallest file I could create to reproduce this issue. Steps :

1. emacs -Q
Latest Emacs cloned and built from master today.

2. Open the attached file

3. M-x org-table-header-line-mode

4. Resize emacs window very small such that horizontal as well as vertical scrolling is required to see it fully.
Otherwise, add rows and columns in the org table in the file such that it exceeds window size both vertically and horizontally. This is not a useless example because the header line mode is most useful when you have a big table and heading scrolls off your visible window.

5. Go to end of line in a row in the table when the header line overlay is active.

6. Press C-n  (or down arrow) twice

Observation : cursor is at the beginning-of-line

Expected : cursor should remain at the same column as earlier

My unsuccessful code analysis, if anyone is interested :
There is a post command hook to update the overlay of table header. This includes the function "beginning-of-line". In more recent versions of org, it is (move-beginning-of-line 2).

But all instances of "beginning-of-line" or "move-beginning-of-line" are wrapped in "save-excursion".. In fact if I invoke (org-table-header-set-header) instead of C-n, the cursor does not go to beginning of line.


[-- Attachment #1.2: Type: text/html, Size: 1982 bytes --]

[-- Attachment #2: orgheaderline.org --]
[-- Type: application/vnd.lotus-organizer, Size: 391 bytes --]

             reply	other threads:[~2021-04-17 16:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-17 16:45 Oorja Sandhu [this message]
2021-04-17 19:13 ` Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1b8b1a96-149e-4409-9738-fc45fad3a604@www.fastmail.com \
    --to=oorja.sandhu@inoutbox.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Bug: table header line mode causes next-line to reach beginning of line' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).