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 16:55:12 +0100 Message-ID: References: <455B19B9.9000004@student.lu.se> <455B3098.4010307@gnu.org> <455B337C.60502@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 1163606186 11468 80.91.229.2 (15 Nov 2006 15:56:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2006 15:56:26 +0000 (UTC) Cc: Emacs Devel , Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 15 16:56:16 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 1GkN7B-0004PQ-M0 for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 16:55:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkN7A-0003vz-Vi for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 10:55:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkN6b-0003ZB-CT for emacs-devel@gnu.org; Wed, 15 Nov 2006 10:55:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkN6Z-0003Xu-GL for emacs-devel@gnu.org; Wed, 15 Nov 2006 10:55:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkN6Y-0003Xk-Um for emacs-devel@gnu.org; Wed, 15 Nov 2006 10:55:15 -0500 Original-Received: from [64.233.162.200] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GkN6Y-0007C1-RY for emacs-devel@gnu.org; Wed, 15 Nov 2006 10:55:15 -0500 Original-Received: by nz-out-0102.google.com with SMTP id r28so71368nza for ; Wed, 15 Nov 2006 07:55:14 -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=XcjkuVSQjZ4DlQAA/T7+2iE6QtYtkypq8KfE20IoDfZCtZyTsjY8oE3lAk3c6lwZHs3xcCo1ZBi05m/+Us2LeJNxsR86ROAgNEJDZ06k2sa2S6JfdlH3qt5pPe771WHh/saDgMnvJFESiknGU697vH8CBAzyd168ZzdpMA1QFAo= Original-Received: by 10.35.41.14 with SMTP id t14mr3507240pyj.1163606112935; Wed, 15 Nov 2006 07:55:12 -0800 (PST) Original-Received: by 10.35.95.18 with HTTP; Wed, 15 Nov 2006 07:55:12 -0800 (PST) Original-To: "Lennart Borgman" In-Reply-To: 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:62340 Archived-At: On 11/15/06, Juanma Barranquero wrote: > BTW, the same happens with your patch if -nw is not the first > argument, for example: > > runemacs -xrm "Emacs.Background:red" -nw Which, I'd add, it's not easy to fix. You can strstr (command, "-nw") for example, but you will never be sure the user isn't doing runemacs --eval "(setq my-nw 7)" etc. To be sure that you're getting the right -nw you'd have to do a more sophisticate command-line parsing (detecting quotes, arguments with spaces, etc.). I don't think is worth the hassle. But it is your time. Though I'm with Jason that it is weird to "runemacs -nw". /L/e/k/t/u