From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#32706: 27.0.50; Gnus ignores gnus-visual nil after gnus-article-outlook-deuglify-article Date: Wed, 12 Sep 2018 16:21:55 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1536737786 32566 195.159.176.226 (12 Sep 2018 07:36:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2018 07:36:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-unknown-cygwin) Cc: 32706@debbugs.gnu.org To: Filipp Gunbin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 12 09:36:22 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzzhE-0008MC-4R for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Sep 2018 09:36:20 +0200 Original-Received: from localhost ([::1]:34886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzzjK-0005pB-EA for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Sep 2018 03:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzzin-0005Sv-On for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2018 03:38:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzzUM-0008Li-Jz for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2018 03:23:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzzUM-0008Lc-Fx for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2018 03:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fzzUM-0007wv-Ar for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2018 03:23:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Sep 2018 07:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32706-submit@debbugs.gnu.org id=B32706.153673692630451 (code B ref 32706); Wed, 12 Sep 2018 07:23:02 +0000 Original-Received: (at 32706) by debbugs.gnu.org; 12 Sep 2018 07:22:06 +0000 Original-Received: from localhost ([127.0.0.1]:37749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzzTS-0007v3-0t for submit@debbugs.gnu.org; Wed, 12 Sep 2018 03:22:06 -0400 Original-Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:8911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzzTP-0007ue-PR for 32706@debbugs.gnu.org; Wed, 12 Sep 2018 03:22:04 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4269D282D48; Wed, 12 Sep 2018 07:22:01 +0000 (UTC) Original-Received: from hampton.hostforweb.net (unknown [100.96.29.126]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id B0B9E282DB3; Wed, 12 Sep 2018 07:22:00 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from hampton.hostforweb.net (hampton.hostforweb.net [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Wed, 12 Sep 2018 07:22:01 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Whimsical-Attack: 3a587b5754be7d0a_1536736921115_141404230 X-MC-Loop-Signature: 1536736921115:2791072537 X-MC-Ingress-Time: 1536736921114 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fzzTI-00FoLZ-8V; Wed, 12 Sep 2018 02:21:57 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:iJW2gDplbdfRC0Wkz25EETJhYj0= X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150243 Archived-At: On Tue, 11 Sep 2018 23:00:52 +0300, Filipp Gunbin wrote: > I have gnus-visual set to nil and articles are not fontified (correct). > But if I invoke `W Y f' (gnus-article-outlook-deuglify-article) on an > article, then it gets fontified. It's not the only command after which > I observe such behavior. I tried this fix at first: --- deuglify.el~ 2018-02-18 21:35:29.069455800 +0000 +++ deuglify.el 2018-09-12 07:18:02.820308500 +0000 @@ -301,3 +301,4 @@ ;; this is a bug or not. - (gnus-article-highlight t) + (when (gnus-visual-p 'article-highlight 'highlight) + (gnus-article-highlight t)) (gnus-treat-article nil) But I found this function is still problematic. That is, `(gnus-treat-article nil)' there runs in an article including headers, so, if gnus-visual is non-nil, the treatments are performed on not only the article body but also the header --- the header is buttonized if gnus-treat-buttonize is non-nil even if gnus-treat-buttonize-head is nil, for example. So, I've installed the next one in the trunk: --- deuglify.el~ 2018-02-18 21:35:29.069455800 +0000 +++ deuglify-2.el 2018-09-12 07:18:02.821397300 +0000 @@ -300,6 +300,12 @@ ;; prepared article removes all MIME parts. I'm unsure whether ;; this is a bug or not. - (gnus-article-highlight t) - (gnus-treat-article nil) + (when (gnus-visual-p 'article-highlight 'highlight) + (gnus-article-highlight t)) + (save-excursion + (save-restriction + (widen) + (article-goto-body) + (narrow-to-region (point) (point-max)) + (gnus-treat-article nil))) (gnus-run-hooks 'gnus-article-prepare-hook 'gnus-outlook-display-hook))) Unfortunately I have no idea not to buttonize the header of a forwarded message existing in the article as a mime part, though.