GNU bug report logs - #80139
31.0.50; Use an em dash in frame-title-format

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Sean Whitton <spwhitton@HIDDEN>; dated Tue, 6 Jan 2026 16:33:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 80139 <at> debbugs.gnu.org:


Received: (at 80139) by debbugs.gnu.org; 7 Jan 2026 04:01:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 06 23:01:14 2026
Received: from localhost ([127.0.0.1]:33385 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vdKjR-0007CP-Vx
	for submit <at> debbugs.gnu.org; Tue, 06 Jan 2026 23:01:14 -0500
Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:42374)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1vdKjN-0007C7-N6
 for 80139 <at> debbugs.gnu.org; Tue, 06 Jan 2026 23:01:12 -0500
Received: by mail-ed1-x535.google.com with SMTP id
 4fb4d7f45d1cf-650854c473fso808401a12.1
 for <80139 <at> debbugs.gnu.org>; Tue, 06 Jan 2026 20:01:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1767758468; x=1768363268; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=JpQwVRPmDqEgvcYgCj+5vw8KkiwC9hon6AL/BbR9Y4Q=;
 b=i+C8JLZhTBY0qSGTrG98rC2dVR64d51syiRLvzZlWaAID9pa4f3pUYUbDh5rDM54iJ
 qcVHi4nSHyiaII6lKeKRyz9gXuDjyHtabjZs96ZJWGCOC0lny4B+Cmgg41fU8F/YQYIA
 TgC8c7KLv09JxqIjbDcah8PT6Gr75GCHvS6ZOPkY79U0sU1Z3muM7pTqyK7n1EPYBkKg
 wB46kvUMIUq+nZs6poOTMnrxxq5dcTy3tao1NVsPolSD9+Llg1P+gPpvXegoVjuGnvRG
 CNZ4PoepCNvo0l/xICEwcZDwZiG1ItcHAdJBJW27MqaneKnjwkuA4ilHJyufALUlt/0O
 XjOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1767758468; x=1768363268;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=JpQwVRPmDqEgvcYgCj+5vw8KkiwC9hon6AL/BbR9Y4Q=;
 b=PQvvF1waSoiExbnwMqu/MEOv3ZXxCMMBbfl7Y8lgRPj5IS6aKLMMcK7BzZObGOUxcm
 6kmQtgBYC+BeLKWpghlAqupGf4eGzw5MqVgRnVoAI4pRQu7m/ShPabCl2LFvYJtvojBQ
 pchGwcdBXPxkYmnnwK0fP/57a5GWTr4PzW33PbQaKXLku29JiSxHsrxVSNeEiXJFblWO
 K2DmBmwKjkfqcXwzcbMo9nElXh8wp3Si+9IOEtJC9+i9OeW6R0UTgwPn7VUDrHs0CLB5
 GatcgzZQInNAg7iz2zMTuqRfOLTN03GAUsPKNDUFlQ3FqUjK7Z0BL4VC2PnS1BOOwCcS
 BQ0g==
X-Gm-Message-State: AOJu0YzNXeYisnzs4RohP3xdtGwMKLl//at6nzqXlDlw13Fw4Max2q2B
 OQeJXs2b0d3Whhj7rCwM0QRW28MwQaJY1dej1xAEmbjA+lHOBcT29/FT
X-Gm-Gg: AY/fxX6Ovf0Nq24nqWzgxh1Te6ulccGyBIl3Ziorpf9H9m3AbVdyktGKJ3v7Tl+OQ5k
 aPN62DNRfQ2JSh9gKnUoM/VSzs3DntFMif2hv06G9tdPxF2Nk2KayNzJwVmSnVcBw1ZblI+NrW0
 oCez2BQFGsSCvBfdx9uTUlYuKjSir/8aZ9PZxUY9Q5q046DlcjydoSUJT7hzf5nZ6mCxz23D/jZ
 NDAjmf0KNZez89OsZ465enkDhWrYa7dXguNIsHEkewj66sL75OdDagfLXM9xHZjhvEUQepp7Oen
 4Rv+ibcvq14YwD/ERo0QuLodgdrnI2ApnUg5fQPIi8u5YLvOmQ4GAEIsBkz3TwHNeqYyNDBa2ZS
 mk8+VOXrvZJPPjEO9m47VtplhQRGaA7DDYm0j0iynM7XiNSOSbXe/HuYoHIXuZT+OHRLJXD3w1p
 8kS1gdO5SBYzPHUcLx45/RY5Xaqfl2v3nWPl4mQJQaEUbNX/LZztmibNaoKXq2OXCPdH+6/qvsa
 iOI7P++vSYMoeMolLfvoJLX/adcHnCzDg==
X-Google-Smtp-Source: AGHT+IF77pCa+LSRPpdsALf2ILA3J8o0bIgvauPWW3fh9oHuJDos9ogNOFMecaCMRF6zN7i+ddhuSQ==
X-Received: by 2002:a05:6402:51cc:b0:64d:a80b:3268 with SMTP id
 4fb4d7f45d1cf-65097c18983mr1253916a12.10.1767758468306; 
 Tue, 06 Jan 2026 20:01:08 -0800 (PST)
Received: from pro4 (p200300e0b748f300ad95d7e8b92d60b0.dip0.t-ipconnect.de.
 [2003:e0:b748:f300:ad95:d7e8:b92d:60b0])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-6507b8c4454sm3605961a12.3.2026.01.06.20.01.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 06 Jan 2026 20:01:06 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#80139: 31.0.50; Use an em dash in frame-title-format
In-Reply-To: <871pk2n1m7.fsf@HIDDEN>
References: <871pk2n1m7.fsf@HIDDEN>
Date: Wed, 07 Jan 2026 05:01:05 +0100
Message-ID: <m28qea5awu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 80139
Cc: eliz@HIDDEN, shipmints@HIDDEN, 80139 <at> debbugs.gnu.org, rpluim@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> Stephan=C3=A9, Robert, or Gerd, could you test it on macOS, please?

This has no effect with NS because of=20

ns-win.el:
  791 ;; Set some options to be as Nextstep-like as possible.
  792 (setq frame-title-format "%b"
  793       icon-title-format "%b")




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80139; Package emacs. Full text available.

Message received at 80139 <at> debbugs.gnu.org:


Received: (at 80139) by debbugs.gnu.org; 6 Jan 2026 21:46:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 06 16:46:32 2026
Received: from localhost ([127.0.0.1]:60777 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vdEsq-00058d-E9
	for submit <at> debbugs.gnu.org; Tue, 06 Jan 2026 16:46:32 -0500
Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131]:48270)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <jacob.as.gordon@HIDDEN>)
 id 1vdEsn-00058Q-2q
 for 80139 <at> debbugs.gnu.org; Tue, 06 Jan 2026 16:46:30 -0500
Received: by mail-yw1-x1131.google.com with SMTP id
 00721157ae682-79018a412edso16273107b3.0
 for <80139 <at> debbugs.gnu.org>; Tue, 06 Jan 2026 13:46:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1767735988; x=1768340788; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:content-language:from
 :references:to:subject:user-agent:mime-version:date:message-id:from
 :to:cc:subject:date:message-id:reply-to;
 bh=/n9Tjr2HR+m7h8vEny2EVDjLHEbEobqFZofOQaIacJo=;
 b=cLZTsRYl6B13lq1oe6ARMwJw95UM3mOmfT3POrTOpffXzKjpP/Ri1C6gtXL/TXiuVl
 g1ZmhJbNLlBcqHZd7fKhgJyBq8SFEG7DdiK2nyNFgVumvmtbvla1gHwreiPA+/wf6K1x
 /lWD4OfDLYrsQIwGOXVHs5+J8fC8Cx+Vm5PwyJgztgBWu6EW8bUK+ttG4oPlQBSPc6JK
 HJIm1T5bI6OzZamU474afMNOPB8VsaVL1VOGTlMG45xB+IMJrZRmhuvpCceYi02nvg6b
 5qIYHKAxXYauSAwfruQJ0rEvyyUFOuq1+c/WbmWDNVaUWY5nT4ZPK3zYBTjDnmjLTtR+
 9mgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1767735988; x=1768340788;
 h=content-transfer-encoding:in-reply-to:content-language:from
 :references:to:subject:user-agent:mime-version:date:message-id
 :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=/n9Tjr2HR+m7h8vEny2EVDjLHEbEobqFZofOQaIacJo=;
 b=eeIS+IXBYNBpbcFqaoNNHbo1INp3QR1kBZuI8wgLnZ674EmBA0ruKMSLcqFxCl+UWP
 7psfjTITS56Qlt4STnODmfMY22T1jGeyGyWxIC18LOQ8QVOIhA7xEhEdufeetrSIeuUf
 ND5YGFEc+c0NGXsaKEYbvw9vCURHxJYgKQ2hK4/k+IQ+CgchVjnX5b/N2s++D5VWO0/Q
 EYOhYy9QmJebD3bCO7Dc6f6MrC9+wW1UqJu1NNHIOqIS/poEaOtGBm/I/IL3HA4rTqLx
 Yf6GJb+KnkDgpavgg4Ne0tJpAPbzOoxlnHqpbC0D3qOrkhzCcaNOOxXnAqG8cb2FB2pe
 7Acg==
X-Forwarded-Encrypted: i=1;
 AJvYcCVClwWNRB3nlYaGkOKM5icki0EL0C1MUYJE9uwZoKPLUvSZqHsNh1uMnAkVgE9rHd9ToVa5sg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YycB9MZhRdmlRF2AKknUYGOJi3vASnLDTdh8EwdVhyCnmfYmbYZ
 pa+I4tflNC05eh5u9iZfuKw4ioJg+HAPfUpdWHvppqsAxwu+kyP4+fgq
X-Gm-Gg: AY/fxX7haHhPLDEI+9CMRTRSkN3APT+Z9/uHJcAp5sN0ftWAnRaPEWzq1QbH8TSkvzI
 VA0BaOsKyzPrwOe/Yi6/Ix/fE/E2NmMq1iT7RaxZCdRyMmNzAs88ExUwSqaroOG2ngph+4WCovW
 DPSqvKrgCfbjob89NRr9l4nzJbeUOtdmo34nK5JurwDr7JIH9gaPrVf549KzFyl4VWuTT55DLxi
 onEldaB9eL/PTJbEzDerN+gAGKxKcXcENA2YTXaR6kghnHwPf4G7MMkoQ9uePYLs6u8l71gwNPi
 7GdkyMh0eat9K3s79jFlS4XcVEVQJDvkAL55DBGIZfVvLGH2FJKNLGwOyMItt3cedz67uLgztQI
 y5XNAbJFLsHFtdoz0N7Xnvpz3+Nvg3gVw6rfBsS9s2Ba1evb2XlW9Q0eesRCAxUILAJ5PnAxlTE
 XItPzGdAChjTVwqye3Z7FHsqOIqysDPqPw996PJ0kUwKOjCJW/FcI=
X-Google-Smtp-Source: AGHT+IHVdmqcFHnitvX0dTU0tMidvWM6Z+PFmY/FxIoNbjd/EspipUPsnBRfXqXYdIqTf3VR43neew==
X-Received: by 2002:a05:690c:6984:b0:78f:8f4c:884e with SMTP id
 00721157ae682-790b55ed57cmr6158857b3.21.1767735988258; 
 Tue, 06 Jan 2026 13:46:28 -0800 (PST)
Received: from [192.168.1.10] (135-23-138-165.cpe.pppoe.ca. [135.23.138.165])
 by smtp.gmail.com with ESMTPSA id
 00721157ae682-790aa58f9f5sm11668107b3.24.2026.01.06.13.46.27
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Tue, 06 Jan 2026 13:46:27 -0800 (PST)
Message-ID: <18488fed-3cc3-432b-9341-64793051fc2b@HIDDEN>
Date: Tue, 6 Jan 2026 16:46:26 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: bug#80139: 31.0.50; Use an em dash in frame-title-format
To: Sean Whitton <spwhitton@HIDDEN>, 80139 <at> debbugs.gnu.org
References: <871pk2n1m7.fsf@HIDDEN>
From: "Jacob S. Gordon" <jacob.as.gordon@HIDDEN>
Content-Language: en-CA
In-Reply-To: <871pk2n1m7.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 80139
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2026-01-06 11:32, Sean Whitton wrote:
> +The default value of the 'frame-title-format' variable, which controls
> +the contents of title bars for graphical frames, now separates the name
> +of the current buffer from the words "GNU Emacs" using an em dash
> +instead of a hyphen.  This is more typographically correct, and tends to
> +look better.
> --8<--
> +	    <https://bugzilla.mozilla.org/show_bug.cgi?id=1279647>.  */
> +	    build_string ("%b \xe2\x80\x94 GNU Emacs at "),

+1, it does look better to me and is more consistent with other
applications.

I like typographical correctness, though, I don’t think this is a
typical use as IMO it’s acting as more of a visual separator
(i.e., changing it to a ‘|’ doesn’t affect the meaning).

Another (pedantic) consideration: em dashes are usually set solid (w/o
spaces) in prose.  This seems like more of a Canadian/UK style with
spaced en dashes.

I don’t feel strongly either way.

Best,

-- 
Jacob S. Gordon
jacob.as.gordon@HIDDEN
Please avoid sending me HTML emails and MS Office documents.
https://useplaintext.email/#etiquette




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80139; Package emacs. Full text available.

Message received at 80139 <at> debbugs.gnu.org:


Received: (at 80139) by debbugs.gnu.org; 6 Jan 2026 20:53:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 06 15:53:09 2026
Received: from localhost ([127.0.0.1]:60336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vdE3A-00027i-Sh
	for submit <at> debbugs.gnu.org; Tue, 06 Jan 2026 15:53:09 -0500
Received: from sendmail.purelymail.com ([34.202.193.197]:55430)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1vdE36-00026k-UR
 for 80139 <at> debbugs.gnu.org; Tue, 06 Jan 2026 15:53:06 -0500
DKIM-Signature: a=rsa-sha256;
 b=REl8OMQdPbIgsKtSxtCChg0NF+rx0aCm1NVA1bRReUY6KK8JjCJVg5r3pYiiPL1ii4H6MQAXE4gp4qzP7dBjH3+ZESNjFoFQ16BIOQOeOvqf4A8m5Gr0/mhXpG/zZCp5d4GHj8/PV5mrlf9+4xpQGHcYQacCyvnlEfMHdnYeVjiitC+4vQK5DO9W0oDRPNThknspZqn21g1tTwK26664E3rqTpWn9jr0Qp+2sxjInpO06LNCA6WTSdbppUb2dT+q9KrrD5ymo80dz9KknmRqYWhyZMuhUVLoI9Oalzu5hSzyasR8Nl1I58FOOiaV7KX9fBDkLxPNj2tF8ROcl7TPrQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=EmvMO2CTn4dntsXRwktE3371W1fdedtrH94VsLd1ksE=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=OMab26bnAjGpm8KqoN0ueUiR8yKwwUMSdvRFULYtCqYlSl2Pdyu+sV6yPp8cJhSk8WMBh02tJoSMzkEG4ISIyR0pFk9OzmVagdTz5a3fP2uqib6m6U0cb2aQCYc17u9xpnTxctMDmLc2NZ8aPefl0NcAsShRxPQVYuRNsmwuHL0CUdoOQI/KxwMZkzfFD+HL+Xj5E2ni5Ia6dEjx6vcGCoeIfmUlBmyrWrrfOa1vM5eyK5IaYhjoeehbUyM1WbfE04fTefTkeF00Ej7334uG/mreFFisyTiUB3AllVohKEWk2j/7kolTm2YD+syPb9nQpVy+NUobD/2BHM9jGze5Jg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=EmvMO2CTn4dntsXRwktE3371W1fdedtrH94VsLd1ksE=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 80139 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1424741142; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Tue, 06 Jan 2026 20:52:52 +0000 (UTC)
Received: by zephyr.silentflame.com (Postfix, from userid 1000)
 id 70760940485; Tue, 06 Jan 2026 20:52:51 +0000 (GMT)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80139: 31.0.50; Use an em dash in frame-title-format
In-Reply-To: <86bjj6ekfu.fsf@HIDDEN>
References: <871pk2n1m7.fsf@HIDDEN> <86bjj6ekfu.fsf@HIDDEN>
Date: Tue, 06 Jan 2026 20:52:51 +0000
Message-ID: <87wm1ulazg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 80139
Cc: gerd.moellmann@HIDDEN, rpluim@HIDDEN, shipmints@HIDDEN,
 80139 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

Eli Zaretskii [06/Jan  7:10pm +02] wrote:
>> +	    build_string ("%b \xe2\x80\x94 GNU Emacs at "),
>
> Why such a strange way of creating a multibyte string?  At the very
> least, we don't want any implicit assumptions about the internal
> representation of strings being UTF-8.  And build_string should never
> be used for non-ASCII strings anyway, because whether it decides to
> produce a unibyte or a multibyte string is hard to predict in advance,
> unless you know by heart its implementation.
> [...]
> Also, I can tell you that if w32-unicode-filenames is turned off
> (something we don't expect people to do on modern Windows systems, but
> it can be done, and is always off on old Windows 9X) this will not
> always work, because Emacs will attempt to encode this character using
> the system codepage's encoding, and not all Windows codepages support
> EM DASH.  If a codepage encoding is used, and the codepage doesn't
> support EM DASH, the result will be a garbled frame title.
>
> So I think, if we really want this change badly (do we?), we should
> make it conditioned on whether this character can be supported, and
> fall back on the ASCII dash.  And the NEWS entry should say something
> like "On capable GUI systems, ...".

Thanks.  I'll rethink the implementation.

> I tested this on my Windows system.  It works, but I cannot say I like
> the result: the dash is too wide to my liking (maybe it's some issue
> with the system font used for title bars here).
>
> I'm not sure I understand the Firefox's bug report: the latest version
> of Firefox I have here certainly doesn't use EM DASH in the tab
> titles, it uses something much narrower, perhaps a hyphen.

This is interesting.  I have a theory.  Is your Firefox using a European
locale?  The Firefox bug says that at least the German locale uses an en
dash, because that's typographically standard in Europe.  If you have a
way to obtain the text of window titles as data, it would be interesting
to know whether it's an en dash or just a hyphen.

(My en_GB Firefox uses an em dash; it probably shouldn't, though.)

> Please also test this with -nw on xterm, as xterm.el produces a
> modified title from this string, and the question is whether some
> locale's encoding might fail to support this character.

Will do.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80139; Package emacs. Full text available.

Message received at 80139 <at> debbugs.gnu.org:


Received: (at 80139) by debbugs.gnu.org; 6 Jan 2026 17:10:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 06 12:10:42 2026
Received: from localhost ([127.0.0.1]:59211 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vdAZt-0007zo-N9
	for submit <at> debbugs.gnu.org; Tue, 06 Jan 2026 12:10:42 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:57104)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vdAZr-0007zQ-CB
 for 80139 <at> debbugs.gnu.org; Tue, 06 Jan 2026 12:10:39 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vdAZl-00079b-OK; Tue, 06 Jan 2026 12:10:33 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=s6ixxdPzYWoD8W93vFkPF7MxjcJYWXjOEEYLDbKKA5M=; b=ED6FSgLztxV2
 gX0PqM/VhDLGV3Eyv3SjUZFgfRutqdO/sXxr7S6hYmNFa35+6QKxIyrE4SS03EdKOF/nIYuow0y4O
 xvWFcaiMQ8RnP4dXzYiniiGiXYbvfQ9ds5Zx9TkW8ke7sEoU1hpTW4i0dSfofUpdG4ZN9kuTnd/Jp
 uF0qH/fp1OoIuk3gbAZJwga5X3k1x+jOY6+xDJ66Xv336zcxiCp7p2QtmS3jH20XdnXatyNQ748RF
 I0E9VagE67vXP7yfrovY5ldu1LYa2kyUAIVmtCes4ilAO7H2kTETpfqhy7YCqjVugnMgElAAFjGxt
 al2buqAS4xpSQJ9C12cIyA==;
Date: Tue, 06 Jan 2026 19:10:29 +0200
Message-Id: <86bjj6ekfu.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <871pk2n1m7.fsf@HIDDEN> (message from Sean
 Whitton on Tue, 06 Jan 2026 16:32:16 +0000)
Subject: Re: bug#80139: 31.0.50; Use an em dash in frame-title-format
References: <871pk2n1m7.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80139
Cc: gerd.moellmann@HIDDEN, rpluim@HIDDEN, shipmints@HIDDEN,
 80139 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: eliz@HIDDEN, shipmints@HIDDEN, gerd.moellmann@HIDDEN, rpluim@HIDDEN
> From: Sean Whitton <spwhitton@HIDDEN>
> Date: Tue, 06 Jan 2026 16:32:16 +0000
> 
> +	 /* Use an em dash as the separator.  That is what is
> +	    typographically correct for American English -- a hyphen is
> +	    wrong.  For references see Firefox's bug tracker:
> +	    <https://bugzilla.mozilla.org/show_bug.cgi?id=1279647>.  */
> +	    build_string ("%b \xe2\x80\x94 GNU Emacs at "),

Why such a strange way of creating a multibyte string?  At the very
least, we don't want any implicit assumptions about the internal
representation of strings being UTF-8.  And build_string should never
be used for non-ASCII strings anyway, because whether it decides to
produce a unibyte or a multibyte string is hard to predict in advance,
unless you know by heart its implementation.

I tested this on my Windows system.  It works, but I cannot say I like
the result: the dash is too wide to my liking (maybe it's some issue
with the system font used for title bars here).

I'm not sure I understand the Firefox's bug report: the latest version
of Firefox I have here certainly doesn't use EM DASH in the tab
titles, it uses something much narrower, perhaps a hyphen.

Also, I can tell you that if w32-unicode-filenames is turned off
(something we don't expect people to do on modern Windows systems, but
it can be done, and is always off on old Windows 9X) this will not
always work, because Emacs will attempt to encode this character using
the system codepage's encoding, and not all Windows codepages support
EM DASH.  If a codepage encoding is used, and the codepage doesn't
support EM DASH, the result will be a garbled frame title.

So I think, if we really want this change badly (do we?), we should
make it conditioned on whether this character can be supported, and
fall back on the ASCII dash.  And the NEWS entry should say something
like "On capable GUI systems, ...".

Please also test this with -nw on xterm, as xterm.el produces a
modified title from this string, and the question is whether some
locale's encoding might fail to support this character.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80139; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Jan 2026 16:32:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 06 11:32:35 2026
Received: from localhost ([127.0.0.1]:59092 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vd9z1-0006AH-0h
	for submit <at> debbugs.gnu.org; Tue, 06 Jan 2026 11:32:35 -0500
Received: from lists.gnu.org ([2001:470:142::17]:49006)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1vd9yy-00069y-O6
 for submit <at> debbugs.gnu.org; Tue, 06 Jan 2026 11:32:33 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <spwhitton@HIDDEN>)
 id 1vd9yr-0005j5-3E
 for bug-gnu-emacs@HIDDEN; Tue, 06 Jan 2026 11:32:25 -0500
Received: from sendmail.purelymail.com ([34.202.193.197])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <spwhitton@HIDDEN>)
 id 1vd9yo-0004Ad-O5
 for bug-gnu-emacs@HIDDEN; Tue, 06 Jan 2026 11:32:24 -0500
DKIM-Signature: a=rsa-sha256;
 b=hATT9ewQ3YQCLaLoWyjY2b/Qfj+08f+VGLvQmHuShhllmGUSI+0ve+t3NY5YDS84HIbzIV00bGM2qRo04imsmE64a08ScOzmbN1uT+OXPj82QMDrzLiTWJkQXsgyMeMVWJpJItOCYELfysXnokKL+KT+1LilvQke5794JvWpY/IO342CUBy8QFQZzX760WaYMn9pr/xoBH9K4+xGtT97Z9HEbJYXHCTxQT5u9mn0y4tRj5Q1/oljYvaSuWHNjvJyrBB5d9b09kQeOMPXOZB+8PTh79JBXmTxdhX0d10qGfF7qMzWmpYjfabKL0oyfSVVh6adEJCecPhXzBt6uLwszw==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=kDcJDVQBIh4XFdOEAo9x6AaCAyZGnm7/25AfNPERIu0=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=VAoLMbuk0+CIzf4Z4jnhKXq8115I7Xx0BgLqBUvhJqJKe6splgUCBCUEnL3OELUeEGQmlIx4LRWgEFMXSYoJTJNL60nimcVU8j90T5nX360FH8v+gPC1OezMZKSyYU6TFfRAEIpX3uljAAEf1cCFuRMOCOvkoQLHaayHuNcL7u5BKSG8K6Jha1K9T55i0dem4XbvrQWippTRYDmRsgXfum4FkxQ/awNv/egsZqJNDvEFZxGE8fck7TPH4vIOjlO+axkjC/2gaVgEJnP+CjDjI2A99pEsXn//gdh31VP4dNg2E3C2Y489mbbYKMEydefNvo1eP4RZJVDLuO2bwD1mhw==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=kDcJDVQBIh4XFdOEAo9x6AaCAyZGnm7/25AfNPERIu0=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: bug-gnu-emacs@HIDDEN
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1970752826
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Tue, 06 Jan 2026 16:32:17 +0000 (UTC)
Received: by zephyr.silentflame.com (Postfix, from userid 1000)
 id 767FB940485; Tue, 06 Jan 2026 16:32:16 +0000 (GMT)
From: Sean Whitton <spwhitton@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; Use an em dash in frame-title-format
Date: Tue, 06 Jan 2026 16:32:16 +0000
Message-ID: <871pk2n1m7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=34.202.193.197;
 envelope-from=spwhitton@HIDDEN; helo=sendmail.purelymail.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

X-debbugs-cc: eliz@HIDDEN, shipmints@HIDDEN, gerd.moellmann@HIDDEN, =
rpluim@HIDDEN

Eli, could you test this on MS-Windows, please?

Stephan=C3=A9, Robert, or Gerd, could you test it on macOS, please?

If it doesn't work on any of these platforms we can conditionalise it.

Thanks.

--=20
Sean Whitton

--=-=-=
Content-Type: text/x-diff
Content-Disposition: attachment;
 filename=0001-Use-an-em-dash-in-frame-title-format.patch

From a3e1500d7687d6d742fd289c39ef1ffdeff0af48 Mon Sep 17 00:00:00 2001
From: Sean Whitton <spwhitton@HIDDEN>
Date: Tue, 6 Jan 2026 16:31:07 +0000
Subject: [PATCH] Use an em dash in frame-title-format

* src/xdisp.c (syms_of_xdisp): Use an em dash in
frame-title-format.
* etc/NEWS: Document the change.
---
 etc/NEWS    | 12 ++++++++++++
 src/xdisp.c |  6 +++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/etc/NEWS b/etc/NEWS
index 1844eeb7bf5..8aae2947623 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -767,6 +767,18 @@ Emacs previously discarded arguments to emacsclient of zero length, such
 as in 'emacsclient --eval "(length (pop server-eval-args-left))" ""'.
 These are no longer discarded.
 
+---
+** The title of graphical frames uses an em dash instead of a hyphen.
+The default value of the 'frame-title-format' variable, which controls
+the contents of title bars for graphical frames, now separates the name
+of the current buffer from the words "GNU Emacs" using an em dash
+instead of a hyphen.  This is more typographically correct, and tends to
+look better.  If it doesn't look good on your machine, you can undo the
+change like this:
+
+    (setq frame-title-format
+          '(multiple-frames "%b" ("" "%b - GNU Emacs at " system-name)))
+
 
 * Editing Changes in Emacs 31.1
 
diff --git a/src/xdisp.c b/src/xdisp.c
index a295131a311..7a13e1cbc00 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -38216,7 +38216,11 @@ syms_of_xdisp (void)
      Oracle Developer Studio 12.6.  */
   Lisp_Object icon_title_name_format
     = list (empty_unibyte_string,
-	    build_string ("%b - GNU Emacs at "),
+	 /* Use an em dash as the separator.  That is what is
+	    typographically correct for American English -- a hyphen is
+	    wrong.  For references see Firefox's bug tracker:
+	    <https://bugzilla.mozilla.org/show_bug.cgi?id=1279647>.  */
+	    build_string ("%b \xe2\x80\x94 GNU Emacs at "),
 	    intern_c_string ("system-name"));
   Vicon_title_format
     = Vframe_title_format
-- 
2.47.3


--=-=-=--




Acknowledgement sent to Sean Whitton <spwhitton@HIDDEN>:
New bug report received and forwarded. Copy sent to eliz@HIDDEN, shipmints@HIDDEN, gerd.moellmann@HIDDEN, rpluim@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to eliz@HIDDEN, shipmints@HIDDEN, gerd.moellmann@HIDDEN, rpluim@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#80139; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 7 Jan 2026 04:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.