From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Michael Kleehammer" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1849: Windows 7 Taskbar Support Date: Sat, 10 Jan 2009 12:33:36 -0600 Message-ID: Reply-To: Michael Kleehammer , 1849@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231617110 27221 80.91.229.12 (10 Jan 2009 19:51:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2009 19:51:50 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 10 20:53:01 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LLjtE-00045y-4r for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2009 20:53:00 +0100 Original-Received: from localhost ([127.0.0.1]:54065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLjry-000227-7j for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2009 14:51:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLinx-0004cA-RM for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2009 13:43:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLinw-0004bw-3m for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2009 13:43:28 -0500 Original-Received: from [199.232.76.173] (port=41727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLinv-0004bt-UT for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2009 13:43:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40783) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LLinv-0007EE-AI for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2009 13:43:27 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0AIhPvg014388; Sat, 10 Jan 2009 10:43:25 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0AIe4Hd013326; Sat, 10 Jan 2009 10:40:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Michael Kleehammer" Original-Sender: mkleehammer@gmail.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 10 Jan 2009 18:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1849 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123161242511972 (code B ref -1); Sat, 10 Jan 2009 18:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 10 Jan 2009 18:33:45 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0AIXfSe011964 for ; Sat, 10 Jan 2009 10:33:43 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:38278) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LLidF-0007nP-1u for emacs-pretest-bug@gnu.org; Sat, 10 Jan 2009 13:32:25 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LLieR-00065F-OG for emacs-pretest-bug@gnu.org; Sat, 10 Jan 2009 13:33:40 -0500 Original-Received: from rv-out-0708.google.com ([209.85.198.248]:52604) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LLieR-00064e-5Z for emacs-pretest-bug@gnu.org; Sat, 10 Jan 2009 13:33:39 -0500 Original-Received: by rv-out-0708.google.com with SMTP id k29so11959882rvb.6 for ; Sat, 10 Jan 2009 10:33:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=jUPxBhTIgAGHREeh4vAkTrOCRyB29CE5F+ZQzytsuGU=; b=i2RV6IjfEOQz3OAYTqHOL16jFXUh9CkVaNZBMjIWNNyqKbux1X0v5LZQxqZHSw8mpw YUzj6pcCyYeew8QYsauBcJwZ03jfMHBKwg5hlN+gtFkONAwjZRH4iy5OzjvTVNxde99t 7z3/rFSIfeXR1j6BJ38FXyu/pALnY/ZQV+lmk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=r3swHzDBCrb5lgDm+yLd4gUF6TDLP0LGhp7UQm00Cesg4GqfFATHKgrI3Z0VuKcq5H oIQakpo5WIoj/Dho6vK7k6OQcRbFYXGhQ/UFDrTHXUBy7Jcl6nte15So6BUTSaxKUy5C OaYBtxj2awxjfY73Gs/yG/uZKTxU6IZw8Vb5c= Original-Received: by 10.141.128.19 with SMTP id f19mr13476601rvn.9.1231612416882; Sat, 10 Jan 2009 10:33:36 -0800 (PST) Original-Received: by 10.140.125.11 with HTTP; Sat, 10 Jan 2009 10:33:36 -0800 (PST) Content-Disposition: inline X-Google-Sender-Auth: b35049c4740090f5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 10 Jan 2009 13:43:28 -0500 X-Mailman-Approved-At: Sat, 10 Jan 2009 14:51:38 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23979 gmane.emacs.pretest.bugs:23669 Archived-At: To work well with the upcoming Windows 7, the Windows version of emacs will need to start from emacs.exe without allocating the extra console window. This means it will need to be linked as a GUI program instead of a console program. In previous versions of Windows, the Quick Launch shortcuts were small icons that launched programs. The programs were then allocated a new button in the taskbar. Windows 7 consolidates these: the shortcuts are also the taskbar buttons. Similar to the Mac OS/X dock, when a program that has a shortcut is run, it is not allocated a new taskbar button - instead, the shortcut is highlighed differently. This obviously assumes that the program consists of a single main executable that the shortcut launches. Unfortunately, emacs on Windows is a console program which creates an unwanted "DOS" window. To run as a GUI, a special GUI launcher named runemacs.exe is used which hides the console window. To launch emacs, the user will need to pin runemacs.exe. When launched, it starts emacs.exe and immediately exits, causing two problems: (1) the shortcut does not stay highlighted to indicate the program is running and (2) a 2nd taskbar button is created for emacs.exe. If a user pins emacs.exe, it will always create an extra console window, so that is not an option either. The proper "fix" is to compile the Windows version of emacs.exe as a GUI program, not a console program, which is a very simple change. It would eliminate the ability to run emacs on Windows in a console window, however. First, this is probably acceptable to 99% of users. In fact, I don't know of anyone that runs emacs on Windows in a console, but I'm sure someone does. (Remember, there is no SSH or the like; we're talking Windows here ;) If needed, the makefile could be updated to build either or both. I think it would be simple to compile the program as a GUI program but have the -nw flag allocate a console when needed.