From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: George Plymale II Newsgroups: gmane.emacs.bugs Subject: bug#28598: 25.3; Errors in narrowed buffers in CC-mode Date: Mon, 25 Sep 2017 02:21:25 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1506353426 18459 195.159.176.226 (25 Sep 2017 15:30:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2017 15:30:26 +0000 (UTC) To: 28598@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 25 17:30:17 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 1dwVKo-000475-Nt for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Sep 2017 17:30:14 +0200 Original-Received: from localhost ([::1]:43052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwVKu-0001qS-8A for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Sep 2017 11:30:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwVKi-0001m9-BA for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 11:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwVKe-0001q6-AC for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 11:30:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49978) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwVKe-0001pk-5Z for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 11:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwVKd-0007id-Ty for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 11:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: George Plymale II Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Sep 2017 15:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28598 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150635335929578 (code B ref -1); Mon, 25 Sep 2017 15:30:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Sep 2017 15:29:19 +0000 Original-Received: from localhost ([127.0.0.1]:58654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwVJv-0007h0-5B for submit@debbugs.gnu.org; Mon, 25 Sep 2017 11:29:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwMlx-0004pl-Fe for submit@debbugs.gnu.org; Mon, 25 Sep 2017 02:21:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwMlr-0001rB-DT for submit@debbugs.gnu.org; Mon, 25 Sep 2017 02:21:36 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dwMlr-0001qy-9f for submit@debbugs.gnu.org; Mon, 25 Sep 2017 02:21:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwMlq-0001fH-0t for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 02:21:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwMll-0001ky-Bj for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 02:21:33 -0400 Original-Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:33665) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwMll-0001jK-6p for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 02:21:29 -0400 Original-Received: by mail-qk0-x243.google.com with SMTP id g128so4264344qke.0 for ; Sun, 24 Sep 2017 23:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=southernohio.net; s=google; h=from:to:subject:date:message-id:mime-version; bh=H0BDoYQazuc87gy6eiFtEMn7H+Y4xrAmoamhZfpAmfA=; b=VMkZhe9X0SosENLfR3kIqNRYzcnnzMPFMOMB3yL+gEPJEAfyLN6J0NNHL1DrksR3Kb PwNH4qXDt+pqdhO2otjEAoWD3Gb8pd0rIWrwGJaw2uoedWa5cUO55zdIOa7Sz+6wjOiF pK/5BGyc3SU+KjNWEGuvRu78o8xZJYnrfg/Ts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=H0BDoYQazuc87gy6eiFtEMn7H+Y4xrAmoamhZfpAmfA=; b=RG5mQFYxBjp6vva9hjJYWSyRNKbz+VruiOnCaU5KAlef7PDXjsqwhPqSQ9oTD0NZru dYVlliLJE1VfguiRRSnIth0rX+P4QbH6KohJS3+oKXNr5SzQeszj4vGrx3avJCLk03E9 GQ07c0bZfCOrHa0W3HmFSKE6jtYekADwJQ9NHGsvVsUudNyOmv+Tu9BWx3gW1az15tfH qyysaooIQ04CCr43Uc4+fzWclqBuLQ8CTOED5IoFyb86AeNCGDg8B7bjUTExZXWrKZ5n P1HQCtCHWvg9jL4lhjmKoD6gT+SBrEqZRQHLSeQCq3nrne98hwymihDmSdmeDc6Txuzw YWig== X-Gm-Message-State: AHPjjUiHqCeDMbW0kkw8czqR1hP0BP8P82LQsoB0PLiSb3/qQRi1fU7r NsD3mn9ufH1Gh3hKGI1YOuoa0MN6sQ== X-Google-Smtp-Source: AOwi7QBHjU2FD14c8c5CU8UnbLYDjG/6dgEiynXfpALK6ow942oW+9aoZrdnnBewfPJ5NhvUh6njIQ== X-Received: by 10.55.165.202 with SMTP id o193mr8967027qke.291.1506320487293; Sun, 24 Sep 2017 23:21:27 -0700 (PDT) Original-Received: from lehi.dev.orbitalimpact.com (ip-19-41-54-196.montreal.ca.northamericancoax.com. [196.54.41.19]) by smtp.gmail.com with ESMTPSA id h4sm4641333qth.75.2017.09.24.23.21.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 23:21:26 -0700 (PDT) X-Google-Original-From: George Plymale II X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 25 Sep 2017 11:29:17 -0400 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:137415 Archived-At: The inception of this bug report can be found at: https://github.com/josteink/csharp-mode/issues/119 For those too lazy to follow the link, here's the gist: When I press `RET' at the beginning or end of a narrowed buffer in CC-mode, I see errors like this: c-determine-limit: Args out of range: #, 1, 1564 A full backtrace yields something like this: Debugger entered--Lisp error: (args-out-of-range # 1 1564) parse-partial-sexp(1 1564) c-determine-limit(500) c-guess-basic-syntax() c-indent-line() indent-according-to-mode() electric-indent-post-self-insert-function() self-insert-command(1) newline(nil 1) funcall-interactively(newline nil 1) call-interactively(newline nil nil) command-execute(newline) As you can see from the filename there, the file I was testing this with was dired.c from the very Emacs source tree (although I have now tested with various header files, other C files, and of course, C# files). I initially tested this on a macOS system, but now I have also tested this on Ubuntu and I see the same issue occurring on both systems (which are both using Emacs 25.3). I also noticed that this issue does not occur in Emacs 24.