From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Moving "manual.org" into core Date: Thu, 01 Feb 2018 15:55:41 +0100 Message-ID: <87vafgwyhe.fsf@nicolasgoaziou.fr> References: <87bmhooaj9.fsf@nicolasgoaziou.fr> <87tvveqi7u.fsf@bzg.fr> <87y3kqyp6m.fsf@gmx.us> <87y3kncx6x.fsf@nicolasgoaziou.fr> <87efmcucyw.fsf@nicolasgoaziou.fr> <87bmherp0r.fsf@nicolasgoaziou.fr> <87zi4wpw0x.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehGHB-0003b3-Pl for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 09:55:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehGHA-0003au-Rd for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 09:55:45 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:43138) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ehGHA-0003a4-IV for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 09:55:44 -0500 In-Reply-To: (Yasushi SHOJI's message of "Thu, 1 Feb 2018 20:43:06 +0900") 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" To: Yasushi SHOJI Cc: emacs-org list Hello, Yasushi SHOJI writes: > What if _I_, for my own project, want to customize the formatter and like to > call fill-paragraph, can I still do this? No need to tweak the formatter. You can post-process its output to your liking, e.g., with `org-fill-paragraph' called on the whole buffer. > I don't know how `fill-paragraph` works and the second point you listed > above worries me. > > With my ignorance, I thought just call org-fill-paragraph. Or, do you > mean that "`org-mode' will be initialized" in `org-fill-paragraph`? The formatter produces strings, concatened together. At each produced string, we would need to create a temporary buffer, activate Org mode, insert the string and fill the whole buffer, with `org-fill-paragraph'. > BTW, while reading `org-fill-paragraph`, I found a bug. > > #+begin_src emacs-lisp > (add-to-list 'load-path "~/path/to/orgdir/lisp") > #+end_src > > activate the region for the src block above, and do `M-x org-fill-paragraph`. > It will inf-loop because `M-q` moves the cursor back to the beginning of > the middle line. Fixed. Thank you. Regards, -- Nicolas Goaziou