# HG changeset patch # User Stefan Monnier # Date 1082153132 0 # Node ID efddc239393d459df80d456768e55251c58384e9 # Parent 2fc584798d79cb6b12e33563b25e27e242f976ca (url-debug): Use with-current-buffer. diff -r 2fc584798d79 -r efddc239393d lisp/url/url-util.el --- a/lisp/url/url-util.el Fri Apr 16 22:04:33 2004 +0000 +++ b/lisp/url/url-util.el Fri Apr 16 22:05:32 2004 +0000 @@ -1,28 +1,31 @@ ;;; url-util.el --- Miscellaneous helper routines for URL library + +;; Copyright (c) 1996,97,98,99,2001,2004 Free Software Foundation, Inc. +;; Copyright (c) 1993 - 1996 by William M. Perry + ;; Author: Bill Perry ;; Keywords: comm, data, processes -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; Copyright (c) 1993 - 1996 by William M. Perry -;;; Copyright (c) 1996, 97, 98, 99, 2001 Free Software Foundation, Inc. -;;; -;;; This file is part of GNU Emacs. -;;; -;;; GNU Emacs is free software; you can redistribute it and/or modify -;;; it under the terms of the GNU General Public License as published by -;;; the Free Software Foundation; either version 2, or (at your option) -;;; any later version. -;;; -;;; GNU Emacs is distributed in the hope that it will be useful, -;;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;;; GNU General Public License for more details. -;;; -;;; You should have received a copy of the GNU General Public License -;;; along with GNU Emacs; see the file COPYING. If not, write to the -;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;;; Boston, MA 02111-1307, USA. -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; This file is part of GNU Emacs. +;; +;; GNU Emacs is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 2, or (at your option) +;; any later version. +;; +;; GNU Emacs is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, +;; Boston, MA 02111-1307, USA. + +;;; Commentary: + +;;; Code: (require 'url-parse) (autoload 'timezone-parse-date "timezone") @@ -63,8 +66,7 @@ (if (or (eq url-debug t) (numberp url-debug) (and (listp url-debug) (memq tag url-debug))) - (save-excursion - (set-buffer (get-buffer-create "*URL-DEBUG*")) + (with-current-buffer (get-buffer-create "*URL-DEBUG*") (goto-char (point-max)) (insert (symbol-name tag) " -> " (apply 'format args) "\n") (if (numberp url-debug) @@ -173,7 +175,7 @@ ;;;###autoload (defun url-lazy-message (&rest args) "Just like `message', but is a no-op if called more than once a second. -Will not do anything if url-show-status is nil." +Will not do anything if `url-show-status' is nil." (if (or (null url-show-status) (active-minibuffer-window) (= url-lazy-message-time @@ -502,4 +504,5 @@ (provide 'url-util) -;;; arch-tag: 24352abc-5a5a-412e-90cd-313b26bed5c9 +;; arch-tag: 24352abc-5a5a-412e-90cd-313b26bed5c9 +;;; url-util.el ends here