[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24148: 25.1.50; M-x c-end-of-statement does not work on narrowed buf
From: |
Alan Mackenzie |
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 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
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).