From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24540 Path: main.gmane.org!not-for-mail From: Michael Cook Newsgroups: gmane.emacs.gnus.general Subject: Re: forward-paragraph Date: 28 Jul 1999 14:00:41 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <80k8rklkmu.fsf@lucy.sightpath.com> References: <80674ounr9.fsf@lucy.sightpath.com> <809099iq9b.fsf@lucy.sightpath.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162089 9306 80.91.224.250 (21 Oct 2002 01:01:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:01:29 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id OAA06018 for ; Wed, 28 Jul 1999 14:05:56 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.3/8.9.3) with ESMTP id NAB10975; Wed, 28 Jul 1999 13:02:12 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 28 Jul 1999 13:02:10 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id NAA06403 for ; Wed, 28 Jul 1999 13:01:57 -0500 (CDT) Original-Received: from tma-1.sightpath.com (tma-1.sightpath.com [208.246.45.91]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id OAA05930 for ; Wed, 28 Jul 1999 14:00:49 -0400 (EDT) Original-Received: from lucy.sightpath.com (IDENT:cook@lucy.sightpath.com [208.246.45.93]) by tma-1.sightpath.com (8.9.1a/8.9.1) with ESMTP id OAA18178 for ; Wed, 28 Jul 1999 14:00:42 -0400 (EDT) Original-Received: (from cook@localhost) by lucy.sightpath.com (8.8.7/8.8.7) id OAA00193; Wed, 28 Jul 1999 14:00:41 -0400 Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "03 Jul 1999 11:55:17 +0200" Original-Lines: 51 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24540 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24540 Lars Magne Ingebrigtsen writes: > > More data... When this odd behavior starts happening, if I exit > > from gnus (don't need to exit from emacs), and restart gnus, the > > problem goes away. I'm running GNU Emacs 20.3.1. > > The only thing that sets the variable in question is message.el, and > it makes it buffer-local first. Do you have any hooks that set it or > something? It turns out that `fill-prefix' is causing forward-paragraph to misbehave. In the *Article* buffer, `fill-prefix' has acquired a buffer-local value of " " (i.e., several spaces). By quitting and restarting gnus, I apparently force gnus to destroy and recreate the *Article* buffer, thereby discarding the buffer-local value. Looking in w3-display.el, I see this code: (defsubst w3-set-fill-prefix-length (len) (setq fill-prefix (if (< len (- (or w3-strict-width (window-width)) 4)) (w3-get-pad-string len) (url-warn 'html "Runaway indentation! Too deep for window width!") fill-prefix))) This would be consistent with the pattern I think I've been seeing: that forward-paragraph ceases to work right in all articles after viewing any HTML article. I've noticed in other situations that setting buffer-local variables in the *Article* buffer has a kind of lingering effect. So, here's a question: When gnus starts "rendering" an article into an *Article* buffer, shouldn't gnus first kill-all-local-variables? Perhaps this: --- gnus-art.el.~1~ Fri Jul 9 18:22:56 1999 +++ gnus-art.el Wed Jul 28 13:57:20 1999 @@ -2520,6 +2520,7 @@ (current-buffer)) (save-excursion (set-buffer (gnus-get-buffer-create name)) + (kill-all-local-variables) (gnus-article-mode) (make-local-variable 'gnus-summary-buffer) (gnus-summary-set-local-parameters gnus-newsgroup-name) M.