From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Modernize frame-title-format: "%b - GNU Emacs" Date: Wed, 26 Aug 2020 16:12:45 -0700 (PDT) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39627"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Stefan Monnier , Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 27 01:13:23 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kB4bb-000ADF-Bw for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Aug 2020 01:13:23 +0200 Original-Received: from localhost ([::1]:49760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kB4ba-0005z7-7h for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Aug 2020 19:13:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB4b7-0005Y4-Rl for emacs-devel@gnu.org; Wed, 26 Aug 2020 19:12:53 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:51418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB4b6-0007Qo-5c for emacs-devel@gnu.org; Wed, 26 Aug 2020 19:12:53 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07QN9pD5131445; Wed, 26 Aug 2020 23:12:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=Z6urqthuv2Gz6OOxpLWD4BGZS4ODF3ujQK1egCAAPa4=; b=ueDKZZi2ds4xb3VVjfV08kv185ZwA7QODtOjYN5uG47aLYxbiJ9votuuDWKuiXxtE1ju J5Lpk3m4MflgmIz3o9YoaxKStE3Ewk9uFbRsvoF9lVRRiqvJsr1YO2J23yvVU0Mh+qTB 9OIy2Ldm3+2P7Z2I6Xaf5fb9uSEajNZnrcDSP29+XhVFYun8dzafzkPnfjztc+dWJHoB biVE+QF+KWBGRJK6Fzs6qUCSPxSkFfTu2/b2V3/SdRb4txeeFaseEq/CB9rhWZ6qzRn/ mHcNe2CTXS7jjnI+9cGMEZgHem9/+ujByLRakztTlLsZPZxe812ekfmWxq6i5/Lj9ImC Hg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 333dbs37j1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Aug 2020 23:12:50 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07QNAHI2184677; Wed, 26 Aug 2020 23:12:49 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 333rubferk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Aug 2020 23:12:49 +0000 Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 07QNCk0b009672; Wed, 26 Aug 2020 23:12:48 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9725 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008260180 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9725 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008260180 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/26 19:12:50 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.959, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254261 Archived-At: > > (setq frame-title-format "%b - GNU Emacs") > > > > Alternatively, I think one could also reasonably choose: > > > > (setq frame-title-format > > '(multiple-frames "%b" > > ("%b - GNU Emacs"))) >=20 > Either is fine by me and better than what we have IMO. Off the top of my head, in order of diminishing strength of opinion: 1. Either is better than what we have now. 2. I prefer the second one, as it's more specific. 3. Generally, the more specific and informative, the better. If more than one bit of info is conveyed, it's good to put the most important or most specific bits leftmost, since narrowing the frame truncates from the right. To avoid: "GNU Emacs" _followed by_ more specific info. 4. Showing whatever is most important from the mode line might be good. At a minimum, that's %b. If there's room, maybe after %b show the modes part (and recursive-edit brackets). Setting `frame-title-format' to `mode-line-format' works, of course, but the order might not be the most useful in general. (But try it, just to get the idea.) 5. Being able to, with a user option, filter out bits of the mode-line (depending on what?) would help. E.g., for an Info buffer, the encoding, read-only, mode, and `Narrow' indications aren't needed/helpful.