From: Alan Mackenzie <acm@muc.de>
To: Daiki Ueno <ueno@gnu.org>
Cc: 24148@debbugs.gnu.org
Subject: bug#24148: 25.1.50; M-x c-end-of-statement does not work on narrowed buffer
Date: Thu, 4 Aug 2016 21:20:49 +0000 [thread overview]
Message-ID: <20160804212049.GA4021@acm.fritz.box> (raw)
In-Reply-To: <od18twdgdsj.fsf-ueno@gnu.org>
Hello, Daiki
On Thu, Aug 04, 2016 at 10:05:00AM +0200, Daiki Ueno wrote:
> Steps to reproduce:
> - C-x C-f /usr/include/stdio.h
> - mark region around a function declaration, e.g.,
> extern FILE *fopen (const char *__restrict __filename,
> const char *__restrict __modes) __wur;
> - M-x narrow-to-region
> - put cursor on the beginning of the function declaration
> - M-x c-end-of-statement
> Then I get:
> c-state-full-pp-to-literal: Args out of range: #<buffer stdio.h>, 6001, 7659
> The command moves the cursor to the ';' without error if the buffer is
> not narrowed.
Thanks for taking the trouble to report this bug.
You didn't say what version of Emacs you're using, but I think it was
from the savannah master branch. I've committed a fix to this branch.
If you're indeed using it, would you please update and rebuild, then
check that the bug really is fixed. Otherwise, please tell me the
version of Emacs you're using, then I can create a patch for that.
> Regards,
> --
> Daiki Ueno
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2016-08-04 21:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 8:05 bug#24148: 25.1.50; M-x c-end-of-statement does not work on narrowed buffer Daiki Ueno
2016-08-04 21:20 ` Alan Mackenzie [this message]
2016-08-05 6:57 ` Daiki Ueno
2016-08-05 8:21 ` 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=20160804212049.GA4021@acm.fritz.box \
--to=acm@muc.de \
--cc=24148@debbugs.gnu.org \
--cc=ueno@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.