From: George Plymale II <georgie@southernohio.net>
To: 28598@debbugs.gnu.org
Subject: bug#28598: 25.3; Errors in narrowed buffers in CC-mode
Date: Mon, 25 Sep 2017 02:21:25 -0400 [thread overview]
Message-ID: <m0bmlz9u3e.fsf@lehi.dev.orbitalimpact.com> (raw)
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: #<buffer dired.c>, 1, 1564
A full backtrace yields something like this:
Debugger entered--Lisp error: (args-out-of-range #<buffer dired.c> 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.
next reply other threads:[~2017-09-25 6:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-25 6:21 George Plymale II [this message]
2017-09-25 17:51 ` bug#28598: 25.3; Errors in narrowed buffers in CC-mode John Wiegley
2017-09-25 20:50 ` Alan Mackenzie
2017-09-26 1:14 ` George Plymale II
2017-10-01 18:55 ` Alan Mackenzie
2017-10-02 19:02 ` George Plymale II
2017-10-30 17:37 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0bmlz9u3e.fsf@lehi.dev.orbitalimpact.com \
--to=georgie@southernohio.net \
--cc=28598@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.