From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Patch to allow -nw to runemacs on w32 Date: Wed, 15 Nov 2006 22:20:37 +0100 Message-ID: <455B84A5.6020701@student.lu.se> 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 1163625701 20885 80.91.229.2 (15 Nov 2006 21:21:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2006 21:21:41 +0000 (UTC) Cc: Emacs Devel , Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 15 22:21:35 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 1GkSBr-0002tY-5c for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 22:21:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkSBp-0007ev-Ti for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 16:21:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkSBd-0007bR-Da for emacs-devel@gnu.org; Wed, 15 Nov 2006 16:20:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkSBY-0007SK-Hq for emacs-devel@gnu.org; Wed, 15 Nov 2006 16:20:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkSBY-0007SD-Bz for emacs-devel@gnu.org; Wed, 15 Nov 2006 16:20:44 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GkSBX-0005Qs-Dm; Wed, 15 Nov 2006 16:20:43 -0500 Original-Received: from [83.254.145.24] (port=62773 helo=[192.168.123.121]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GkSBS-00006L-3j; Wed, 15 Nov 2006 22:20:41 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Juanma Barranquero In-Reply-To: X-Scan-Result: No virus found in message 1GkSBS-00006L-3j. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GkSBS-00006L-3j 967a7bb1c483bb85e0e0ada739aa2d18 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:62352 Archived-At: Juanma Barranquero 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. No you did not. I just wanted to say it seems to be something in my startup files. > >> 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: Oh, I did not read that. But what it does from a user perspective is to create a new visible window running Emacs. It would not be any big surprise if it did the same with a console window in my opinion. > 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). Yes, that is right. But it is quite normal for the options to come first. See for example grep: Usage: grep [OPTION]... PATTERN [FILE] ... I think most users will put the options first even if emacs does not require it. > Yeah. As H. L. Mencken said: "For every problem, there is a solution > that is simple, neat, and wrong." :) I believe that is a surprisingly simple, net and right solution to something.