From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Opening (for the first time) a 10-line Org doc takes 4 seconds Date: Tue, 15 Jan 2013 20:49:48 -0500 Message-ID: <87vcaxyk03.fsf@norang.ca> References: <80licv564w.fsf@somewhere.org> <87obhrrl44.fsf@bzg.ath.cx> <878v8ujcyn.fsf@Rainer.invalid> <87mwwnc0zg.fsf@bzg.ath.cx> <87ehhzsusx.fsf@Rainer.invalid> <87623bbybd.fsf@bzg.ath.cx> <871udzsr02.fsf@Rainer.invalid> <87wqvrsqcp.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvI8g-0007G8-KF for emacs-orgmode@gnu.org; Tue, 15 Jan 2013 20:50:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvI8d-0001QH-B3 for emacs-orgmode@gnu.org; Tue, 15 Jan 2013 20:50:01 -0500 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:23900 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvI8d-0001CB-6j for emacs-orgmode@gnu.org; Tue, 15 Jan 2013 20:49:59 -0500 In-Reply-To: <87wqvrsqcp.fsf@bzg.ath.cx> (Bastien's message of "Sat, 05 Jan 2013 14:37:26 +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: Bastien Cc: Achim Gratz , emacs-orgmode@gnu.org Bastien writes: > Achim Gratz writes: > >> Bastien writes: >>> What earlier version of Emacs does not behave like the current Emacs 24 >>> trunk with respect to this issue, >> >> Emacs 22 doesn't have any autoloads for Org at all, so nothing works. >> >> Emacs 23 has some autoload definitions from its built-in Org version(s), >> but there have been many changes to function/library name pairs in later >> versions of Org, so I'd generally expect this to be broken, but maybe >> not overtly if org gets loaded first (but org-version is not present as >> an autoloaded function for example). >> >> Emacs 24.x should be mostly clean, but there have been some additional >> autoloads in Babel that would be missing. > > All this I know -- I'm a bit stubborn but I read and learn :) > > Let me restate my question. > > Let's say that someone uses Emacs 23.2 with Org from Git. This user > has this line in her ~/.emacs.el before any other Org configuration: > > (add-to-list 'load-path "~/git/org-mode/lisp/") > > My assumption is that C-h f org-mode RET will show that org-mode is > an autoloaded function in "~/git/org-mode/lisp/" -- as it does for > me (using Emacs 24). > > Is that so? (I can't test Org with Emacs 23.2 right now.) For the record here is the output on my Emacs: GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2013-01-08 on murphy, modified by Debian Current git head: release_7.9.3d-826-gbe0d87d ,----[ minimal.emacs ] | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp")) | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) | (require 'org) | | (global-set-key "\C-cl" 'org-store-link) | (global-set-key "\C-ca" 'org-agenda) | (global-set-key "\C-cb" 'org-iswitchb) `---- ,----[ minimal-emacs ] | #!/bin/sh | TESTEL= | TESTFILE=/tmp/test.el | if test -e $TESTFILE | then | TESTEL="-l /tmp/test.el" | fi | emacs -q -l ~/minimal.emacs $TESTEL $1 `---- ,----[ C-h f org-mode RET ] | org-mode is an interactive compiled Lisp function in `org.el'. | | (org-mode) | | Outline-based notes management and organizer, alias | "Carsten's outline-mode for keeping track of everything." | | Org-mode develops organizational tasks around a NOTES file which | contains information about projects as plain text. Org-mode is | implemented on top of outline-mode, which is ideal to keep the content | of large files well structured. It supports ToDo items, deadlines and | time stamps, which magically appear in the diary listing of the Emacs | calendar. Tables are easily created with a built-in table editor. | Plain text URL-like links connect to websites, emails (VM), Usenet | messages (Gnus), BBDB entries, and any files related to the project. | For printing and sharing of notes, an Org-mode file (or a part of it) | can be exported as a structured ASCII or HTML file. | | The following commands are available: | | key binding | --- ------- | | C-a org-beginning-of-line | C-c Prefix Command | C-e org-end-of-line | TAB org-cycle | C-j org-return-indent | C-k org-kill-line | RET org-return | C-y org-yank | ESC Prefix Command | | org-force-self-insert | C-# org-table-rotate-recalc-marks | C-' org-cycle-agenda-files | C-, org-cycle-agenda-files | org-shiftcontroldown | org-shiftcontrolleft | org-insert-todo-heading-respect-content | org-shiftcontrolright | org-shiftcontrolup | org-insert-heading-respect-content | org-force-cycle-archived | org-shiftmetadown | org-shiftmetaleft | org-insert-todo-heading | org-shiftmetaright | org-shiftmetaup | org-metadown | org-metaleft | org-meta-return | org-metaright | org-metaup | org-shiftdown | org-shifttab | org-shiftleft | org-table-copy-down | org-shiftright | org-shifttab | org-shiftup | org-shifttab | Prefix Command | org-cycle | | M-TAB pcomplete | M-RET org-insert-heading | C-M-t org-transpose-element | M-a org-backward-sentence | M-e org-forward-sentence | M-h org-mark-element | M-{ org-backward-element | M-} org-forward-element | | C-c C-a org-attach | C-c C-b org-backward-heading-same-level | C-c C-c org-ctrl-c-ctrl-c | C-c C-d org-deadline | C-c C-e org-export | C-c C-f org-forward-heading-same-level | C-c C-j org-goto | C-c C-k org-kill-note-or-show-branches | C-c C-l org-insert-link | C-c RET org-ctrl-c-ret | C-c C-o org-open-at-point | C-c C-q org-set-tags-command | C-c C-r org-reveal | C-c C-s org-schedule | C-c C-t org-todo | C-c C-v Prefix Command | C-c C-w org-refile | C-c C-x Prefix Command | C-c C-y org-evaluate-time-range | C-c C-z org-add-note | C-c ESC Prefix Command | C-c C-^ org-up-element | C-c C-_ org-down-element | C-c SPC org-table-blank-field | C-c ! org-time-stamp-inactive | C-c # org-update-statistics-cookies | C-c $ org-archive-subtree | C-c % org-mark-ring-push | C-c & org-mark-ring-goto | C-c ' org-edit-special | C-c * org-ctrl-c-star | C-c + org-table-sum | C-c , org-priority | C-c - org-ctrl-c-minus | C-c . org-time-stamp | C-c / org-sparse-tree | C-c : org-toggle-fixed-width-section | C-c ; org-toggle-comment | C-c < org-date-from-calendar | C-c = org-table-eval-formula | C-c > org-goto-calendar | C-c ? org-table-field-info | C-c @ org-mark-subtree | C-c [ org-agenda-file-to-front | C-c \ org-match-sparse-tree | C-c ] org-remove-file | C-c ^ org-sort | C-c ` org-table-edit-field | C-c { org-table-toggle-formula-debugger | C-c | org-table-create-or-convert-from-region | C-c } org-table-toggle-coordinate-overlays | C-c ~ org-table-create-with-table.el | C-c C-* org-list-make-subtree | | org-delete-backward-char | org-delete-char | | org-backward-heading-same-level | org-demote-subtree | | org-forward-heading-same-level | | org-ctrl-c-ret | org-mark-subtree | org-promote-subtree | org-self-insert-command | org-kill-note-or-show-branches | org-show-subtree | org-transpose-words | | C-c C-M-l org-insert-all-links | C-c M-w org-copy | | C-c C-v C-a org-babel-sha1-hash | C-c C-v C-b org-babel-execute-buffer | C-c C-v C-c org-babel-check-src-block | C-c C-v C-d org-babel-demarcate-block | C-c C-v C-e org-babel-execute-maybe | C-c C-v C-f org-babel-tangle-file | C-c C-v TAB org-babel-view-src-block-info | C-c C-v C-j org-babel-insert-header-arg | C-c C-v C-l org-babel-load-in-session | C-c C-v C-n org-babel-next-src-block | C-c C-v C-o org-babel-open-src-block-result | C-c C-v C-p org-babel-previous-src-block | C-c C-v C-r org-babel-goto-named-result | C-c C-v C-s org-babel-execute-subtree | C-c C-v C-t org-babel-tangle | C-c C-v C-u org-babel-goto-src-block-head | C-c C-v C-v org-babel-expand-src-block | C-c C-v C-x org-babel-do-key-sequence-in-edit-buffer | C-c C-v C-z org-babel-switch-to-session | C-c C-v ESC Prefix Command | C-c C-v I org-babel-view-src-block-info | C-c C-v a org-babel-sha1-hash | C-c C-v b org-babel-execute-buffer | C-c C-v c org-babel-check-src-block | C-c C-v d org-babel-demarcate-block | C-c C-v e org-babel-execute-maybe | C-c C-v f org-babel-tangle-file | C-c C-v g org-babel-goto-named-src-block | C-c C-v h org-babel-describe-bindings | C-c C-v i org-babel-lob-ingest | C-c C-v j org-babel-insert-header-arg | C-c C-v l org-babel-load-in-session | C-c C-v n org-babel-next-src-block | C-c C-v o org-babel-open-src-block-result | C-c C-v p org-babel-previous-src-block | C-c C-v r org-babel-goto-named-result | C-c C-v s org-babel-execute-subtree | C-c C-v t org-babel-tangle | C-c C-v u org-babel-goto-src-block-head | C-c C-v v org-babel-expand-src-block | C-c C-v x org-babel-do-key-sequence-in-edit-buffer | C-c C-v z org-babel-switch-to-session-with-code | | C-c C-x C-a org-archive-subtree-default | C-c C-x C-b org-toggle-checkbox | C-c C-x C-c org-columns | C-c C-x C-d org-clock-display | C-c C-x C-f org-emphasize | C-c C-x TAB org-clock-in | C-c C-x C-j org-clock-goto | C-c C-x C-l org-preview-latex-fragment | C-c C-x RET Prefix Command | C-c C-x C-n org-next-link | C-c C-x C-o org-clock-out | C-c C-x C-p org-previous-link | C-c C-x C-q org-clock-cancel | C-c C-x C-r org-clock-report | C-c C-x C-s org-advertized-archive-subtree | C-c C-x C-t org-toggle-time-stamp-overlays | C-c C-x C-u org-dblock-update | C-c C-x C-v org-toggle-inline-images | C-c C-x C-w org-cut-special | C-c C-x C-x org-clock-in-last | C-c C-x C-y org-paste-special | C-c C-x C-z org-resolve-clocks | C-c C-x ESC Prefix Command | C-c C-x ! org-reload | C-c C-x , org-timer-pause-or-continue | C-c C-x - org-timer-item | C-c C-x . org-timer | C-c C-x 0 org-timer-start | C-c C-x : org-timer-cancel-timer | C-c C-x ; org-timer-set-timer | C-c C-x < org-agenda-set-restriction-lock | C-c C-x > org-agenda-remove-restriction-lock | C-c C-x A org-archive-to-archive-sibling | C-c C-x E org-inc-effort | C-c C-x G org-feed-goto-inbox | C-c C-x P org-set-property-and-value | C-c C-x [ org-reftex-citation | C-c C-x \ org-toggle-pretty-entities | C-c C-x _ org-timer-stop | C-c C-x a org-toggle-archive-tag | C-c C-x b org-tree-to-indirect-buffer | C-c C-x c org-clone-subtree-with-time-shift | C-c C-x d org-insert-drawer | C-c C-x e org-set-effort | C-c C-x f org-footnote-action | C-c C-x g org-feed-update-all | C-c C-x i org-insert-columns-dblock | C-c C-x o org-toggle-ordered-property | C-c C-x p org-set-property | C-c C-x v org-copy-visible | | C-c C-v C-M-h org-babel-mark-block | | C-c C-x C-M-v org-redisplay-inline-images | C-c C-x M-w org-copy-special | | C-c C-x RET g org-mobile-pull | C-c C-x RET p org-mobile-push | | | | In addition to any hooks its parent mode `outline-mode' might have run, | this mode runs the hook `org-mode-hook', as the final step | during initialization. `----