CSharper
CSharper

Reputation: 306

emacs: Possible to set frame title different than task bar? (windows)

I'm using Emacs 24.5.1 on windows 7.

Can I have a DIFFERENT text in the emacs window title bar and the windows task bar?

frame-title-format seems to set the same text for both locations. Setting icon-title-format seems to have no effect.

Who can help? :)

enter image description here

Upvotes: 2

Views: 436

Answers (1)

JCC
JCC

Reputation: 522

You can't do this in Emacs Lisp. Or rather, you can't do it easily.

Windows inherits taskbar names from frame titles. This is the intended behaviour for all programs, and there is no default way to change it. It can be changed, but the process is hacky. I don't think Microsoft intended this feature to exist.

This question discusses a few different ways of doing it in C#. It suggests changing the underlying class the program uses to create a frame and hacking on some modifications to the displayed Title. It may be possible to do this in Elisp, but you will probably have to interface to Windows DLLs. Modifying the Emacs source code and creating a custom build is probably the better solution.

I don't think it's really worth implementing unless you have a strong need for this behaviour. I display certain data in my frame title, which I assume is what you want to do here. If you just want to have a constant display of that data without cluttering the title, it may be easier to create a one-line window at the top of every frame that will display just below the taskbar.

Upvotes: 2

Related Questions