aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa2012-10-13 22:11:40 +0900
committerKenichi Handa2012-10-13 22:11:40 +0900
commit2e58893d168a90c475d4b5ba738b19113f6494ea (patch)
tree0688fdb217a0cf7f6ad1ca212c4ddb508d845301 /lisp
parent0ba06a77fd4ccf92f1106b8ab7d8d64d6d812a1d (diff)
parent076a4db2fe51a9a1d3a379955499a12059c50d45 (diff)
downloademacs-2e58893d168a90c475d4b5ba738b19113f6494ea.tar.gz
emacs-2e58893d168a90c475d4b5ba738b19113f6494ea.zip
merge trunk
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/emacs-lisp/debug.el26
-rw-r--r--lisp/textmodes/ispell.el13
-rw-r--r--lisp/url/ChangeLog11
-rw-r--r--lisp/url/url-file.el3
-rw-r--r--lisp/url/url-http.el8
-rw-r--r--lisp/url/url-vars.el3
-rw-r--r--lisp/url/url.el12
8 files changed, 61 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2a92c1178cf..d58eb0bfbbf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12012-10-13 Chong Yidong <cyd@gnu.org>
2
3 * textmodes/ispell.el (ispell-pdict-save): If flyspell-mode is
4 enabled, re-enable it (Bug#11963).
5
62012-10-13 Martin Rudalics <rudalics@gmx.at>
7
8 * emacs-lisp/debug.el (debug): When debugger-will-be-back is
9 non-nil, restore window configuration (Bug#12623).
10
12012-10-12 Stefan Monnier <monnier@iro.umontreal.ca> 112012-10-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 12
3 * help-fns.el (describe-variable, describe-function-1): 13 * help-fns.el (describe-variable, describe-function-1):
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index 6b308119abb..c30ccf3315e 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -213,7 +213,8 @@ first will be printed into the backtrace buffer."
213 (or enable-recursive-minibuffers (> (minibuffer-depth) 0))) 213 (or enable-recursive-minibuffers (> (minibuffer-depth) 0)))
214 (standard-input t) (standard-output t) 214 (standard-input t) (standard-output t)
215 inhibit-redisplay 215 inhibit-redisplay
216 (cursor-in-echo-area nil)) 216 (cursor-in-echo-area nil)
217 (window-configuration (current-window-configuration)))
217 (unwind-protect 218 (unwind-protect
218 (save-excursion 219 (save-excursion
219 (when (eq (car debugger-args) 'debug) 220 (when (eq (car debugger-args) 'debug)
@@ -266,16 +267,19 @@ first will be printed into the backtrace buffer."
266 ;; Make sure we unbind buffer-read-only in the right buffer. 267 ;; Make sure we unbind buffer-read-only in the right buffer.
267 (save-excursion 268 (save-excursion
268 (recursive-edit)))) 269 (recursive-edit))))
269 (when (and (not debugger-will-be-back) 270 (if debugger-will-be-back
270 (window-live-p debugger-window) 271 ;; Restore previous window configuration (Bug#12623).
271 (eq (window-buffer debugger-window) debugger-buffer)) 272 (set-window-configuration window-configuration)
272 ;; Record height of debugger window. 273 (when (and (window-live-p debugger-window)
273 (setq debugger-previous-window-height 274 (eq (window-buffer debugger-window) debugger-buffer))
274 (window-total-size debugger-window)) 275 (progn
275 ;; Unshow debugger-buffer. 276 ;; Record height of debugger window.
276 (quit-restore-window debugger-window debugger-bury-or-kill) 277 (setq debugger-previous-window-height
277 ;; Restore current buffer (Bug#12502). 278 (window-total-size debugger-window))
278 (set-buffer debugger-old-buffer)) 279 ;; Unshow debugger-buffer.
280 (quit-restore-window debugger-window debugger-bury-or-kill)
281 ;; Restore current buffer (Bug#12502).
282 (set-buffer debugger-old-buffer))))
279 ;; Restore previous state of debugger-buffer in case we were 283 ;; Restore previous state of debugger-buffer in case we were
280 ;; in a recursive invocation of the debugger, otherwise just 284 ;; in a recursive invocation of the debugger, otherwise just
281 ;; erase the buffer and put it into fundamental mode. 285 ;; erase the buffer and put it into fundamental mode.
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 51a4800de52..d591dc5fa85 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1893,11 +1893,14 @@ If so, ask if it needs to be saved."
1893 (interactive (list ispell-silently-savep t)) 1893 (interactive (list ispell-silently-savep t))
1894 (if (and ispell-pdict-modified-p (listp ispell-pdict-modified-p)) 1894 (if (and ispell-pdict-modified-p (listp ispell-pdict-modified-p))
1895 (setq ispell-pdict-modified-p (car ispell-pdict-modified-p))) 1895 (setq ispell-pdict-modified-p (car ispell-pdict-modified-p)))
1896 (if (or ispell-pdict-modified-p force-save) 1896 (when (and (or ispell-pdict-modified-p force-save)
1897 (if (or no-query (y-or-n-p "Personal dictionary modified. Save? ")) 1897 (or no-query
1898 (progn 1898 (y-or-n-p "Personal dictionary modified. Save? ")))
1899 (ispell-send-string "#\n") ; save dictionary 1899 (ispell-send-string "#\n") ; save dictionary
1900 (message "Personal dictionary saved.")))) 1900 (message "Personal dictionary saved.")
1901 (when flyspell-mode
1902 (flyspell-mode 0)
1903 (flyspell-mode 1)))
1901 ;; unassert variable, even if not saved to avoid questioning. 1904 ;; unassert variable, even if not saved to avoid questioning.
1902 (setq ispell-pdict-modified-p nil)) 1905 (setq ispell-pdict-modified-p nil))
1903 1906
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index c7fc4fcbfe1..59222bcc957 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,14 @@
12012-10-13 Liam Stitt <stittl@cuug.ab.ca> (tiny change)
2
3 * url-vars.el (url-uncompressor-alist):
4 * url-file.el (url-file-find-possibly-compressed-file, url-file):
5 Recognize .xz compression (Bug#11839).
6
72012-10-13 Chong Yidong <cyd@gnu.org>
8
9 * url-http.el (url-http):
10 * url.el (url-retrieve-internal): Doc fix (Bug#6407).
11
12012-10-08 Glenn Morris <rgm@gnu.org> 122012-10-08 Glenn Morris <rgm@gnu.org>
2 13
3 * url-methods.el (url-scheme-get-property): url-https.el was 14 * url-methods.el (url-scheme-get-property): url-https.el was
diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el
index 4bbbdcf200c..3515d7493cc 100644
--- a/lisp/url/url-file.el
+++ b/lisp/url/url-file.el
@@ -40,7 +40,7 @@ can do automatic decompression for them, and won't find 'foo' if
40'foo.gz' exists, even though the FTP server would happily serve it up 40'foo.gz' exists, even though the FTP server would happily serve it up
41to them." 41to them."
42 (let ((scratch nil) 42 (let ((scratch nil)
43 (compressed-extensions '("" ".gz" ".z" ".Z" ".bz2")) 43 (compressed-extensions '("" ".gz" ".z" ".Z" ".bz2" ".xz"))
44 (found nil)) 44 (found nil))
45 (while (and compressed-extensions (not found)) 45 (while (and compressed-extensions (not found))
46 (if (file-exists-p (setq scratch (concat fname (pop compressed-extensions)))) 46 (if (file-exists-p (setq scratch (concat fname (pop compressed-extensions))))
@@ -177,6 +177,7 @@ to them."
177 (".uue" "x-uuencoded") 177 (".uue" "x-uuencoded")
178 (".hqx" "x-hqx") 178 (".hqx" "x-hqx")
179 (".bz2" "x-bzip2") 179 (".bz2" "x-bzip2")
180 (".xz" "x-xz")
180 (_ nil))) 181 (_ nil)))
181 182
182 (if (file-directory-p filename) 183 (if (file-directory-p filename)
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 85b6efcde0d..73d53e08c59 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1150,8 +1150,12 @@ the end of the document."
1150(defun url-http (url callback cbargs &optional retry-buffer) 1150(defun url-http (url callback cbargs &optional retry-buffer)
1151 "Retrieve URL via HTTP asynchronously. 1151 "Retrieve URL via HTTP asynchronously.
1152URL must be a parsed URL. See `url-generic-parse-url' for details. 1152URL must be a parsed URL. See `url-generic-parse-url' for details.
1153When retrieval is completed, the function CALLBACK is executed with 1153
1154CBARGS as the arguments. 1154When retrieval is completed, execute the function CALLBACK, using
1155the arguments listed in CBARGS. The first element in CBARGS
1156should be a plist describing what has happened so far during the
1157request, as described in the docstring of `url-retrieve' (if in
1158doubt, specify nil).
1155 1159
1156Optional arg RETRY-BUFFER, if non-nil, specifies the buffer of a 1160Optional arg RETRY-BUFFER, if non-nil, specifies the buffer of a
1157previous `url-http' call, which is being re-attempted." 1161previous `url-http' call, which is being re-attempted."
diff --git a/lisp/url/url-vars.el b/lisp/url/url-vars.el
index 29f1e2cde0c..fdfd0e9868d 100644
--- a/lisp/url/url-vars.el
+++ b/lisp/url/url-vars.el
@@ -152,7 +152,8 @@ variable."
152 (".uue" . "x-uuencoded") 152 (".uue" . "x-uuencoded")
153 (".hqx" . "x-hqx") 153 (".hqx" . "x-hqx")
154 (".Z" . "x-compress") 154 (".Z" . "x-compress")
155 (".bz2" . "x-bzip2")) 155 (".bz2" . "x-bzip2")
156 (".xz" . "x-xz"))
156 "An alist of file extensions and appropriate content-transfer-encodings." 157 "An alist of file extensions and appropriate content-transfer-encodings."
157 :type '(repeat (cons :format "%v" 158 :type '(repeat (cons :format "%v"
158 (string :tag "Extension") 159 (string :tag "Extension")
diff --git a/lisp/url/url.el b/lisp/url/url.el
index 87ae7a51aac..b219151a30c 100644
--- a/lisp/url/url.el
+++ b/lisp/url/url.el
@@ -131,9 +131,9 @@ characters are percent-encoded; see `url-encode-url'.
131CALLBACK is called when the object has been completely retrieved, with 131CALLBACK is called when the object has been completely retrieved, with
132the current buffer containing the object, and any MIME headers associated 132the current buffer containing the object, and any MIME headers associated
133with it. It is called as (apply CALLBACK STATUS CBARGS). 133with it. It is called as (apply CALLBACK STATUS CBARGS).
134STATUS is a list with an even number of elements representing 134STATUS is a plist representing what happened during the request,
135what happened during the request, with most recent events first, 135with most recent events first, or an empty list if no events have
136or an empty list if no events have occurred. Each pair is one of: 136occurred. Each pair is one of:
137 137
138\(:redirect REDIRECTED-TO) - the request was redirected to this URL 138\(:redirect REDIRECTED-TO) - the request was redirected to this URL
139\(:error (ERROR-SYMBOL . DATA)) - an error occurred. The error can be 139\(:error (ERROR-SYMBOL . DATA)) - an error occurred. The error can be
@@ -169,8 +169,10 @@ URL-encoded before it's used."
169(defun url-retrieve-internal (url callback cbargs &optional silent 169(defun url-retrieve-internal (url callback cbargs &optional silent
170 inhibit-cookies) 170 inhibit-cookies)
171 "Internal function; external interface is `url-retrieve'. 171 "Internal function; external interface is `url-retrieve'.
172CBARGS is what the callback will actually receive - the first item is 172CBARGS is the list of arguments that the callback function will
173the list of events, as described in the docstring of `url-retrieve'. 173receive; its first element should be a plist specifying what has
174happened so far during the request, as described in the docstring
175of `url-retrieve' (if in doubt, specify nil).
174 176
175If SILENT, don't message progress reports and the like. 177If SILENT, don't message progress reports and the like.
176If INHIBIT-COOKIES, cookies will neither be stored nor sent to 178If INHIBIT-COOKIES, cookies will neither be stored nor sent to