From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id oKjEJLRFEGY8aQAAe85BDQ:P1 (envelope-from ) for ; Fri, 05 Apr 2024 20:40:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oKjEJLRFEGY8aQAAe85BDQ (envelope-from ) for ; Fri, 05 Apr 2024 20:40:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jABsjNC1; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712342452; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=L9xXMJ66EXK8+uj9p4cUASCRQgDxT2l4h6G/L655zWw=; b=jsg7qEqfygSxf5FsV2AD2PSt7KhaiiEW9rpOKSLlEAAbsBta9hYPfxs4GASGEJ4TQVzuV0 MZpQR+MfWY6GrVHyAGYMcHDax23V/QYuhrvkS/LsqDEODlRTaQgEnxWKStqyAz6JhnjzS0 eKt5p/CNNWSDmidHmwdhUYwbgJfj6oOC9MRC+Zc5fPKLvcKwJ54yJxpTL2T4NBtC403pWp PRcWE4cAt1TGYmPYzoIfQFnHE+MEqo1FNbVki9YPGD0j1wcvbZpnhhFNWh1TcF5M+4JqC4 koV70L+SrAoJABxdPgHedYa7yGRTrX28xvYiVFenOrPIwOJgbR9ZaPa/vGIBhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jABsjNC1; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712342452; a=rsa-sha256; cv=none; b=QWPU0WQUQy4eqk9usdhuPzMNrR3FG/dFO2i/NI8p4Q8Exi9ICLDYolYVbBE7z9OYgENk+r oigHHxWY69lNqj/3LKRp37ivTxt0pYftttjKwsIXnIgVWyoPeHJZu8u7GzbvnWvt14kbzQ AB6k1ALLq0gya/u2BGP+f0CitLpfci52M/isF/UfCk+KMKMa3+5MiJX/w1OqWUOp9M1DNw GukiXW4rrGRWGFGO43PuPhssFuciEacormcsE14aJ+0d/r0h4xjVEq023POkYo4RZANlyV 2LXUx0sw3HcivLeOHbU55BD4hoVBSaVvFRxi/29MRG9yxs780lLN3VG5rr8hzw== 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 264A7CCDD for ; Fri, 05 Apr 2024 20:40:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsoTw-0005mA-BL; Fri, 05 Apr 2024 14:40:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsoTt-0005lx-Ec for emacs-orgmode@gnu.org; Fri, 05 Apr 2024 14:40:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsoTp-00019x-Ri for emacs-orgmode@gnu.org; Fri, 05 Apr 2024 14:40:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 548F324002A for ; Fri, 5 Apr 2024 20:39:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712342399; bh=U5Qm2LnZ3/eIx5q0fAkSN0Q67APjkSRy/wSCA5Uik38=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=jABsjNC1xLIuOzezgcuiv5B6J2jTQ0FXiCsO5WzRbJmjscnKuIzi+6kS6DzTRe5+b AwI5NygFqd/vOhevipGHJGsTG94babzBcrXyJJoSThXFVjg4H8EWBssk+hvfB3BXVL d41yLEByuGIhSQ07bLq5Oxp9Sb40/PtkOGRJHlEHubHuhEKXD4n3LxV5gx+1kkDJIF Vn6bVR3HKa63VMGo5cgbWgxfhodyfwyQycPv7PilsaOl+zSr4HHcMycQRSA5tbXqUt 5oPCHsXGeVXF9Rr1RxzPtGgzFWNFzIObQG/QHoAJA8W1+sijH/Si0O/TEOXvw5Ette rOvbU2PEaUceQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VB6j95hj2z6twb; Fri, 5 Apr 2024 20:39:41 +0200 (CEST) From: Ihor Radchenko To: Lei Zhe Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Ensure org-table-header displays without cursor inside table In-Reply-To: References: Date: Fri, 05 Apr 2024 18:39:59 +0000 Message-ID: <87cyr3odq8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.40 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -8.40 X-Migadu-Queue-Id: 264A7CCDD X-TUID: MS08lN2gQBGX Lei Zhe writes: > The patch ensures the header of an org-table displays without the cursor > inside the table when org-table-header-line-mode is enabled. > > BTW, this is my first patch for org-mode, so please correct me if there > are any issues with it. > Also, I've done the paperwork before. Thanks for the patch! May you please explain in more details what problem you are trying to solve? > (beg (save-excursion > + (goto-char ws) > (goto-char (org-table-begin)) > (while (or (org-at-table-hline-p) > (looking-at-p ".*|\\s-+<[rcl]?\\([0-9]+\\)?>")) Moving point to WS and then immediately to the beginning of the table makes no difference. So, your patch does nothing. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at