unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).