From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Moving "manual.org" into core Date: Sun, 04 Feb 2018 10:05:42 +0100 Message-ID: <87wozti0pl.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]:55892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiGFB-0000St-Sd for emacs-orgmode@gnu.org; Sun, 04 Feb 2018 04:05:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiGF6-0000by-Rl for emacs-orgmode@gnu.org; Sun, 04 Feb 2018 04:05:49 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38294) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eiGF6-0000bl-LJ for emacs-orgmode@gnu.org; Sun, 04 Feb 2018 04:05:44 -0500 In-Reply-To: (Yasushi SHOJI's message of "Thu, 1 Feb 2018 21:11:40 +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: > I mean, I run `emacs -q`, > eval only the following code in the `*scratch*` buffer, > open `manual.org` and do `M-x org-reformat`. > > and I see: > > ---- >8 ---- >8 ---- > @@ -134,9 +133,9 @@ > You can clone Org's repository and install Org like this: > > #+begin_example > - $ cd ~/src/ > - $ git clone git@code.orgmode.org:bzg/org-mode.git > - $ make autoloads > +$ cd ~/src/ > +$ git clone git@code.orgmode.org:bzg/org-mode.git > +$ make autoloads > #+end_example > > Note that in this case, ~make autoloads~ is mandatory: it defines > ---- >8 ---- >8 ---- > > I checked `org-src-preserve-indentation` is nil and > org-edit-src-content-indentation is 2. > I even `list-load-path-shadows` and check that git version of org is used. > > What am I missing? > > > (add-to-list 'load-path "~/src/org-mode/lisp") > (defun org-reformat () > (interactive) > (let ((result > (benchmark-run 1 > (let ((document (org-element-interpret-data > (org-element-parse-buffer)))) > (erase-buffer) > (insert document) > (goto-char (point-min)))))) > (if (zerop (nth 1 result)) > (message "Org Re-format took %.2f seconds" (car result)) > (message "Org Re-format took %.2f second (%.2fs in %d GCs)" > (car result) > (nth 2 result) > (nth 1 result))))) Fixed. Thank you. Regards, -- Nicolas Goaziou