🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: emacs-19.16, vm-4.41, sun-3/80, OW2 = PROBLEM

#8651
From: Mosur Mohan
Date: Fri, 23 Jul 1993 18:19
32 lines
2335 bytes
On July 23 at 10:12, Kyle Jones wrote:

>  Mosur Mohan writes:
>   > I was able to pin down a work-around:
>   >    (setq vm-generic-header-regexp "^[^: \t\n]+[ \t]*:.*\n\\([ \t].*\n\\)*")
>   > The original regexps in both 4.42 and 5.33 (below) contain nested
>   > sub-regexp's that weren't really necesesary, 
>  
>  The \(..\) groupings are necessary and the code expects to be able
>  to use match-beginning/match-end to grab parts of matches.  The
>  above regexp will break header highlighting and the method VM
>  uses to quickly move to the first visible header.

My apologies for the error.  However, I think THIS one works, and
satisfies the groupings that VM expects:

(setq vm-generic-header-regexp
  "^\\([^: \t\n]+\\)[\t ]*:\\(.*\n\\([ \t].*\n\\)*\\)")
                                         |
                                         +----------------+
                                                          |
This differs from the released defconst in that a single "+" has been
removed after the [ \t].  This time, the regexp should really be
unaffected.  I also checked by timing the execution of looking-at on
the two regexp's, and found that removing the single + brought run
time down from about 17 seconds to under a second for a matching
string that spanned 8 lines.

-- Mohan.   {mosur_mohan@wv.mentorg.com}
            {Mosur Mohan, Mentor Graphics, Wilsonville, OR}
----------------------------------------------------------------------
"Cogito ergo sum"  ==>  "I think, therefore I add."
Technical Details
Message-ID: <9307231819.AA14071@neon.MENTORG.COM>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!uunet!wendy-fate.uu.net!bug-vm
References: <9307231412.AA29264@crystal.WonderWorks.com> <CAD6B7.59t@mlfarm.com> <MOSURM.93Jul22164343@neon.mentorg.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,61ecf64fac0f7007
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1993-07-23 11:25:36 PST
x-gateway: rodan.UU.NET from bug-vm to gnu.emacs.vm.bug; Fri, 23 Jul 1993 14:19:34 EDT
From: mosurm@wv.MENTORG.COM (Mosur Mohan)
Date: Fri, 23 Jul 1993 11:19:10 -0700
Message-ID: <9307231819.AA14071@neon.MENTORG.COM>
Subject: Re: emacs-19.16, vm-4.41, sun-3/80, OW2 = PROBLEM
References: <9307231412.AA29264@crystal.WonderWorks.com>
 <CAD6B7.59t@mlfarm.com>
 <MOSURM.93Jul22164343@neon.mentorg.com>
Reply-To: mosur_mohan@wv.MENTORG.COM
Newsgroups: gnu.emacs.vm.bug
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!uunet!wendy-fate.uu.net!bug-vm
Sender: bug-vm-request@uunet.uu.net
Lines: 32