prj@po.cwru.edu (Paul Jarc) writes: > 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? Does the attached patch fix the problem? ShengHuo