From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60465 invoked by alias); 2 Nov 2017 17:41:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 60455 invoked by uid 89); 2 Nov 2017 17:41:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=forth, vertical, expandable X-HELO: mail-wm0-f51.google.com Received: from mail-wm0-f51.google.com (HELO mail-wm0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Nov 2017 17:41:44 +0000 Received: by mail-wm0-f51.google.com with SMTP id p75so524870wmg.3 for ; Thu, 02 Nov 2017 10:41:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lxx8mZCKMpuHn+4kVM8wa6PZA6PRbgHVaR7yvEKXqHA=; b=XPnyd3MmnP97b47pDveE7QxdxnIsMdqmUPhnEeIbGIkYdqb/jaHDNqB7fY2j3++nN5 7HDtHqd/NtDOMhymYT6dK09YuNLX8dkIhzGm+ZYkZu6wMk/LZrK4r1xg9JQUG5PUAhLW MmHEdxGlfFSwqcurcT6YMc6+Eo2SbsortyyXHstG2Mia8mENg9tGFwCVQnHbD7dqQuNP UuBjW/Gm4mTqOSxDOokOoBwPh6o5MN+gCiR+G6zq4wKYLUVYryRe1o80FpwbZmTDwcTR aVzxpAtWCLz8Z6A3lUJGP/9msfRGFpcmOncR3XJp1SQ9LCZaXSJSyYYZQD00ZrZhAFcD t0jQ== X-Gm-Message-State: AMCzsaVfuwsQ2vNbfJ0jfMZh5UxZdfPE6uciXj6+/JVGK9XIFwWJoV0T eQrCWS6zLUkFFUQr/nZdQkSQ5KqqGgMpCrhPiH0= X-Google-Smtp-Source: ABhQp+SFGFgSpA8ayYLko3LLTGaDGed6ov7ZxYs4XQw9IwWMQ85Uqd1LXo9FC+Q84A7SI8WSHsd5LIpAqGSusxToDc4= X-Received: by 10.80.231.145 with SMTP id b17mr5354830edn.94.1509644501870; Thu, 02 Nov 2017 10:41:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.161.229 with HTTP; Thu, 2 Nov 2017 10:41:40 -0700 (PDT) In-Reply-To: <7af22489-3785-41da-b3b2-828bd2b24c5a@dronecode.org.uk> References: <9c416ff2-1d4b-988d-9161-30c17234d156@cornell.edu> <7af22489-3785-41da-b3b2-828bd2b24c5a@dronecode.org.uk> From: David Karr Date: Thu, 02 Nov 2017 17:41:00 -0000 Message-ID: Subject: Re: Proper way to run emacs from desktop To: Jon Turney Cc: The Cygwin Mailing List Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-11/txt/msg00042.txt.bz2 On Thu, Nov 2, 2017 at 9:29 AM, Jon Turney wrote: > On 01/11/2017 21:57, David Karr wrote: >> >> On Wed, Nov 1, 2017 at 12:57 PM, Ken Brown wrote: >>> >>> On 11/1/2017 1:08 PM, David Karr wrote: >>>> >>>> I install Cygwin every couple of years and then use it continuously >>>> without updates between those installations. I installed it on a new >>>> laptop today, and I'm trying to work through issues. >>>> >>>> The current issue is running Emacs from the desktop. >>>> >>>> I had a shortcut working for a long time that does the following: >>>> ------------- >>>> C:\cygwin64\bin\run2.exe --display 127.0.0.1:0.0 >>>> /usr/local/bin/emacs.xml >>>> ------------- > > > Just '--display :0.0' is probably better, as it won't stop working when the > Xserver is run without '-listen tcp'... Sounds like a good idea, but I noticed that this change produces a very odd side effect, and I've verified that going back makes it not happen. I've tested going back and forth multiple times, with repeatable results. Normally, when I start emacs, the window appears in a particular location, and with a particular height (and width, but I don't set that). I believe this is configured by the following lines in my .emacs file: ----------------- (set-frame-position (selected-frame) 0 0) (set-frame-height (selected-frame) 60) ----------------- Setting the frame height to 60 results in a window that spans most of the vertical space of my desktop. Curiously, when I remove the "127.0.0.1" from the "display" option, emacs starts up in the same location, but with about 2/3 of the expected window height. The window is easily expandable, but I'd rather it be the height that I have configured initially. Frankly, I find it hard to believe what I'm seeing, but I've gone back and forth multiple times, and it's completely repeatable. Could this be caused by something odd in my X resources tree? >>>> The "run2" application doesn't appear to exist. I checked my notes, >>>> and I can't tell whether I installed this from somewhere else the last >>>> time I did this. >>> >>> >>> Just install the run2 package. It's still available. >> >> >> Ok. I find the search facility in setup somewhat confusing. I >> couldn't find it before. I found it now, and I've installed it. > > > You can also search using e.g. > https://cygwin.com/cgi-bin2/package-grep.cgi?grep=run2.exe&arch=x86_64 > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple