Every so often, W3 would get into this annoying mood where it creates
a buffer called "stylesheet" and modifies it, thus making it show up
with, say, `save-some-buffers'. I hate when that happens, especially
as the buffer doesn't show up in the regular buffer list. So I did
this long ago and then forgot about it÷
2003-09-08 Mike Sperber <sperber(a)informatik.uni-tuebingen.de>
* lisp/css.el (css-parse): Set `buffer-file-name' to nil after
reading stylesheet, to avoid spurious requests for saving the
file.
Index: lisp/css.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/w3/lisp/css.el,v
retrieving revision 1.5
diff -u -r1.5 css.el
--- lisp/css.el 27 Nov 1999 15:37:18 -0000 1.5
+++ lisp/css.el 26 Dec 2005 13:42:56 -0000
@@ -929,6 +929,7 @@
(set-syntax-table css-syntax-table)
(erase-buffer)
(if url (url-insert-file-contents url))
+ (setq buffer-file-name nil)
(goto-char (point-max))
(if string (insert string))
(css-clean-buffer)
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla