all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* PATCH: correctly recognize mutually exclusive operations
@ 2004-04-29 20:49 Jim Blandy
  0 siblings, 0 replies; only message in thread
From: Jim Blandy @ 2004-04-29 20:49 UTC (permalink / raw)



Pretty obvious; the code seems to be an incorrectly adapted cut-and-
paste of the case above it.

2004-04-29  Jim Blandy  <jimb@redhat.com>

	* regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
	against proper opcode.

Index: src/regex.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/regex.c,v
retrieving revision 1.189
diff -c -r1.189 regex.c
*** src/regex.c	13 Oct 2003 18:48:14 -0000	1.189
--- src/regex.c	29 Apr 2004 20:38:11 -0000
***************
*** 4661,4667 ****
      case wordbeg:
      case syntaxspec:
        return ((re_opcode_t) *p1 == notsyntaxspec
! 	      && p1[1] == (op2 == wordend ? Sword : p2[1]));
  
      case wordbound:
        return (((re_opcode_t) *p1 == notsyntaxspec
--- 4661,4667 ----
      case wordbeg:
      case syntaxspec:
        return ((re_opcode_t) *p1 == notsyntaxspec
! 	      && p1[1] == (op2 == wordbeg ? Sword : p2[1]));
  
      case wordbound:
        return (((re_opcode_t) *p1 == notsyntaxspec

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-29 20:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-29 20:49 PATCH: correctly recognize mutually exclusive operations Jim Blandy

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.