diff options
| author | Kai Großjohann | 2002-08-03 17:04:43 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2002-08-03 17:04:43 +0000 |
| commit | fa32e96a13de1dc2e111180bb3c8982b254d7784 (patch) | |
| tree | cd8e63dbaf6aa85e9f6f448ca7c656a43430ed58 | |
| parent | 6fb453e1eae944a3864aa522efe9b7fa9b67fc02 (diff) | |
| download | emacs-fa32e96a13de1dc2e111180bb3c8982b254d7784.tar.gz emacs-fa32e96a13de1dc2e111180bb3c8982b254d7784.zip | |
Version 2.0.7.
(tramp-perl-encode-with-module, tramp-perl-decode-with-module)
(tramp-perl-encode, tramp-perl-decode): Escape `%' characters
because of `format' and say so in the docstring.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 20 |
2 files changed, 19 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 630e4a40ae6..14f2c91ee14 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2002-08-03 Kai Gro,b_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> | ||
| 2 | |||
| 3 | * net/tramp.el: Version 2.0.7. | ||
| 4 | (tramp-perl-encode-with-module, tramp-perl-decode-with-module) | ||
| 5 | (tramp-perl-encode, tramp-perl-decode): Escape `%' characters | ||
| 6 | because of `format' and say so in the docstring. | ||
| 7 | |||
| 1 | 2002-08-03 Glenn Morris <gmorris@ast.cam.ac.uk> | 8 | 2002-08-03 Glenn Morris <gmorris@ast.cam.ac.uk> |
| 2 | 9 | ||
| 3 | * progmodes/f90.el (f90-font-lock-keywords-1): Fix highlighting of | 10 | * progmodes/f90.el (f90-font-lock-keywords-1): Fix highlighting of |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index e6a13a07489..6dfe7a7ec9c 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -72,7 +72,7 @@ | |||
| 72 | ;; In the Tramp CVS repository, the version numer is auto-frobbed from | 72 | ;; In the Tramp CVS repository, the version numer is auto-frobbed from |
| 73 | ;; the Makefile, so you should edit the top-level Makefile to change | 73 | ;; the Makefile, so you should edit the top-level Makefile to change |
| 74 | ;; the version number. | 74 | ;; the version number. |
| 75 | (defconst tramp-version "2.0.6" | 75 | (defconst tramp-version "2.0.7" |
| 76 | "This version of tramp.") | 76 | "This version of tramp.") |
| 77 | 77 | ||
| 78 | (defconst tramp-bug-report-address "tramp-devel@mail.freesoftware.fsf.org" | 78 | (defconst tramp-bug-report-address "tramp-devel@mail.freesoftware.fsf.org" |
| @@ -1244,6 +1244,7 @@ on the remote file system.") | |||
| 1244 | "perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)'" | 1244 | "perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)'" |
| 1245 | "Perl program to use for encoding a file. | 1245 | "Perl program to use for encoding a file. |
| 1246 | Escape sequence %s is replaced with name of Perl binary. | 1246 | Escape sequence %s is replaced with name of Perl binary. |
| 1247 | This string is passwd to `format', so percent characters need to be doubled. | ||
| 1247 | This implementation requires the MIME::Base64 Perl module to be installed | 1248 | This implementation requires the MIME::Base64 Perl module to be installed |
| 1248 | on the remote host.") | 1249 | on the remote host.") |
| 1249 | 1250 | ||
| @@ -1251,6 +1252,7 @@ on the remote host.") | |||
| 1251 | "perl -MMIME::Base64 -0777 -ne 'print decode_base64($_)'" | 1252 | "perl -MMIME::Base64 -0777 -ne 'print decode_base64($_)'" |
| 1252 | "Perl program to use for decoding a file. | 1253 | "Perl program to use for decoding a file. |
| 1253 | Escape sequence %s is replaced with name of Perl binary. | 1254 | Escape sequence %s is replaced with name of Perl binary. |
| 1255 | This string is passwd to `format', so percent characters need to be doubled. | ||
| 1254 | This implementation requires the MIME::Base64 Perl module to be installed | 1256 | This implementation requires the MIME::Base64 Perl module to be installed |
| 1255 | on the remote host.") | 1257 | on the remote host.") |
| 1256 | 1258 | ||
| @@ -1260,7 +1262,7 @@ on the remote host.") | |||
| 1260 | # Copyright (C) 2002 Free Software Foundation, Inc. | 1262 | # Copyright (C) 2002 Free Software Foundation, Inc. |
| 1261 | use strict; | 1263 | use strict; |
| 1262 | 1264 | ||
| 1263 | my %trans = do { | 1265 | my %%trans = do { |
| 1264 | my $i = 0; | 1266 | my $i = 0; |
| 1265 | map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)} | 1267 | map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)} |
| 1266 | split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/); | 1268 | split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/); |
| @@ -1277,7 +1279,7 @@ while (my $data = <STDIN>) { | |||
| 1277 | 1279 | ||
| 1278 | # Only for the last chunk, and only if did not fill the last three-byte packet | 1280 | # Only for the last chunk, and only if did not fill the last three-byte packet |
| 1279 | if (eof) { | 1281 | if (eof) { |
| 1280 | my $mod = length($data) % 3; | 1282 | my $mod = length($data) %% 3; |
| 1281 | $pad = q(=) x (3 - $mod) if $mod; | 1283 | $pad = q(=) x (3 - $mod) if $mod; |
| 1282 | } | 1284 | } |
| 1283 | 1285 | ||
| @@ -1293,7 +1295,8 @@ while (my $data = <STDIN>) { | |||
| 1293 | } | 1295 | } |
| 1294 | '" | 1296 | '" |
| 1295 | "Perl program to use for encoding a file. | 1297 | "Perl program to use for encoding a file. |
| 1296 | Escape sequence %s is replaced with name of Perl binary.") | 1298 | Escape sequence %s is replaced with name of Perl binary. |
| 1299 | This string is passwd to `format', so percent characters need to be doubled.") | ||
| 1297 | 1300 | ||
| 1298 | (defvar tramp-perl-decode | 1301 | (defvar tramp-perl-decode |
| 1299 | "%s -e ' | 1302 | "%s -e ' |
| @@ -1301,13 +1304,13 @@ Escape sequence %s is replaced with name of Perl binary.") | |||
| 1301 | # Copyright (C) 2002 Free Software Foundation, Inc. | 1304 | # Copyright (C) 2002 Free Software Foundation, Inc. |
| 1302 | use strict; | 1305 | use strict; |
| 1303 | 1306 | ||
| 1304 | my %trans = do { | 1307 | my %%trans = do { |
| 1305 | my $i = 0; | 1308 | my $i = 0; |
| 1306 | map {($_, sprintf(q(%06b), $i++))} | 1309 | map {($_, sprintf(q(%%06b), $i++))} |
| 1307 | split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/) | 1310 | split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/) |
| 1308 | }; | 1311 | }; |
| 1309 | 1312 | ||
| 1310 | my %bytes = map {(unpack(q(B8), chr $_), chr $_)} 0 .. 255; | 1313 | my %%bytes = map {(unpack(q(B8), chr $_), chr $_)} 0 .. 255; |
| 1311 | 1314 | ||
| 1312 | binmode(\*STDOUT); | 1315 | binmode(\*STDOUT); |
| 1313 | 1316 | ||
| @@ -1336,7 +1339,8 @@ while (my $data = <STDIN>) { | |||
| 1336 | } | 1339 | } |
| 1337 | '" | 1340 | '" |
| 1338 | "Perl program to use for decoding a file. | 1341 | "Perl program to use for decoding a file. |
| 1339 | Escape sequence %s is replaced with name of Perl binary.") | 1342 | Escape sequence %s is replaced with name of Perl binary. |
| 1343 | This string is passwd to `format', so percent characters need to be doubled.") | ||
| 1340 | 1344 | ||
| 1341 | ; These values conform to `file-attributes' from XEmacs 21.2. | 1345 | ; These values conform to `file-attributes' from XEmacs 21.2. |
| 1342 | ; GNU Emacs and other tools not checked. | 1346 | ; GNU Emacs and other tools not checked. |