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#51171: 27.2; `forward-word' w/arg bug in narrowed buffer Date: Thu, 14 Oct 2021 12:22:50 +0300 Message-ID: <83v920kljp.fsf@gnu.org> References: <31D3ED6E-A1EB-4214-901F-FB62BF2A6922@shaw.ca> 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="6617"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51171@debbugs.gnu.org To: Ian Nehera , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 14 11:24:11 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 1mawyA-0001U2-GW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 11:24:10 +0200 Original-Received: from localhost ([::1]:44232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mawy9-0002dY-CN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 05:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mawy2-0002dP-SB for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 05:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mawy2-0007Tl-J2 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 05:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mawy2-0001Rw-G2 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 05:24: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: Thu, 14 Oct 2021 09:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51171 X-GNU-PR-Package: emacs Original-Received: via spool by 51171-submit@debbugs.gnu.org id=B51171.16342033825485 (code B ref 51171); Thu, 14 Oct 2021 09:24:02 +0000 Original-Received: (at 51171) by debbugs.gnu.org; 14 Oct 2021 09:23:02 +0000 Original-Received: from localhost ([127.0.0.1]:34652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mawx4-0001QF-EA for submit@debbugs.gnu.org; Thu, 14 Oct 2021 05:23:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mawx3-0001Pi-OG for 51171@debbugs.gnu.org; Thu, 14 Oct 2021 05:23:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40030) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mawwx-0006fH-3A; Thu, 14 Oct 2021 05:22:55 -0400 Original-Received: from [87.69.77.57] (port=1652 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 1mawwv-0006U5-FT; Thu, 14 Oct 2021 05:22:55 -0400 In-Reply-To: <31D3ED6E-A1EB-4214-901F-FB62BF2A6922@shaw.ca> (message from Ian Nehera on Tue, 12 Oct 2021 17:17:14 -0700) 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:217206 Archived-At: > From: Ian Nehera > Date: Tue, 12 Oct 2021 17:17:14 -0700 > > To reproduce from 'emacs -Q /path/to/dcl.c’ (file attached): > 1. M-x `subword-mode' (side question: should C-c C-w still use the > obsolete alias `c-subword-mode'?). > 2. Navigate to the function 'int dirdcl(void)' and use > `narrow-to-defun' (C-x n d). > 3. From the top of the buffer, use `forward-word' with an arg greater > than 1 (like C-u 2 M-f). > 4. Repeat this with C-x z z z z... until you get an error around the > start of the while loop (2nd to last message in list below). > 5. Moving point forward then trying the same command again will yield > the last message with a number greater than `point-max' (5741). > > Other notes: > - The bug dissapears with a widened buffer or when narrowing to > earlier functions. > - `backward-word’ doesn’t seem to have the same problem. > - I'm reporting this from OSX 10.14.6 (homebrew), but it also occurs on > Arch Linux (emacs being installed from the standard pacman repos). Stefan, any suggestions wrt this?