Article View: gnu.emacs.bug
Article #1712quote bug in skip-chars-forward
From: Julian Cowley
Date: Tue, 23 May 1989 23:07
Date: Tue, 23 May 1989 23:07
36 lines
1545 bytes
1545 bytes
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.
Technical Details
Message-ID:
<8905232307.AA23778@uhccux.uhcc.Hawaii.Edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UHCCUX.UHCC.HAWAII.EDU!julianShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UHCCUX.UHCC.HAWAII.EDU!julian From: julian@UHCCUX.UHCC.HAWAII.EDU (Julian Cowley) Newsgroups: gnu.emacs.bug Subject: quote bug in skip-chars-forward Message-ID: <8905232307.AA23778@uhccux.uhcc.Hawaii.Edu> Date: 23 May 89 23:07:52 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 36