Gnus development mailing list
 help / color / mirror / Atom feed
* mm-file-name-delete-gotchas infinite loop
@ 2003-10-10 11:51 Eric Knauel
  2003-10-10 16:20 ` Jesper Harder
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Knauel @ 2003-10-10 11:51 UTC (permalink / raw)



Hi,

I think there is a problem with `mm-file-name-delete-gotchas', it
seems to run into an infinite loop (using a recent XEmacs 21.5[1]):

(mm-file-name-delete-gotchas "Makefile.in.patch")

Probably, the endless loop is caused by this call in
mm-file-name-delete-gotchas:

(replace-in-string "bla" "^[.-]*" "")

What's the best way to fix that? 

Footnotes: 

[1] XEmacs 21.5 (beta16) "celeriac" (+CVS-20031002) [Lucid]
    (powerpc-apple-darwin6.8) of Thu Oct 9 2003 on
    jimi.Informatik.Uni-Tuebingen.De

-Eric
-- 
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mm-file-name-delete-gotchas infinite loop
  2003-10-10 11:51 mm-file-name-delete-gotchas infinite loop Eric Knauel
@ 2003-10-10 16:20 ` Jesper Harder
  0 siblings, 0 replies; 2+ messages in thread
From: Jesper Harder @ 2003-10-10 16:20 UTC (permalink / raw)


Eric Knauel <knauel@informatik.uni-tuebingen.de> writes:

> Probably, the endless loop is caused by this call in
> mm-file-name-delete-gotchas:
>
> (replace-in-string "bla" "^[.-]*" "")
>
> What's the best way to fix that? 

To use "^[.-]+" instead -- fixed in cvs.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-10 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-10 11:51 mm-file-name-delete-gotchas infinite loop Eric Knauel
2003-10-10 16:20 ` Jesper Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).