diff options
| author | Joakim Verona | 2012-12-31 00:04:10 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-31 00:04:10 +0100 |
| commit | 42a61fa6a6cbcfde79d812bbbba372d579dc1016 (patch) | |
| tree | 96f29a95b6a443d93875882b1d7a7dbbd6fcc849 /lisp | |
| parent | ea2da3d8fbf19765a9bd82292bfc73918f74048d (diff) | |
| parent | 84cc1ab62539eed7869a88003a017330d79e8cac (diff) | |
| download | emacs-42a61fa6a6cbcfde79d812bbbba372d579dc1016.tar.gz emacs-42a61fa6a6cbcfde79d812bbbba372d579dc1016.zip | |
auto upstream
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 33 | ||||
| -rw-r--r-- | lisp/emacs-lisp/package.el | 14 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/nnfolder.el | 29 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 2 | ||||
| -rw-r--r-- | lisp/mail/rmailmm.el | 4 | ||||
| -rw-r--r-- | lisp/net/mairix.el | 10 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 13 | ||||
| -rw-r--r-- | lisp/net/tramp-smb.el | 2 | ||||
| -rw-r--r-- | lisp/org/ChangeLog | 7 |
10 files changed, 95 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 81b4978dba5..c895bce1cad 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,36 @@ | |||
| 1 | 2012-12-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * net/mairix.el (rmail, rmail-summary-displayed, rmail-summary): | ||
| 4 | Remove unnecessary/buggy autoloads (missing interactive). (Bug#13294) | ||
| 5 | (rmail-summary-displayed, rmail-summary): Declare. | ||
| 6 | (mairix-rmail-display): Just require rmail. | ||
| 7 | |||
| 8 | 2012-12-30 Chong Yidong <cyd@gnu.org> | ||
| 9 | |||
| 10 | * emacs-lisp/package.el (package-untar-buffer): Improve integrity | ||
| 11 | check for the tarball contents. | ||
| 12 | |||
| 13 | 2012-12-30 Matt Fidler <matt.fidler@alcon.com> (tiny change) | ||
| 14 | |||
| 15 | * emacs-lisp/package.el (package-untar-buffer): Handle problematic | ||
| 16 | tarfile content listings (Bug#13136). | ||
| 17 | |||
| 18 | 2012-12-30 Mark Lillibridge <mark.lillibridge@hp.com> | ||
| 19 | |||
| 20 | * mail/rmailmm.el (rmail-insert-mime-forwarded-message): Insert | ||
| 21 | the undecoded text of the message being forwarded. (Bug#9521) | ||
| 22 | |||
| 23 | 2012-12-30 Michael Albinus <michael.albinus@gmx.de> | ||
| 24 | |||
| 25 | * net/tramp-sh.el (tramp-set-file-uid-gid): Convert UID and GID to | ||
| 26 | integers, if they are real numbers. (Bug#13282) | ||
| 27 | |||
| 28 | * net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context): | ||
| 29 | Return `t' on success. | ||
| 30 | |||
| 31 | * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add | ||
| 32 | handler for `set-file-selinux-context'. | ||
| 33 | |||
| 1 | 2012-12-29 Michael Albinus <michael.albinus@gmx.de> | 34 | 2012-12-29 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 35 | ||
| 3 | * net/tramp-sh.el (tramp-sh-handle-file-acl): Suppress basic attributes. | 36 | * net/tramp-sh.el (tramp-sh-handle-file-acl): Suppress basic attributes. |
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 6629410a1f1..96435e52f11 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -596,6 +596,8 @@ EXTRA-PROPERTIES is currently unused." | |||
| 596 | 596 | ||
| 597 | (defvar tar-parse-info) | 597 | (defvar tar-parse-info) |
| 598 | (declare-function tar-untar-buffer "tar-mode" ()) | 598 | (declare-function tar-untar-buffer "tar-mode" ()) |
| 599 | (declare-function tar-header-name "tar-mode" (tar-header)) | ||
| 600 | (declare-function tar-header-link-type "tar-mode" (tar-header)) | ||
| 599 | 601 | ||
| 600 | (defun package-untar-buffer (dir) | 602 | (defun package-untar-buffer (dir) |
| 601 | "Untar the current buffer. | 603 | "Untar the current buffer. |
| @@ -604,10 +606,16 @@ untar into a directory named DIR; otherwise, signal an error." | |||
| 604 | (require 'tar-mode) | 606 | (require 'tar-mode) |
| 605 | (tar-mode) | 607 | (tar-mode) |
| 606 | ;; Make sure everything extracts into DIR. | 608 | ;; Make sure everything extracts into DIR. |
| 607 | (let ((regexp (concat "\\`" (regexp-quote dir) "/"))) | 609 | (let ((regexp (concat "\\`" (regexp-quote (expand-file-name dir)) "/")) |
| 610 | (case-fold-search (memq system-type '(windows-nt ms-dos cygwin)))) | ||
| 608 | (dolist (tar-data tar-parse-info) | 611 | (dolist (tar-data tar-parse-info) |
| 609 | (unless (string-match regexp (aref tar-data 2)) | 612 | (let ((name (expand-file-name (tar-header-name tar-data)))) |
| 610 | (error "Package does not untar cleanly into directory %s/" dir)))) | 613 | (or (string-match regexp name) |
| 614 | ;; Tarballs created by some utilities don't list | ||
| 615 | ;; directories with a trailing slash (Bug#13136). | ||
| 616 | (and (string-equal dir name) | ||
| 617 | (eq (tar-header-link-type tar-data) 5)) | ||
| 618 | (error "Package does not untar cleanly into directory %s/" dir))))) | ||
| 611 | (tar-untar-buffer)) | 619 | (tar-untar-buffer)) |
| 612 | 620 | ||
| 613 | (defun package-unpack (package version) | 621 | (defun package-unpack (package version) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index e17661095e4..6dca9e6cb7c 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-12-29 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * nnfolder.el (nnfolder-recursive-directory-files): New function. | ||
| 4 | (nnfolder-generate-active-file): Make this function work with recursive | ||
| 5 | folder names. | ||
| 6 | |||
| 1 | 2012-12-27 Lars Ingebrigtsen <larsi@gnus.org> | 7 | 2012-12-27 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * nntp.el (nntp-open-connection): Use HELP as the capability command | 9 | * nntp.el (nntp-open-connection): Use HELP as the capability command |
diff --git a/lisp/gnus/nnfolder.el b/lisp/gnus/nnfolder.el index e93bd7f43e0..ae9e551c93a 100644 --- a/lisp/gnus/nnfolder.el +++ b/lisp/gnus/nnfolder.el | |||
| @@ -1004,6 +1004,28 @@ deleted. Point is left where the deleted region was." | |||
| 1004 | (nnfolder-save-nov)) | 1004 | (nnfolder-save-nov)) |
| 1005 | (current-buffer)))))) | 1005 | (current-buffer)))))) |
| 1006 | 1006 | ||
| 1007 | (defun nnfolder-recursive-directory-files (dir prefix) | ||
| 1008 | (let ((files nil)) | ||
| 1009 | (dolist (file (directory-files dir)) | ||
| 1010 | (cond | ||
| 1011 | ((or (file-symlink-p (expand-file-name file dir)) | ||
| 1012 | (member file '("." ".."))) | ||
| 1013 | ;; Ignore | ||
| 1014 | ) | ||
| 1015 | ((file-directory-p (expand-file-name file dir)) | ||
| 1016 | (setq files (nconc (nnfolder-recursive-directory-files | ||
| 1017 | (expand-file-name file dir) | ||
| 1018 | (if prefix | ||
| 1019 | (concat prefix "." (directory-file-name file)) | ||
| 1020 | (file-name-nondirectory file))) | ||
| 1021 | files))) | ||
| 1022 | ((file-regular-p (expand-file-name file dir)) | ||
| 1023 | (push (if prefix | ||
| 1024 | (concat prefix "." file) | ||
| 1025 | file) | ||
| 1026 | files)))) | ||
| 1027 | files)) | ||
| 1028 | |||
| 1007 | ;;;###autoload | 1029 | ;;;###autoload |
| 1008 | (defun nnfolder-generate-active-file () | 1030 | (defun nnfolder-generate-active-file () |
| 1009 | "Look for mbox folders in the nnfolder directory and make them into groups. | 1031 | "Look for mbox folders in the nnfolder directory and make them into groups. |
| @@ -1020,10 +1042,13 @@ This command does not work if you use short group names." | |||
| 1020 | (when (not (message-mail-file-mbox-p file)) | 1042 | (when (not (message-mail-file-mbox-p file)) |
| 1021 | (ignore-errors | 1043 | (ignore-errors |
| 1022 | (delete-file file))))) | 1044 | (delete-file file))))) |
| 1023 | (dolist (file (directory-files nnfolder-directory)) | 1045 | (dolist (file (if nnmail-use-long-file-names |
| 1046 | (directory-files nnfolder-directory) | ||
| 1047 | (nnfolder-recursive-directory-files | ||
| 1048 | nnfolder-directory nil))) | ||
| 1024 | (when (and (not (backup-file-name-p file)) | 1049 | (when (and (not (backup-file-name-p file)) |
| 1025 | (message-mail-file-mbox-p | 1050 | (message-mail-file-mbox-p |
| 1026 | (nnheader-concat nnfolder-directory file))) | 1051 | (nnfolder-group-pathname file))) |
| 1027 | (let ((oldgroup (assoc file nnfolder-group-alist))) | 1052 | (let ((oldgroup (assoc file nnfolder-group-alist))) |
| 1028 | (if oldgroup | 1053 | (if oldgroup |
| 1029 | (nnheader-message 5 "Refreshing group %s..." file) | 1054 | (nnheader-message 5 "Refreshing group %s..." file) |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index ec35cc59b26..096b53c6cab 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4622,7 +4622,7 @@ With prefix argument N moves forward N messages with these labels. | |||
| 4622 | 4622 | ||
| 4623 | ;;;*** | 4623 | ;;;*** |
| 4624 | 4624 | ||
| 4625 | ;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "f1937f85a1258de8880a089fa5ae5621") | 4625 | ;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "c106528cab2def0306822563a9083967") |
| 4626 | ;;; Generated autoloads from rmailmm.el | 4626 | ;;; Generated autoloads from rmailmm.el |
| 4627 | 4627 | ||
| 4628 | (autoload 'rmail-mime "rmailmm" "\ | 4628 | (autoload 'rmail-mime "rmailmm" "\ |
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index 11bccd59765..a9bbe6c2da3 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el | |||
| @@ -1368,8 +1368,8 @@ This is the usual value of `rmail-insert-mime-forwarded-message-function'." | |||
| 1368 | (let ((message-buffer | 1368 | (let ((message-buffer |
| 1369 | (with-current-buffer forward-buffer | 1369 | (with-current-buffer forward-buffer |
| 1370 | (if rmail-buffer-swapped | 1370 | (if rmail-buffer-swapped |
| 1371 | forward-buffer | 1371 | rmail-view-buffer |
| 1372 | rmail-view-buffer)))) | 1372 | forward-buffer)))) |
| 1373 | (save-restriction | 1373 | (save-restriction |
| 1374 | (narrow-to-region (point) (point)) | 1374 | (narrow-to-region (point) (point)) |
| 1375 | (message-forward-make-body-mime message-buffer)))) | 1375 | (message-forward-make-body-mime message-buffer)))) |
diff --git a/lisp/net/mairix.el b/lisp/net/mairix.el index f85983e6e9f..50cc2ed3dc3 100644 --- a/lisp/net/mairix.el +++ b/lisp/net/mairix.el | |||
| @@ -222,14 +222,12 @@ Currently there are 'threads and 'flags.") | |||
| 222 | 222 | ||
| 223 | ;;; RMail | 223 | ;;; RMail |
| 224 | 224 | ||
| 225 | ;; Display function: | 225 | (declare-function rmail-summary-displayed "rmail" ()) |
| 226 | (autoload 'rmail "rmail") | 226 | (declare-function rmail-summary "rmailsum" ()) ; autoloaded in rmail |
| 227 | (autoload 'rmail-summary-displayed "rmail") | ||
| 228 | (autoload 'rmail-summary "rmailsum") | ||
| 229 | (defvar rmail-buffer) | ||
| 230 | 227 | ||
| 231 | (defun mairix-rmail-display (folder) | 228 | (defun mairix-rmail-display (folder) |
| 232 | "Display mbox file FOLDER with RMail." | 229 | "Display mbox file FOLDER with RMail." |
| 230 | (require 'rmail) | ||
| 233 | (let (show-summary) | 231 | (let (show-summary) |
| 234 | ;; If it exists, select existing RMail window | 232 | ;; If it exists, select existing RMail window |
| 235 | (when (and (boundp 'rmail-buffer) | 233 | (when (and (boundp 'rmail-buffer) |
| @@ -249,6 +247,8 @@ Currently there are 'threads and 'flags.") | |||
| 249 | (when show-summary | 247 | (when show-summary |
| 250 | (rmail-summary)))) | 248 | (rmail-summary)))) |
| 251 | 249 | ||
| 250 | (defvar rmail-buffer) | ||
| 251 | |||
| 252 | ;; Fetching mail header field: | 252 | ;; Fetching mail header field: |
| 253 | (defun mairix-rmail-fetch-field (field) | 253 | (defun mairix-rmail-fetch-field (field) |
| 254 | "Get mail header FIELD for current message using RMail." | 254 | "Get mail header FIELD for current message using RMail." |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index ebc377c08c8..e46b32c85a5 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -1458,7 +1458,9 @@ and gid of the corresponding user is taken. Both parameters must be integers." | |||
| 1458 | ;; working with su(do)? when it is needed, so it shall succeed in | 1458 | ;; working with su(do)? when it is needed, so it shall succeed in |
| 1459 | ;; the majority of cases. | 1459 | ;; the majority of cases. |
| 1460 | ;; Don't modify `last-coding-system-used' by accident. | 1460 | ;; Don't modify `last-coding-system-used' by accident. |
| 1461 | (let ((last-coding-system-used last-coding-system-used)) | 1461 | (let ((last-coding-system-used last-coding-system-used) |
| 1462 | (uid (and (numberp uid) (round uid))) | ||
| 1463 | (gid (and (numberp gid) (round gid)))) | ||
| 1462 | (if (file-remote-p filename) | 1464 | (if (file-remote-p filename) |
| 1463 | (with-parsed-tramp-file-name filename nil | 1465 | (with-parsed-tramp-file-name filename nil |
| 1464 | (if (and (zerop (user-uid)) (tramp-local-host-p v)) | 1466 | (if (and (zerop (user-uid)) (tramp-local-host-p v)) |
| @@ -1530,10 +1532,11 @@ and gid of the corresponding user is taken. Both parameters must be integers." | |||
| 1530 | (if (stringp (nth 3 context)) | 1532 | (if (stringp (nth 3 context)) |
| 1531 | (format "--range=%s" (nth 3 context)) "") | 1533 | (format "--range=%s" (nth 3 context)) "") |
| 1532 | (tramp-shell-quote-argument localname)))) | 1534 | (tramp-shell-quote-argument localname)))) |
| 1533 | (tramp-set-file-property v localname "file-selinux-context" context) | 1535 | (progn |
| 1534 | (tramp-set-file-property v localname "file-selinux-context" 'undef))) | 1536 | (tramp-set-file-property v localname "file-selinux-context" context) |
| 1535 | ;; We always return nil. | 1537 | t) |
| 1536 | nil) | 1538 | (tramp-set-file-property v localname "file-selinux-context" 'undef) |
| 1539 | nil))) | ||
| 1537 | 1540 | ||
| 1538 | (defun tramp-remote-acl-p (vec) | 1541 | (defun tramp-remote-acl-p (vec) |
| 1539 | "Check, whether ACL is enabled on the remote host." | 1542 | "Check, whether ACL is enabled on the remote host." |
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index f97d4620b97..af1e36350f5 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el | |||
| @@ -230,7 +230,7 @@ See `tramp-actions-before-shell' for more info.") | |||
| 230 | (rename-file . tramp-smb-handle-rename-file) | 230 | (rename-file . tramp-smb-handle-rename-file) |
| 231 | (set-file-acl . ignore) | 231 | (set-file-acl . ignore) |
| 232 | (set-file-modes . tramp-smb-handle-set-file-modes) | 232 | (set-file-modes . tramp-smb-handle-set-file-modes) |
| 233 | ;; `set-file-selinux-context' performed by default handler. | 233 | (set-file-selinux-context . ignore) |
| 234 | (set-file-times . ignore) | 234 | (set-file-times . ignore) |
| 235 | (set-visited-file-modtime . ignore) | 235 | (set-visited-file-modtime . ignore) |
| 236 | (shell-command . tramp-handle-shell-command) | 236 | (shell-command . tramp-handle-shell-command) |
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index ce3fd523b88..e2b5437228d 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -4583,12 +4583,7 @@ | |||
| 4583 | (org-set-autofill-regexps): Add previous function to | 4583 | (org-set-autofill-regexps): Add previous function to |
| 4584 | `fill-nobreak-predicate'. | 4584 | `fill-nobreak-predicate'. |
| 4585 | 4585 | ||
| 4586 | 2012-04-01 Vitalie Spinu <spinuvit@gmail.com> | 4586 | 2012-04-01 Vitalie Spinu <spinuvit@gmail.com> (tiny change) |
| 4587 | |||
| 4588 | * ob-R.el (org-babel-R-evaluate-session): Inhibit R evaluation | ||
| 4589 | visibility regardless of local user customization. | ||
| 4590 | |||
| 4591 | 2012-04-01 Vitalie Spinu <spinuvit@gmail.com> | ||
| 4592 | 4587 | ||
| 4593 | * ob-R.el (org-babel-R-evaluate-session): Inhibit R evaluation | 4588 | * ob-R.el (org-babel-R-evaluate-session): Inhibit R evaluation |
| 4594 | visibility regardless of local user customization. | 4589 | visibility regardless of local user customization. |