🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87909

Re: paren.el problem

#87909
From: Bryan M. Kramer
Date: Thu, 11 Aug 1994 00:27
15 lines
1238 bytes
In GNU Emacs 19.25.93.1 (sparc-sun-sunos4.1.3) of Tue Aug  9 1994 on wotan.ai

I decided to debug this further:

One problem is that line 75 of paren does not check if matching-paren returns
nil before attempting a numeric not equals test.
nil is a valid return value for this function.

Here is the surrounding code:
		(if pos
		    (let ((beg (min pos oldpos)) (end (max pos oldpos)))
		      (and (/= (char-syntax (char-after beg)) ?\$)
			   (setq mismatch
				 (/= (char-after (1- end))
				     (matching-paren (char-after beg)))))))
Technical Details
Message-ID: <94Aug10.102310edt.8553@wotan.ai.toronto.edu>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!primenet!netnews.asu.edu !asuvax!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cs.toronto.edu!kramer

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,1d11b6447063f149,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-11 15:19:22 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!primenet!netnews.asu.edu      !asuvax!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cs.toronto.edu!kramer
From: kramer@cs.toronto.edu (Bryan M. Kramer)
Newsgroups: gnu.emacs.bug
Subject: Re: paren.el problem
Date: 10 Aug 1994 20:27:18 -0400
Organization: GNUs Not Usenet
Lines: 16
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <94Aug10.102310edt.8553@wotan.ai.toronto.edu>