From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54488: 29.0.50; move-to-column/overlay-related regression in latest master, perhaps 28? Date: Mon, 21 Mar 2022 14:32:15 +0200 Message-ID: <831qyvfpv4.fsf@gnu.org> References: <87bkxzdccp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54488@debbugs.gnu.org, dgutov@yandex.ru To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 21 13:33:21 2022 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 1nWHDs-0003Xw-4E for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Mar 2022 13:33:20 +0100 Original-Received: from localhost ([::1]:36730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWHDq-0006gB-TE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Mar 2022 08:33:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWHDa-0006ee-Cs for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 08:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWHDa-0005Bc-2p for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 08:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nWHDZ-0007ku-W9 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 08:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2022 12:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54488 X-GNU-PR-Package: emacs Original-Received: via spool by 54488-submit@debbugs.gnu.org id=B54488.164786596229784 (code B ref 54488); Mon, 21 Mar 2022 12:33:01 +0000 Original-Received: (at 54488) by debbugs.gnu.org; 21 Mar 2022 12:32:42 +0000 Original-Received: from localhost ([127.0.0.1]:36085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWHDG-0007kK-9f for submit@debbugs.gnu.org; Mon, 21 Mar 2022 08:32:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWHDE-0007k6-Tc for 54488@debbugs.gnu.org; Mon, 21 Mar 2022 08:32:41 -0400 Original-Received: from [2001:470:142:3::e] (port=41176 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWHD9-00057V-M0; Mon, 21 Mar 2022 08:32:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Mdg+3q8c84D1YgJ2pGGmY16p/7btvLpJbLPQbKiQAT4=; b=LLXLV6GHMhUZuBjebIGq bZFvhPaSzgGAvKEPisQRPQMMxt9q3XSD8l4inb4lGXrBPo2ucwd9Ewxvsuu/9G89cJZDIEXZsz1dK wzUXpfyKKXshsKg7kQZGvAosDm/qOfZN159HPxhGm6akKkvEsv02ggHrqOaQxA7S4sdM19b7nwYHs JLEHb1wtNajrcqJz/v611nooKA0hccGP/ajiHIW7V1if9BHYdSpbrGhECzEhtda258dd+dApdq013 GfVh07CAJgIAb8RCosDVp2J/LQBTrDFXd2SBKbh9q4ah6MHjlg0Dn3cUxnkWsEG/LJYuEsj85Y+1A +MRU9B3x2OvKpg==; Original-Received: from [87.69.77.57] (port=4084 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWHD5-0005fl-Uz; Mon, 21 Mar 2022 08:32:33 -0400 In-Reply-To: <87bkxzdccp.fsf@gmail.com> (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Mon, 21 Mar 2022 06:54:46 +0000) 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:228661 Archived-At: > From: João Távora > Date: Mon, 21 Mar 2022 06:54:46 +0000 > Cc: dgutov@yandex.ru > > In short, it seems that in the presence of the overlays created by > company-mode and in presence of a narrowing, the move-to-column function > does not function the way it used to. Yes. > Eglot uses 'move-to-column' to go that precise place and highlight the > warning. > > In Emacs 27.2, move-to-column is unaffected by previous company-mode > overlays, even if the current line is being co-used visually by the > overlay. It moves to the right buffer position. > > In Emacs master, this isn't true. It seems to be confounded by the > company-mode overlay and moves to eob, _beyond the narrowing_, which > eventually breaks Eglot with a backtrace such as this one: Emacs 29 has a fix for an old bug, whereby current-column etc. didn't take display strings and overlays into account; now they do. Of course, it could be that this fix introduced a bug in some not-so-simple situations, so I'd appreciate if you could show a simple recipe to reproduce the problem without the need of firing up company-mode and/or Eglot.