--- Begin Message ---
Subject: |
25.1.50; M-x c-end-of-statement does not work on narrowed buffer |
Date: |
Thu, 04 Aug 2016 10:05:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
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.
Regards,
--
Daiki Ueno
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#24148: 25.1.50; M-x c-end-of-statement does not work on narrowed buffer |
Date: |
Fri, 05 Aug 2016 08:57:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Hello,
Alan Mackenzie <address@hidden> writes:
> 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.
Yes, I was using the master. I have confirmed that the problem is fixed
after updating and rebuilding.
Thank you for the quick fix!
Regards,
--
Daiki Ueno
--- End Message ---