diff options
| author | Joakim Verona | 2013-01-25 00:03:33 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-01-25 00:03:33 +0100 |
| commit | 25520166464418c67a8b4ae9fb7174c949e40d6b (patch) | |
| tree | 140513b5d8e79d0005f7fcda2aadb22a3ac4f210 /lisp | |
| parent | e4963dc9795ed5a3eb60e73943b9d799107e0f13 (diff) | |
| parent | 3d4147bae3f03502acb3d12a5c9747129cc0c6aa (diff) | |
| download | emacs-25520166464418c67a8b4ae9fb7174c949e40d6b.tar.gz emacs-25520166464418c67a8b4ae9fb7174c949e40d6b.zip | |
auto upstream
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/doc-view.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 31 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 7 | ||||
| -rw-r--r-- | lisp/paren.el | 9 |
5 files changed, 44 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d783443f528..5efa7810ad2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2013-01-24 Aaron Ecay <aaronecay@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * paren.el (show-paren-function): Make sure to set 'priority and | ||
| 4 | 'face only if the overlay does exist. | ||
| 5 | |||
| 6 | 2013-01-24 Michael Albinus <michael.albinus@gmx.de> | ||
| 7 | |||
| 8 | * net/tramp.el (tramp-tramp-file-p): Check, whether NAME is unibyte. | ||
| 9 | |||
| 10 | * net/tramp-sh.el (tramp-sh-handle-set-file-acl): Do not suppress | ||
| 11 | basic attributes. | ||
| 12 | (tramp-sh-handle-set-file-acl): Improve error checking. | ||
| 13 | |||
| 14 | 2013-01-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 15 | |||
| 16 | * doc-view.el (doc-view-display): Force mode line update until all | ||
| 17 | document is converted. Suggested by Stefan Monnier (Bug#13164). | ||
| 18 | |||
| 1 | 2013-01-23 Bastien Guerry <bzg@gnu.org> | 19 | 2013-01-23 Bastien Guerry <bzg@gnu.org> |
| 2 | 20 | ||
| 3 | * paren.el (show-paren-function): Make sure an overlay exists | 21 | * paren.el (show-paren-function): Make sure an overlay exists |
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index fa54eef828d..30aa3a09bf2 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -1265,6 +1265,8 @@ have the page we want to view." | |||
| 1265 | "[0-9]+") | 1265 | "[0-9]+") |
| 1266 | t) | 1266 | t) |
| 1267 | 'doc-view-sort)) | 1267 | 'doc-view-sort)) |
| 1268 | (unless (eq (length prev-pages) (length doc-view-current-files)) | ||
| 1269 | (force-mode-line-update)) | ||
| 1268 | (dolist (win (or (get-buffer-window-list buffer nil t) | 1270 | (dolist (win (or (get-buffer-window-list buffer nil t) |
| 1269 | (list t))) | 1271 | (list t))) |
| 1270 | (let* ((page (doc-view-current-page win)) | 1272 | (let* ((page (doc-view-current-page win)) |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 743c8dbe0f9..21c747967af 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -1549,7 +1549,7 @@ be non-negative integers." | |||
| 1549 | (when (and (tramp-remote-acl-p v) | 1549 | (when (and (tramp-remote-acl-p v) |
| 1550 | (tramp-send-command-and-check | 1550 | (tramp-send-command-and-check |
| 1551 | v (format | 1551 | v (format |
| 1552 | "getfacl -acs %s 2>/dev/null" | 1552 | "getfacl -ac %s 2>/dev/null" |
| 1553 | (tramp-shell-quote-argument localname)))) | 1553 | (tramp-shell-quote-argument localname)))) |
| 1554 | (with-current-buffer (tramp-get-connection-buffer v) | 1554 | (with-current-buffer (tramp-get-connection-buffer v) |
| 1555 | (goto-char (point-max)) | 1555 | (goto-char (point-max)) |
| @@ -1560,21 +1560,20 @@ be non-negative integers." | |||
| 1560 | 1560 | ||
| 1561 | (defun tramp-sh-handle-set-file-acl (filename acl-string) | 1561 | (defun tramp-sh-handle-set-file-acl (filename acl-string) |
| 1562 | "Like `set-file-acl' for Tramp files." | 1562 | "Like `set-file-acl' for Tramp files." |
| 1563 | (with-parsed-tramp-file-name filename nil | 1563 | (with-parsed-tramp-file-name (expand-file-name filename) nil |
| 1564 | (when (tramp-remote-acl-p v) | 1564 | (if (and (stringp acl-string) (tramp-remote-acl-p v) |
| 1565 | (condition-case nil | 1565 | (progn |
| 1566 | (when (stringp acl-string) | 1566 | (tramp-send-command |
| 1567 | (tramp-set-file-property v localname "file-acl" acl-string) | 1567 | v (format "setfacl --set-file=- %s <<'EOF'\n%s\nEOF\n" |
| 1568 | (dolist (line (split-string acl-string nil t) t) | 1568 | (tramp-shell-quote-argument localname) acl-string)) |
| 1569 | (unless (tramp-send-command-and-check | 1569 | (tramp-send-command-and-check v nil))) |
| 1570 | v (format | 1570 | ;; Success. |
| 1571 | "setfacl -m %s %s" | 1571 | (progn |
| 1572 | line (tramp-shell-quote-argument localname))) | 1572 | (tramp-set-file-property v localname "file-acl" acl-string) |
| 1573 | (error nil)))) | 1573 | t) |
| 1574 | ;; In case of errors, we return `nil'. | 1574 | ;; In case of errors, we return `nil'. |
| 1575 | (error | 1575 | (tramp-set-file-property v localname "file-acl-string" 'undef) |
| 1576 | (tramp-set-file-property v localname "file-acl" 'undef) | 1576 | nil))) |
| 1577 | nil))))) | ||
| 1578 | 1577 | ||
| 1579 | ;; Simple functions using the `test' command. | 1578 | ;; Simple functions using the `test' command. |
| 1580 | 1579 | ||
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 69e82de3f7f..045304cbc4f 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1140,9 +1140,12 @@ If the `tramp-methods' entry does not exist, return nil." | |||
| 1140 | 1140 | ||
| 1141 | ;;;###tramp-autoload | 1141 | ;;;###tramp-autoload |
| 1142 | (defun tramp-tramp-file-p (name) | 1142 | (defun tramp-tramp-file-p (name) |
| 1143 | "Return t if NAME is a string with Tramp file name syntax." | 1143 | "Return t if NAME is a string with Tramp file name syntax. |
| 1144 | It checks also, whether NAME is unibyte encoded." | ||
| 1144 | (save-match-data | 1145 | (save-match-data |
| 1145 | (and (stringp name) (string-match tramp-file-name-regexp name)))) | 1146 | (and (stringp name) |
| 1147 | (string-equal name (string-as-unibyte name)) | ||
| 1148 | (string-match tramp-file-name-regexp name)))) | ||
| 1146 | 1149 | ||
| 1147 | (defun tramp-find-method (method user host) | 1150 | (defun tramp-find-method (method user host) |
| 1148 | "Return the right method string to use. | 1151 | "Return the right method string to use. |
diff --git a/lisp/paren.el b/lisp/paren.el index bf2238d4907..a9d3be60622 100644 --- a/lisp/paren.el +++ b/lisp/paren.el | |||
| @@ -259,11 +259,10 @@ matching parenthesis is highlighted in `show-paren-style' after | |||
| 259 | (- (point) dir))))) | 259 | (- (point) dir))))) |
| 260 | (if show-paren-overlay | 260 | (if show-paren-overlay |
| 261 | (move-overlay show-paren-overlay from to (current-buffer)) | 261 | (move-overlay show-paren-overlay from to (current-buffer)) |
| 262 | (setq show-paren-overlay (make-overlay from to nil t))))) | 262 | (setq show-paren-overlay (make-overlay from to nil t)))) |
| 263 | ;; | 263 | ;; Always set the overlay face, since it varies. |
| 264 | ;; Always set the overlay face, since it varies. | 264 | (overlay-put show-paren-overlay 'priority show-paren-priority) |
| 265 | (overlay-put show-paren-overlay 'priority show-paren-priority) | 265 | (overlay-put show-paren-overlay 'face face)))) |
| 266 | (overlay-put show-paren-overlay 'face face))) | ||
| 267 | ;; show-paren-mode is nil in this buffer. | 266 | ;; show-paren-mode is nil in this buffer. |
| 268 | (and show-paren-overlay | 267 | (and show-paren-overlay |
| 269 | (delete-overlay show-paren-overlay)) | 268 | (delete-overlay show-paren-overlay)) |