From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Patch to allow -nw to runemacs on w32 Date: Wed, 15 Nov 2006 17:37:40 +0100 Message-ID: References: <455B19B9.9000004@student.lu.se> <455B3098.4010307@gnu.org> <455B337C.60502@student.lu.se> <455B3C6C.9020206@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163608695 21626 80.91.229.2 (15 Nov 2006 16:38:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2006 16:38:15 +0000 (UTC) Cc: Emacs Devel , Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 15 17:38:10 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GkNlw-0005gQ-Il for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 17:38:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkNlv-0002QF-Qb for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 11:37:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkNlg-0002L7-5W for emacs-devel@gnu.org; Wed, 15 Nov 2006 11:37:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkNle-0002Gj-Dw for emacs-devel@gnu.org; Wed, 15 Nov 2006 11:37:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkNle-0002GU-A6 for emacs-devel@gnu.org; Wed, 15 Nov 2006 11:37:42 -0500 Original-Received: from [64.233.166.176] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GkNle-00008C-2W for emacs-devel@gnu.org; Wed, 15 Nov 2006 11:37:42 -0500 Original-Received: by py-out-1112.google.com with SMTP id p76so144153pyb for ; Wed, 15 Nov 2006 08:37:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KiSnK/YOIeEr9TPQgtHm/ik3vXAUobYXSfLdDNbye9bMwbu1IXy5XkSkXhUMNO48DLMqfMmQnauhc4o+vWcdq24nyJ0rH0hybT8cE+AGwc5IMr7mf864jskaQh2gUMNtFfHb9EXEGeot8ECpcsvUauUb7cMqCUEgYXTBsNZBHa0= Original-Received: by 10.35.113.12 with SMTP id q12mr3819721pym.1163608660933; Wed, 15 Nov 2006 08:37:40 -0800 (PST) Original-Received: by 10.35.95.18 with HTTP; Wed, 15 Nov 2006 08:37:40 -0800 (PST) Original-To: "Lennart Borgman" In-Reply-To: <455B3C6C.9020206@student.lu.se> Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62344 Archived-At: On 11/15/06, Lennart Borgman wrote: > You are right. I also just get a hidden emacs.exe if I add -Q. Though I > would not say a sometimes hidden, sometimes crashing emacs is very good ;-) Hmm, I don't remember saying anything about -Q. runemacs does not crash for me with -nw; it just runs hidden. > And at a second thought it seems natural that runemacs creates a new > window - even if it is a console window. That is what runemacs is for, > isn't it? No. Its only purpose is running Emacs *without* a console window. It says it so in the comment at the very beginning: Simple program to start Emacs with its console window hidden. This program is provided purely for convenience, since most users will use Emacs in windowing (GUI) mode, and will not want to have an extra console window lying around. > That is by intent. I handle this argument like the other arguments that > are handled in runemacs. The other arguments are not for Emacs. It does not know what to do with "-high", "-low" or "-wait"; so runemacs processes the argument and skips it. But -nw is to be understood both by runemacs (if your patch applies) and Emacs, so processing it only if it's the first is a no-no (or you'd have to document it). > Or, it is much easier doing it that way. Yeah. As H. L. Mencken said: "For every problem, there is a solution that is simple, neat, and wrong." :) /L/e/k/t/u