From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#28598: 25.3; Errors in narrowed buffers in CC-mode Date: Mon, 25 Sep 2017 20:50:57 +0000 Message-ID: <20170925205057.GB4651@ACM> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1506373161 20460 195.159.176.226 (25 Sep 2017 20:59:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2017 20:59:21 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 28598@debbugs.gnu.org To: John Wiegley , George Plymale II Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 25 22:59:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwaT7-0004da-0w for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Sep 2017 22:59:09 +0200 Original-Received: from localhost ([::1]:44251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwaTE-0006hQ-32 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Sep 2017 16:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwaT3-0006fm-DB for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 16:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwaT0-00061l-8O for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 16:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwaT0-00061f-3s; Mon, 25 Sep 2017 16:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwaSz-0006Bx-Su; Mon, 25 Sep 2017 16:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 25 Sep 2017 20:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28598 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 28598-submit@debbugs.gnu.org id=B28598.150637312123773 (code B ref 28598); Mon, 25 Sep 2017 20:59:01 +0000 Original-Received: (at 28598) by debbugs.gnu.org; 25 Sep 2017 20:58:41 +0000 Original-Received: from localhost ([127.0.0.1]:59037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwaSd-0006BL-M6 for submit@debbugs.gnu.org; Mon, 25 Sep 2017 16:58:40 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:34512 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dwaSb-0006BD-Lx for 28598@debbugs.gnu.org; Mon, 25 Sep 2017 16:58:38 -0400 Original-Received: (qmail 42988 invoked by uid 3782); 25 Sep 2017 20:58:32 -0000 Original-Received: from acm.muc.de (p548C6E9D.dip0.t-ipconnect.de [84.140.110.157]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 25 Sep 2017 22:58:31 +0200 Original-Received: (qmail 5672 invoked by uid 1000); 25 Sep 2017 20:50:57 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137436 Archived-At: Hello, John and George. On Mon, Sep 25, 2017 at 10:51:00 -0700, John Wiegley wrote: > >>>>> "GP" == George Plymale writes: > GP> For those too lazy to follow the link, here's the gist: When I press `RET' > GP> at the beginning or end of a narrowed buffer in CC-mode, I see errors like > GP> this: > GP> c-determine-limit: Args out of range: #, 1, 1564 > Alan, do you have any thoughts on this one? Thanks for the heads up, John. With the help of George's backtrace, I can see exactly what's happening, where, and why. The fixing of the bug will involve carefully defining conditions which must hold when a function (c-determine-limit) is called, and amending it on the assumption those conditions hold. Give me a day or two, it's a bit late at the moment here in Germany. > -- > John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F > http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 -- Alan Mackenzie (Nuremberg, Germany).