all messages for Emacs-related lists mirrored at yhetil.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.