From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: VC and too long command lines Date: Thu, 21 Jul 2011 16:16:17 +0200 Message-ID: <4E2834B1.9060508@dogan.se> References: <4E2821C0.5090409@dogan.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311257828 27024 80.91.229.12 (21 Jul 2011 14:17:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 14:17:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 21 16:17:02 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qju3h-0006YJ-Im for ged-emacs-devel@m.gmane.org; Thu, 21 Jul 2011 16:17:01 +0200 Original-Received: from localhost ([::1]:40486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qju3g-0005dU-LA for ged-emacs-devel@m.gmane.org; Thu, 21 Jul 2011 10:17:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qju3a-0005dG-Tt for emacs-devel@gnu.org; Thu, 21 Jul 2011 10:16:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qju3W-0000DY-Nt for emacs-devel@gnu.org; Thu, 21 Jul 2011 10:16:54 -0400 Original-Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:46783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qju3W-0000DP-Ex for emacs-devel@gnu.org; Thu, 21 Jul 2011 10:16:50 -0400 Original-Received: from c80-216-105-155.bredband.comhem.se ([80.216.105.155]:65486 helo=[192.168.0.10]) by ch-smtp05.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1Qju39-00069n-HL for emacs-devel@gnu.org; Thu, 21 Jul 2011 16:16:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: X-Originating-IP: 80.216.105.155 X-Scan-Result: No virus found in message 1Qju39-00069n-HL. X-Scan-Signature: ch-smtp05.sth.basefarm.net 1Qju39-00069n-HL 45b590a0fd78cda17dcbfbca1012a1c9 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.76.153.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142187 On 2011-07-21 16:12, Eli Zaretskii wrote: >> Date: Thu, 21 Jul 2011 14:55:28 +0200 >> From: Deniz Dogan >> >> Of course, the command line was simply too long (approximately 66,000 >> characters) for my operating system to handle (Windows 7 64-bit). >> >> What should Emacs do when this happens? >> >> I think the most appropriate thing would be to add some functionality >> which determines the maximum command line length for the current system >> and if the call exceeds that length, tell the user about it. Another >> way would be to e.g. divide the commit into several smaller commits and >> appending something along the lines of "(commit N of M)" to each commit >> message. > > The former. The latter is impossible, because to know how to break a > command into several pieces you need to understand the semantics of > that command. E.g., all pieces but the first might need some > additional command-line switch to tell the program to append the > results to the previous ones, rather than overwriting them. As > another example, you'd need to use ">>" instead of">" in all but the > first command. Etc., etc. > So we agree then! Do you happen to know of any reliable way to determine the maximum command line length of the user system?