🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #9579

vm-compile-format

#9579
From: Jamie Zawinski
Date: Wed, 01 May 1991 10:18
16 lines
1220 bytes
In the function vm-compile-format, the regexp should be changed from

   "%\\(-\\)?\\([0-9]\\)*\\(\\.\\([0-9]+\\)\\)?\\([aAcdfFhilmMnstTwyz*%]\\)"
to "%\\(-\\)?\\([0-9]+\\)?\\(\\.\\([0-9]+\\)\\)?\\([aAcdfFhilmMnstTwyz*%]\\)"

That is, ([0-9])* should be replaced with ([0-9]+)?, because that is what is
really intended -- you want one or more consecutive digits to go into match
register 2, but what is says now is "keep overwriting match register 2 with
a one character sequence until you stop seeing digits."

In emacs 18.57, these two regexps behave the same, but that is a bug.  In
emacs 19, this bug is fixed.

	-- Jamie

(please don't ask me for a copy of emacs 19.  You don't want it yet anyway...)
Technical Details
Message-ID: <9105011018.AA09061@thalidomide>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wendy-fate.uu.net!bug-vm

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,4170b69aa42fd9d8,start
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1991-05-01 23:30:10 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wendy-fate.uu.net!bug-vm
From: jwz%thalidomide@lucid.com (Jamie Zawinski)
Newsgroups: gnu.emacs.vm.bug
Subject: vm-compile-format
Message-ID: <9105011018.AA09061@thalidomide>
Date: 1 May 91 10:18:08 GMT
Sender: bug-vm-request@uunet.uu.net
Lines: 16
X-Windows: The defacto substandard.