Re: [O] HTML export doesn't work when #+TITLE: is added
Lee Hinman writes: > Hi Org-ML, > > I'm trying to resolve an issue similar to the one here: > http://lists.gnu.org/archive/html/emacs-orgmode/2015-08/msg01195.html > > Where I cannot export a file with a #+TITLE in it with the latest > org-mode release. To follow-up on this, this was due to having in my init.el: (setq package-enable-at-startup nil) Which meant that packages were not initialized at the beginning of my configuration, only at the end. Removing this line has fixed my issue. -- ;; Lee
Re: [O] HTML export doesn't work when #+TITLE: is added
Hi Org-ML, I'm trying to resolve an issue similar to the one here: http://lists.gnu.org/archive/html/emacs-orgmode/2015-08/msg01195.html Where I cannot export a file with a #+TITLE in it with the latest org-mode release. The solution that Kyle refers to[0] is to uninstall and then update again with the latest org version. Can someone tell me how to do that? I have tried running emacs with `emacs -q` and even then the older version of org-mode installed in /usr/local/share/emacs/24.5/lisp/org is loaded so it interferes. Do I really need to uninstall emacs and then re-install it to be able to use the newer org-mode version (8.3.1)? Is there not a way to override the installed version of org-mode with a newer one from ELPA? 0: http://lists.gnu.org/archive/html/emacs-orgmode/2015-08/msg01196.html -- ;; Lee
[O] Bug: ob-clojure tangling does not handle comments correctly [8.2.5h (8.2.5h-6-g8e1386-elpa @ /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/org/)]
-and-waiting-next-tasks) (org-agenda-sorting-strategy (quote (category-keep ) (tags-todo -CANCELLED+WAITING/! ((org-agenda-overriding-header Waiting and Postponed Tasks) (org-agenda-skip-function (quote bh/skip-stuck-projects)) (org-tags-match-list-sublevels nil) (org-agenda-todo-ignore-scheduled (quote future)) (org-agenda-todo-ignore-deadlines (quote future))) ) (tags -REFILE/ ((org-agenda-overriding-header Tasks to Archive) (org-agenda-skip-function (quote bh/skip-non-archivable-tasks)) (org-tags-match-list-sublevels nil)) ) ) nil) ) org-return-follows-link t org-todo-keyword-faces '((STARTED :foreground deep sky blue :weight bold) (DONE :foreground SpringGreen1 :weight bold) (WAITING :foreground orange :weight bold) (INPROGRESS :foreground cyan :weight bold) (NEEDSREVIEW :foreground #edd400 :weight bold)) org-agenda-include-diary t org-startup-indented t org-after-todo-state-change-hook '(org-clock-out-if-current) org-from-is-user-regexp \\Lee Hinman\\ org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-agenda-dim-blocked-tasks nil org-mode-hook '(er/add-org-mode-expansions yas-minor-mode-on (lambda nil (define-key org-mode-map [C-tab] (quote other-window)) (define-key org-mode-map [C-S-tab] (function (lambda nil (interactive) (other-window -1 ) turn-on-auto-fill #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9)) org-agenda-cmp-user-defined 'bh/agenda-sort org-outline-path-complete-in-steps nil org-stuck-projects '( nil nil ) org-agenda-compact-blocks t org-agenda-sorting-strategy '((agenda habit-down time-up user-defined-up priority-down effort-up category-keep) (todo category-up priority-down effort-up) (tags category-up priority-down effort-up) (search category-up)) org-agenda-time-grid '((daily today remove-match) #( 0 16 (org-heading t)) (900 1100 1300 1500 1700)) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-refile-use-outline-path t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-archive-location %s_archive::* Archived Tasks org-agenda-insert-diary-extract-time t org-refile-allow-creating-parent-nodes 'confirm org-todo-keywords '((sequence TODO(t) STARTED(s) INPROGRESS(i) WAITING(w) | DONE(d)) (sequence TODO(t) INPROGRESS(i) NEEDSREVIEW(n) | DONE(d))) org-modules '(org-bbdb org-bibtex org-docview org-gnus org-habit org-info org-irc org-mhe org-rmail org-w3m) org-agenda-window-setup 'current-window org-babel-tangle-lang-exts '((python . py) (ruby . rb) (clojure . clj) (emacs-lisp . el)) org-confirm-elisp-link-function 'yes-or-no-p org-edit-src-content-indentation 0 org-metadown-hook '(org-babel-pop-to-session-maybe) org-startup-truncated nil org-cycle-separator-lines 0 org-completion-use-ido t org-babel-load-languages '((emacs-lisp . t) (clojure . t) (sh . t) (ruby . t) (python . t) (gnuplot . t)) org-agenda-files '(~/org/todo.org ~/org/notes.org ~/org/journal.org ~/org/work.org ~/org/refile.org ~/org/meetings.org) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil org-src-fontify-natively t org-tag-alist '((oss . 111) (home . 104) (work . 119) (book . 98)) )
Re: [O] Bug: ob-clojure tangling does not handle comments correctly [8.2.5h (8.2.5h-6-g8e1386-elpa @ /usr/local/Cellar/emacs/HEAD/share/emacs/24.3.50/lisp/org/)]
On 2/6/14, 9:32 AM, Bastien wrote: Can you try with latest ob-clojure.el from the master branch? We fixed a few things recently, and the example works fine for me. I tried it running from git (org-version returns Org-mode version 8.2.3a (release_8.2.3a @ /Users/hinmanm/src/elisp/org-mode/lisp/)) I'm still getting it tangled as (let [org-mode-print-catcher (java.io.StringWriter.)] (clojure.pprint/with-pprint-dispatch clojure.pprint/code-dispatch (clojure.pprint/pprint (do (println foo) ;; My comment) org-mode-print-catcher) (str org-mode-print-catcher))) I did some bisecting on my dotfiles and determined it was caused by this line: (setq org-babel-default-header-args (cons '(:results . code) (assq-delete-all :results org-babel-default-header-args))) Which seems very strange to me, once I comment out that line the text is tangled as just (println foo) ;; My comment
[O] Bug: indenting in sh-mode org-babel source block causes 100% CPU [8.2.3c (8.2.3c-elpa @ /Users/hinmanm/.emacs.d/elpa/org-20131115/)]
If I have a simple org-mode file containing: #+BEGIN_SRC sh #+END_SRC And I hit C-c ' to edit code in the block, then type (ignore the for a second): for i in {1..10}; do done If I place my cursor at the and hit TAB to indent, Emacs freezes, using 100% CPU until I quit. For reference, this works completely fine in a regular sh-mode buffer, it only freezes if editing an org-babel block. I've used the profiler to narrow this down to something in the smie indention code, but my elisp-fu is too weak to narrow any further. ;; Lee Hinman Emacs : GNU Emacs 24.3.50.1 (i386-apple-darwin12.5.0, NS apple-appkit-1187.40) of 2013-10-28 on Xanadu.local Package: Org-mode version 8.2.3c (8.2.3c-elpa @ /Users/hinmanm/.emacs.d/elpa/org-20131115/) current state: == (setq org-export-backends '(ascii html icalendar latex md) org-export-babel-evaluate nil org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-shell-link-function 'yes-or-no-p org-return-follows-link t org-todo-keyword-faces '((STARTED :foreground deep sky blue :weight bold) (DONE :foreground SpringGreen1 :weight bold) (WAITING :foreground orange :weight bold)) org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(org-clock-load #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes (lambda nil (define-key org-mode-map [C-tab] (quote other-window)) (flyspell-mode -1) (define-key org-mode-map [C-S-tab] (lambda nil (interactive) (other-window -1 yas-minor-mode-on) org-refile-targets '((~hinmanm/org/todo.org :level . 1) (~hinmanm/org/notes.org :level . 1)) org-clock-persist 'history org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-directory ~/.emacs.d/ org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((sequence TODO(t) STARTED(s) WAITING(w) | DONE(x) CANCEL(c)) (sequence WAITING(f) | DONE(x) CANCEL(c))) org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-rmail org-w3m org-velocity) org-babel-tangle-lang-exts '((python . py) (ruby . rb) (clojure . clj) (emacs-lisp . el)) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-startup-truncated nil org-completion-use-ido t org-babel-load-languages '((emacs-lisp . t) (clojure . t) (sh . t) (ruby . t) (python . t)) org-agenda-files '(/Users/hinmanm/org/.#circuit-breaker.org /Users/hinmanm/org/amazon-purchases.org /Users/hinmanm/org/catapi.org /Users/hinmanm/org/ch04-search.org /Users/hinmanm/org/ch05-analysis.org /Users/hinmanm/org/circuit-breaker.org /Users/hinmanm/org/cluster-settings.org /Users/hinmanm/org/companies.org /Users/hinmanm/org/excluded-source-filter.org /Users/hinmanm/org/index.org /Users/hinmanm/org/journal.org /Users/hinmanm/org/literate-es-scripts.org /Users/hinmanm/org/malformed-in-source.org /Users/hinmanm/org/named-queries.org /Users/hinmanm/org/nested-in-all.org /Users/hinmanm/org/notes.org /Users/hinmanm/org/numeric-loading.org /Users/hinmanm/org/simple-query-parser.org /Users/hinmanm/org/todo.org /Users/hinmanm/org/update-api-with-partial-source.org /Users/hinmanm/org/work.org) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil org-src-fontify-natively t )
Re: [O] org-sparse-tree on region or subtree?
Bernt Suvayu, Thanks. Narrowing to subtree and then running org-sparse-tree worked great. -- Lee On Fri, Mar 11, 2011 at 7:18 PM, Bernt Hansen be...@norang.ca wrote: Lee Hinman hin...@gmail.com writes: Is it possible to run org-sparse-tree on a specific region or subtree of an org file? I have an Org file with the following structure * 2010... * 2011 ** 2011-01 January... ** 2011-02 February *** 2011-02-01 Tuesday Alice - Plain list item 1 - Plain list item 2 Bob - Plain list item a - Plain list item b *** 2011-02-08 Tuesday Alice - Plain list item 3 - Plain list item 4 Bob - Plain list item c - Plain list item d I'd like to be able to be able to run a command and see all the Alice entries for 2011-02 February. It seems like a sparse tree (with a regex for Alice) on the 2011-02 February subtree would give me that. But I *think* org-sparse-tree uses org-occur which always starts at point-min, but I could easily be mis-reading the code. Does anyone have any ideas? Narrow to subtree, then run org-sparse-tree normally, then widen maybe? -- Bernt
[O] org-sparse-tree on region or subtree?
Is it possible to run org-sparse-tree on a specific region or subtree of an org file? I have an Org file with the following structure * 2010... * 2011 ** 2011-01 January... ** 2011-02 February *** 2011-02-01 Tuesday Alice - Plain list item 1 - Plain list item 2 Bob - Plain list item a - Plain list item b *** 2011-02-08 Tuesday Alice - Plain list item 3 - Plain list item 4 Bob - Plain list item c - Plain list item d I'd like to be able to be able to run a command and see all the Alice entries for 2011-02 February. It seems like a sparse tree (with a regex for Alice) on the 2011-02 February subtree would give me that. But I *think* org-sparse-tree uses org-occur which always starts at point-min, but I could easily be mis-reading the code. Does anyone have any ideas? -- Lee Hinman hin...@gmail.com
[Orgmode] setting org-export-latex-image-default-option on a per file basis?
Hi all, I'm using org-babel-ditaa to insert a picture into a document I am writing. This works great, except the inserted image is too small. By changing the -s option to ditaa I was able to modify the size of the image for the HTML export but not for the LaTeX. I did a little looking at the .tex file and found this: \includegraphics[width=10em]{before1.png} the width=10em is controlled by org-export-latex-image-default-option. Ideally I'd like to change this value for this file only, something like an entry in the #+OPTIONS line. But org-export-plist-vars has that element set to nil so it isn't configurable via that method. Does anyone have a suggestion of how I could tweak this variable on a per file basis? Thanks for any suggestions. -- Lee Hinman hin...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] possible bug in org-goto-local-search-headings
I noticed some interesting behavior with the org-goto-local-search-headings function in Emacs 23.1.1. If you call the function before doing an incremental search, searching forward fails. If you call it after doing an incremental search the function will search forward. A quick look at the code showed that it only does a forward search if isearch-forward is defined. This is both a variable and a function in isearch.el, and the variable isearch-forward is set to nil until you do a search. The following patch against the current orgmode removes the dependency on isearch-forward and will now search forward first, if it doesn't find anything will search backward from the original point. I *think* this is the behavior that was intended. diff --git a/lisp/org.el b/lisp/org.el index dd34816..1e9aad3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5801,8 +5801,7 @@ or nil. (defun org-goto-local-search-headings (string bound noerror) Search and make sure that any matches are in headlines. (catch 'return -(while (if isearch-forward - (search-forward string bound noerror) +(while (or (search-forward string bound t) (search-backward string bound noerror)) (when (let ((context (mapcar 'car (save-match-data (org-context) (and (member :headline context) -- Lee Hinman ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] possible bug in org-goto-local-search-headings
Carsten, I admit I could be using the function inappropriately. Please let me know if am. I have a little function I wrote to help me maintain a journal, I didn't like the formatting I got using remember. Here is the function. (defun lee-journal-entry () Create a new journal entry for today or append to existing month. (interactive) (switch-to-buffer (find-file lee-journal-file)) (widen) (let ((today (format-time-string %Y.%m))) (unless (org-goto-local-search-headings today nil t) ((lambda () (beginning-of-buffer) (org-insert-heading) (insert today (show-children) (end-of-line) (insert \n) (org-insert-heading) (org-do-demote) (org-insert-time-stamp (current-time)) (insert ))) So I'm using org-goto-local-search-heading to find the correct heading to start my new journal entry in. -- Lee Carsten Dominik carsten.domi...@gmail.com writes: Hi Lee, I do not understand. Why would you call this function? It is being called by the internals of isearch, and when that happens, isearch.el is obviously loaded. What am I missing here? - Carsten On Nov 12, 2009, at 8:04 PM, Lee Hinman wrote: I noticed some interesting behavior with the org-goto-local-search-headings function in Emacs 23.1.1. If you call the function before doing an incremental search, searching forward fails. If you call it after doing an incremental search the function will search forward. A quick look at the code showed that it only does a forward search if isearch-forward is defined. This is both a variable and a function in isearch.el, and the variable isearch-forward is set to nil until you do a search. The following patch against the current orgmode removes the dependency on isearch-forward and will now search forward first, if it doesn't find anything will search backward from the original point. I *think* this is the behavior that was intended. diff --git a/lisp/org.el b/lisp/org.el index dd34816..1e9aad3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5801,8 +5801,7 @@ or nil. (defun org-goto-local-search-headings (string bound noerror) Search and make sure that any matches are in headlines. (catch 'return -(while (if isearch-forward - (search-forward string bound noerror) +(while (or (search-forward string bound t) (search-backward string bound noerror)) (when (let ((context (mapcar 'car (save-match-data (org- context) (and (member :headline context) -- Lee Hinman ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten -- Lee Hinman hin...@gmail.com ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode