unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* (require 'cus-load) clobbers match-data
@ 2010-02-14  5:13 Geoff Gole
  2010-02-14  7:01 ` David Kastrup
  2010-02-16 20:13 ` Glenn Morris
  0 siblings, 2 replies; 8+ messages in thread
From: Geoff Gole @ 2010-02-14  5:13 UTC (permalink / raw)
  To: emacs-devel

While trying to puzzle out bug 5533
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5533>, I've found that
(require 'cus-load) will stomp on match data if the file is not
already loaded:

  emacs -Q
  (let ((md (match-data)))
    (require 'cus-load)
    (equal md (match-data)))
  => t

This is what causes the bug, but I can't figure out why it is
happening. cus-load.el is just a big list of (put ...) forms. Why is
it stomping on the match data?

Anyway, if anybody knows how to stop it doing that, that would fix bug
5533. Maybe require should save and restore the match data itself?




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

end of thread, other threads:[~2010-02-16 21:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-14  5:13 (require 'cus-load) clobbers match-data Geoff Gole
2010-02-14  7:01 ` David Kastrup
2010-02-14  7:49   ` Geoff Gole
2010-02-14  8:00     ` David Kastrup
2010-02-14  8:33       ` Geoff Gole
2010-02-16 20:13 ` Glenn Morris
2010-02-16 20:25   ` Davis Herring
2010-02-16 21:11     ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).