unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Diane Murray <disumu@x3y2z1.net>
Subject: [Patch] url-cookie-write-file saves versioned backups
Date: Mon, 28 Aug 2006 01:53:45 +0200	[thread overview]
Message-ID: <87irkdrb06.fsf@x3y2z1.net> (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))))))

             reply	other threads:[~2006-08-27 23:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-27 23:53 Diane Murray [this message]
2006-08-28 22:10 ` [Patch] url-cookie-write-file saves versioned backups 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87irkdrb06.fsf@x3y2z1.net \
    --to=disumu@x3y2z1.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).