Hello, Yasushi SHOJI <yasushi.sh...@gmail.com> 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 g...@code.orgmode.org:bzg/org-mode.git > - $ make autoloads > +$ cd ~/src/ > +$ git clone g...@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