From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [BUG] org-fill-paragraph seems broken Date: Fri, 27 Apr 2012 13:54:15 -0400 Message-ID: <3017.1335549255@alphaville> References: <719.1335546013@alphaville> <87sjfpw0of.fsf@gnu.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNpNC-000608-1m for emacs-orgmode@gnu.org; Fri, 27 Apr 2012 13:54:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNpNA-0000HX-7p for emacs-orgmode@gnu.org; Fri, 27 Apr 2012 13:54:25 -0400 In-Reply-To: Message from Bastien of "Fri, 27 Apr 2012 19:21:20 +0200." <87sjfpw0of.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org Bastien wrote: > Hi Nick, > > Nick Dokos writes: > > > Running M-q in a draft message with orgstruct++-mode enabled gives me > > the appended backtrace. > > > > The problem seems to have been introduced by commit 84a358e3. Git blame > > fingers the following two as the most recent commits that affected > > org-fill-paragraph: > > > > 187f77a2 2012-04-04 > > 84a358e3 2012-04-26 > > > > With the first one in force, I don't get the problem; with > > the second, I do. > > Can you try this patch against sendmail.el and report? > > === modified file 'lisp/mail/sendmail.el' > --- lisp/mail/sendmail.el 2012-04-27 03:10:38 +0000 > +++ lisp/mail/sendmail.el 2012-04-27 17:18:43 +0000 > @@ -803,7 +803,7 @@ > t))) > (do-auto-fill))) > > -(defun mail-mode-fill-paragraph (arg) > +(defun mail-mode-fill-paragraph (&optional arg) > ;; Do something special only if within the headers. > (if (< (point) (mail-header-end)) > (let (beg end fieldname) > That fixes it - but is it really a problem with sendmail.el and not with org? Nick