From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jason Vas Dias Newsgroups: gmane.emacs.bugs Subject: bug#51757: 27.2; [patch] man.el : wait for all man(1) output to be buffered before fontifying Date: Thu, 11 Nov 2021 11:36:48 +0000 Message-ID: References: <87czn7cptw.fsf@gnus.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="8808"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51757@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 11 12:37:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ml8OE-000249-1l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Nov 2021 12:37:10 +0100 Original-Received: from localhost ([::1]:41008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml8OD-0002oJ-5R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Nov 2021 06:37:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml8O6-0002lf-5W for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 06:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56995) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml8O5-0006mt-TF for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 06:37:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ml8O5-0006bw-Qk for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 06:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jason Vas Dias Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Nov 2021 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51757 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo Original-Received: via spool by 51757-submit@debbugs.gnu.org id=B51757.163663061825400 (code B ref 51757); Thu, 11 Nov 2021 11:37:01 +0000 Original-Received: (at 51757) by debbugs.gnu.org; 11 Nov 2021 11:36:58 +0000 Original-Received: from localhost ([127.0.0.1]:40308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ml8O2-0006bc-Kr for submit@debbugs.gnu.org; Thu, 11 Nov 2021 06:36:58 -0500 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:43726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ml8Nz-0006bN-VJ for 51757@debbugs.gnu.org; Thu, 11 Nov 2021 06:36:57 -0500 Original-Received: by mail-wr1-f51.google.com with SMTP id t30so9249652wra.10 for <51757@debbugs.gnu.org>; Thu, 11 Nov 2021 03:36:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HrFLL+kEuJZgLFez3X8d6YN22nvATD5vzPyf0LIcs6k=; b=AXmn57SVcYLlLZ5Y4H6PqQXnaYm1OhNaqk+KVujYDbOfjNnM/YPESY6qcGbxDO689W gg7mOwtBywueJSxkxJ2SpkFKTNCkwdSC5o1wbwf5zgSL/t9Lio+8XhXnjPlFg6ntrGmP PYhokdtx+iFVmNUFC0URRV3JDiJGIVTjGyyDGGkhkqXjYt3KPi8HDEbYIJJXNsIxDIA9 gV4R/c/5BfsF4ZFaMnIDF5nV/+jI8Xj4bp6XxnP/pH+VgK/aZQwDXYACTRu28ElhfM8u YFUC/4MNjDA1YgBWy/zzlYsXq2kn9P6Mw7Gx2v9lVZ8WVZ/pCmKuXbNKdIX2nPGtLJ4y cs6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HrFLL+kEuJZgLFez3X8d6YN22nvATD5vzPyf0LIcs6k=; b=2UQobiKdFkMNI8vgU9C0vo0a2YUh5FslUieoLFNi3d0CWGFvf9JkpkG+cziw5dnStg dlP2BAOh999Cw/R6jgdAe2Z54Db2PPhpCO9RkgKtiYxqB3pdto5Jtcp4VxYvMOxg5HAw SRKCg4G+wIne+7w9LQ/2AixiwTBGwT4pjBK8G3BYx21bgyfFvQ7/q6GsNmmoQyKovCY8 tCiYWLiysZs5sbU3xkDJcBHYz1Ux7D7eJgE+euNscrKTW7CFg4fiQ0qsYtgAtXDF/eEJ ukvwlJ5yI+fML095aE69eW6rHQwwNFTtPptf3Rw51DS7OAs2I1UdEIyrctDtevmVCCwx KGbg== X-Gm-Message-State: AOAM532V72encUcq+IxMBc52EkpTvjgeLetmmTYa7B2O4jTCxcUBx9MD +tzMq3vxW+mxmrbIrT8Ak0J8gKWf3ziYK3sKen0= X-Google-Smtp-Source: ABdhPJwpHRXiiu5OAkvzQkmiiP1ey7Dvl/JPsdZ3vQ8iNt3K/bQS0ar9FPiCbXmzTL8qtKjdyjSZBiDMhFH/EovyM6Q= X-Received: by 2002:a05:6000:1862:: with SMTP id d2mr8029267wri.203.1636630610111; Thu, 11 Nov 2021 03:36:50 -0800 (PST) Original-Received: by 2002:a05:6000:1788:0:0:0:0 with HTTP; Thu, 11 Nov 2021 03:36:48 -0800 (PST) In-Reply-To: <87czn7cptw.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219624 Archived-At: Good day Lars - Thanks, I will test with the man.el from Emacs 28 . But if it still does fontification on the fly, for each buffer read, I suspect it will still have the problem - there is no guarantee that the buffer did not end with only a partial escape sequence, which is then ignored. Unless this situation is detected and handled (check for partial escape at end, remove it, prefix it to the next buffer read) then it will still occur. I thought it much more complicated to try to do that than to just wait until the complete man process output has been read, then fontify the buffer - much simpler, it always works, only a brief display of unfontified contents for long man-pages occurs. I'll grab just the man.el from Emacs 28 and give it a try - I don't want to mess around with RPM packaging & building now to build the whole thing, I'll wait for the Fedora package to come out. Thanks & Best Regards, Jason On 11/11/2021, Lars Ingebrigtsen wrote: > "Jason Vas Dias" writes: > >> Render a LONG manual page, for instance : >> >> M-x manual-entry bash >> >> ALWAYS triggers this bug for me, on a Fedora 34 x86_64 Linux distro, >> fully up-to-date as of 2021-11-11 - >> >> $ rpm -q emacs >> emacs-27.2-5.fc34.x86_64 > > I think these ANSI glitches have been fixed in Emacs 28. Would it be > possible for you to build that and check? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no >