From xemacs-m  Tue Feb 18 06:38:37 1997
Received: from portofix.ida.liu.se (portofix.ida.liu.se [130.236.177.25])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id GAA26547
	for <xemacs-beta@xemacs.org>; Tue, 18 Feb 1997 06:38:36 -0600 (CST)
Received: from sen2.ida.liu.se (sen2.ida.liu.se [130.236.176.112]) by portofix.ida.liu.se (8.8.3/8.8.3) with SMTP id NAA15919 for <xemacs-beta@xemacs.org>; Tue, 18 Feb 1997 13:38:34 +0100 (MET)
Received: by sen2.ida.liu.se (SMI-8.6/ida.slave-V1.0b6d6S2)
	id NAA13306; Tue, 18 Feb 1997 13:38:34 +0100
Date: Tue, 18 Feb 1997 13:38:34 +0100
Message-Id: <199702181238.NAA13306@sen2.ida.liu.se>
From: David Byers <davby@ida.liu.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Subject: Bug in paren.el
X-Face: (@~#v$c[GP"T}a;|MU<%Dpm5*6yv"NR|7k;uk8MAISFxdZ(Og$C{u(j"9X7v$qonp}SKfhT
 g|5[Pu~/3F7XQEk70gK'4z%1R%%gg7]}=>/jD`qcBeHDgo&HS,^S!&.zoTSxh<>-O6EB?SSy96&m37

Start XEmacs 20.1-beta1 with -q, set paren highlighting mode to sexp
and type

        ? \ ) C-b

That should trigger a bug in paren.el (trying to use /= on nil
returned by matching-paren.)

The patch below fixes the bug well enough for me.

--
David Byers

*** paren-old.el    Tue Feb 18 13:24:37 1997
--- paren.el        Tue Feb 18 13:25:49 1997
***************
*** 263,268 ****
--- 263,269 ----
                (and (/= (char-syntax (char-after beg)) ?\\)
                     (/= (char-syntax (char-after beg)) ?\$)
                     ;; XEmacs change
+                    (matching-paren (char-after beg))
                     (/= (char-after (1- end))
                         (matching-paren (char-after beg)))))
          (if (eq paren-mode 'sexp)

