From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Newsgroups: gmane.emacs.bugs Subject: bug#5852: 23.1; Incorrect references in ses-mode Date: Mon, 2 Aug 2021 23:02:16 +0200 Message-ID: References: <845zfpi242.fsf@gmail.com> <871r7vrbez.fsf@gnus.org> <8735s2zydl.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38556"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 5852@debbugs.gnu.org, Lars Ingebrigtsen , Stefan Kangas , =?UTF-8?Q?G=C3=B6ran?= Uddeborg To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 02 23:03:32 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAf5v-0009pH-Uv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Aug 2021 23:03:31 +0200 Original-Received: from localhost ([::1]:41848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAf5u-0006IV-I4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Aug 2021 17:03:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAf5S-0006Fw-7c for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2021 17:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAf5S-0008Qy-03 for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2021 17:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mAf5R-0004Ht-Ld for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2021 17:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2021 21:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5852 X-GNU-PR-Package: emacs Original-Received: via spool by 5852-submit@debbugs.gnu.org id=B5852.162793815416432 (code B ref 5852); Mon, 02 Aug 2021 21:03:01 +0000 Original-Received: (at 5852) by debbugs.gnu.org; 2 Aug 2021 21:02:34 +0000 Original-Received: from localhost ([127.0.0.1]:39373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAf50-0004Gy-Fx for submit@debbugs.gnu.org; Mon, 02 Aug 2021 17:02:34 -0400 Original-Received: from mail-pj1-f51.google.com ([209.85.216.51]:44845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAf4z-0004Gf-4r for 5852@debbugs.gnu.org; Mon, 02 Aug 2021 17:02:33 -0400 Original-Received: by mail-pj1-f51.google.com with SMTP id e2-20020a17090a4a02b029016f3020d867so1791203pjh.3 for <5852@debbugs.gnu.org>; Mon, 02 Aug 2021 14:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Oxku49aSwqTjBGuv53OuEAXIphYLDTKTR8cLzzKM14o=; b=HoB68/AvJjJHtCKCbrm+yE4a2SIk+c6ohXiK0Om04U0qm5vMclCgI22DNQ9MZYeT3+ hJz2ocClynZtvwgPObzc++3yiPxY/Voq2Qgc9VaoOpAwAunWQZyjOqotvZIVKKLE2RoF P9erbD9uZ/9YUlc/rGAkgZdAU+73dNpes5m/hjmVow1zady358KEO9r+xlccaRuulTKt SdFxAx2AD9ZMsXAXWRF0jvPjpAkl/ExOoNRMicb0jZXS4D515u6sHcaG77eoYkQct1J3 c2J/Lz71W5z5+E2AhUR+8qL4RwMA7Bh+Nx+lLulDcJAkUwTK6kVhWrFfei/Zd46ui0Fb +ZnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Oxku49aSwqTjBGuv53OuEAXIphYLDTKTR8cLzzKM14o=; b=sRFYoEpL9RSz4Ax4RO2bkc/YHKogDrs0GlkzmQZprS7G0LQsorQRB7/9XFB4YYdo2N 3lHZEdnEinbpLaki4pW0eZ14OT6yPRIpn7CIzymDbn+dXZ6CrzdXoU+0gOlJ+Tm+GlWG DxodnI7Ey5uhRu4sZzolWHJufGSG71gYjEUICa/JournmQWnHhVOzahdOnVRo3U9nAmc /5OyHS876Xu9EFYz/xHqACjyu/lsyiqjMrk32QojibuxlzyQj61v9LqLC6hDt7P77TvL gcWYHK4CRc/uVG6aHuhwG41sH/OjIU+ZkMPdLjO3aOau/yVOc9caPH80koz3j7lvGynp 6O6A== X-Gm-Message-State: AOAM530PsE2B24PqzYGI35JDnRTp1IVRp7ZsG7gUMym/P5vwuBYft1I7 0/JOUIRhZJ4b3YtpBMV34idv2g95z3JTuqlfhTM= X-Google-Smtp-Source: ABdhPJz+XGtvVBzSKQsjATgCjdKK9//kzsDdpawGUVfbAYShaqP2c1rW+fji0TJAG/uw3nx2Z+g2a5s2FvqNq8lWZRQ= X-Received: by 2002:a05:6a00:cc1:b029:32b:8465:9b59 with SMTP id b1-20020a056a000cc1b029032b84659b59mr18688529pfv.66.1627938147335; Mon, 02 Aug 2021 14:02:27 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211082 Archived-At: Thank you for the feedback, I am afraid I will need to work again at it, in order to create a systematic bug reporduction. [...] > > One more thing is the following : in SES the cursor-intangile property > > is the symbol corresponding to the cell object (which under the hood > > is a vector), not the cell object itself. This means that the property > > has to change when there are row/column insertion / deletion, which > > also inherently change the buffer, because of symbol relocation. I > > think this might be some bad design choice, and pointing directly at > > the cell object would have saved some troubles (and probably would > > also create a bunch of other problems, so do not take my statement for > > sure). > > Indeed, pointing directly at the cell's vector would probably be better > (at least from the point of view of insertions/deletions but), but if > so, each cell would probably need to contain its own name (or its > coordinates). > > > Stefan > What you wrote confirms my gut feeling. I came to this conclusion as I was thinking how to implement functions such as row transposition. FYI, AFAIK, the cell already contains the corresponding symbol, and the (row, col) coordinates can be derived from the symbol through the ses-cell symbol property. V.