[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] Moving "manual.org" into core
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [RFC] Moving "manual.org" into core |
Date: |
Sun, 04 Feb 2018 10:05:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
Yasushi SHOJI <address@hidden> 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 address@hidden:bzg/org-mode.git
> - $ make autoloads
> +$ cd ~/src/
> +$ git clone address@hidden: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