From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Modernize frame-title-format: "%b - GNU Emacs" Date: Mon, 31 Aug 2020 14:46:31 +0000 Message-ID: References: <83y2lux5hm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11147"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 31 16:47:10 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 1kCl5R-0002kP-BI for ged-emacs-devel@m.gmane-mx.org; Mon, 31 Aug 2020 16:47:09 +0200 Original-Received: from localhost ([::1]:44860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCl5Q-0007EX-DN for ged-emacs-devel@m.gmane-mx.org; Mon, 31 Aug 2020 10:47:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCl4t-0006p0-A0 for emacs-devel@gnu.org; Mon, 31 Aug 2020 10:46:35 -0400 Original-Received: from mail-ej1-f47.google.com ([209.85.218.47]:44796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCl4r-0002JF-P5; Mon, 31 Aug 2020 10:46:35 -0400 Original-Received: by mail-ej1-f47.google.com with SMTP id bo3so8837160ejb.11; Mon, 31 Aug 2020 07:46:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=FcSbN7KAfQuM5eXSfigDp4xCkzj6i/iNdYfD8aQWb+c=; b=iYGPtYU1Em2FKgL+Nb/uZ3wU9AHiT/CH7Lq4Xni1ScC78fljY9gGO3Q6a4NmZ41+4t WHpQ2NV7mMoFeYdABWuVJIBC6eBHTV0GdxpsvRSeAedi9wZjbcvANr855gXnY2FKfR6A 5PZDbE+Y+0QV6oZMD8TtxmsuDLeHpY742t80+1u3PaO1UDbXOs7XBYY8qKZsvtdSgt7k boEbMIno4WRiYmrgvHjD5Hkg5piQwf9V4aqyOd7L0Qh3C+gwKLZbW9zCNoanY45EjX08 JKmfv2VaVF3hgwgdGxZrxltWUM5kDGrjGkObQvV3Rgud9O30HKo5wbfvztAkwWqAYFrW ql0g== X-Gm-Message-State: AOAM532/Kg4vtctm5SBZTLDqSJ6oNJNyY0IWL9U+V7HqMuGEnCHXa1Ye zrIFJ+rRDBRk9zGJLVez38DewPWrZsUyXxx4ofJYxihr/Cw= X-Google-Smtp-Source: ABdhPJySHFycWy7AbXpbUIKPIEm8ljOn84OaQe/lkdM49bsjuI8VuUCAHIDPIgevjgGOt0uxbxcknKjEV8cvjMcziog= X-Received: by 2002:a17:906:bc52:: with SMTP id s18mr1387899ejv.398.1598885191611; Mon, 31 Aug 2020 07:46:31 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 31 Aug 2020 14:46:31 +0000 In-Reply-To: <83y2lux5hm.fsf@gnu.org> Received-SPF: pass client-ip=209.85.218.47; envelope-from=stefankangas@gmail.com; helo=mail-ej1-f47.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/31 10:46:32 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:254443 Archived-At: Eli Zaretskii writes: > The display engine calls the function which produces the frame's title > very frequently. You have just made redisplay much slower due to this > call (abbreviate-file-name is a large and complex function, and you > call Lisp on top of that), and caused most redisplay cycles prfoduce > more garbage. Is it really worth it? Thanks, I didn't know it was called very frequently. I think it's most definitely not worth slowing down redisplay. We should probably replace it with the "%b" we had before. BTW, I assume this caveat applies in equal measure to using `:eval' in `frame-title-format'? Do they apply also to `icon-title-format' and `mode-line-format'? If yes, should we warn users about it in (info "(elisp) Mode Line Data") or (info "(elisp) Frame Titles")?