From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43536 Path: quimby.gnus.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: gnus-summary-toggle-header fails for body-less, boundary-less articles Date: Tue, 19 Feb 2002 14:28:02 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1014146988 1624 195.204.10.66 (19 Feb 2002 19:29:48 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 19 Feb 2002 19:29:48 GMT Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16dFxT-0000Q0-00; Tue, 19 Feb 2002 20:29:47 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16dFw5-000350-00; Tue, 19 Feb 2002 13:28:21 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 19 Feb 2002 13:28:20 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA12389 for ; Tue, 19 Feb 2002 13:28:10 -0600 (CST) Original-Received: (qmail 4581 invoked by alias); 19 Feb 2002 19:28:05 -0000 Original-Received: (qmail 4576 invoked from network); 19 Feb 2002 19:28:04 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (qmailr@129.22.96.25) by gnus.org with SMTP; 19 Feb 2002 19:28:04 -0000 Original-Received: (qmail 17413 invoked by uid 500); 19 Feb 2002 19:28:25 -0000 Original-To: ding@gnus.org Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu) Original-Lines: 17 Precedence: list X-Majordomo: 1.94.jlt7 Xref: quimby.gnus.org gmane.emacs.gnus.general:43536 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43536 For an article which has no body and no empty line marking the end of the header, gnus-summary-toggle-header fails in two ways. This line finds the character position before the end of the buffer, instead of the one at the end: (setq e (1- (or (search-forward "\n\n" nil t) (point-max)))) This is easy enough to fix: (setq e (search-forward "\n\n" nil t) e (if e (1- e) (point-max))) But it also fails to delete the header, so the added header: (when (search-forward "\n\n" nil t) (delete-region (point-min) (1- (point)))) This doesn't try to do anything for the no-boundary case, so I'm wondering if that's intentional. Anyone know? Or should it just delete all the way to (point-max) in this case? paul