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: Mon, 4 Oct 2021 09:35:50 +0200 Message-ID: References: <87ilykpnqb.fsf@mail.linkov.net> <6764B7C0-D125-4E1C-B030-4D7FEAC02980@gmail.com> <87wnmvdx0t.fsf@mail.linkov.net> <99A9E3F0-53EC-4D9C-8B9D-137D89A44D5C@gmail.com> <87y27a6nah.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dff24a05cd81f7e3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27442"; 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 Mon Oct 04 09:37:09 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 1mXIX6-0006xd-QR for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Oct 2021 09:37:08 +0200 Original-Received: from localhost ([::1]:59796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXIX5-0007Na-21 for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Oct 2021 03:37:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXIWK-0006gx-RN for emacs-devel@gnu.org; Mon, 04 Oct 2021 03:36:20 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:33628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXIWJ-0006YU-BA for emacs-devel@gnu.org; Mon, 04 Oct 2021 03:36:20 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id y23so28445636lfb.0 for ; Mon, 04 Oct 2021 00:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2jYrGNqjC2Pllul2fO79B8ed+MXlCSzzJQyXHX5g4i0=; b=H8V93L8JJ6ISvYUL05+9Nnu5Nzm5uvzm7HapmAgVJwHRbArOsyOsMnqdRJL/djkWOU Lw2LkkMqfx1dDC4cj0ul6JIdskx6Rl6j8kKd0FpVctJS0FoNIVdqpsPdGZmKALHn09wg epXj0UQutncBc2CZwZbqMCsVDBINbj8rGQ2wWEVAs/25RPevn5tb0hUOsOznbvTRQmQJ SdfE/+9AeC+ZqT2Yvk4FY/96debRGe849Z+Cske68TAbqwtWm7dnE5HjZk/iyT9P52LN fBQYTaWzb/0vV8+hvOc6Jx1x+vDXWpE9h07wNgbUBF/Gfquzxh9CJfoX2KKWjf+DbAzy bzvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2jYrGNqjC2Pllul2fO79B8ed+MXlCSzzJQyXHX5g4i0=; b=uucjT1OLumuUJl4hb4QVmQDKfPu2ktGA9DPWZKuK/QJoUsycqCdhCdw5MGvLiIUtHb SPv7DfWlTxV69GiTy++KTrIOmCq7n0Ht3xt07HahcK4px+UW/GJhz/Fp8yB8cMRMwJBB ZRpFQN+NnyoAWlo4Z4NQM5rz2uqmNQ1KlY0Ksg+hT0pr73sv1MH/js6f2HPMpPcXePaZ 97cBsvOb1zPmAGulQ7sc1BOsoF4UCEU5LS0SmRlyGakGFKZSKiD/DIsM6eniIpdAyUsA W30+AHPvBom/s9maRHfvhA1YaJ1Eg+s0uCF+kDc0uHwvtrb2zcDmjKkFvyoizhplWcZl U98g== X-Gm-Message-State: AOAM532zBVNAKHUcq44SfiulCxeDhrzHsxA+MqKJrN2WocdFBzHBIRPk qlofsqjiD8Nd3qDNYD/SygJEoBEX86VaQ1jWjhw= X-Google-Smtp-Source: ABdhPJwmlWd/EvDVXxpKbqqJnWu21Xok+21ysJZSmNjwHoEB4KysSaJSdO5gwCHnBA5NDRQQ4V0gZw8245d/t3CQDGQ= X-Received: by 2002:a05:6512:3b29:: with SMTP id f41mr13327453lfv.630.1633332976675; Mon, 04 Oct 2021 00:36:16 -0700 (PDT) In-Reply-To: <87y27a6nah.fsf@mail.linkov.net> Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=paaguti@gmail.com; helo=mail-lf1-x136.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, HTML_MESSAGE=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:276152 Archived-At: --000000000000dff24a05cd81f7e3 Content-Type: text/plain; charset="UTF-8" Cool! Everything is consistent right now:-) Thanks a ton! /PA On Sun, 3 Oct 2021 at 19:21, Juri Linkov wrote: > > Hi, I've seen a couple of ideas in the internet on how to spped his up. > You > > could use the buffer-change hooks and defadvice on undo and would be much > > less than on every keypress, right? I think this could be a good > compromise > > Fortunately, it was much easier to implement this by adding > just these 3 lines to tab-line-format: > > + (and (memq 'tab-line-tab-face-modified > + tab-line-tab-face-functions) > + (buffer-file-name) (buffer-modified-p)))) > > So now this is fixed in the emacs-28 branch. > -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler --000000000000dff24a05cd81f7e3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Cool! Everything is consistent right now:-)

Thanks a ton! /PA

On Sun, 3 Oct 2021 at 19:21, Jur= i Linkov <juri@linkov.net> wro= te:
> Hi, I&#= 39;ve seen a couple of ideas in the internet on how to spped his up. You > could use the buffer-change hooks and defadvice on undo and would be m= uch
> less than on every keypress, right? I think this could be a good compr= omise

Fortunately, it was much easier to implement this by adding
just these 3 lines to tab-line-format:

+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (and (memq 'tab-line-tab-face-modified
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0tab-line-tab-fac= e-functions)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(buffer-file-name) (buffer-modified-p= ))))

So now this is fixed in the emacs-28 branch.


--
Fragen sin= d nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu= werden
Georg Kreisler
--000000000000dff24a05cd81f7e3--