From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uIZLOWQSe2DsBAEAgWs5BA (envelope-from ) for ; Sat, 17 Apr 2021 18:52:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yPXgM2QSe2AeTQAA1q6Kng (envelope-from ) for ; Sat, 17 Apr 2021 16:52:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 16AF5C46F for ; Sat, 17 Apr 2021 18:52:50 +0200 (CEST) Received: from localhost ([::1]:44204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXoBb-0000In-7F for larch@yhetil.org; Sat, 17 Apr 2021 12:52:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXo5D-0000IW-C9 for emacs-orgmode@gnu.org; Sat, 17 Apr 2021 12:46:11 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:38975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXo4y-0007kw-Br for emacs-orgmode@gnu.org; Sat, 17 Apr 2021 12:46:09 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 51E54160A for ; Sat, 17 Apr 2021 12:45:51 -0400 (EDT) Received: from imap37 ([10.202.2.87]) by compute4.internal (MEProxy); Sat, 17 Apr 2021 12:45:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inoutbox.com; h= mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=+tAl7/WCUz0RZOTWZV7mLr7c/nSc/XNI7FuFvICaSQM=; b=PzE5jE+H DeKyOE4GHFy54eUOmJBz8JVmawgSDAEZkpbZbwrN10YOUYtzerje7NLTxjzB3ejJ TpUXh6hi4jw5ujzrOrA0SWPW2XQG0BqvrGhyjYs3LQwByRcFzTYdVQqDIPVDHlHj 1sdgsOPG/oRb8zMpLB56MIiEbMl4ib43dUT/2uvcBFjA/KldWANHcgftYez+Jale bow7ipWzHnr75ggEtLa4KQ2bNq0SynnXE7AZVLuLPkT2Ml9IJqyz6jSliEWpFZrE MqAUW1KJJj53gB2tIKUQtjrMhe1MOXe4F9iSkZviNcZHKxDOnDtSjE1NyWOSUmmf 1cpFelZmQ2WRcQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=+tAl7/WCUz0RZOTWZV7mLr7c/nSc/ XNI7FuFvICaSQM=; b=TkIl5ePaMRyqfsLN/JUvAiNcWDKcE1ZNs4d8/b30aMXeA 3FTsfKaqBeuKCFmi3IssGylBpzPqI8g7wRMZLxnZGeIN46uI+tdv1D8Cbp3dMkOr pGjtKs8vuXTisFr3bAzSCbXkj1XXBv7lhKO41b9Clw47YuyChkF+D28TWyb8W5aC 19OxJfqmLc3XoMP/83zA2I+weiJGNFYNpawfN97sJOp8wtnv4Bwv7i1q5COpMNwh A74gObC6NulUP6G8CSW4oZaHrv788XiTIFzG8zkULLn4c5Q097ylggyA+PX1fo1w ZbaXZPNMEERlhDvnb2SaVk8pCQCdjCi/EyJSqNQUw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeliedgvdefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesmhdtre erreerjeenucfhrhhomhepfdfqohhrjhgrucfurghnughhuhdfuceoohhorhhjrgdrshgr nhguhhhusehinhhouhhtsghogidrtghomheqnecuggftrfgrthhtvghrnhepudefjeeije fhhffgudefleetffehhfejvdfhheeglefhheefffdtvdduueelffdvnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepohhorhhjrgdrshgrnhguhh husehinhhouhhtsghogidrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 82CE06B40065; Sat, 17 Apr 2021 12:45:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 Mime-Version: 1.0 Message-Id: <1b8b1a96-149e-4409-9738-fc45fad3a604@www.fastmail.com> Date: Sat, 17 Apr 2021 18:45:20 +0200 From: "Oorja Sandhu" To: emacs-orgmode@gnu.org Subject: =?UTF-8?Q?Bug:_table_header_line_mode_causes_next-line_to_reach_beginnin?= =?UTF-8?Q?g_of_line?= Content-Type: multipart/mixed; boundary=8d19829b3428480dae513b18423f9409 Received-SPF: pass client-ip=64.147.123.20; envelope-from=oorja.sandhu@inoutbox.com; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618678372; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+tAl7/WCUz0RZOTWZV7mLr7c/nSc/XNI7FuFvICaSQM=; b=YM00KghvlyuJkBg0/+u3MbzgLkNrhd3e9dHS9UWYQ6BZjH9wE4DSrVwci/0jZ7kSfWYR+e g+UItooeQoqCzQHAoN3P27QlYLlCJM18rqyWqn583cnrtGTa9hzsNbSOvvtPJkk4Eqptbp CRKuU0RT/rOJ0Mqas6Xyx8kV4Ekx2mFMqL2cmcYJVXX7+LjCloCPG1LeWSe05MoQ2sSEcK vEl3V4m5oPef9ZkfwdohSo9+sE1ue5/jSJEbE52PTsf8713t0YPBMea3wN1AvnugCdsbRY FJCqlVyZsq6ZxxMkJZzwVckwMCXVJkcfBzjM9867FDETtUjijWKBxEbJQkuJ9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618678372; a=rsa-sha256; cv=none; b=aREaGT7w6LsZhzsW3ngThrfZTkNk1X5lV2lTIxji3mkfnuRaPRxL985W6/VmxZA8m9hWOM 0M+DosCnZnD2QIxIg5nKx6WzjOc9liSw+t/nhcSPELq0b1ZYdF9Nsi8Ks5uAULneHW4t6A AaIL6hk0l2G8PnoEJCJEKW8EzeKDb3CISu91rNQcZuRPiOW7IPFfXVYNvoP6Y7Mh/OA4GN Vuvptn2vgLA0v9FPaJlryRjI0KSgOlrkMZqc/I+abvzIrP4xpw7EE+vxvGsjq4VX7WyEFt QbuZWvSvhD7m9F1NFbkH4j4rcIjYbvxnVefChHSqkUuSf98yntfe+fK6zE1J4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=inoutbox.com header.s=fm2 header.b=PzE5jE+H; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=TkIl5ePa; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: 0.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=inoutbox.com header.s=fm2 header.b=PzE5jE+H; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=TkIl5ePa; dmarc=pass (policy=none) header.from=inoutbox.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 16AF5C46F X-Spam-Score: 0.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: 639OHve991qv --8d19829b3428480dae513b18423f9409 Content-Type: multipart/alternative; boundary=20cbbc242f3a4e3bad7096cd6d634369 --20cbbc242f3a4e3bad7096cd6d634369 Content-Type: text/plain Hi, 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. thanks Oorja --20cbbc242f3a4e3bad7096cd6d634369 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hi,
   This is about the new org-table-header-line-mode, which = is very useful to me, thanks.

Attached is t= he smallest file I could create to reproduce this issue. Steps :

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

2. Open the attach= ed 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 wh= en you have a big table and heading scrolls off your visible window.
=

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

6. Pre= ss C-n  (or down arrow) twice

Observat= ion : cursor is at the beginning-of-line

Ex= pected : cursor should remain at the same column as earlier

=3D=3D=3D=3D=3D=3D=3D=3D=3D
My unsuccessf= ul code analysis, if anyone is interested :
There is a pos= t command hook to update the overlay of table header. This includes the = function "beginning-of-line". In more recent versions of org, it is (mov= e-beginning-of-line 2).

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

thanks
Oorja
--20cbbc242f3a4e3bad7096cd6d634369-- --8d19829b3428480dae513b18423f9409 Content-Disposition: attachment;filename="orgheaderline.org" Content-Type: application/vnd.lotus-organizer; name="orgheaderline.org" Content-Transfer-Encoding: BASE64 KioqIGwKCnwtLS0rLS0tLS0tLS0tLS0tLSstLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS18 CnwgKiB8ICAgICAgICAgICBBIHwgICAgICAgICAgIEIgfCAgICAgICAgICAgQyB8CnwtLS0r LS0tLS0tLS0tLS0tLSstLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS18CnwgKiB8IDAwMDAw MDAwMDAwIHwgMDAwMDAwMDAwMDAgfCAwMDAwMDAwMDAwMCB8CnwgKiB8IDAwMDAwMDAwMDAw IHwgMDAwMDAwMDAwMDAgfCAwMDAwMDAwMDAwMCB8CnwgKiB8IDAwMDAwMDAwMDAwIHwgMDAw MDAwMDAwMDAgfCAwMDAwMDAwMDAwMCB8CnwgKiB8IDAwMDAwMDAwMDAwIHwgMDAwMDAwMDAw MDAgfCAwMDAwMDAwMDAwMCB8CnwgKiB8IDAwMDAwMDAwMDAwIHwgMDAwMDAwMDAwMDAgfCAw MDAwMDAwMDAwMCB8Cg== --8d19829b3428480dae513b18423f9409--