emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/android 76a8347e43b: Merge remote-tracking branch 'origin/master


From: Po Lu
Subject: feature/android 76a8347e43b: Merge remote-tracking branch 'origin/master' into feature/android
Date: Mon, 3 Apr 2023 19:50:05 -0400 (EDT)

branch: feature/android
commit 76a8347e43b6c57f032469cc14764aebd02e6ff3
Merge: 4a7facac1bb bd5c1d1cbbd
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Merge remote-tracking branch 'origin/master' into feature/android
---
 lisp/gnus/gnus-sum.el          |   2 +-
 lisp/net/tramp-smb.el          | 126 ++++++++++++++++++++---------------------
 lisp/progmodes/ruby-ts-mode.el |   3 +
 test/lisp/auth-source-tests.el |  15 ++---
 test/lisp/net/tramp-tests.el   |   5 +-
 5 files changed, 78 insertions(+), 73 deletions(-)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 9a632922deb..16a85cefcc7 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -10265,7 +10265,7 @@ ACTION can be either `move' (the default), `crosspost' 
or `copy'."
               article gnus-newsgroup-name (current-buffer) t)))
 
          ;; run the move/copy/crosspost/respool hook
-         (set (intern "gnus-current-move-article") (cdr art-group))
+          (setq gnus-current-move-article (cdr art-group))
          (run-hook-with-args 'gnus-summary-article-move-hook
                              action
                              (gnus-data-header (gnus-data-find article))
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index add230e2720..13d5e17a9ff 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -800,32 +800,31 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are 
completely ignored."
             (append args (list (tramp-unquote-shell-quote-argument localname)
                                (concat "2>" (tramp-get-remote-null-device 
v)))))
 
-           (unwind-protect
-               (with-tramp-saved-connection-properties
-                   v '("process-name" "process-buffer")
-                 (with-temp-buffer
-                   ;; Set the transfer process properties.
-                   (tramp-set-connection-property
-                    v "process-name" (buffer-name (current-buffer)))
-                   (tramp-set-connection-property
-                    v "process-buffer" (current-buffer))
-
-                   ;; Use an asynchronous process.  By this, password
-                   ;; can be handled.
-                   (let ((p (apply
-                             #'start-process
-                             (tramp-get-connection-name v)
-                             (tramp-get-connection-buffer v)
-                             tramp-smb-acl-program args)))
-
-                     (tramp-message
-                      v 6 "%s" (string-join (process-command p) " "))
-                     (process-put p 'tramp-vector v)
-                     (process-put p 'adjust-window-size-function #'ignore)
-                     (set-process-query-on-exit-flag p nil)
-                     (tramp-process-actions p v nil tramp-smb-actions-get-acl)
-                     (when (> (point-max) (point-min))
-                       (substring-no-properties (buffer-string)))))))))))))
+           (with-tramp-saved-connection-properties
+               v '("process-name" "process-buffer")
+             (with-temp-buffer
+               ;; Set the transfer process properties.
+               (tramp-set-connection-property
+                v "process-name" (buffer-name (current-buffer)))
+               (tramp-set-connection-property
+                v "process-buffer" (current-buffer))
+
+               ;; Use an asynchronous process.  By this, password
+               ;; can be handled.
+               (let ((p (apply
+                         #'start-process
+                         (tramp-get-connection-name v)
+                         (tramp-get-connection-buffer v)
+                         tramp-smb-acl-program args)))
+
+                 (tramp-message
+                  v 6 "%s" (string-join (process-command p) " "))
+                 (process-put p 'tramp-vector v)
+                 (process-put p 'adjust-window-size-function #'ignore)
+                 (set-process-query-on-exit-flag p nil)
+                 (tramp-process-actions p v nil tramp-smb-actions-get-acl)
+                 (when (> (point-max) (point-min))
+                   (substring-no-properties (buffer-string))))))))))))
 
 (defun tramp-smb-handle-file-attributes (filename &optional id-format)
   "Like `file-attributes' for Tramp files."
@@ -1401,44 +1400,43 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are 
completely ignored."
                              "&&" "echo" "tramp_exit_status" "0"
                              "||" "echo" "tramp_exit_status" "1")))
 
-         (unwind-protect
-             (with-tramp-saved-connection-properties
-                 v '("process-name" "process-buffer")
-               (with-temp-buffer
-                 ;; Set the transfer process properties.
-                 (tramp-set-connection-property
-                  v "process-name" (buffer-name (current-buffer)))
-                 (tramp-set-connection-property
-                  v "process-buffer" (current-buffer))
-
-                 ;; Use an asynchronous process.  By this, password
-                 ;; can be handled.
-                 (let ((p (apply
-                           #'start-process
-                           (tramp-get-connection-name v)
-                           (tramp-get-connection-buffer v)
-                           tramp-smb-acl-program args)))
-
-                   (tramp-message
-                    v 6 "%s" (string-join (process-command p) " "))
-                   (process-put p 'tramp-vector v)
-                   (process-put p 'adjust-window-size-function #'ignore)
-                   (set-process-query-on-exit-flag p nil)
-                   (tramp-process-actions p v nil tramp-smb-actions-set-acl)
-                   ;; This is meant for traces, and returning from
-                   ;; the function.  No error is propagated outside,
-                   ;; due to the `ignore-errors' closure.
-                   (unless
-                       (tramp-search-regexp (rx "tramp_exit_status " (+ 
digit)))
-                     (tramp-error
-                      v 'file-error
-                      "Couldn't find exit status of `%s'"
-                      tramp-smb-acl-program))
-                   (skip-chars-forward "^ ")
-                   (when (zerop (read (current-buffer)))
-                     ;; Success.
-                     (tramp-set-file-property v localname "file-acl" 
acl-string)
-                     t))))))))))
+         (with-tramp-saved-connection-properties
+             v '("process-name" "process-buffer")
+           (with-temp-buffer
+             ;; Set the transfer process properties.
+             (tramp-set-connection-property
+              v "process-name" (buffer-name (current-buffer)))
+             (tramp-set-connection-property
+              v "process-buffer" (current-buffer))
+
+             ;; Use an asynchronous process.  By this, password
+             ;; can be handled.
+             (let ((p (apply
+                       #'start-process
+                       (tramp-get-connection-name v)
+                       (tramp-get-connection-buffer v)
+                       tramp-smb-acl-program args)))
+
+               (tramp-message
+                v 6 "%s" (string-join (process-command p) " "))
+               (process-put p 'tramp-vector v)
+               (process-put p 'adjust-window-size-function #'ignore)
+               (set-process-query-on-exit-flag p nil)
+               (tramp-process-actions p v nil tramp-smb-actions-set-acl)
+               ;; This is meant for traces, and returning from
+               ;; the function.  No error is propagated outside,
+               ;; due to the `ignore-errors' closure.
+               (unless
+                   (tramp-search-regexp (rx "tramp_exit_status " (+ digit)))
+                 (tramp-error
+                  v 'file-error
+                  "Couldn't find exit status of `%s'"
+                  tramp-smb-acl-program))
+               (skip-chars-forward "^ ")
+               (when (zerop (read (current-buffer)))
+                 ;; Success.
+                 (tramp-set-file-property v localname "file-acl" acl-string)
+                 t)))))))))
 
 (defun tramp-smb-handle-set-file-modes (filename mode &optional flag)
   "Like `set-file-modes' for Tramp files."
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index 1a085b669ee..262d989cd44 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -1138,6 +1138,9 @@ leading double colon is not added."
                       "heredoc_body"
                       "regex"
                       "argument_list"
+                      "interpolation"
+                      "instance_variable"
+                      "global_variable"
                       )
                   eol))
 
diff --git a/test/lisp/auth-source-tests.el b/test/lisp/auth-source-tests.el
index 6f832725754..ef915e5fc5b 100644
--- a/test/lisp/auth-source-tests.el
+++ b/test/lisp/auth-source-tests.el
@@ -341,13 +341,14 @@
               (should
                (string-equal (plist-get auth-info :user) (user-login-name)))
               (should (string-equal (plist-get auth-info :host) host))
-              (should (string-equal auth-passwd passwd)))))
-
-      ;; Cleanup.
-      ;; Should use `auth-source-delete' when implemented for :secrets backend.
-      (secrets-delete-item
-       "session"
-       (format "%s@%s" (plist-get auth-info :user) (plist-get auth-info 
:host))))))
+              (should (string-equal auth-passwd passwd))))
+
+        ;; Cleanup.
+        ;; Should use `auth-source-delete' when implemented for :secrets 
backend.
+        (secrets-delete-item
+         "session"
+         (format
+          "%s@%s" (plist-get auth-info :user) (plist-get auth-info :host)))))))
 
 (ert-deftest auth-source-test-netrc-create-secret ()
   (ert-with-temp-file netrc-file
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 835763e0237..3a9f5e03000 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -6414,7 +6414,10 @@ INPUT, if non-nil, is a string sent to the process."
                (if quoted #'file-name-quote #'identity)
                (expand-file-name
                 (format "%s~" (file-name-nondirectory tmp-name1))
-                ert-remote-temporary-file-directory)))))))
+                ert-remote-temporary-file-directory))))))
+
+       ;; Cleanup.  Nothing to do yet.
+       nil)
 
       (unwind-protect
          ;; Map `backup-directory-alist'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]