From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KGhOOtooC2RwTQAASxT56A (envelope-from ) for ; Fri, 10 Mar 2023 13:55:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8KtgOtooC2SXMAEA9RJhRA (envelope-from ) for ; Fri, 10 Mar 2023 13:55:54 +0100 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 0E77426A77 for ; Fri, 10 Mar 2023 13:55:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pacHE-0005VW-7i; Fri, 10 Mar 2023 07:55:16 -0500 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 1pacHC-0005VJ-Aa for emacs-orgmode@gnu.org; Fri, 10 Mar 2023 07:55:14 -0500 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 1pacH9-0006PR-SF for emacs-orgmode@gnu.org; Fri, 10 Mar 2023 07:55:14 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6BE282402EA for ; Fri, 10 Mar 2023 13:55:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678452909; bh=lBp9lz6gNqLrctC6Gj/t0KdyQylvsThLb1m89SJmtbw=; h=From:To:Cc:Subject:Date:From; b=jaaMoI7B5JUk3c4LtU8D54Jdmuq3uRs0sbO4UQ7ILD7+krl4aYlS9iZ9lbUukUY7P 76AR6Mk7C/VF+amKyVwYKrreyXIdAvtmCUdLQib4jP4iqEh4hq94xcVrALPbbbcvhB rfLjvoSt9b7U+bhArwXKLZkXOeaxNtoXKBydIEVO9N7CTk6p041pbmGIipbMToU5ib zoji/+nxO8q+4SmXeNCdI5kn7r1bbBRw3VzfGhj4gcJvcgX0GVM201GcklADfmaRhF 4KYOob8ysWWWD1ltKAwya8AmlZCPCd4/IgQuvk/yfzwqtsNIWjUDMGKwIdfmUI9+va Y6mPN/2JyAkJQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PY5cX4k5lz9rxM; Fri, 10 Mar 2023 13:55:08 +0100 (CET) From: Ihor Radchenko To: =?utf-8?B?6LW15LiA5a6H?= Cc: "emacs-orgmode@gnu.org" Subject: Re: [BUG] after execute +org-realign-table-maybe-h may move point [9.6 (9.6-??-bed47b4 @ c:/Users/yhht/.emacs.d/.local/straight/build-28.2/org/)] In-Reply-To: References: Date: Fri, 10 Mar 2023 12:56:34 +0000 Message-ID: <87lek4ydbx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_H2=-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jaaMoI7B; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678452954; a=rsa-sha256; cv=none; b=l33oN//VLcIGvsm/IgoZQbJ5KUMs5bqVlkpbAhFdgfJmjimNeU8IJb5qzPcpLiTNhOlC1m YNyNRSC5B4XyH2oGO0Sv6PlnBl/5jEq+zZtIPZm/ZF7zhRVvWVRcH/0UZ5L6mcy03L1Gip 3sY6709GE0+0LI/S0QbdRL+CJ3h7KXMn/P9T9lVWXu89Qr4lDunycvSZoo1dN43HusfOI8 qTr3t9berAhR9R8gJXpugfVPAwtmsQCn/E4PSM0ga1laYJQ9uf//bMgOBaDpEvvV7uPyOl ue9fb3EF6t0RBL/sFA+OE31vdZkRqIsIKgANiDEMaxGnaNBguhV0BDBLVGqI+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678452954; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AVMQxB3Yl51Y57M30NMvPnPVe/uRiFmw/xZb2jmOfmM=; b=FTLALLo4gc3shzdMqegPI/NFNUywvKyKmgIyubRpzNuTbvkXoRzTf7gagt/7lo7VVWdKZD MqSmevGGpbCTWAc9wXjPbsyHuclgF5BlHheDbB0QwveioY13A5xY1PswcqSAWUMdo8yDXx RcNZpYdav83vfJXo5w0ydFn5kQ5Pz/BxUictVAfKHR0ivRBS6uhdCw4L6dqHObXmIYrvH8 CNMqHNnT2WKq4UMxbNPqAHKe/O4MwbZqrjy6MFJk1ujloAgZ4aqaYMvJp3jStBiDLWwcmy GNjyyauhYdSNutOeSAV+fh7KztgSn9ZWmRy0H+xShAk1ibtBRGNQ4ZSD3FHx+g== X-Migadu-Spam-Score: -6.19 X-Spam-Score: -6.19 X-Migadu-Queue-Id: 0E77426A77 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jaaMoI7B; 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"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: GL2MCQr6Kl12 =E8=B5=B5=E4=B8=80=E5=AE=87 writes: > +org-realign-table-maybe-h function definition is at the end.=20 > > Instead of using save-excursion macro, it saves current point to a var, > and restore the point after execute org-table-align. > That would cause point move visually. Although the (point) value not chan= ged, org-table-align function shall insert spaces in front of the point.=20 > Don't know if it has already fixed, or there are some other concerns. Note that `+org-realign-table-maybe-h' it is not a function from Org mode. Likely from Doom Emacs? Did you report to Doom Emacs repo? `save-excursion' is not always reliable when changes are being made around point. Sometimes, explicitly storing the (point-marker) is more reliable. Or storing a relative position. Also, org-table.el provides `org-table-save-field' macro for similar purposes. Canceled. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at