* bug#24148: 25.1.50; M-x c-end-of-statement does not work on narrowed buffer
@ 2016-08-04 8:05 Daiki Ueno
2016-08-04 21:20 ` Alan Mackenzie
2016-08-05 8:21 ` Alan Mackenzie
0 siblings, 2 replies; 4+ messages in thread
From: Daiki Ueno @ 2016-08-04 8:05 UTC (permalink / raw
To: 24148
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#24148: 25.1.50; M-x c-end-of-statement does not work on narrowed buffer
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
2016-08-05 6:57 ` Daiki Ueno
2016-08-05 8:21 ` Alan Mackenzie
1 sibling, 1 reply; 4+ messages in thread
From: Alan Mackenzie @ 2016-08-04 21:20 UTC (permalink / raw
To: Daiki Ueno; +Cc: 24148
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).
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#24148: 25.1.50; M-x c-end-of-statement does not work on narrowed buffer
2016-08-04 21:20 ` Alan Mackenzie
@ 2016-08-05 6:57 ` Daiki Ueno
0 siblings, 0 replies; 4+ messages in thread
From: Daiki Ueno @ 2016-08-05 6:57 UTC (permalink / raw
To: Alan Mackenzie; +Cc: 24148-done
Hello,
Alan Mackenzie <acm@muc.de> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#24148: 25.1.50; M-x c-end-of-statement does not work on narrowed buffer
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
@ 2016-08-05 8:21 ` Alan Mackenzie
1 sibling, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2016-08-05 8:21 UTC (permalink / raw
To: 24148-done; +Cc: Daiki Ueno
Bug fixed in master branch.
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-05 8:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-08-05 6:57 ` Daiki Ueno
2016-08-05 8:21 ` Alan Mackenzie
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.