rougier / nano-emacs

GNU Emacs / N Λ N O - Emacs made simple
GNU General Public License v3.0
2.52k stars 194 forks source link

fix: frame title still shown #108

Open azzamsa opened 2 years ago

azzamsa commented 2 years ago

Hi.

(setq frame-title-format nil) and (setq frame-title-format "") doesn't work in my end. However setting it to (setq frame-title-format " ") works.

I think it because "" also evaluates to nil

azzamsa commented 2 years ago

I think we need to set icon-title-format too. As described here:

rougier commented 2 years ago

Oh, good to know. What is you system (on OSX, I use a patched Emacs to get rid of the title entirely). Does yu PR make the title completely disappear?

azzamsa commented 2 years ago

Yes. It my previous version of Emacs. But Now I need to add one more additional line

;; No hostname in frame title
;; Without setting the `icon-title-format`. The window title will revert
;; back to its original value after loosing its focus.
(setq frame-title-format '("" invocation-name " - " "%b"))
(setq icon-title-format '("" invocation-name " - " "%b"))

❯ sfetch
OS: Debian GNU/Linux 11 (bullseye)
Emacs version: GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-12-07
``
rougier commented 2 years ago

Oh, Emacs 29 might be a bit too ahead of current (27.2) version. Does you "hack" works on 27.2 as well ?

azzamsa commented 2 years ago

Sorry. I only have GNU Emacs 29.0.50 on my end.