[gnu.emacs.bug] emacs bug in M-e

eps@PRINCETON.EDU (Elisha Sacks) (12/15/89)

I am using Gnu version 18.55.2 on berkeley-unix.  The same problem occurs in
18.54.2 on berkeley-unix.  I have the following text in text mode.  Positioning
the mark at the beginning of the first line and typing M-e moves the mark to
the end of the last line.  It should stop at the end of the first line.

elisha.

Each state is an $n$-dimensional rectangular region in state space. 
They propagate sign information through the differential equations to determine
the causal relations between variables within each state and the possible
transitions between states.

stutes@SUN207.NAS.NASA.GOV (12/16/89)

>>>>> On Fri, 15 Dec 89 10:00:45 EST, eps@princeton.edu (Elisha Sacks) said:

Elisha> I am using Gnu version 18.55.2 on berkeley-unix.  The same problem occurs in
Elisha> 18.54.2 on berkeley-unix.  I have the following text in text mode.  Positioning
Elisha> the mark at the beginning of the first line and typing M-e moves the mark to
Elisha> the end of the last line.  It should stop at the end of the first line.

Elisha> elisha.

Elisha> Each state is an $n$-dimensional rectangular region in state space. 
Elisha> They propagate sign information through the differential equations to determine
Elisha> the causal relations between variables within each state and the possible
Elisha> transitions between states.


It is interesting to note that what is causing the problem is  an  extra
\040 character at the end of the first line. I don't have a fix for  the
bug, but then again I would never run into the problem,  because  I  use
auto-fill  all  of the time which deletes any trailing blanks at the end
of the line.

-eas-

gildea@ALEXANDER.BBN.COM (Stephen Gildea) (12/16/89)

The problem is that the sentence-end regexp doesn't allow white space
at the end of a line.  The following definition fixes this.

 < Stephen


(defconst sentence-end (purecopy "[.?!][]\"')}]*\\([ \t]*$\\|\t\\|  \\)[ \t\n]*") "\
*Regexp describing the end of a sentence.
All paragraph boundaries also end sentences, regardless.")