From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: [PATCH] Re: autoloads not working correctly for org-table.el? Date: Tue, 10 Mar 2015 16:48:35 +0800 Message-ID: <8761a9jl0c.fsf@ericabrahamsen.net> References: <87mw3z4q9j.fsf@ericabrahamsen.net> <877fv33ame.fsf@yahoo.fr> <87ioens1px.fsf@nicolasgoaziou.fr> <87vbihglgs.fsf@ericabrahamsen.net> <87mw3slrav.fsf@delle7240.chemeng.ucl.ac.uk> <87h9u0fcop.fsf@ericabrahamsen.net> <87vbi9mwcv.fsf_-_@ericabrahamsen.net> <87a8zlmtxe.fsf@ericabrahamsen.net> <87k2yp2raq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVFqQ-0004QB-AU for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 04:48:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVFqK-0006EZ-L6 for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 04:48:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:56604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVFqK-0006DG-Es for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 04:48:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YVFqI-0003Qr-Be for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 09:48:46 +0100 Received: from 221.218.167.68 ([221.218.167.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Mar 2015 09:48:46 +0100 Received: from eric by 221.218.167.68 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Mar 2015 09:48:46 +0100 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> And just for the heck of it, here's another patch that does it with >> narrowing. > > Thanks for the patch. > > However, I don't think it belongs to `org-adaptive-fill-function' to > handle this. All this Message mode processing should probably be > delegated to the orgstruct level. Makes sense! If we really want to get all the message-specific stuff refactored into orgstruct++ mode, I guess we could (in the `orgstruct++-mode' function) bind `normal-auto-fill-function' and `adaptive-fill-function' to new functions, which first check for message-mode specific stuff (and any other modes that need to be handled), then delegate to `org-auto-fill-function' and `org-adaptive-fill-function'. Actually, all `org-auto-fill-function' does is conditionally call `org-adaptive-fill-function', so maybe we could just have one new function, `orgstruct++-auto-fill-function', that does everything. How does that sound? Eric