From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.devel Subject: Re: tab-line-tab-modified: cool feature... not yet there Date: Sun, 3 Oct 2021 07:25:34 +0200 Message-ID: <99A9E3F0-53EC-4D9C-8B9D-137D89A44D5C@gmail.com> References: <87ilykpnqb.fsf@mail.linkov.net> <6764B7C0-D125-4E1C-B030-4D7FEAC02980@gmail.com> <87wnmvdx0t.fsf@mail.linkov.net> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4884"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Porter , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 03 07:27:07 2021 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 1mWu1j-00016C-1w for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Oct 2021 07:27:07 +0200 Original-Received: from localhost ([::1]:33230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWu1h-0004tq-Se for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Oct 2021 01:27:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWu0O-0003la-Iy for emacs-devel@gnu.org; Sun, 03 Oct 2021 01:25:44 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:37539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWu0K-00019B-Eb for emacs-devel@gnu.org; Sun, 03 Oct 2021 01:25:42 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id j10-20020a1c230a000000b0030d523b6693so5207080wmj.2 for ; Sat, 02 Oct 2021 22:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=EpXviq0PsJTq4UxdcZ84DTWsMbpG+pW8O6vmh3qgeqI=; b=dfK2hqBq/sYwnh8nzE7FxLrd0RqPwYk+4FFRwliKUAG5OYkpf+M9mntkFy2/xBLJ5/ b8DqSOi7jMS+wV4al/HZkjAaNxquz9dxqINMNBKeUkmKJVAE/rHJJk6amaHd5n2whaV5 ylBiUQZuBjpEDTeCDZz0hrCpg7QX5ob6y+9FkAtpE3cV58vWg2V+o6Wvz5liF2+GcJ6a nBq9rNpxjTmVuP3FREGW3BlCzP6WiLcF3LHl98m00tiCNiRYasiGccmUhyat6P5k0crl U52uMoytMO9IOR9tYyK2cxxn/yeZJYMjdoIl10DKkOne21Y+IduBhOiTQp++6qgAhKPJ zm3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=EpXviq0PsJTq4UxdcZ84DTWsMbpG+pW8O6vmh3qgeqI=; b=njhP9cgdhV8Fu5ANYwTsqSZpk4LrTE2mb0dkxYjDor3wnc+Z7yWnPv7Skjhk4T7u2W drQaVdO9dXeGLxlG9KEu6nmzknUU5xP2q8yBcOOiOmrLQ5DHHdnYdkn8QykSY/5krlAs o8mFLcxypTBeb0hPFBvkwmHFoZIN1R2lsv4EGduo9+MgNb3xYMV+WeK8VA1ZHAEvFer2 jlVUd0ZRH4gPY8pb277OmhonYuE/MqQ0SOCShttADyuo9B/Nfy/2uUWKjDfkowutagHR /pQzjXxdswJFA8BBy5fkORrv2Zpp0zmVW2Hl6A4R1VKAhgaDXLnDf5ZfXYMXTucZJc65 /OtQ== X-Gm-Message-State: AOAM532OPQ/9KhM40+x3W13yl8aXZigWx4k9pfPxSSgsEdnNTcV6tz0G g2L/acKiYgLbOX6cplZnhfLZAqv13TA= X-Google-Smtp-Source: ABdhPJwKPfNa8zcC8E6ul7kkJtsz4JNgzoEJRWjtO6sNr6FRcXkI832hkgMJw2/vq0/zNJ0M1VOjsA== X-Received: by 2002:a1c:2904:: with SMTP id p4mr11996741wmp.49.1633238736093; Sat, 02 Oct 2021 22:25:36 -0700 (PDT) Original-Received: from [192.168.1.34] (138.red-81-39-87.dynamicip.rima-tde.net. [81.39.87.138]) by smtp.gmail.com with ESMTPSA id m6sm90393wru.53.2021.10.02.22.25.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Oct 2021 22:25:35 -0700 (PDT) X-Mailer: iPad Mail (16H62) In-Reply-To: <87wnmvdx0t.fsf@mail.linkov.net> Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=paaguti@gmail.com; helo=mail-wm1-x330.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:276098 Archived-At: Hi, I've seen a couple of ideas in the internet on how to spped his up. You c= ould use the buffer-change hooks and defadvice on undo and would be much les= s than on every keypress, right? I think this could be a good compromise Best, /PA Enviado desde mi iPad El 2 oct 2021, a las 21:42, Juri Linkov escribi=C3=B3: >>>> Thanks, now everything is clear. The problem is that it changes the co= lor >>>> of the tab only after you switch to another buffer. I don't know wheth= er >>>> the author Adam (Cc'ed) intended this. It makes sense not to change >>>> the color of the current tab immediately to not distract the user. >>>=20 >>> I don=E2=80=99t know if changing the colour in the tab distracts or conf= uses. At >>> least it seems to confuse me ;-) I would expect the tab to change at the= >>> same time as the mode-line in order to have consistent information on th= e >>> screen. I don=E2=80=99t like to be told different things by the tab line= and the >>> mode line ;-) >>=20 >> The patch I submitted doesn't have any effect on how or when the >> tab-line is updated. I've also noticed the effect you describe, that >> the tab-line doesn't update until I change to another buffer, but ISTM >> that that's an orthogonal issue. The tab-bar does update with >> redisplay, while the tab-line seems to only update on buffer-switch, >> or something like that. If the tab-line should update with redisplay, >> I guess that could be done. I guess it might be relevant to redisplay >> performance, but Juri should know about that; maybe that's why it >> doesn't already do that. >=20 > Indeed, it's related to redisplay performance, so it was optimized by cach= ing > to update the tab-line only on buffer switching, not on every key press.