unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [Patch] url-cookie-write-file saves versioned backups
@ 2006-08-27 23:53 Diane Murray
  2006-08-28 22:10 ` Richard Stallman
  2006-08-29 14:01 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Diane Murray @ 2006-08-27 23:53 UTC (permalink / raw)


Versioned backups of the cookies file are being saved (contrary to the
intent of the last changes made to url-cookie.el in revision 1.18),
which causes `backup-buffer' to ask for confirmation to delete those
excess backup files.  Additionally, the error "Local variables list is
not properly terminated" occurs when opening the cookies file.  The
following patch corrects this.

I submitted earlier patches using the email <dsm@muenster.de>, if for
some reason that needs to be known.


	* url-cookie.el (url-cookie-write-file): Insert a newline
	character before the Local Variables line.  Set `version-control'
	to never.


*** url-cookie.el	13 Jul 2006 03:53:15 +0200	1.18
--- url-cookie.el	27 Aug 2006 15:25:21 +0200	
***************
*** 168,178 ****
        (insert ")\n(setq url-cookie-secure-storage\n '")
        (pp url-cookie-secure-storage (current-buffer))
        (insert ")\n")
!       (insert "\f;; Local Variables:\n"
                ";; version-control: never\n"
                ";; no-byte-compile: t\n"
                ";; End:\n")
!       (set (make-local-variable 'version-control) t)
        (write-file fname)
        (setq url-cookies-changed-since-last-save nil)
        (kill-buffer (current-buffer))))))
--- 168,178 ----
        (insert ")\n(setq url-cookie-secure-storage\n '")
        (pp url-cookie-secure-storage (current-buffer))
        (insert ")\n")
!       (insert "\f\n;; Local Variables:\n"
                ";; version-control: never\n"
                ";; no-byte-compile: t\n"
                ";; End:\n")
!       (set (make-local-variable 'version-control) 'never)
        (write-file fname)
        (setq url-cookies-changed-since-last-save nil)
        (kill-buffer (current-buffer))))))

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

end of thread, other threads:[~2006-08-29 17:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-27 23:53 [Patch] url-cookie-write-file saves versioned backups Diane Murray
2006-08-28 22:10 ` Richard Stallman
2006-08-29  0:13   ` Diane Murray
2006-08-29 17:18     ` Richard Stallman
2006-08-29  5:01   ` Eric Hanchrow
2006-08-29 17:18     ` Richard Stallman
2006-08-29 14:01 ` Stefan Monnier

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).