aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2020-01-03 07:50:15 -0800
committerGlenn Morris2020-01-03 07:50:15 -0800
commitfa7148fd5ac7c10c32a1cdcf57ade55bc3be8718 (patch)
tree18f9bc1b56ea13026d5b3f40bcd3be9d0f39d634 /lisp
parent2ab5bc323b374bb8385e8032db1ccd08ac36bb84 (diff)
parent06364316e0998d6906b8a42d54102c5de4a54990 (diff)
downloademacs-fa7148fd5ac7c10c32a1cdcf57ade55bc3be8718.tar.gz
emacs-fa7148fd5ac7c10c32a1cdcf57ade55bc3be8718.zip
Merge from origin/emacs-27
06364316e0 (origin/emacs-27) * lisp/net/tramp.el (tramp-file-local-na... d3884f50e0 Adapt commentary in Tramp persistency file 2d82f5a44e Change Tramp version to 2.4.3.27.1 09b65707cc ; * src/dispnew.c (adjust_glyph_matrix): Fix last change. 37f9182b68 Fix redisplay when mode-line-format changes mode-line's he... 1420906b81 * src/fileio.c (Fwrite_region): Improve the doc string. 01dfcb7c87 Fix removal of frame decorations on Windows (Bug#38705)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/frame.el3
-rw-r--r--lisp/net/tramp-cache.el2
-rw-r--r--lisp/net/tramp.el19
-rw-r--r--lisp/net/trampver.el7
4 files changed, 27 insertions, 4 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index c533e5a23fb..16ee7580f89 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -2725,6 +2725,9 @@ See also `toggle-frame-maximized'."
2725 line-prefix 2725 line-prefix
2726 wrap-prefix 2726 wrap-prefix
2727 truncate-lines 2727 truncate-lines
2728 mode-line-format
2729 header-line-format
2730 tab-line-format
2728 display-line-numbers 2731 display-line-numbers
2729 display-line-numbers-width 2732 display-line-numbers-width
2730 display-line-numbers-current-absolute 2733 display-line-numbers-current-absolute
diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el
index d4f6aa00263..b81a1a23d5f 100644
--- a/lisp/net/tramp-cache.el
+++ b/lisp/net/tramp-cache.el
@@ -474,7 +474,7 @@ used to cache connection properties of the local machine."
474 tramp-persistency-file-name)) 474 tramp-persistency-file-name))
475 (error "\n")) 475 (error "\n"))
476 ";; Tramp connection history. Don't change this file.\n" 476 ";; Tramp connection history. Don't change this file.\n"
477 ";; You can delete it, forcing Tramp to reapply the checks.\n\n" 477 ";; Run `M-x tramp-cleanup-all-connections' instead.\n\n"
478 (with-output-to-string 478 (with-output-to-string
479 (pp (read (format "(%s)" (tramp-cache-print cache))))))))))) 479 (pp (read (format "(%s)" (tramp-cache-print cache)))))))))))
480 480
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 1e52fae49f0..85330e98aa2 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1329,6 +1329,25 @@ entry does not exist, return nil."
1329 (string-match-p tramp-file-name-regexp name) 1329 (string-match-p tramp-file-name-regexp name)
1330 t)) 1330 t))
1331 1331
1332;; This function bypasses the file name handler approach. It is NOT
1333;; recommended to use it in any package if not absolutely necessary,
1334;; because it won't work for remote file names not supported by Tramp.
1335;; However, it is more performant than `file-local-name', and might be
1336;; useful where performance matters, like in operations over a bulk
1337;; list of file names.
1338(defun tramp-file-local-name (name)
1339 "Return the local name component of NAME.
1340This function removes from NAME the specification of the remote
1341host and the method of accessing the host, leaving only the part
1342that identifies NAME locally on the remote system. NAME must be
1343a string that matches `tramp-file-name-regexp'. The returned
1344file name can be used directly as argument of ‘process-file’,
1345‘start-file-process’, or ‘shell-command’."
1346 (save-match-data
1347 (and (tramp-tramp-file-p name)
1348 (string-match (nth 0 tramp-file-name-structure) name)
1349 (match-string (nth 4 tramp-file-name-structure) name))))
1350
1332(defun tramp-find-method (method user host) 1351(defun tramp-find-method (method user host)
1333 "Return the right method string to use depending on USER and HOST. 1352 "Return the right method string to use depending on USER and HOST.
1334This is METHOD, if non-nil. Otherwise, do a lookup in 1353This is METHOD, if non-nil. Otherwise, do a lookup in
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el
index e5f628d8537..dacdd44102f 100644
--- a/lisp/net/trampver.el
+++ b/lisp/net/trampver.el
@@ -39,7 +39,7 @@
39(defvar inhibit-message) 39(defvar inhibit-message)
40 40
41;;;###tramp-autoload 41;;;###tramp-autoload
42(defconst tramp-version "2.4.3" 42(defconst tramp-version "2.4.3.27.1"
43 "This version of Tramp.") 43 "This version of Tramp.")
44 44
45;;;###tramp-autoload 45;;;###tramp-autoload
@@ -73,7 +73,7 @@
73;; Check for Emacs version. 73;; Check for Emacs version.
74(let ((x (if (not (string-lessp emacs-version "24.4")) 74(let ((x (if (not (string-lessp emacs-version "24.4"))
75 "ok" 75 "ok"
76 (format "Tramp 2.4.3 is not fit for %s" 76 (format "Tramp 2.4.3.27.1 is not fit for %s"
77 (replace-regexp-in-string "\n" "" (emacs-version)))))) 77 (replace-regexp-in-string "\n" "" (emacs-version))))))
78 (unless (string-equal "ok" x) (error "%s" x))) 78 (unless (string-equal "ok" x) (error "%s" x)))
79 79
@@ -92,7 +92,8 @@
92 ("2.2.13.25.1" . "25.1") ("2.2.13.25.2" . "25.2") 92 ("2.2.13.25.1" . "25.1") ("2.2.13.25.2" . "25.2")
93 ("2.2.13.25.2" . "25.3") 93 ("2.2.13.25.2" . "25.3")
94 ("2.3.3" . "26.1") ("2.3.3.26.1" . "26.1") ("2.3.5.26.2" . "26.2") 94 ("2.3.3" . "26.1") ("2.3.3.26.1" . "26.1") ("2.3.5.26.2" . "26.2")
95 ("2.3.5.26.3" . "26.3"))) 95 ("2.3.5.26.3" . "26.3")
96 ("2.4.3.27.1" . "27.1")))
96 97
97(add-hook 'tramp-unload-hook 98(add-hook 'tramp-unload-hook
98 (lambda () 99 (lambda ()