[gnu.emacs.bug] quote bug in skip-chars-forward

julian@UHCCUX.UHCC.HAWAII.EDU (Julian Cowley) (05/24/89)

In GNU Emacs 18.51.3 of Mon Jun  6 1988 on uhccux (berkeley-unix)

The Elisp function  skip-chars-forward  is supposed to have a
method of quoting chars which would normally have special
meaning.  However, given a buffer with the following chars

\^-\^-\^-\^-\^-\^-\^-\^-\^-\^-\^-\^-\^-

and the sexp (skip-chars-forward "\\^\\-\\\\"), it only gets as
far as the first backquote.  The problem is in the code which
determines quoted characters, and the following patch fixes the
bug (which also exists in version 18.54):

*** /usr/local/emacs.18.51/emacs/=GNU/Emacs.18.53/dist-18.53/src/search.c	Wed Dec 28 18:47:27 1988
--- search.c	Tue May 23 12:01:26 1989
***************
*** 331,335
      {
        c = *p++;
!       if (*p == '\\')
          {
  	  if (p == pend) break;

--- 331,335 -----
      {
        c = *p++;
!       if (c == '\\')
          {
  	  if (p == pend) break;

julian@uhccux.uhcc.hawaii.edu
uunet!ucsd!nosc!uhccux!julian
julian@uhccux.bitnet
"This is Hawaii.   It's in the middle of the Pacific Ocean, and,
uh, we're here." -- Paraphrased from the VP on his first visit.