all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8268: Windows Emacs Console persists while running running emacs.exe.
@ 2011-03-17  3:42 Nicholas "Indy" Ray
  2011-03-17  5:14 ` Juanma Barranquero
  2011-03-17  5:39 ` Eli Zaretskii
  0 siblings, 2 replies; 25+ messages in thread
From: Nicholas "Indy" Ray @ 2011-03-17  3:42 UTC (permalink / raw)
  To: 8268

[-- Attachment #1: Type: text/plain, Size: 955 bytes --]

This seems to be related to bug #1849, but perhaps never properly fixed.

Anyways, when opening emacs from Emacs.exe, which is difficult to not do in
Windows 7 with pinning to the task bar, Emacs will open with an unneeded
console window that cannot be destroyed.

This seems likely due to the fact that Emacs is spawned as a console
application when run in this manner.  However, I think there is a simple fix
that doesn't cause problems when the program is run as a console app.

By calling the FreeConsole win32 function when Emacs initializes it's GUI
this should kill any os spawned console windows, had they not been opened
separately.

See:
http://msdn.microsoft.com/en-us/library/ms683150%28v=vs.85%29.aspx

I've used this function to great effect in other applications, and am
confident it'd work. I'd have fixed it and created a patch myself, but I've
spent the last few hours trying to get Emacs to build on this weird setup I
have here.

Indy

[-- Attachment #2: Type: text/html, Size: 1224 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  3:42 bug#8268: Windows Emacs Console persists while running running emacs.exe Nicholas "Indy" Ray
@ 2011-03-17  5:14 ` Juanma Barranquero
  2011-03-17  5:19   ` Nicholas "Indy" Ray
  2011-03-17  5:39 ` Eli Zaretskii
  1 sibling, 1 reply; 25+ messages in thread
From: Juanma Barranquero @ 2011-03-17  5:14 UTC (permalink / raw)
  To: Nicholas Indy Ray; +Cc: 8268

> Anyways, when opening emacs from Emacs.exe

Why do you run emacs.exe, and not runemacs.exe?

> which is difficult to not do in
> Windows 7 with pinning to the task bar

What do you mean? Do you have any trouble pinning runemacs.exe to the
Start menu or taskbar?

    Juanma





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  5:14 ` Juanma Barranquero
@ 2011-03-17  5:19   ` Nicholas "Indy" Ray
  2011-03-17  6:31     ` Jason Rumney
  0 siblings, 1 reply; 25+ messages in thread
From: Nicholas "Indy" Ray @ 2011-03-17  5:19 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 8268

> Why do you run emacs.exe, and not runemacs.exe?

> What do you mean? Do you have any trouble pinning runemacs.exe to the
> Start menu or taskbar?

When I pin runemacs.exe to the taskbar and run it, it loads emacs
which creates another icon on my taskbar, It seems impossible to
currently have the same pin'd icon load up and run emacs under the
same icon without creating the console window.

Ideally, I should be able to have one pinned icon on the taskbar, and
when clicking it it should load emacs without the console window. This
seems impossible.

Indy





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  3:42 bug#8268: Windows Emacs Console persists while running running emacs.exe Nicholas "Indy" Ray
  2011-03-17  5:14 ` Juanma Barranquero
@ 2011-03-17  5:39 ` Eli Zaretskii
  2011-03-17  5:42   ` Nicholas "Indy" Ray
  1 sibling, 1 reply; 25+ messages in thread
From: Eli Zaretskii @ 2011-03-17  5:39 UTC (permalink / raw)
  To: Nicholas "Indy" Ray; +Cc: 8268

> Date: Wed, 16 Mar 2011 20:42:56 -0700
> From: "Nicholas \"Indy\" Ray" <arelius@gmail.com>
> Cc: 
> 
> This seems to be related to bug #1849, but perhaps never properly fixed.
> 
> Anyways, when opening emacs from Emacs.exe, which is difficult to not do in
> Windows 7 with pinning to the task bar, Emacs will open with an unneeded
> console window that cannot be destroyed.

We have runemacs.exe for this very purpose.  Why don't you use it?
Doesn't it work on Windows 7?





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  5:39 ` Eli Zaretskii
@ 2011-03-17  5:42   ` Nicholas "Indy" Ray
  2011-03-17 12:48     ` Juanma Barranquero
  0 siblings, 1 reply; 25+ messages in thread
From: Nicholas "Indy" Ray @ 2011-03-17  5:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8268

Again, runemacs.exe doesn't interact properly with the task bar.
runemacs.exe and emacs.exe act as separate icons on the task bar. If
runemacs.exe is pinned, then while emacs.exe is running it's you get
two taskbar icons dedicated to emacs.

Thanks,
Indy

On Wed, Mar 16, 2011 at 10:39 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Wed, 16 Mar 2011 20:42:56 -0700
>> From: "Nicholas \"Indy\" Ray" <arelius@gmail.com>
>> Cc:
>>
>> This seems to be related to bug #1849, but perhaps never properly fixed.
>>
>> Anyways, when opening emacs from Emacs.exe, which is difficult to not do in
>> Windows 7 with pinning to the task bar, Emacs will open with an unneeded
>> console window that cannot be destroyed.
>
> We have runemacs.exe for this very purpose.  Why don't you use it?
> Doesn't it work on Windows 7?
>





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  5:19   ` Nicholas "Indy" Ray
@ 2011-03-17  6:31     ` Jason Rumney
  2011-03-17  7:19       ` Jan D.
  2011-03-17 19:30       ` Juanma Barranquero
  0 siblings, 2 replies; 25+ messages in thread
From: Jason Rumney @ 2011-03-17  6:31 UTC (permalink / raw)
  To: bug-gnu-emacs

On 17/03/2011 13:19, Nicholas "Indy" Ray wrote:

> When I pin runemacs.exe to the taskbar and run it, it loads emacs
> which creates another icon on my taskbar, It seems impossible to
> currently have the same pin'd icon load up and run emacs under the
> same icon without creating the console window.
>
> Ideally, I should be able to have one pinned icon on the taskbar, and
> when clicking it it should load emacs without the console window. This
> seems impossible.
>    

What version of Emacs are you using?  runemacs, emacs and emacsclient 
should all be treated as the same program by Windows 7 taskbar since 
23.2 if the MSDN documentation is correct.  Perhaps you can help us to 
debug this if you are already using a more recent version.





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  6:31     ` Jason Rumney
@ 2011-03-17  7:19       ` Jan D.
  2011-03-17 12:26         ` Juanma Barranquero
  2011-03-17 19:30       ` Juanma Barranquero
  1 sibling, 1 reply; 25+ messages in thread
From: Jan D. @ 2011-03-17  7:19 UTC (permalink / raw)
  To: Jason Rumney; +Cc: bug-gnu-emacs

Jason Rumney skrev 2011-03-17 07:31:
> On 17/03/2011 13:19, Nicholas "Indy" Ray wrote:
>
>> When I pin runemacs.exe to the taskbar and run it, it loads emacs
>> which creates another icon on my taskbar, It seems impossible to
>> currently have the same pin'd icon load up and run emacs under the
>> same icon without creating the console window.
>>
>> Ideally, I should be able to have one pinned icon on the taskbar, and
>> when clicking it it should load emacs without the console window. This
>> seems impossible.
>
> What version of Emacs are you using? runemacs, emacs and emacsclient
> should all be treated as the same program by Windows 7 taskbar since
> 23.2 if the MSDN documentation is correct. Perhaps you can help us to
> debug this if you are already using a more recent version.
>
>

Maybe this is what the original poster meant, it is what happens for me 
in Windows 7:

1. Start runemacs.exe.
2. Pin the emacs icon to the taskbar.
3. Exit emacs.
4. Start emacs by clicking on the newly pinned icon in the taskbar.

Result: You get a new emacs window but also a console window.
This is on 23.2 BTW.  Is there reason to think 23.3 or trunk behaves 
differently?

	Jan D.






^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  7:19       ` Jan D.
@ 2011-03-17 12:26         ` Juanma Barranquero
  0 siblings, 0 replies; 25+ messages in thread
From: Juanma Barranquero @ 2011-03-17 12:26 UTC (permalink / raw)
  To: Jan D.; +Cc: bug-gnu-emacs

On Thu, Mar 17, 2011 at 08:19, Jan D. <jan.h.d@swipnet.se> wrote:

> 1. Start runemacs.exe.
> 2. Pin the emacs icon to the taskbar.

IIUC, you're not pinning runemacs.exe, but emacs.exe (which runemacs started).

> 3. Exit emacs.
> 4. Start emacs by clicking on the newly pinned icon in the taskbar.
>
> Result: You get a new emacs window but also a console window.
> This is on 23.2 BTW.  Is there reason to think 23.3 or trunk behaves
> differently?

Once you've pinned emacs.exe, edit the properties (you can use
shift-right-click) and change the executable path to point to
C:/this/is/your/path/to/runemacs.exe instead of
C:/this/is/your/path/to/emacs.exe

Hope this helps,

    Juanma





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  5:42   ` Nicholas "Indy" Ray
@ 2011-03-17 12:48     ` Juanma Barranquero
  2011-03-17 16:29       ` Nicholas "Indy" Ray
  0 siblings, 1 reply; 25+ messages in thread
From: Juanma Barranquero @ 2011-03-17 12:48 UTC (permalink / raw)
  To: Nicholas Indy Ray; +Cc: 8268

> Again, runemacs.exe doesn't interact properly with the task bar.
> runemacs.exe and emacs.exe act as separate icons on the task bar. If
> runemacs.exe is pinned, then while emacs.exe is running it's you get
> two taskbar icons dedicated to emacs.

Have you seen my later message? Are you sure you're pinning
runemacs.exe, and not emacs.exe? It's impossible to pin runemacs.exe
by running it, because it almost immediately starts emacs.exe and
exits.

    Juanma





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17 12:48     ` Juanma Barranquero
@ 2011-03-17 16:29       ` Nicholas "Indy" Ray
  2011-03-17 18:19         ` Juanma Barranquero
  0 siblings, 1 reply; 25+ messages in thread
From: Nicholas "Indy" Ray @ 2011-03-17 16:29 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 8268

Unless your fix isn't in Emacs 23.3 then yes. I drag runemacs.exe from
finder into the task bar.

Indy

On Thu, Mar 17, 2011 at 5:48 AM, Juanma Barranquero <lekktu@gmail.com> wrote:
>> Again, runemacs.exe doesn't interact properly with the task bar.
>> runemacs.exe and emacs.exe act as separate icons on the task bar. If
>> runemacs.exe is pinned, then while emacs.exe is running it's you get
>> two taskbar icons dedicated to emacs.
>
> Have you seen my later message? Are you sure you're pinning
> runemacs.exe, and not emacs.exe? It's impossible to pin runemacs.exe
> by running it, because it almost immediately starts emacs.exe and
> exits.
>
>     Juanma
>





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17 16:29       ` Nicholas "Indy" Ray
@ 2011-03-17 18:19         ` Juanma Barranquero
  2011-03-17 18:25           ` Nicholas "Indy" Ray
  0 siblings, 1 reply; 25+ messages in thread
From: Juanma Barranquero @ 2011-03-17 18:19 UTC (permalink / raw)
  To: Nicholas Indy Ray; +Cc: 8268

On Thu, Mar 17, 2011 at 17:29, Nicholas "Indy" Ray <arelius@gmail.com> wrote:

> Unless your fix isn't in Emacs 23.3 then yes. I drag runemacs.exe from
> finder into the task bar.

I've tried dragging runemacs.exe to the taskbar (both my own compiled
23.3 and the one in emacs-23.3-bin-i386.zip) and both behave as
expected: running Emacs from them does not show additional icons, nor
console windows.

    Juanma





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17 18:19         ` Juanma Barranquero
@ 2011-03-17 18:25           ` Nicholas "Indy" Ray
  2011-03-17 19:27             ` Juanma Barranquero
       [not found]             ` <mailman.14.1300390628.11234.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 25+ messages in thread
From: Nicholas "Indy" Ray @ 2011-03-17 18:25 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 8268

Hmm, thanks for that info. It seems then I've run into some form of
bug rather then what I originally thought.

Any thoughts on the matter? the runemacs.exe if from my emacs 32.3
folder recentlly extracted from emacs-23.3-bin-i386.zip and running
M-x version on the resultant emacs window gives me:

GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) of 2011-03-10 on 3249CTO

Thanks,
Indy

On Thu, Mar 17, 2011 at 11:19 AM, Juanma Barranquero <lekktu@gmail.com> wrote:
> On Thu, Mar 17, 2011 at 17:29, Nicholas "Indy" Ray <arelius@gmail.com> wrote:
>
>> Unless your fix isn't in Emacs 23.3 then yes. I drag runemacs.exe from
>> finder into the task bar.
>
> I've tried dragging runemacs.exe to the taskbar (both my own compiled
> 23.3 and the one in emacs-23.3-bin-i386.zip) and both behave as
> expected: running Emacs from them does not show additional icons, nor
> console windows.
>
>     Juanma
>





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17 18:25           ` Nicholas "Indy" Ray
@ 2011-03-17 19:27             ` Juanma Barranquero
  2011-03-18  3:53               ` Nicholas "Indy" Ray
       [not found]             ` <mailman.14.1300390628.11234.bug-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 25+ messages in thread
From: Juanma Barranquero @ 2011-03-17 19:27 UTC (permalink / raw)
  To: Nicholas Indy Ray; +Cc: 8268

> Any thoughts on the matter? the runemacs.exe if from my emacs 32.3
> folder recentlly extracted from emacs-23.3-bin-i386.zip and running
> M-x version on the resultant emacs window gives me:
>
> GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) of 2011-03-10 on 3249CTO

I've tested that very same version.

Hmm. Perhaps some of the calls to
SetCurrentProcessExplicitAppUserModelID are failing? Could you try to
debug that?

    Juanma





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17  6:31     ` Jason Rumney
  2011-03-17  7:19       ` Jan D.
@ 2011-03-17 19:30       ` Juanma Barranquero
  1 sibling, 0 replies; 25+ messages in thread
From: Juanma Barranquero @ 2011-03-17 19:30 UTC (permalink / raw)
  To: Jason Rumney; +Cc: bug-gnu-emacs

On Thu, Mar 17, 2011 at 07:31, Jason Rumney <jasonr@gnu.org> wrote:

> What version of Emacs are you using?  runemacs, emacs and emacsclient should
> all be treated as the same program by Windows 7 taskbar since 23.2 if the
> MSDN documentation is correct.

By the way, for

  CompanyName.ProductName.SubProduct.VersionInformation

we're just using CompanyName.ProductName ("GNU.Emacs").

Do we want Windows 7 to group executables from different versions, or
not? I can imagine having shortcuts to 23.3 and trunk and wanting to
keep them separate.

    Juanma





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-17 19:27             ` Juanma Barranquero
@ 2011-03-18  3:53               ` Nicholas "Indy" Ray
  2011-03-18  6:43                 ` Juanma Barranquero
  2011-03-18  8:08                 ` Eli Zaretskii
  0 siblings, 2 replies; 25+ messages in thread
From: Nicholas "Indy" Ray @ 2011-03-18  3:53 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 8268

I could. I'm probally going to have to actually build a version of
emacs locally to do that. Is it possible to build it in MSVC 2008, or
should I probally get MinGW working? the version installed with git
seems unsuitable to do the job.

Indy

On Thu, Mar 17, 2011 at 12:27 PM, Juanma Barranquero <lekktu@gmail.com> wrote:
>> Any thoughts on the matter? the runemacs.exe if from my emacs 32.3
>> folder recentlly extracted from emacs-23.3-bin-i386.zip and running
>> M-x version on the resultant emacs window gives me:
>>
>> GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) of 2011-03-10 on 3249CTO
>
> I've tested that very same version.
>
> Hmm. Perhaps some of the calls to
> SetCurrentProcessExplicitAppUserModelID are failing? Could you try to
> debug that?
>
>     Juanma
>





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-18  3:53               ` Nicholas "Indy" Ray
@ 2011-03-18  6:43                 ` Juanma Barranquero
  2011-03-18  8:08                 ` Eli Zaretskii
  1 sibling, 0 replies; 25+ messages in thread
From: Juanma Barranquero @ 2011-03-18  6:43 UTC (permalink / raw)
  To: Nicholas Indy Ray; +Cc: 8268

On Fri, Mar 18, 2011 at 04:53, Nicholas "Indy" Ray <arelius@gmail.com> wrote:

> I could. I'm probally going to have to actually build a version of
> emacs locally to do that.

Thanks.

> Is it possible to build it in MSVC 2008, or
> should I probally get MinGW working?

I think there was some work done to make it compile with MSVC 2008,
but certainly you won't have trouble with MinGW, which I recommend.

    Juanma





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-18  3:53               ` Nicholas "Indy" Ray
  2011-03-18  6:43                 ` Juanma Barranquero
@ 2011-03-18  8:08                 ` Eli Zaretskii
  2011-03-23 21:50                   ` Nicholas "Indy" Ray
  1 sibling, 1 reply; 25+ messages in thread
From: Eli Zaretskii @ 2011-03-18  8:08 UTC (permalink / raw)
  To: Nicholas "Indy" Ray; +Cc: lekktu, 8268

> Date: Thu, 17 Mar 2011 20:53:19 -0700
> From: "Nicholas \"Indy\" Ray" <arelius@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, 8268@debbugs.gnu.org
> 
> I could. I'm probally going to have to actually build a version of
> emacs locally to do that. Is it possible to build it in MSVC 2008, or
> should I probally get MinGW working?

You could even try debugging the pre-compiled binaries if you install
the sources as well.  Assuming the binary you are using is not
stripped, that is.

Failing that, installing MinGW is the recommended way.

> the version installed with git seems unsuitable to do the job.

What "version installed with git"?





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-18  8:08                 ` Eli Zaretskii
@ 2011-03-23 21:50                   ` Nicholas "Indy" Ray
  2011-03-24  4:07                     ` Eli Zaretskii
  0 siblings, 1 reply; 25+ messages in thread
From: Nicholas "Indy" Ray @ 2011-03-23 21:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: lekktu, 8268

Is there a specific way to build in debug mode? I presume GDB is the
proper debugger to be using? I'm uncertain how to load the proper
source to set breakpoints.

Indy

On Fri, Mar 18, 2011 at 1:08 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Thu, 17 Mar 2011 20:53:19 -0700
>> From: "Nicholas \"Indy\" Ray" <arelius@gmail.com>
>> Cc: Eli Zaretskii <eliz@gnu.org>, 8268@debbugs.gnu.org
>>
>> I could. I'm probally going to have to actually build a version of
>> emacs locally to do that. Is it possible to build it in MSVC 2008, or
>> should I probally get MinGW working?
>
> You could even try debugging the pre-compiled binaries if you install
> the sources as well.  Assuming the binary you are using is not
> stripped, that is.
>
> Failing that, installing MinGW is the recommended way.
>
>> the version installed with git seems unsuitable to do the job.
>
> What "version installed with git"?
>





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-03-23 21:50                   ` Nicholas "Indy" Ray
@ 2011-03-24  4:07                     ` Eli Zaretskii
  0 siblings, 0 replies; 25+ messages in thread
From: Eli Zaretskii @ 2011-03-24  4:07 UTC (permalink / raw)
  To: Nicholas "Indy" Ray; +Cc: lekktu, 8268

> Date: Wed, 23 Mar 2011 14:50:55 -0700
> From: "Nicholas \"Indy\" Ray" <arelius@gmail.com>
> Cc: lekktu@gmail.com, 8268@debbugs.gnu.org
> 
> Is there a specific way to build in debug mode?

Yes, "configure --no-opt --enable-checking".

> I presume GDB is the proper debugger to be using?

Yes, if you compile with MinGW.

> I'm uncertain how to load the proper source to set breakpoints.

Sorry, I don't understand.  Are you asking what are the GDB commands
to set a breakpoint?





^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: bug#8268: Windows Emacs Console persists while running running emacs.exe.
       [not found]             ` <mailman.14.1300390628.11234.bug-gnu-emacs@gnu.org>
@ 2011-04-03 10:46               ` oCameLo
  2011-04-03 12:18                 ` Juanma Barranquero
  0 siblings, 1 reply; 25+ messages in thread
From: oCameLo @ 2011-04-03 10:46 UTC (permalink / raw)
  To: bug-gnu-emacs

On Mar 18, 3:27 am, Juanma Barranquero <lek...@gmail.com> wrote:
> > Any thoughts on the matter? the runemacs.exe if from my emacs 32.3
> > folder recentlly extracted from emacs-23.3-bin-i386.zip and running
> > M-x version on the resultant emacs window gives me:
>
> > GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) of 2011-03-10 on 3249CTO
>
> I've tested that very same version.
>
> Hmm. Perhaps some of the calls to
> SetCurrentProcessExplicitAppUserModelID are failing? Could you try to
> debug that?
>
>     Juanma


I think I've found out the problem.

Double click runemacs.exe in the explorer, pin it to the taskbar, then
right click on the icon, change the target from emacs.exe to
runemacs.exe, click the icon, everything work fine.

Drag runemacs.exe from the explorer to the taskbar, click on it,
another icon will apply to the taskbar.

The shortcut file (location in C:\Users\[User NAME]\AppData\Roaming
\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar) created
by the 2nd way didn't have a System.AppUserModel.ID property.


oCameLo


^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-04-03 10:46               ` oCameLo
@ 2011-04-03 12:18                 ` Juanma Barranquero
  2017-02-12  3:43                   ` npostavs
  0 siblings, 1 reply; 25+ messages in thread
From: Juanma Barranquero @ 2011-04-03 12:18 UTC (permalink / raw)
  To: oCameLo; +Cc: 8268

On Sun, Apr 3, 2011 at 12:46, oCameLo <camel322@gmail.com> wrote:

> Double click runemacs.exe in the explorer, pin it to the taskbar, then
> right click on the icon, change the target from emacs.exe to
> runemacs.exe, click the icon, everything work fine.

So the shortcut is created from a running instance of emacs.exe.

> Drag runemacs.exe from the explorer to the taskbar, click on it,
> another icon will apply to the taskbar.

And this one is created from the executable.

> The shortcut file (location in C:\Users\[User NAME]\AppData\Roaming
> \Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar) created
> by the 2nd way didn't have a System.AppUserModel.ID property.

Sound quite logical, because the executable isn't associated with the
"GNU.Emacs" ID until it runs and sets it itself.

So this should be documented in nt/README.W32, and perhaps addpm.c
should set the System.AppUserModel.ID property in the shortcuts it
creates.

    Juanma





^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2011-04-03 12:18                 ` Juanma Barranquero
@ 2017-02-12  3:43                   ` npostavs
  2017-02-12 12:47                     ` Juanma Barranquero
  0 siblings, 1 reply; 25+ messages in thread
From: npostavs @ 2017-02-12  3:43 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: oCameLo, 8268

Juanma Barranquero <lekktu@gmail.com> writes:

> On Sun, Apr 3, 2011 at 12:46, oCameLo <camel322@gmail.com> wrote:
>
>> Double click runemacs.exe in the explorer, pin it to the taskbar, then
>> right click on the icon, change the target from emacs.exe to
>> runemacs.exe, click the icon, everything work fine.
>
> So the shortcut is created from a running instance of emacs.exe.
>
>> Drag runemacs.exe from the explorer to the taskbar, click on it,
>> another icon will apply to the taskbar.
>
> And this one is created from the executable.
>
>> The shortcut file (location in C:\Users\[User NAME]\AppData\Roaming
>> \Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar) created
>> by the 2nd way didn't have a System.AppUserModel.ID property.
>
> Sound quite logical, because the executable isn't associated with the
> "GNU.Emacs" ID until it runs and sets it itself.
>
> So this should be documented in nt/README.W32, and perhaps addpm.c
> should set the System.AppUserModel.ID property in the shortcuts it
> creates.

Something like this?

--- i/nt/README.W32
+++ w/nt/README.W32
@@ -94,6 +94,12 @@ See the end of the file for license conditions.
   (non-windowed) mode of operation is most useful if you have a telnet
   server on your machine, allowing you to run Emacs remotely.
 
+* Pinning Emacs to the taskbar (Windows 7 and higher)
+
+  After starting Emacs the first time, pin it to the taskbar, then
+  edit the properties (via shift-right-click) so that the executable
+  path to points to runemacs.exe instead of emacs.exe.
+
 * EXE files included
 
   Emacs comes with the following executable files in the bin directory.







^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2017-02-12  3:43                   ` npostavs
@ 2017-02-12 12:47                     ` Juanma Barranquero
  2017-02-12 14:08                       ` npostavs
  0 siblings, 1 reply; 25+ messages in thread
From: Juanma Barranquero @ 2017-02-12 12:47 UTC (permalink / raw)
  To: npostavs; +Cc: oCameLo, 8268

[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]

On Sun, Feb 12, 2017 at 4:43 AM, <npostavs@users.sourceforge.net> wrote:

> Something like this?
>
> --- i/nt/README.W32
> +++ w/nt/README.W32
> @@ -94,6 +94,12 @@ See the end of the file for license conditions.
>    (non-windowed) mode of operation is most useful if you have a telnet
>    server on your machine, allowing you to run Emacs remotely.
>
> +* Pinning Emacs to the taskbar (Windows 7 and higher)
> +
> +  After starting Emacs the first time, pin it to the taskbar, then
> +  edit the properties (via shift-right-click) so that the executable
> +  path to points to runemacs.exe instead of emacs.exe.
> +
>  * EXE files included
>
>    Emacs comes with the following executable files in the bin directory.

Yes, though the emacs-25 branch already has something like that in
nt/README.W32

  + runemacs.exe - A wrapper for running Emacs as a GUI application
    without popping up a command prompt window.  If you create a
    desktop shortcut for invoking Emacs, make it point to this
    executable, not to emacs.exe.

It's talking about a desktop shortcut and not the taskbar, but it is the
same idea. Perhaps change it to "If you create a desktop shortcut for
invoking Emacs, or pin Emacs to the taskbar, modify the shortcut so it
points to this executable, not to emacs.exe". Or something like that.

[-- Attachment #2: Type: text/html, Size: 1666 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2017-02-12 12:47                     ` Juanma Barranquero
@ 2017-02-12 14:08                       ` npostavs
  2017-02-18 10:27                         ` Eli Zaretskii
  0 siblings, 1 reply; 25+ messages in thread
From: npostavs @ 2017-02-12 14:08 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: oCameLo, 8268

Juanma Barranquero <lekktu@gmail.com> writes:

> On Sun, Feb 12, 2017 at 4:43 AM, <npostavs@users.sourceforge.net> wrote:
>
>> Something like this?
>>
>> --- i/nt/README.W32
>> +++ w/nt/README.W32
>> @@ -94,6 +94,12 @@ See the end of the file for license conditions.
>> (non-windowed) mode of operation is most useful if you have a telnet
>> server on your machine, allowing you to run Emacs remotely.
>>
>> +* Pinning Emacs to the taskbar (Windows 7 and higher)
>> +
>> + After starting Emacs the first time, pin it to the taskbar, then
>> + edit the properties (via shift-right-click) so that the executable
>> + path to points to runemacs.exe instead of emacs.exe.
>> +
>> * EXE files included
>>
>> Emacs comes with the following executable files in the bin directory.
>
> Yes, though the emacs-25 branch already has something like that in nt/README.W32
>
> + runemacs.exe - A wrapper for running Emacs as a GUI application
> without popping up a command prompt window. If you create a
> desktop shortcut for invoking Emacs, make it point to this
> executable, not to emacs.exe.
>
> It's talking about a desktop shortcut and not the taskbar, but it is
> the same idea. Perhaps change it to "If you create a desktop shortcut
> for invoking Emacs, or pin Emacs to the taskbar, modify the shortcut
> so it points to this executable, not to emacs.exe". Or something like
> that.

If I understand correctly an important difference is that for the
shortcut, you can just create a shortcut to runemacs.exe directly.
Whereas for the taskbar, you have to start emacs first, and only then
modify the path.  That's a bit unintuitive and seems worth calling out
in its own paragraph.






^ permalink raw reply	[flat|nested] 25+ messages in thread

* bug#8268: Windows Emacs Console persists while running running emacs.exe.
  2017-02-12 14:08                       ` npostavs
@ 2017-02-18 10:27                         ` Eli Zaretskii
  0 siblings, 0 replies; 25+ messages in thread
From: Eli Zaretskii @ 2017-02-18 10:27 UTC (permalink / raw)
  To: npostavs; +Cc: lekktu, camel322, 8268

> From: npostavs@users.sourceforge.net
> Date: Sun, 12 Feb 2017 09:08:00 -0500
> Cc: oCameLo <camel322@gmail.com>, 8268@debbugs.gnu.org
> 
> Juanma Barranquero <lekktu@gmail.com> writes:
> 
> > On Sun, Feb 12, 2017 at 4:43 AM, <npostavs@users.sourceforge.net> wrote:
> >
> >> Something like this?
> >>
> >> --- i/nt/README.W32
> >> +++ w/nt/README.W32
> >> @@ -94,6 +94,12 @@ See the end of the file for license conditions.
> >> (non-windowed) mode of operation is most useful if you have a telnet
> >> server on your machine, allowing you to run Emacs remotely.
> >>
> >> +* Pinning Emacs to the taskbar (Windows 7 and higher)
> >> +
> >> + After starting Emacs the first time, pin it to the taskbar, then
> >> + edit the properties (via shift-right-click) so that the executable
> >> + path to points to runemacs.exe instead of emacs.exe.
> >> +
> >> * EXE files included
> >>
> >> Emacs comes with the following executable files in the bin directory.
> >
> > Yes, though the emacs-25 branch already has something like that in nt/README.W32
> >
> > + runemacs.exe - A wrapper for running Emacs as a GUI application
> > without popping up a command prompt window. If you create a
> > desktop shortcut for invoking Emacs, make it point to this
> > executable, not to emacs.exe.
> >
> > It's talking about a desktop shortcut and not the taskbar, but it is
> > the same idea. Perhaps change it to "If you create a desktop shortcut
> > for invoking Emacs, or pin Emacs to the taskbar, modify the shortcut
> > so it points to this executable, not to emacs.exe". Or something like
> > that.
> 
> If I understand correctly an important difference is that for the
> shortcut, you can just create a shortcut to runemacs.exe directly.
> Whereas for the taskbar, you have to start emacs first, and only then
> modify the path.  That's a bit unintuitive and seems worth calling out
> in its own paragraph.

I did a merge of the two ideas, and pushed the result to the emacs-25
branch.

Thanks.





^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2017-02-18 10:27 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-17  3:42 bug#8268: Windows Emacs Console persists while running running emacs.exe Nicholas "Indy" Ray
2011-03-17  5:14 ` Juanma Barranquero
2011-03-17  5:19   ` Nicholas "Indy" Ray
2011-03-17  6:31     ` Jason Rumney
2011-03-17  7:19       ` Jan D.
2011-03-17 12:26         ` Juanma Barranquero
2011-03-17 19:30       ` Juanma Barranquero
2011-03-17  5:39 ` Eli Zaretskii
2011-03-17  5:42   ` Nicholas "Indy" Ray
2011-03-17 12:48     ` Juanma Barranquero
2011-03-17 16:29       ` Nicholas "Indy" Ray
2011-03-17 18:19         ` Juanma Barranquero
2011-03-17 18:25           ` Nicholas "Indy" Ray
2011-03-17 19:27             ` Juanma Barranquero
2011-03-18  3:53               ` Nicholas "Indy" Ray
2011-03-18  6:43                 ` Juanma Barranquero
2011-03-18  8:08                 ` Eli Zaretskii
2011-03-23 21:50                   ` Nicholas "Indy" Ray
2011-03-24  4:07                     ` Eli Zaretskii
     [not found]             ` <mailman.14.1300390628.11234.bug-gnu-emacs@gnu.org>
2011-04-03 10:46               ` oCameLo
2011-04-03 12:18                 ` Juanma Barranquero
2017-02-12  3:43                   ` npostavs
2017-02-12 12:47                     ` Juanma Barranquero
2017-02-12 14:08                       ` npostavs
2017-02-18 10:27                         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.