aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJoakim Verona2013-08-12 12:29:06 +0200
committerJoakim Verona2013-08-12 12:29:06 +0200
commit5ff84f8a17c73bf63cc7532e14149380d9f83b3f (patch)
tree501ac3b99a49aaa25adedc516bb4ea7a34c22a5c /lisp
parentc39e73975f7371a6458cd63967d39ba77a1e871a (diff)
parent7a67e06b99a85ae700a7ccc75468397d53af59ed (diff)
downloademacs-5ff84f8a17c73bf63cc7532e14149380d9f83b3f.tar.gz
emacs-5ff84f8a17c73bf63cc7532e14149380d9f83b3f.zip
merge from trunk
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/format.el10
-rw-r--r--lisp/gnus/ChangeLog9
-rw-r--r--lisp/gnus/mm-decode.el36
-rw-r--r--lisp/net/eww.el4
5 files changed, 56 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ac360a3e422..1b7aceb5979 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12013-08-12 Glenn Morris <rgm@gnu.org>
2
3 * format.el (format-annotate-function):
4 Handle read-only text properties in the source. (Bug#14887)
5
62013-08-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
7
8 * net/eww.el (eww-display-html): Ignore coding system errors. One
9 web site uses "utf-8lias" as the coding system.
10
12013-08-11 Juanma Barranquero <lekktu@gmail.com> 112013-08-11 Juanma Barranquero <lekktu@gmail.com>
2 12
3 * frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil. 13 * frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil.
diff --git a/lisp/format.el b/lisp/format.el
index 221eaadcdd8..fc8dcb97b01 100644
--- a/lisp/format.el
+++ b/lisp/format.el
@@ -225,10 +225,12 @@ For most purposes, consider using `format-encode-region' instead."
225 (setq selective-display sel-disp) 225 (setq selective-display sel-disp)
226 (set-buffer-multibyte multibyte) 226 (set-buffer-multibyte multibyte)
227 (setq buffer-file-coding-system coding-system)) 227 (setq buffer-file-coding-system coding-system))
228 (copy-to-buffer copy-buf from to) 228 (let ((inhibit-read-only t)) ; bug#14887
229 (set-buffer copy-buf) 229 (copy-to-buffer copy-buf from to)
230 (format-insert-annotations write-region-annotations-so-far from) 230 (set-buffer copy-buf)
231 (format-encode-run-method to-fn (point-min) (point-max) orig-buf) 231 (format-insert-annotations write-region-annotations-so-far from)
232 (format-encode-run-method to-fn (point-min) (point-max)
233 orig-buf))
232 (when (buffer-live-p copy-buf) 234 (when (buffer-live-p copy-buf)
233 (with-current-buffer copy-buf 235 (with-current-buffer copy-buf
234 ;; Set write-region-post-annotation-function to 236 ;; Set write-region-post-annotation-function to
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index ab776bfbb54..4fcf078e9d6 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,12 @@
12013-08-12 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * mm-decode.el (mm-display-external): Run a timer for the temp files
4 deletion after a viewer exits; add a deletion timer for the needsterm
5 case, too.
6
7 * mm-decode.el (mm-display-external): Try to delete temporary files by
8 using a 1-min. timer.
9
12013-08-09 Katsumi Yamaoka <yamaoka@jpl.org> 102013-08-09 Katsumi Yamaoka <yamaoka@jpl.org>
2 11
3 * mm-decode.el (mm-temp-files-to-be-deleted, mm-temp-files-cache-file): 12 * mm-decode.el (mm-temp-files-to-be-deleted, mm-temp-files-cache-file):
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index f1e11a01194..dbbf0befe60 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -954,10 +954,20 @@ external if displayed external."
954 method file (mm-handle-type handle)))) 954 method file (mm-handle-type handle))))
955 (unwind-protect 955 (unwind-protect
956 (if window-system 956 (if window-system
957 (start-process "*display*" nil 957 (set-process-sentinel
958 mm-external-terminal-program 958 (start-process "*display*" nil
959 "-e" shell-file-name 959 mm-external-terminal-program
960 shell-command-switch command) 960 "-e" shell-file-name
961 shell-command-switch command)
962 `(lambda (process state)
963 (if (eq 'exit (process-status process))
964 (run-at-time
965 60.0 nil
966 (lambda ()
967 (ignore-errors (delete-file ,file))
968 (ignore-errors (delete-directory
969 ,(file-name-directory
970 file))))))))
961 (require 'term) 971 (require 'term)
962 (require 'gnus-win) 972 (require 'gnus-win)
963 (set-buffer 973 (set-buffer
@@ -971,11 +981,15 @@ external if displayed external."
971 (set-process-sentinel 981 (set-process-sentinel
972 (get-buffer-process buffer) 982 (get-buffer-process buffer)
973 `(lambda (process state) 983 `(lambda (process state)
974 (if (eq 'exit (process-status process)) 984 (when (eq 'exit (process-status process))
975 (gnus-configure-windows 985 (ignore-errors (delete-file ,file))
976 ',gnus-current-window-configuration)))) 986 (ignore-errors
987 (delete-directory ,(file-name-directory file)))
988 (gnus-configure-windows
989 ',gnus-current-window-configuration))))
977 (gnus-configure-windows 'display-term)) 990 (gnus-configure-windows 'display-term))
978 (mm-handle-set-external-undisplayer handle (cons file buffer))) 991 (mm-handle-set-external-undisplayer handle (cons file buffer))
992 (add-to-list 'mm-temp-files-to-be-deleted file t))
979 (message "Displaying %s..." command)) 993 (message "Displaying %s..." command))
980 'external) 994 'external)
981 (copiousoutput 995 (copiousoutput
@@ -1023,6 +1037,12 @@ external if displayed external."
1023 (handle handle)) 1037 (handle handle))
1024 (lambda (process state) 1038 (lambda (process state)
1025 (when (eq (process-status process) 'exit) 1039 (when (eq (process-status process) 'exit)
1040 (run-at-time
1041 60.0 nil
1042 (lambda ()
1043 (ignore-errors (delete-file file))
1044 (ignore-errors (delete-directory
1045 (file-name-directory file)))))
1026 (when (buffer-live-p outbuf) 1046 (when (buffer-live-p outbuf)
1027 (with-current-buffer outbuf 1047 (with-current-buffer outbuf
1028 (let ((buffer-read-only nil) 1048 (let ((buffer-read-only nil)
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 70c11c3201f..a689ff2ae9f 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -199,7 +199,9 @@ word(s) will be searched for via `eww-search-prefix'."
199 199
200(defun eww-display-html (charset url) 200(defun eww-display-html (charset url)
201 (unless (eq charset 'utf8) 201 (unless (eq charset 'utf8)
202 (decode-coding-region (point) (point-max) charset)) 202 (condition-case nil
203 (decode-coding-region (point) (point-max) charset)
204 (coding-system-error nil)))
203 (let ((document 205 (let ((document
204 (list 206 (list
205 'base (list (cons 'href url)) 207 'base (list (cons 'href url))