[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
forward-sentence requires newline at the end of the buffer?
From: |
Alex Schroeder |
Subject: |
forward-sentence requires newline at the end of the buffer? |
Date: |
04 Mar 2001 23:58:46 +0100 |
User-agent: |
Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 |
In GNU Emacs 20.7.1 (i686-pc-linux-gnu, X toolkit)
of Sat Jun 24 2000 on snail
In the scratch buffer, I evaluate the following:
(forward-sentence 100)
When there is a trailing newline in the buffer, this moves to the end
of the buffer. If there is no trailing newline, this results in an
error "End of buffer".
This is a bug. The presence of a newline at the end of the buffer
should not change the behaviour of forward-sentence.
There is more amiss, however. The error seems undebuggable... The
following expression will not open a backtrace buffer.
(let ((debug-on-error t))
(forward-sentence 100))
This is the real bug that confused me for the last half hour, because
I kept getting an error in a situation where I expected none and I was
unable to get a backtrace for it.
Alex.
- forward-sentence requires newline at the end of the buffer?,
Alex Schroeder <=