From unknown Fri Sep 19 19:42:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26011: 26.0.50; tramp should respect large-file-warning-threshold Resent-From: Robert Marshall Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Mar 2017 14:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26011 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 26011@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14888975728941 (code B ref -1); Tue, 07 Mar 2017 14:40:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Mar 2017 14:39:32 +0000 Received: from localhost ([127.0.0.1]:43783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clGGx-0002K8-ST for submit@debbugs.gnu.org; Tue, 07 Mar 2017 09:39:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clGGw-0002Ju-8i for submit@debbugs.gnu.org; Tue, 07 Mar 2017 09:39:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clGGp-00078W-W0 for submit@debbugs.gnu.org; Tue, 07 Mar 2017 09:39:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60263) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clGGp-00078R-Sv for submit@debbugs.gnu.org; Tue, 07 Mar 2017 09:39:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clGGo-0000UF-IT for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2017 09:39:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clGGk-00076X-Jd for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2017 09:39:22 -0500 Received: from imap0.codethink.co.uk ([185.43.218.159]:38062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clGGk-00074S-Cj for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2017 09:39:18 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]) by imap0.codethink.co.uk with esmtps (Exim 4.84_2 #1 (Debian)) id 1clFz9-0005tK-2Q for ; Tue, 07 Mar 2017 14:21:10 +0000 Received: from 82-70-136-246.dsl.in-addr.zen.co.uk ([82.70.136.246] helo=ct-lt-579.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1clFz7-000635-T1 for ; Tue, 07 Mar 2017 14:21:06 +0000 From: Robert Marshall Date: Tue, 07 Mar 2017 14:21:05 +0000 Message-ID: <87pohtuq0e.fsf@ctlt579.codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) If from dired you attempt to copy a file to a tramp ssh dired (I have dired-dwim-target set to t) and that file is very large, emacs will pause for some time and eventually stop with: tramp-file-name-handler: Memory exhausted--use C-x s then exit and restart Emacs If tramp is going to open the file and it is large I think it should warn the user (respecting large-file-warning-threshold?) rather than going ahead without confirmation and erroring with an alarming message! Robert In GNU Emacs 26.0.50 (build 4, x86_64-unknown-linux-gnu, GTK+ Version 2.24.25) of 2017-03-06 built on ct-lt-579 Repository revision: 0fae08d0072f74d97ca70b91a4d46d8d28a03952 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.7 (jessie) Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix From unknown Fri Sep 19 19:42:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26011: 26.0.50; tramp should respect large-file-warning-threshold Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Mar 2017 16:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26011 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Robert Marshall Cc: 26011@debbugs.gnu.org Received: via spool by 26011-submit@debbugs.gnu.org id=B26011.148890585123011 (code B ref 26011); Tue, 07 Mar 2017 16:58:02 +0000 Received: (at 26011) by debbugs.gnu.org; 7 Mar 2017 16:57:31 +0000 Received: from localhost ([127.0.0.1]:44844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clIQU-0005z5-PD for submit@debbugs.gnu.org; Tue, 07 Mar 2017 11:57:30 -0500 Received: from mout.gmx.net ([212.227.17.22]:64151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clIQS-0005yo-6B for 26011@debbugs.gnu.org; Tue, 07 Mar 2017 11:57:29 -0500 Received: from detlef.gmx.de ([87.146.52.210]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MHso5-1ciHDP47Kv-003abt; Tue, 07 Mar 2017 17:57:19 +0100 From: Michael Albinus References: <87pohtuq0e.fsf@ctlt579.codethink.co.uk> Date: Tue, 07 Mar 2017 17:57:17 +0100 In-Reply-To: <87pohtuq0e.fsf@ctlt579.codethink.co.uk> (Robert Marshall's message of "Tue, 07 Mar 2017 14:21:05 +0000") Message-ID: <87y3whnhxu.fsf@detlef> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:HmOJ4ceOsa5W2G/A4fI5IQ6UcLJ/asz053ZFDWusSIcF7NpUF5f a1iGJqn/h7HXg0DQFF8WfN18/3WFlShGN0vSUtoBRk9qlYyqpmi3Gm3rsgqY8IFkPMvBXSy e5mpjTynD9Qu2bV7EWueoXBqgt/8bpBbD9Kwd/mgHkrcx7AXoijnCgURjOL9X4iGx6e7PJr nL8aT8vXSXyoN3kiAT5pg== X-UI-Out-Filterresults: notjunk:1;V01:K0:JmweedQDRqM=:fI+meQuZ/1OedzbvUtnVMU 4XRVuTQyRsT5+UWZy+jmsT9GYk7S3Tk2KqJCWpv3x1sZl6EbCC5ysXvzTOFezH70TbOOOgF07 8r1qQGvEpDTGPXI5uZjGeEkWphYB8NCoXKqbiSlHwjufk4xcmWdGX/ZkfoLwLeapoU0F8gH6b L0LM5myKwrQHgR1yZt3ooSfFGuYFibJi51V2HLQUoia5EnuxvNm1D+70P+iEtMNBDZEoqbbPi 4koeWL2e/od+cSnswr5v4nihsgFG7sCnU2Fpn7Vv7mDmodiLwPCetKovUvpvg1E6dCAqhDI3v FAwK4JEQsSzhTzZyzd/5mo6JIVGcj9w0K4EAdpWVtvv7LD0xZDprEmQti/zBz+KAI/rp7cMCE v4EVqq8siP4XIkHmCnCGoKLKAo0okm0QRbti433CCqEwCLd/1eGTazKc4sP2ADPMUzmS9VjIW ezyMR0bl5Lk1uuKDdxyjPliR8EziQCsSbD57UlOsAdLsT2txuzcGL6uhyll2bVBE3HZg828nU iT6CgIlgayCIiIPTP1SIZlrLkUp5X1ODQx9NDPaubjGW/8qhUGU0jd25q47mk6RjdTiWPyW73 S/cvBxCYuVjFdBiJZddViisGxQy1QoEnsz7QjKqBgufWM3VOAWPx0pfbYFcP59/oY+sdLadjH qWinaEFr6shNUiMswD+KYGNwQhmJGy9WYxY9oTD041yn+JWgafqT9D0zAk/WN2fc1YPg2PkQE 6apJuuzC3yiBqN+WIoHSOaxliEKzf65Y6K9o94R8htQu7GUfPxmGlAiZdzbjIlcZhHl6f9fOc 2M8lOo03n2mwCsxD8ZuTTUmuU7zp6u0YSCaPhsplmlzyScrobjZHh2PsD9u3QRAFm63F9pWmw 6/Z8Ele+1qTsY2HQq2mFqYaC2ul0NGg5E6WofeQiRGly+uHiUHYWC8zov89VI/rGDyvDOEwjy yIIQ4OpHq+gD2zflBV3SnNj17ERRn6BnReFr27a2UI2i06mxg2FjtrXDdXgRjSGNYQW92DDiN bt2Dz3VjcUMPuqJvO7YVB+jrK8F0Y1AaG4VCr9IMoRIGbxlGo0fwfyqMZKBMIfr0YA== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Robert Marshall writes: Hi Robert, > If from dired you attempt to copy a file to a tramp ssh dired (I have > dired-dwim-target set to t) and that file is very large, emacs will pause > for some time and eventually stop with: > > tramp-file-name-handler: Memory exhausted--use C-x s then exit and > restart Emacs > > If tramp is going to open the file and it is large I think it should > warn the user (respecting large-file-warning-threshold?) rather than > going ahead without confirmation and erroring with an alarming message! Well, this happens in case Tramp inserts the file into a temporary buffer. What about this patch: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el index 071ef79..8561962 100644 --- a/lisp/tramp-sh.el +++ b/lisp/tramp-sh.el @@ -2147,6 +2147,11 @@ file names." First arg OP is either `copy' or `rename' and indicates the operation. FILENAME is the source file, NEWNAME the target file. KEEP-DATE is non-nil if NEWNAME should have the same timestamp as FILENAME." + ;; Check, whether file is too large. Emacs checks in `insert-file-1' + ;; and `find-file-noselect', but that's not called here. + (abort-if-file-too-large + (tramp-compat-file-attribute-size (file-attributes (file-truename filename))) + (symbol-name op) filename) ;; We must disable multibyte, because binary data shall not be ;; converted. We don't want the target file to be compressed, so we ;; let-bind `jka-compr-inhibit' to t. `epa-file-handler' shall not --8<---------------cut here---------------end--------------->8--- > Robert Best regards, Michael. From unknown Fri Sep 19 19:42:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26011: 26.0.50; tramp should respect large-file-warning-threshold Resent-From: Robert Marshall Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Mar 2017 12:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26011 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 26011@debbugs.gnu.org Received: via spool by 26011-submit@debbugs.gnu.org id=B26011.148897722725337 (code B ref 26011); Wed, 08 Mar 2017 12:48:02 +0000 Received: (at 26011) by debbugs.gnu.org; 8 Mar 2017 12:47:07 +0000 Received: from localhost ([127.0.0.1]:45476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clazi-0006ab-Rz for submit@debbugs.gnu.org; Wed, 08 Mar 2017 07:47:07 -0500 Received: from imap0.codethink.co.uk ([185.43.218.159]:34073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clazh-0006a7-By for 26011@debbugs.gnu.org; Wed, 08 Mar 2017 07:47:06 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]) by imap0.codethink.co.uk with esmtps (Exim 4.84_2 #1 (Debian)) id 1claza-0000hX-Km; Wed, 08 Mar 2017 12:46:59 +0000 Received: from 82-70-136-246.dsl.in-addr.zen.co.uk ([82.70.136.246] helo=ct-lt-579.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1claza-0003kI-8B; Wed, 08 Mar 2017 12:46:58 +0000 From: Robert Marshall In-Reply-To: <87y3whnhxu.fsf@detlef> (Michael Albinus's message of "Tue, 07 Mar 2017 17:57:17 +0100") References: <87pohtuq0e.fsf@ctlt579.codethink.co.uk> <87y3whnhxu.fsf@detlef> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Date: Wed, 08 Mar 2017 12:46:57 +0000 Message-ID: <87efy8ue9q.fsf@ctlt579.codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Michael Albinus writes: > Robert Marshall writes: > > Hi Robert, > >> If from dired you attempt to copy a file to a tramp ssh dired (I have >> dired-dwim-target set to t) and that file is very large, emacs will pause >> for some time and eventually stop with: >> >> tramp-file-name-handler: Memory exhausted--use C-x s then exit and >> restart Emacs >> >> If tramp is going to open the file and it is large I think it should >> warn the user (respecting large-file-warning-threshold?) rather than >> going ahead without confirmation and erroring with an alarming message! > > Well, this happens in case Tramp inserts the file into a temporary > buffer. What about this patch: > > diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el > index 071ef79..8561962 100644 > --- a/lisp/tramp-sh.el > +++ b/lisp/tramp-sh.el > @@ -2147,6 +2147,11 @@ file names." > First arg OP is either `copy' or `rename' and indicates the operation. > FILENAME is the source file, NEWNAME the target file. > KEEP-DATE is non-nil if NEWNAME should have the same timestamp as FILENAME." > + ;; Check, whether file is too large. Emacs checks in `insert-file-1' > + ;; and `find-file-noselect', but that's not called here. > + (abort-if-file-too-large > + (tramp-compat-file-attribute-size (file-attributes (file-truename filename))) > + (symbol-name op) filename) > ;; We must disable multibyte, because binary data shall not be > ;; converted. We don't want the target file to be compressed, so we > ;; let-bind `jka-compr-inhibit' to t. `epa-file-handler' shall not > Yes that's better thank you, you still get the transient error if I continue (my file was 4Gig) but I guess it's too late to do anything else by the time it gets there Robert From unknown Fri Sep 19 19:42:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Robert Marshall Subject: bug#26011: closed (Re: bug#26011: 26.0.50; tramp should respect large-file-warning-threshold) Message-ID: References: <87mvcvoh9h.fsf@detlef> <87pohtuq0e.fsf@ctlt579.codethink.co.uk> X-Gnu-PR-Message: they-closed 26011 X-Gnu-PR-Package: emacs Reply-To: 26011@debbugs.gnu.org Date: Wed, 08 Mar 2017 16:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1488991202-21724-1" This is a multi-part message in MIME format... ------------=_1488991202-21724-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #26011: 26.0.50; tramp should respect large-file-warning-threshold which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 26011@debbugs.gnu.org. --=20 26011: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D26011 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1488991202-21724-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 26011-done) by debbugs.gnu.org; 8 Mar 2017 16:39:02 +0000 Received: from localhost ([127.0.0.1]:46526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clec8-0005co-TJ for submit@debbugs.gnu.org; Wed, 08 Mar 2017 11:39:02 -0500 Received: from mout.gmx.net ([212.227.15.15]:55023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clec6-0005cZ-SZ for 26011-done@debbugs.gnu.org; Wed, 08 Mar 2017 11:38:59 -0500 Received: from detlef.gmx.de ([87.146.48.232]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M1n4s-1bxosT3GyQ-00to3m; Wed, 08 Mar 2017 17:38:51 +0100 From: Michael Albinus To: Robert Marshall Subject: Re: bug#26011: 26.0.50; tramp should respect large-file-warning-threshold References: <87pohtuq0e.fsf@ctlt579.codethink.co.uk> <87y3whnhxu.fsf@detlef> <87efy8ue9q.fsf@ctlt579.codethink.co.uk> Date: Wed, 08 Mar 2017 17:38:50 +0100 In-Reply-To: <87efy8ue9q.fsf@ctlt579.codethink.co.uk> (Robert Marshall's message of "Wed, 08 Mar 2017 12:46:57 +0000") Message-ID: <87mvcvoh9h.fsf@detlef> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:OeS3sX3T9ca1ObTWY5rHGxZdyB4hWs3afS8hOBCvf3XR+2TAMHw Ga/zV38cbVHxuZeFqqSud6eapo50pFW23qz0NaKE2yw7b8by+bi0lnVx4CA0xRiGnQh12Hc 1FSfA9lxNpko3BYwnBN4Ykt+2DA8Gz3Vk5YgZx+d4LAnzRT327bO6bJVf/YwAzpVSLmz99h uGiSNpgrHCjrlccntnelw== X-UI-Out-Filterresults: notjunk:1;V01:K0:mj4L/wQU0HM=:aB/UQZsAcEYmaa3XhhIvxH cZ5K6VTtg7ShmvqUYAgNQNr2rcgyHjV4VXOY9fJyEzB2mIwTPoGeb4tIdTeTyIIqdjUXrcVb9 559lZmv+QYtO6xB7s3/cGU1IS3qZinj04fr18kcuvnIx+qzWymjiKDRGTgXx2gL3w6QFEow2Y mhcxPZlW0mkAFoK9kGIq2ZCdAHzLpAEg1hDUEIwbgtBrhPqnxj48v5LOP6BcBCPg2LhjeRu4+ Aom0IX7peSyxfI4pdmMlexePe2AkuhOzkdYqsxycXADwAr3sYQuzosk8zBNcnWhmeaRQzkFF3 OrhsK221IPoikCowxuH217GNblWDeUFYqanpnzNsq6HS3QeYux+H0K3yCRvt/HAVn2f4IC2Dd rnV8h62LYQrvtyBTd2CuHUFIi00eynRvzpUg/eP0IZ3Kg4m1JpfS7c1PL0cyCnw8C2+mphk4W B3iNUhzaZWA/QM+CLmsOP3IkhtBHkW9iMKpzbTwdpk1xyOIRWXsUO4Xk9aTPLacLZ0aLFM7kD /HIdxD4eA/SAcx9UGKxnxYZ1ni/+wczWiMcnQsxcg9xEyc7QK+EN7h4Ns0YGaQN4csCzGhRya Ws7kCfAIHcBaKqRYcJa0SN2A+PclZVVFJy0PMrVTqlIYp0+w0fpe6S5uIbxCU0ZEM+jOY5CaL DFaWl4XvOfUUZpeFxOnOJzMRukwBgy5CUnTOOaDf8SKAH1d+ZGqm7yxQ3RDa5nw+/+H1Qb705 LnSlIp26UdEj1+JBGnrxyw84yXC8AZt/3vlIEJuL4MnCIzg0m5F8E7q03z00N2OTRU5OBS3aV 5Fm0JX/ X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26011-done Cc: 26011-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Robert Marshall writes: Hi Robert, > Yes that's better thank you, you still get the transient error if I > continue (my file was 4Gig) but I guess it's too late to do anything > else by the time it gets there Once you confirm to copy/rename a huge file, its contents is loaded into a temporary buffer. And yes, if it's too large, memory is exhausted. There's nothing Tramp could know in advance, and prevent it. If you handle regularly such huge files, Tramp's "scp" method is superiour to "ssh". I've pushed the patch to both Emacs and Tramp repositories, closing the bug. > Robert Best regards, Michael. ------------=_1488991202-21724-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Mar 2017 14:39:32 +0000 Received: from localhost ([127.0.0.1]:43783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clGGx-0002K8-ST for submit@debbugs.gnu.org; Tue, 07 Mar 2017 09:39:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clGGw-0002Ju-8i for submit@debbugs.gnu.org; Tue, 07 Mar 2017 09:39:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clGGp-00078W-W0 for submit@debbugs.gnu.org; Tue, 07 Mar 2017 09:39:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60263) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clGGp-00078R-Sv for submit@debbugs.gnu.org; Tue, 07 Mar 2017 09:39:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clGGo-0000UF-IT for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2017 09:39:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clGGk-00076X-Jd for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2017 09:39:22 -0500 Received: from imap0.codethink.co.uk ([185.43.218.159]:38062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clGGk-00074S-Cj for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2017 09:39:18 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]) by imap0.codethink.co.uk with esmtps (Exim 4.84_2 #1 (Debian)) id 1clFz9-0005tK-2Q for ; Tue, 07 Mar 2017 14:21:10 +0000 Received: from 82-70-136-246.dsl.in-addr.zen.co.uk ([82.70.136.246] helo=ct-lt-579.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1clFz7-000635-T1 for ; Tue, 07 Mar 2017 14:21:06 +0000 From: Robert Marshall To: bug-gnu-emacs@gnu.org Subject: 26.0.50; tramp should respect large-file-warning-threshold Date: Tue, 07 Mar 2017 14:21:05 +0000 Message-ID: <87pohtuq0e.fsf@ctlt579.codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) If from dired you attempt to copy a file to a tramp ssh dired (I have dired-dwim-target set to t) and that file is very large, emacs will pause for some time and eventually stop with: tramp-file-name-handler: Memory exhausted--use C-x s then exit and restart Emacs If tramp is going to open the file and it is large I think it should warn the user (respecting large-file-warning-threshold?) rather than going ahead without confirmation and erroring with an alarming message! Robert In GNU Emacs 26.0.50 (build 4, x86_64-unknown-linux-gnu, GTK+ Version 2.24.25) of 2017-03-06 built on ct-lt-579 Repository revision: 0fae08d0072f74d97ca70b91a4d46d8d28a03952 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.7 (jessie) Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix ------------=_1488991202-21724-1--