aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2010-09-14 16:41:53 +0200
committerJuanma Barranquero2010-09-14 16:41:53 +0200
commit6664fc59a8f296117ea98b943f062c0cc0e907c1 (patch)
treeb8e0bf218492291433d00a71122bc8cd2c662ea9 /lisp
parent74769e8b4c73f24e8f3356bd281a56a30000c648 (diff)
parentf3a30a50fab486dcaafb9d897797794fe4c3c4b3 (diff)
downloademacs-6664fc59a8f296117ea98b943f062c0cc0e907c1.tar.gz
emacs-6664fc59a8f296117ea98b943f062c0cc0e907c1.zip
Merge changes from emacs-23 branch.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog71
-rw-r--r--lisp/calendar/appt.el15
-rw-r--r--lisp/calendar/diary-lib.el22
-rw-r--r--lisp/emacs-lisp/byte-run.el13
-rw-r--r--lisp/font-lock.el2
-rw-r--r--lisp/menu-bar.el24
-rw-r--r--lisp/progmodes/antlr-mode.el2
-rw-r--r--lisp/repeat.el7
-rw-r--r--lisp/simple.el2
-rw-r--r--lisp/subr.el13
-rw-r--r--lisp/url/ChangeLog12
-rw-r--r--lisp/url/url-cache.el13
-rw-r--r--lisp/url/url-cookie.el36
-rw-r--r--lisp/vc/vc-hg.el8
14 files changed, 172 insertions, 68 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 52ba1f89303..6f80ba5cdc5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,72 @@
12010-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * emacs-lisp/byte-run.el (set-advertised-calling-convention):
4 Add `when' argument. Update callers.
5
6 * subr.el (unintern): Declare the obarray arg mandatory.
7
82010-09-14 Glenn Morris <rgm@gnu.org>
9
10 * calendar/diary-lib.el (diary-list-entries-hook, diary-sort-entries):
11 Doc fixes.
12
13 * calendar/diary-lib.el (diary-included-files): New variable.
14 (diary-list-entries): Maybe initialize diary-included-files.
15 (diary-include-other-diary-files): Append to diary-included-files.
16 * calendar/appt.el (appt-update-list): Also check the members of
17 diary-included-files. (Bug#6999)
18 (appt-check): Doc fix.
19
202010-09-14 David Reitter <david.reitter@gmail.com>
21
22 * simple.el (line-move-visual): Do not truncate goal column to
23 integer size. (Bug#7020)
24
252010-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
26
27 * repeat.el (repeat): Allow repeating when the last event is a click.
28 Suggested by Drew Adams (bug#6256).
29
302010-09-14 Sascha Wilde <wilde@sha-bang.de>
31
32 * vc/vc-hg.el (vc-hg-state,vc-hg-working-revision):
33 Replace setting HGRCPATH to "" by some less invasive --config options.
34
352010-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
36
37 * font-lock.el (font-lock-beginning-of-syntax-function):
38 Mark as obsolete.
39
402010-09-14 Glenn Morris <rgm@gnu.org>
41
42 * menu-bar.el (menu-bar-options-save): Fix handling of menu-bar
43 and tool-bar modes. (Bug#6211)
44 (menu-bar-mode): Move setting of standard-value after the
45 minor-mode definition, otherwise it seems to have no effect.
46
472010-09-14 Masatake YAMATO <yamato@redhat.com>
48
49 * progmodes/antlr-mode.el (antlr-font-lock-additional-keywords):
50 Fix typo. (Bug#6976)
51
522010-09-14 Vinicius Jose Latorre <viniciusjl@ig.com.br>
53
54 * whitespace.el: Allow cleaning up blanks without blank
55 visualization (Bug#6651). Adjust help window for
56 whitespace-toggle-options (Bug#6479). Allow to use fill-column
57 instead of whitespace-line-column (from EmacsWiki). New version 13.1.
58 (whitespace-style): Add new value 'face. Adjust docstring.
59 (whitespace-space, whitespace-hspace, whitespace-tab):
60 Adjust foreground property face.
61 (whitespace-line-column): Adjust docstring and type declaration.
62 (whitespace-style-value-list, whitespace-toggle-option-alist)
63 (whitespace-help-text): Adjust const initialization.
64 (whitespace-toggle-options, global-whitespace-toggle-options):
65 Adjust docstring.
66 (whitespace-display-window, whitespace-interactive-char)
67 (whitespace-style-face-p, whitespace-color-on): Adjust code.
68 (whitespace-help-scroll): New fun.
69
12010-09-14 Katsumi Yamaoka <yamaoka@jpl.org> 702010-09-14 Katsumi Yamaoka <yamaoka@jpl.org>
2 71
3 * calendar/time-date.el (format-seconds): Comment fix. 72 * calendar/time-date.el (format-seconds): Comment fix.
@@ -116,7 +185,7 @@
116 (tramp-get-remote-readlink, tramp-get-remote-trash) 185 (tramp-get-remote-readlink, tramp-get-remote-trash)
117 (tramp-get-remote-id, tramp-get-remote-uid, tramp-get-remote-gid) 186 (tramp-get-remote-id, tramp-get-remote-uid, tramp-get-remote-gid)
118 (tramp-get-local-uid, tramp-get-local-gid) 187 (tramp-get-local-uid, tramp-get-local-gid)
119 (tramp-get-inline-compress, tramp-get-inline-coding, ): Move to 188 (tramp-get-inline-compress, tramp-get-inline-coding): Move to
120 tramp-sh.el. 189 tramp-sh.el.
121 (tramp-methods, tramp-default-method-alist) 190 (tramp-methods, tramp-default-method-alist)
122 (tramp-default-user-alist, tramp-foreign-file-name-handler-alist): 191 (tramp-default-user-alist, tramp-foreign-file-name-handler-alist):
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index ad36531bb40..ea419aee52d 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -48,8 +48,9 @@
48;; package is activated. Additionally, the appointments list is 48;; package is activated. Additionally, the appointments list is
49;; recreated automatically at 12:01am for those who do not logout 49;; recreated automatically at 12:01am for those who do not logout
50;; every day or are programming late. It is also updated when the 50;; every day or are programming late. It is also updated when the
51;; `diary-file' is saved. Calling `appt-check' with an argument (or 51;; `diary-file' (or a file it includes) is saved. Calling
52;; re-enabling the package) forces a re-initialization at any time. 52;; `appt-check' with an argument (or re-enabling the package) forces a
53;; re-initialization at any time.
53;; 54;;
54;; In order to add or delete items from today's list, without 55;; In order to add or delete items from today's list, without
55;; changing the diary file, use `appt-add' and `appt-delete'. 56;; changing the diary file, use `appt-add' and `appt-delete'.
@@ -262,7 +263,7 @@ The variable `appt-audible' controls the audible reminder."
262 "Check for an appointment and update any reminder display. 263 "Check for an appointment and update any reminder display.
263If optional argument FORCE is non-nil, reparse the diary file for 264If optional argument FORCE is non-nil, reparse the diary file for
264appointments. Otherwise the diary file is only parsed once per day, 265appointments. Otherwise the diary file is only parsed once per day,
265and when saved. 266or when it (or a file it includes) is saved.
266 267
267Note: the time must be the first thing in the line in the diary 268Note: the time must be the first thing in the line in the diary
268for a warning to be issued. The format of the time can be either 269for a warning to be issued. The format of the time can be either
@@ -346,6 +347,8 @@ displayed in a window:
346 (if d-buff ; diary buffer exists 347 (if d-buff ; diary buffer exists
347 (with-current-buffer d-buff 348 (with-current-buffer d-buff
348 diary-selective-display)))) 349 diary-selective-display))))
350 ;; FIXME why not using diary-list-entries with
351 ;; non-nil LIST-ONLY?
349 (diary) 352 (diary)
350 ;; If the diary buffer existed before this command, 353 ;; If the diary buffer existed before this command,
351 ;; restore its display state. Otherwise, kill it. 354 ;; restore its display state. Otherwise, kill it.
@@ -643,8 +646,10 @@ hour and minute parts."
643 646
644(defun appt-update-list () 647(defun appt-update-list ()
645 "If the current buffer is visiting the diary, update appointments. 648 "If the current buffer is visiting the diary, update appointments.
646This function is intended for use with `write-file-functions'." 649This function also acts on any file listed in `diary-included-files'.
647 (and (string-equal buffer-file-name (expand-file-name diary-file)) 650It is intended for use with `write-file-functions'."
651 (and (member buffer-file-name (append diary-included-files
652 (list (expand-file-name diary-file))))
648 appt-timer 653 appt-timer
649 (let ((appt-display-diary nil)) 654 (let ((appt-display-diary nil))
650 (appt-check t))) 655 (appt-check t)))
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 39354bd31e3..46926050362 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -187,11 +187,12 @@ you will probably also want to add `diary-mark-included-diary-files' to
187 187
188 (setq diary-display-function 'diary-fancy-display) 188 (setq diary-display-function 'diary-fancy-display)
189 (add-hook 'diary-list-entries-hook 'diary-include-other-diary-files) 189 (add-hook 'diary-list-entries-hook 'diary-include-other-diary-files)
190 (add-hook 'diary-list-entries-hook 'diary-sort-entries) 190 (add-hook 'diary-list-entries-hook 'diary-sort-entries t)
191 191
192in your `.emacs' file to cause the fancy diary buffer to be displayed with 192in your `.emacs' file to cause the fancy diary buffer to be displayed with
193diary entries from various included files, each day's entries sorted into 193diary entries from various included files, each day's entries sorted into
194lexicographic order." 194lexicographic order. Note how the sort function is placed last,
195so that it can sort the entries included from other files."
195 :type 'hook 196 :type 'hook
196 :options '(diary-include-other-diary-files diary-sort-entries) 197 :options '(diary-include-other-diary-files diary-sort-entries)
197 :group 'diary) 198 :group 'diary)
@@ -699,6 +700,10 @@ of the appropriate type."
699 (1+ (calendar-absolute-from-gregorian gdate)))))) 700 (1+ (calendar-absolute-from-gregorian gdate))))))
700 (goto-char (point-min))) 701 (goto-char (point-min)))
701 702
703(defvar diary-including) ; dynamically bound in diary-include-other-diary-files
704(defvar diary-included-files nil
705 "List of any diary files included in the last call to `diary-list-entries'.")
706
702;; FIXME non-greg and list hooks run same number of times? 707;; FIXME non-greg and list hooks run same number of times?
703(defun diary-list-entries (date number &optional list-only) 708(defun diary-list-entries (date number &optional list-only)
704 "Create and display a buffer containing the relevant lines in `diary-file'. 709 "Create and display a buffer containing the relevant lines in `diary-file'.
@@ -743,6 +748,8 @@ LIST-ONLY is non-nil, in which case it just returns the list."
743 (date-string (calendar-date-string date)) 748 (date-string (calendar-date-string date))
744 (diary-buffer (find-buffer-visiting diary-file)) 749 (diary-buffer (find-buffer-visiting diary-file))
745 diary-entries-list file-glob-attrs) 750 diary-entries-list file-glob-attrs)
751 (or (bound-and-true-p diary-including)
752 (setq diary-included-files nil))
746 (message "Preparing diary...") 753 (message "Preparing diary...")
747 (save-current-buffer 754 (save-current-buffer
748 (if (not diary-buffer) 755 (if (not diary-buffer)
@@ -828,11 +835,15 @@ the variable `diary-include-string'."
828 (let ((diary-file (match-string-no-properties 1)) 835 (let ((diary-file (match-string-no-properties 1))
829 (diary-list-entries-hook 'diary-include-other-diary-files) 836 (diary-list-entries-hook 'diary-include-other-diary-files)
830 (diary-display-function 'ignore) 837 (diary-display-function 'ignore)
838 (diary-including t)
831 diary-hook diary-list-include-blanks) 839 diary-hook diary-list-include-blanks)
832 (if (file-exists-p diary-file) 840 (if (file-exists-p diary-file)
833 (if (file-readable-p diary-file) 841 (if (file-readable-p diary-file)
834 (unwind-protect 842 (unwind-protect
835 (setq diary-entries-list 843 (setq diary-included-files
844 (append diary-included-files
845 (list (expand-file-name diary-file)))
846 diary-entries-list
836 (append diary-entries-list 847 (append diary-entries-list
837 (diary-list-entries original-date number))) 848 (diary-list-entries original-date number)))
838 (with-current-buffer (find-buffer-visiting diary-file) 849 (with-current-buffer (find-buffer-visiting diary-file)
@@ -1574,7 +1585,10 @@ be used instead of a colon (:) to separate the hour and minute parts."
1574 (string-lessp ts1 ts2))))))) 1585 (string-lessp ts1 ts2)))))))
1575 1586
1576(defun diary-sort-entries () 1587(defun diary-sort-entries ()
1577 "Sort the list of diary entries by time of day." 1588 "Sort the list of diary entries by time of day.
1589If you add this function to `diary-list-entries-hook', it should
1590be the last item in the hook, in case earlier items add diary
1591entries, or change the order."
1578 (setq diary-entries-list (sort diary-entries-list 'diary-entry-compare))) 1592 (setq diary-entries-list (sort diary-entries-list 'diary-entry-compare)))
1579 1593
1580(define-obsolete-function-alias 'sort-diary-entries 'diary-sort-entries "23.1") 1594(define-obsolete-function-alias 'sort-diary-entries 'diary-sort-entries "23.1")
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 6ce141eb8e6..0388435dbc2 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -108,10 +108,11 @@ The return value of this function is not used."
108 108
109(defvar advertised-signature-table (make-hash-table :test 'eq :weakness 'key)) 109(defvar advertised-signature-table (make-hash-table :test 'eq :weakness 'key))
110 110
111(defun set-advertised-calling-convention (function signature) 111(defun set-advertised-calling-convention (function signature when)
112 "Set the advertised SIGNATURE of FUNCTION. 112 "Set the advertised SIGNATURE of FUNCTION.
113This will allow the byte-compiler to warn the programmer when she uses 113This will allow the byte-compiler to warn the programmer when she uses
114an obsolete calling convention." 114an obsolete calling convention. WHEN specifies since when the calling
115convention was modified."
115 (puthash (indirect-function function) signature 116 (puthash (indirect-function function) signature
116 advertised-signature-table)) 117 advertised-signature-table))
117 118
@@ -132,7 +133,7 @@ was first made obsolete, for example a date or a release number."
132 obsolete-name) 133 obsolete-name)
133(set-advertised-calling-convention 134(set-advertised-calling-convention
134 ;; New code should always provide the `when' argument. 135 ;; New code should always provide the `when' argument.
135 'make-obsolete '(obsolete-name current-name when)) 136 'make-obsolete '(obsolete-name current-name when) "23.1")
136 137
137(defmacro define-obsolete-function-alias (obsolete-name current-name 138(defmacro define-obsolete-function-alias (obsolete-name current-name
138 &optional when docstring) 139 &optional when docstring)
@@ -153,7 +154,7 @@ See the docstrings of `defalias' and `make-obsolete' for more details."
153(set-advertised-calling-convention 154(set-advertised-calling-convention
154 ;; New code should always provide the `when' argument. 155 ;; New code should always provide the `when' argument.
155 'define-obsolete-function-alias 156 'define-obsolete-function-alias
156 '(obsolete-name current-name when &optional docstring)) 157 '(obsolete-name current-name when &optional docstring) "23.1")
157 158
158(defun make-obsolete-variable (obsolete-name current-name &optional when) 159(defun make-obsolete-variable (obsolete-name current-name &optional when)
159 "Make the byte-compiler warn that OBSOLETE-NAME is obsolete. 160 "Make the byte-compiler warn that OBSOLETE-NAME is obsolete.
@@ -175,7 +176,7 @@ was first made obsolete, for example a date or a release number."
175 obsolete-name) 176 obsolete-name)
176(set-advertised-calling-convention 177(set-advertised-calling-convention
177 ;; New code should always provide the `when' argument. 178 ;; New code should always provide the `when' argument.
178 'make-obsolete-variable '(obsolete-name current-name when)) 179 'make-obsolete-variable '(obsolete-name current-name when) "23.1")
179 180
180(defmacro define-obsolete-variable-alias (obsolete-name current-name 181(defmacro define-obsolete-variable-alias (obsolete-name current-name
181 &optional when docstring) 182 &optional when docstring)
@@ -210,7 +211,7 @@ CURRENT-NAME, if it does not already have them:
210(set-advertised-calling-convention 211(set-advertised-calling-convention
211 ;; New code should always provide the `when' argument. 212 ;; New code should always provide the `when' argument.
212 'define-obsolete-variable-alias 213 'define-obsolete-variable-alias
213 '(obsolete-name current-name when &optional docstring)) 214 '(obsolete-name current-name when &optional docstring) "23.1")
214 215
215;; FIXME This is only defined in this file because the variable- and 216;; FIXME This is only defined in this file because the variable- and
216;; function- versions are too. Unlike those two, this one is not used 217;; function- versions are too. Unlike those two, this one is not used
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 92c62010848..6c316f5f958 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -564,6 +564,8 @@ outside of any comment, string, or sexp. This variable is semi-obsolete;
564we recommend setting `syntax-begin-function' instead. 564we recommend setting `syntax-begin-function' instead.
565 565
566This is normally set via `font-lock-defaults'.") 566This is normally set via `font-lock-defaults'.")
567(make-obsolete-variable 'font-lock-beginning-of-syntax-function
568 'syntax-begin-function "23.3")
567 569
568(defvar font-lock-mark-block-function nil 570(defvar font-lock-mark-block-function nil
569 "*Non-nil means use this function to mark a block of text. 571 "*Non-nil means use this function to mark a block of text.
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 6149fea4769..d0a8653f95c 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -664,13 +664,23 @@ by \"Save Options\" in Custom buffers.")
664 ;; put on a customized-value property. 664 ;; put on a customized-value property.
665 (dolist (elt '(line-number-mode column-number-mode size-indication-mode 665 (dolist (elt '(line-number-mode column-number-mode size-indication-mode
666 cua-mode show-paren-mode transient-mark-mode 666 cua-mode show-paren-mode transient-mark-mode
667 blink-cursor-mode display-time-mode display-battery-mode)) 667 blink-cursor-mode display-time-mode display-battery-mode
668 ;; These are set by other functions that don't set
669 ;; the customized state. Having them here has the
670 ;; side-effect that turning them off via X
671 ;; resources acts like having customized them, but
672 ;; that seems harmless.
673 menu-bar-mode tool-bar-mode))
674 ;; FIXME ? It's a little annoying that running this command
675 ;; always loads cua-base, paren, time, and battery, even if they
676 ;; have not been customized in any way. (Due to custom-load-symbol.)
668 (and (customize-mark-to-save elt) 677 (and (customize-mark-to-save elt)
669 (setq need-save t))) 678 (setq need-save t)))
670 ;; These are set with `customize-set-variable'. 679 ;; These are set with `customize-set-variable'.
671 (dolist (elt '(scroll-bar-mode 680 (dolist (elt '(scroll-bar-mode
672 debug-on-quit debug-on-error 681 debug-on-quit debug-on-error
673 tooltip-mode menu-bar-mode tool-bar-mode 682 ;; Somehow this works, when tool-bar and menu-bar don't.
683 tooltip-mode
674 save-place uniquify-buffer-name-style fringe-mode 684 save-place uniquify-buffer-name-style fringe-mode
675 indicate-empty-lines indicate-buffer-boundaries 685 indicate-empty-lines indicate-buffer-boundaries
676 case-fold-search font-use-system-font 686 case-fold-search font-use-system-font
@@ -2037,6 +2047,16 @@ turn on menu bars; otherwise, turn off menu bars."
2037 (run-with-idle-timer 0 nil 'message 2047 (run-with-idle-timer 0 nil 'message
2038 "Menu-bar mode disabled. Use M-x menu-bar-mode to make the menu bar appear."))) 2048 "Menu-bar mode disabled. Use M-x menu-bar-mode to make the menu bar appear.")))
2039 2049
2050;;;###autoload
2051;; (This does not work right unless it comes after the above definition.)
2052;; This comment is taken from tool-bar.el near
2053;; (put 'tool-bar-mode ...)
2054;; We want to pretend the menu bar by standard is on, as this will make
2055;; customize consider disabling the menu bar a customization, and save
2056;; that. We could do this for real by setting :init-value above, but
2057;; that would overwrite disabling the menu bar from X resources.
2058(put 'menu-bar-mode 'standard-value '(t))
2059
2040(defun toggle-menu-bar-mode-from-frame (&optional arg) 2060(defun toggle-menu-bar-mode-from-frame (&optional arg)
2041 "Toggle menu bar on or off, based on the status of the current frame. 2061 "Toggle menu bar on or off, based on the status of the current frame.
2042See `menu-bar-mode' for more information." 2062See `menu-bar-mode' for more information."
diff --git a/lisp/progmodes/antlr-mode.el b/lisp/progmodes/antlr-mode.el
index 9b24ac7a1f4..742bcf726eb 100644
--- a/lisp/progmodes/antlr-mode.el
+++ b/lisp/progmodes/antlr-mode.el
@@ -951,7 +951,7 @@ group. The string matched by the first group is highlighted with
951 (3 antlr-keyword-face) 951 (3 antlr-keyword-face)
952 (4 (if (member (match-string 4) '("Lexer" "Parser" "TreeParser")) 952 (4 (if (member (match-string 4) '("Lexer" "Parser" "TreeParser"))
953 antlr-keyword-face 953 antlr-keyword-face
954 type-face))) 954 font-lock-type-face)))
955 (,(lambda (limit) 955 (,(lambda (limit)
956 (antlr-re-search-forward 956 (antlr-re-search-forward
957 "\\<\\(header\\|options\\|tokens\\|exception\\|catch\\|returns\\)\\>" 957 "\\<\\(header\\|options\\|tokens\\|exception\\|catch\\|returns\\)\\>"
diff --git a/lisp/repeat.el b/lisp/repeat.el
index eddaf4f020e..86484ec68d6 100644
--- a/lisp/repeat.el
+++ b/lisp/repeat.el
@@ -335,7 +335,12 @@ recently executed command not bound to an input event\"."
335 (setq real-last-command 'repeat) 335 (setq real-last-command 'repeat)
336 (setq repeat-undo-count 1) 336 (setq repeat-undo-count 1)
337 (unwind-protect 337 (unwind-protect
338 (while (eq (read-event) repeat-repeat-char) 338 (while (let ((evt (read-event))) ;FIXME: read-key maybe?
339 ;; For clicks, we need to strip the meta-data to
340 ;; check the underlying event name.
341 (eq (or (car-safe evt) evt)
342 (or (car-safe repeat-repeat-char)
343 repeat-repeat-char)))
339 (repeat repeat-arg)) 344 (repeat repeat-arg))
340 ;; Make sure `repeat-undo-count' is reset. 345 ;; Make sure `repeat-undo-count' is reset.
341 (setq repeat-undo-count nil)) 346 (setq repeat-undo-count nil))
diff --git a/lisp/simple.el b/lisp/simple.el
index 36931c7777c..1ab737d5ec1 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4343,7 +4343,7 @@ into account variable-width characters and line continuation."
4343 (or (and (= (vertical-motion 4343 (or (and (= (vertical-motion
4344 (cons (or goal-column 4344 (cons (or goal-column
4345 (if (consp temporary-goal-column) 4345 (if (consp temporary-goal-column)
4346 (truncate (car temporary-goal-column)) 4346 (car temporary-goal-column)
4347 temporary-goal-column)) 4347 temporary-goal-column))
4348 arg)) 4348 arg))
4349 arg) 4349 arg)
diff --git a/lisp/subr.el b/lisp/subr.el
index f2c12a736c2..b391f1f0b93 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -239,7 +239,7 @@ letter but *do not* end with a period. Please follow this convention
239for the sake of consistency." 239for the sake of consistency."
240 (while t 240 (while t
241 (signal 'error (list (apply 'format args))))) 241 (signal 'error (list (apply 'format args)))))
242(set-advertised-calling-convention 'error '(string &rest args)) 242(set-advertised-calling-convention 'error '(string &rest args) "23.1")
243 243
244;; We put this here instead of in frame.el so that it's defined even on 244;; We put this here instead of in frame.el so that it's defined even on
245;; systems where frame.el isn't loaded. 245;; systems where frame.el isn't loaded.
@@ -1039,9 +1039,10 @@ is converted into a string by expressing it in decimal."
1039(make-obsolete 'make-variable-frame-local 1039(make-obsolete 'make-variable-frame-local
1040 "explicitly check for a frame-parameter instead." "22.2") 1040 "explicitly check for a frame-parameter instead." "22.2")
1041(make-obsolete 'interactive-p 'called-interactively-p "23.2") 1041(make-obsolete 'interactive-p 'called-interactively-p "23.2")
1042(set-advertised-calling-convention 'called-interactively-p '(kind)) 1042(set-advertised-calling-convention 'called-interactively-p '(kind) "23.1")
1043(set-advertised-calling-convention 1043(set-advertised-calling-convention
1044 'all-completions '(string collection &optional predicate)) 1044 'all-completions '(string collection &optional predicate) "23.1")
1045(set-advertised-calling-convention 'unintern '(name obarray) "23.3")
1045 1046
1046;;;; Obsolescence declarations for variables, and aliases. 1047;;;; Obsolescence declarations for variables, and aliases.
1047 1048
@@ -2064,7 +2065,7 @@ floating point support."
2064 (setq read (cons t read))) 2065 (setq read (cons t read)))
2065 (push read unread-command-events) 2066 (push read unread-command-events)
2066 nil)))))) 2067 nil))))))
2067(set-advertised-calling-convention 'sit-for '(seconds &optional nodisp)) 2068(set-advertised-calling-convention 'sit-for '(seconds &optional nodisp) "22.1")
2068 2069
2069;;; Atomic change groups. 2070;;; Atomic change groups.
2070 2071
@@ -2592,7 +2593,7 @@ discouraged."
2592 (start-process name buffer shell-file-name shell-command-switch 2593 (start-process name buffer shell-file-name shell-command-switch
2593 (mapconcat 'identity args " "))) 2594 (mapconcat 'identity args " ")))
2594(set-advertised-calling-convention 'start-process-shell-command 2595(set-advertised-calling-convention 'start-process-shell-command
2595 '(name buffer command)) 2596 '(name buffer command) "23.1")
2596 2597
2597(defun start-file-process-shell-command (name buffer &rest args) 2598(defun start-file-process-shell-command (name buffer &rest args)
2598 "Start a program in a subprocess. Return the process object for it. 2599 "Start a program in a subprocess. Return the process object for it.
@@ -2603,7 +2604,7 @@ Similar to `start-process-shell-command', but calls `start-file-process'."
2603 (if (file-remote-p default-directory) "-c" shell-command-switch) 2604 (if (file-remote-p default-directory) "-c" shell-command-switch)
2604 (mapconcat 'identity args " "))) 2605 (mapconcat 'identity args " ")))
2605(set-advertised-calling-convention 'start-file-process-shell-command 2606(set-advertised-calling-convention 'start-file-process-shell-command
2606 '(name buffer command)) 2607 '(name buffer command) "23.1")
2607 2608
2608(defun call-process-shell-command (command &optional infile buffer display 2609(defun call-process-shell-command (command &optional infile buffer display
2609 &rest args) 2610 &rest args)
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 170bedd3b28..7726f6cd081 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,15 @@
12010-09-14 Julien Danjou <julien@danjou.info>
2
3 * url-cache (url-store-in-cache): Make `buff' argument really optional.
4
52010-09-14 Glenn Morris <rgm@gnu.org>
6
7 * url-cookie.el (url-cookie-expired-p): Tweak previous change.
8
92010-09-14 shawn boles <shawn.boles@gmail.com> (tiny change)
10
11 * url-cookie.el (url-cookie-expired-p): Simplify and fix. (Bug#6957)
12
12010-09-11 Glenn Morris <rgm@gnu.org> 132010-09-11 Glenn Morris <rgm@gnu.org>
2 14
3 * url-cache.el, url-gw.el, url-history.el, url-irc.el, url-util.el: 15 * url-cache.el, url-gw.el, url-history.el, url-irc.el, url-util.el:
diff --git a/lisp/url/url-cache.el b/lisp/url/url-cache.el
index 7cff9aa923d..3a6f00db306 100644
--- a/lisp/url/url-cache.el
+++ b/lisp/url/url-cache.el
@@ -62,14 +62,11 @@ FILE can be created or overwritten."
62;;;###autoload 62;;;###autoload
63(defun url-store-in-cache (&optional buff) 63(defun url-store-in-cache (&optional buff)
64 "Store buffer BUFF in the cache." 64 "Store buffer BUFF in the cache."
65 (if (not (and buff (get-buffer buff))) 65 (with-current-buffer (get-buffer (or buff (current-buffer)))
66 nil 66 (let ((fname (url-cache-create-filename (url-view-url t))))
67 (save-current-buffer 67 (if (url-cache-prepare fname)
68 (and buff (set-buffer buff)) 68 (let ((coding-system-for-write 'binary))
69 (let* ((fname (url-cache-create-filename (url-view-url t)))) 69 (write-region (point-min) (point-max) fname nil 5))))))
70 (if (url-cache-prepare fname)
71 (let ((coding-system-for-write 'binary))
72 (write-region (point-min) (point-max) fname nil 5)))))))
73 70
74;;;###autoload 71;;;###autoload
75(defun url-is-cached (url) 72(defun url-is-cached (url)
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el
index 75a1b218830..2067f097224 100644
--- a/lisp/url/url-cookie.el
+++ b/lisp/url/url-cookie.el
@@ -1,7 +1,7 @@
1;;; url-cookie.el --- Netscape Cookie support 1;;; url-cookie.el --- Netscape Cookie support
2 2
3;; Copyright (C) 1996, 1997, 1998, 1999, 2004, 3;; Copyright (C) 1996, 1997, 1998, 1999, 2004, 2005, 2006, 2007, 2008,
4;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Keywords: comm, data, processes, hypermedia 6;; Keywords: comm, data, processes, hypermedia
7 7
@@ -24,7 +24,6 @@
24 24
25;;; Code: 25;;; Code:
26 26
27(require 'timezone)
28(require 'url-util) 27(require 'url-util)
29(require 'url-parse) 28(require 'url-parse)
30(eval-when-compile (require 'cl)) 29(eval-when-compile (require 'cl))
@@ -194,34 +193,9 @@ telling Microsoft that."
194 (setq url-cookie-storage (list (list domain tmp)))))))) 193 (setq url-cookie-storage (list (list domain tmp))))))))
195 194
196(defun url-cookie-expired-p (cookie) 195(defun url-cookie-expired-p (cookie)
197 (let* ( 196 "Return non-nil if COOKIE is expired."
198 (exp (url-cookie-expires cookie)) 197 (let ((exp (url-cookie-expires cookie)))
199 (cur-date (and exp (timezone-parse-date (current-time-string)))) 198 (and exp (> (float-time) (float-time (date-to-time exp))))))
200 (exp-date (and exp (timezone-parse-date exp)))
201 (cur-greg (and cur-date (timezone-absolute-from-gregorian
202 (string-to-number (aref cur-date 1))
203 (string-to-number (aref cur-date 2))
204 (string-to-number (aref cur-date 0)))))
205 (exp-greg (and exp (timezone-absolute-from-gregorian
206 (string-to-number (aref exp-date 1))
207 (string-to-number (aref exp-date 2))
208 (string-to-number (aref exp-date 0)))))
209 (diff-in-days (and exp (- cur-greg exp-greg)))
210 )
211 (cond
212 ((not exp) nil) ; No expiry == expires at browser quit
213 ((< diff-in-days 0) nil) ; Expires sometime after today
214 ((> diff-in-days 0) t) ; Expired before today
215 (t ; Expires sometime today, check times
216 (let* ((cur-time (timezone-parse-time (aref cur-date 3)))
217 (exp-time (timezone-parse-time (aref exp-date 3)))
218 (cur-norm (+ (* 360 (string-to-number (aref cur-time 2)))
219 (* 60 (string-to-number (aref cur-time 1)))
220 (* 1 (string-to-number (aref cur-time 0)))))
221 (exp-norm (+ (* 360 (string-to-number (aref exp-time 2)))
222 (* 60 (string-to-number (aref exp-time 1)))
223 (* 1 (string-to-number (aref exp-time 0))))))
224 (> (- cur-norm exp-norm) 1))))))
225 199
226(defun url-cookie-retrieve (host &optional localpart secure) 200(defun url-cookie-retrieve (host &optional localpart secure)
227 "Retrieve all the netscape-style cookies for a specified HOST and LOCALPART." 201 "Retrieve all the netscape-style cookies for a specified HOST and LOCALPART."
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index c087a4d9e1f..689cd4d12bd 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -171,10 +171,12 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
171 (let ((process-environment 171 (let ((process-environment
172 ;; Avoid localization of messages so we 172 ;; Avoid localization of messages so we
173 ;; can parse the output. 173 ;; can parse the output.
174 (append (list "TERM=dumb" "LANGUAGE=C" "HGRCPATH=") 174 (append (list "TERM=dumb" "LANGUAGE=C")
175 process-environment))) 175 process-environment)))
176 (process-file 176 (process-file
177 "hg" nil t nil 177 "hg" nil t nil
178 "--config" "alias.status=status"
179 "--config" "defaults.status="
178 "status" "-A" (file-relative-name file))) 180 "status" "-A" (file-relative-name file)))
179 ;; Some problem happened. E.g. We can't find an `hg' 181 ;; Some problem happened. E.g. We can't find an `hg'
180 ;; executable. 182 ;; executable.
@@ -199,7 +201,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
199 ((status nil) 201 ((status nil)
200 (default-directory (file-name-directory file)) 202 (default-directory (file-name-directory file))
201 ;; Avoid localization of messages so we can parse the output. 203 ;; Avoid localization of messages so we can parse the output.
202 (avoid-local-env (append (list "TERM=dumb" "LANGUAGE=C" "HGRCPATH=") 204 (avoid-local-env (append (list "TERM=dumb" "LANGUAGE=C")
203 process-environment)) 205 process-environment))
204 (out 206 (out
205 (with-output-to-string 207 (with-output-to-string
@@ -211,6 +213,8 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
211 ;; Ignore all errors. 213 ;; Ignore all errors.
212 (process-file 214 (process-file
213 "hg" nil t nil 215 "hg" nil t nil
216 "--config" "alias.parents=parents"
217 "--config" "defaults.parents="
214 "parents" "--template" "{rev}" (file-relative-name file))) 218 "parents" "--template" "{rev}" (file-relative-name file)))
215 ;; Some problem happened. E.g. We can't find an `hg' 219 ;; Some problem happened. E.g. We can't find an `hg'
216 ;; executable. 220 ;; executable.