Re: [Orgmode] export problem
charles snyder wrote: > Until recently, my org exports worked perfectly. I haven't made any changes I > am aware of. Now > I am having export problems with my .org files. > > When I try to export as freemind (C-c C-e m) I get: > "wrong type argument: org-export-as-freemind". > > When I try to export as pdf (C-c C-e d), I get the following error: > ... > Runaway argument? > {Request Library books \href {http://www.jocolibrary.org/default.aspx\ETC. > ! File ended while scanning use of \...@xdblarg. > > \par > ... > I am using org mode 6.35 emacs, GNU Emacs 22.3.1 > (i386-apple-darwin9.7.0, Carbon Version 1.6.0) or Aquamacs GNU Emacs > 23.0.94.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) on mac osx > (but same problem on windows) > I tried both exports on a (trivial, although it did include some links) org file and I had no problems. Can you try to get a minimal example of an org file that causes these problems for you and post it here? Posting the whole file (modulo any privacy concerns) is the second best possibility. If that is not possible, it's going to be tougher going: try exporting to latex and then run pdftex on it by hand. If that gives you the same error, then post the portion of the latex file around the error and the corresponding portion of the org file. That's probably not going to be enough information but you never know. Nick ___ 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] export problem
Hi Until recently, my org exports worked perfectly. I haven't made any changes I am aware of. Now I am having export problems with my .org files. When I try to export as freemind (C-c C-e m) I get: "wrong type argument: org-export-as-freemind". When I try to export as pdf (C-c C-e d), I get the following error: This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode (/Users/clsnyder/Dropbox/emacs_org/personal.tex LaTeX2e <2005/12/01> Babel and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish, french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish, turkish, ukenglish, ukrainian, loaded. (/usr/local/texlive/2007/texmf-dist/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/local/texlive/2007/texmf-dist/tex/latex/base/size11.clo)) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/inputenc.sty (/usr/local/texlive/2007/texmf-dist/tex/latex/base/utf8.def (/usr/local/texlive/2007/texmf-dist/tex/latex/base/t1enc.dfu) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/ot1enc.dfu) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/omsenc.dfu))) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2007/texmf-dist/tex/latex/base/t1enc.def)) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/fixltx2e.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2007/texmf/tex/latex/config/graphics.cfg) (/usr/local/texlive/2007/texmf-dist/tex/latex/pdftex-def/pdftex.def))) (/usr/local/texlive/2007/texmf-dist/tex/latex/tools/longtable.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/float/float.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/wrapfig/wrapfig.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/soul/soul.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/t1enc.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/textcomp.sty (/usr/local/texlive/2007/texmf-dist/tex/latex/base/ts1enc.def (/usr/local/texlive/2007/texmf-dist/tex/latex/base/ts1enc.dfu))) (/usr/local/texlive/2007/texmf-dist/tex/latex/marvosym/marvosym.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/wasysym/wasysym.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/latexsym.sty) (/usr/local/texlive/2007/texmf-dist/tex/latex/amsfonts/amssymb.sty (/usr/local/texlive/2007/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (/usr/local/texlive/2007/texmf-dist/tex/latex/hyperref/hyperref.sty (/usr/local/texlive/2007/texmf-dist/tex/latex/hyperref/pd1enc.def) (/usr/local/texlive/2007/texmf/tex/latex/config/hyperref.cfg) (/usr/local/texlive/2007/texmf-dist/tex/latex/oberdiek/kvoptions.sty) Implicit mode ON; LaTeX internals redefined (/usr/local/texlive/2007/texmf-dist/tex/latex/ltxmisc/url.sty)) *hyperref using default driver hpdftex* (/usr/local/texlive/2007/texmf-dist/tex/latex/hyperref/hpdftex.def) (./personal.aux) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2007/texmf-dist/tex/context/base/supp-pdf.tex [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/local/texlive/2007/texmf-dist/tex/latex/hyperref/nameref.sty (/usr/local/texlive/2007/texmf-dist/tex/latex/oberdiek/refcount.sty)) (./personal.out) (./personal.out) (/usr/local/texlive/2007/texmf-dist/tex/latex/wasysym/uwasy.fd) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/ulasy.fd) (/usr/local/texlive/2007/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/local/texlive/2007/texmf-dist/tex/latex/amsfonts/umsb.fd) (./personal.toc ) (/usr/local/texlive/2007/texmf-dist/tex/latex/base/t1cmtt.fd) [1{/usr/local/t exlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2] Overfull \vbox (599.92874pt too high) has occurred while \output is active [3]) Runaway argument? {Request Library books \href {http://www.jocolibrary.org/default.aspx\ETC. ! File ended while scanning use of \...@xdblarg. \par <*> /Users/clsnyder/Dropbox/emacs_org/personal.tex ! Emergency stop. <*> /Users/clsnyder/Dropbox/emacs_org/personal.tex ! ==> Fatal error occurred, no output PDF file produced! Transcript written on personal.log. I am using org mode 6.35 emacs, GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version 1.6.0) or Aquamacs GNU Emacs 23.0.94.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) on mac osx (but same problem on windows) Thanks in advance Charles Snyder -- Charles L. Snyder, MD Professor of Surgery Children's Mer
[Orgmode] [patch] Sort the sitemap again
Hi Carsten, here is a patch, that sorts the sitemap-file on html-export. One my configure the sorting per project, by adding these lines to his `org-publish-project-alist': :sitemap-sort-foldersSet this to one of "first" (default), "last". Any other value will mixe files and folders. :sitemap-alphabetically Set to `t' to sort filenames alphabetically. Alphatical sorting is the default. Hence you must set this to nil explicitly. :sitemap-ignore-case If non-nil, alphabetical sorting is done case-insensitive. Default: nil." I added a variable `org-publish-file-title-cache' to cache absolute paths and titles of the files. Otherwise, `org-publish-find-title' would be called twice for each file. I have to call it when sorting the files, to sort them by title instead of file name. Best wishes Sebastian diff --git a/lisp/org-publish.el b/lisp/org-publish.el index 6ef1e24..a455997 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -174,7 +174,17 @@ sitemap of files or summary page for a given project. of the titles of the files involved) or `tree' (the directory structure of the source files is reflected in the sitemap). Defaults to - `tree'." + `tree'. + + If you create a sitemap file, adjust the sorting like this: + + :sitemap-sort-foldersSet this to one of \"first\" (default), \"last\". + Any other value will mixe files and folders. + :sitemap-alphabetically Set to `t' to sort filenames alphabetically. + Alphatical sorting is the default. Hence you + must set this to nil explecitly. + :sitemap-ignore-case If non-nil, alphabetical sorting is done + case-insensitive. Default: nil." :group 'org-publish :type 'alist) @@ -287,11 +297,16 @@ Each element of this alist is of the form: (defvar org-publish-temp-files nil "Temporary list of files to be published.") +;; Here, so you find the variable right before it's used the first time: +(defvar org-publish-file-title-cache nil + "List of absolute filenames and titles.") + (defun org-publish-initialize-files-alist (&optional refresh) "Set `org-publish-files-alist' if it is not set. Also set it if the optional argument REFRESH is non-nil." (interactive "P") (when (or refresh (not org-publish-files-alist)) +(setq org-publish-file-title-cache '()) (setq org-publish-files-alist (org-publish-get-files org-publish-project-alist @@ -355,6 +370,32 @@ This splices all the components into the list." (push p rtn))) (nreverse (org-publish-delete-dups (delq nil rtn) +(defun org-publish-sort-directory-files (a b) + "Predicate for `sort', that sorts folders-first/last and +eventually alphabetically." + (let ((retval t)) +(when (or sitemap-alphabetically sitemap-sort-folders) + ;; First we sort alphabetically: + (when sitemap-alphabetically +(let ((aorg (and (string-match "\\.org$" a) (not (file-directory-p a + (borg (and (string-match "\\.org$" b) (not (file-directory-p b) + (setq retval +(if sitemap-ignore-case +(string-lessp (if borg (upcase (org-publish-find-title a)) (upcase a)) + (if aorg (upcase (org-publish-find-title b)) (upcase b))) + (string-lessp (if borg (org-publish-find-title a) a) +(if aorg (org-publish-find-title b) b)) + ;; Directory-wise wins: + (when sitemap-sort-folders +;; a is directory, b not: +(cond + ((and (file-directory-p a) (not (file-directory-p b))) + (setq retval (string= sitemap-sort-folders "first"))) + ;; a is not a directory, but b is: + ((and (not (file-directory-p a)) (file-directory-p b)) + (setq retval (string= sitemap-sort-folders "last")) + retval)) + (defun org-publish-get-base-files-1 (base-dir &optional recurse match skip-file skip-dir) "Set `org-publish-temp-files' with files from BASE-DIR directory. If RECURSE is non-nil, check BASE-DIR recursively. If MATCH is @@ -374,7 +415,7 @@ matching the regexp SKIP-DIR when recursing through BASE-DIR." (not (file-exists-p (file-truename f))) (not (string-match match fnd))) (pushnew f org-publish-temp-files) - (directory-files base-dir t (unless recurse match + (sort (directory-files base-dir t (unless recurse match)) 'org-publish-sort-directory-files))) (defun org-publish-get-base-files (project &optional exclude-regexp) "Return a list of all files in PROJECT. @@ -558,9 +599,18 @@ If :makeindex is set, also produce a file theindex.org." "sitem
Re: [Orgmode] [patch] Terminating lists by indentation of #+SPECIALS too
Carsten Dominik writes: > Hi Sebastion, sorry for being hard to satisfy on this one. > > What I mean is this: > > The location where your patck kicks in looks like this: > > > (org-export-html-close-lists-maybe line) > > ;; Protected HTML > (when (get-text-property 0 'org-protected line) > (let (par (ind (get-text-property 0 'original-indentation line))) > (when (re-search-backward >"\\(\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t) > (setq par (match-string 1)) > (replace-match "\\2\n")) > (insert line "\n") > > So before we are looking at protected stuff, there is already a call to > org-export-html-close-lists-maybe. It seems to me that what you are trying to > do > could just happen inside that function. The function checks for a text > property > 'original-indentation to check for special stuff that was indented - > but apparently that does not cover your case. So in that function you could > also look at the protected property and act accordingly. > > Does that make sense? Ah, now I got you here! You're feeling for the code is all to good :) I could indeed remove more than half of the lines. So here comes the next generation: diff --git a/lisp/org-html.el b/lisp/org-html.el index 0903bff..5b13649 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -959,10 +959,12 @@ lang=\"%s\" xml:lang=\"%s\"> (when (equal "ORG-VERSE-START" line) (org-close-par-maybe) (insert "\n\n") +(setq org-par-open t) (setq inverse t) (throw 'nextline nil)) (when (equal "ORG-VERSE-END" line) (insert "\n") +(setq org-par-open nil) (org-open-par) (setq inverse nil) (throw 'nextline nil)) @@ -1996,7 +1998,11 @@ If there are links in the string, don't modify these." (defvar local-list-indent) (defvar local-list-type) (defun org-export-html-close-lists-maybe (line) - (let ((ind (or (get-text-property 0 'original-indentation line))) + (let* ((rawhtml (and in-local-list (get-text-property 0 'org-protected line))) + (ind + (if rawhtml + (org-get-indentation line) +(or (get-text-property 0 'original-indentation line ; (and (string-match "\\S-" line) ; (org-get-indentation line didclose) Sebastian ___ 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
Re: [Orgmode] [patch] Terminating lists by indentation of #+SPECIALS too
Hi Sebastion, sorry for being hard to satisfy on this one. What I mean is this: The location where your patck kicks in looks like this: (org-export-html-close-lists-maybe line) ;; Protected HTML (when (get-text-property 0 'org-protected line) (let (par (ind (get-text-property 0 'original-indentation line))) (when (re-search-backward "\\(\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t) (setq par (match-string 1)) (replace-match "\\2\n")) (insert line "\n") So before we are looking at protected stuff, there is already a call to org-export-html-close-lists-maybe. It seems to me that what you are trying to do could just happen inside that function. The function checks for a text property 'original-indentation to check for special stuff that was indented - but apparently that does not cover your case. So in that function you could also look at the protected property and act accordingly. Does that make sense? - Carsten On Apr 21, 2010, at 6:08 PM, Sebastian Rose wrote: Hi Carsten, Carsten Dominik writes: Hi Sebastian, I am not sure I understand this patch fully. And it looks to me that this should be taken care of in `org-export-html-close-list-maybe'. Could you take another look and check if this could be easily moved into there? I am confused why this is inside the when clause about protectedness of the line. I was aware of the function `org-export-html-close-list-maybe' but I couldn't get that to work. Now got it to work by adding a new parameter to that function, saying, that it's first argument is raw HTML (see new patch below). There was another problem about paragraphs. In this file, "*List ONE*" was wrapped in "", while "*List TWO*" was not: * Some Lists #+HTML: *List ONE* - Item one - Item two #+html: #+html: *List TWO* - Item one - Item two #+HTML: The new patch fixes this, too. That is, what the new `org-open-par-maybe' is for. It's a corner case and I should keep it for testing. I published all my org-notes (more than 100 files) to HTML and they validate better then before. So the patch might be save to apply. --- lisp/org-html.el2010-04-21 17:02:18.0 +0200 +++ lisp/org-html-versuch-mit-rawhtml.el 2010-04-21 17:50:10.0 +0200 @@ -929,6 +929,12 @@ ;; Protected HTML (when (get-text-property 0 'org-protected line) +(when in-local-list + (org-export-html-close-lists-maybe line t) + (insert line "\n") + (throw 'nextline nil)) + + (let (par (ind (get-text-property 0 'original-indentation line))) (when (re-search-backward "\\(\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t) @@ -959,10 +965,12 @@ (when (equal "ORG-VERSE-START" line) (org-close-par-maybe) (insert "\n\n") +(setq org-par-open t) (setq inverse t) (throw 'nextline nil)) (when (equal "ORG-VERSE-END" line) (insert "\n") +(setq org-par-open nil) (org-open-par) (setq inverse nil) (throw 'nextline nil)) @@ -986,6 +994,8 @@ (unless (string-match "[ \t]*$" line) (setq line (concat line "") + (org-open-par-maybe) + ;; make targets to anchors (setq start 0) (while (string-match @@ -1982,6 +1992,11 @@ (org-close-par-maybe) (insert "\n") (setq org-par-open t)) +(defun org-open-par-maybe () + "Insert , but only if no paragraph is open." + (when (not org-par-open) +(insert "\n") +(setq org-par-open t))) (defun org-close-par-maybe () "Close paragraph if there is one open." (when org-par-open @@ -1995,15 +2010,20 @@ (defvar in-local-list) (defvar local-list-indent) (defvar local-list-type) -(defun org-export-html-close-lists-maybe (line) - (let ((ind (or (get-text-property 0 'original-indentation line))) +(defun org-export-html-close-lists-maybe (line &optional rawhtml) + "RAWHTML suppresses paragraphs and checks the indentation for +`#+SPECIAL:' lines." + (let ((ind + (if rawhtml + (org-get-indentation line) + (or (get-text-property 0 'original-indentation line ;(and (string-match "\\S-" line) ; (org-get-indentation line didclose) (when ind (while (and in-local-list (<= ind (car local-list-indent))) - (setq didclose t) + (setq didclose (not rawhtml)) (org-close-li (car local-list-type)) (insert (format "\n" (car local-list-type))) (pop local-list-type) (pop local-list-indent) Sebastian But I may have just lost my memory of how this works - Carsten On Apr 19, 2010, at 1:54 AM, Sebastian Rose wrote: Haaarrrgh --- the first patch in
Re: [Orgmode] [Patch] M-Right and M-Left behave differently on headings and list items
On Apr 21, 2010, at 10:27 PM, Matti De Craene wrote: Hello Carsten and others, If you are calling for more consistency, maybe this "feature" should go as well? I do not have a strong opinion on this. In (my) day-to-day use of org-mode, cases in which the difference between having a lock or not matters rarely do occur. If consistency here is important, then it seems more sensible to me to have the lock for headings as well, instead of removing it for list items. When I grab a chunk of text to move back and forth, I do not expect it to suddenly get hands and grab other pieces of text :-) Yes, I agree we should keep the lock for lists. For headlines I have never felt the need as much. I've discovered a bug in my patch today: M-Right and M-Left on collapsed items take the complete subtree. On collapsed headings they only take the current heading. I'm not sure what would be the desired behaviour here... Excellent question. I think the cleanest would be that M-left/right on a folded item that does have children throws an error. - Carsten Kind Regards, Matti On Wed, Apr 21, 2010 at 3:54 PM, Carsten Dominik wrote: On Apr 21, 2010, at 3:32 PM, Bastien wrote: Carsten Dominik writes: do others agree with Matti's view? FWIW, I do. There is still another difference. Currently, when I execute the indentation command several times in a row, the range to which this applies is locked. So for example" - level 1a - level 2a - level 2b - level 2c - level 1b If I now go on level 1a and use M-S-left, level 1b becomes a sibling of 2c. If I immediately after this do M-S-right, 1b should be indented along with 2c, but this does not happen because the item range is locked. If, however, you do something in between, like moving the cursor by one character, 1b will be included. I believe I did this a long time ago, because I felt that not locking the range for commands in direct succession would too quickly modify the structure, including at places outside of the current view ( beyond the window end) If you are calling for more consistency, maybe this "feature" should go as well? - Carsten - Carsten ___ 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
Re: [Android] [Orgmode] Force close with MobileOrg Android 0.2_alpha and development snapshot
Looks like this might be a bug trying to write your files out to subdirectories it looks like I'm not trying to create the subdirectories. If you put your files in just the root directory does that work for you? 73, Matthew W. Jones (KI4ZIB) http://matburt.net On Wed, Apr 21, 2010 at 4:35 PM, Friedrich Delgado Friedrichs < frie...@nomaden.org> wrote: > Hi! > > I finally got around to trying out MobileOrg for Android. > > After I finally managed to set up webdav and sync my files, MobileOrg > force closed. (development snapshot from today) > > Now it force closes every time I try to start it. > > I tried the 0.2 alpha release next but it also force closed on > startup. > > Looking into my /sdcard/mobileorg files, I noticed that only parts of > my files were there. > > In particular, I notice that I have subdirectories 'home' and 'work' > in my Org files, but there are no subdirectories in the > /sdcard/mobileorg directory. > > Then I tried deinstalling the application and reinstalling (this time > the 0.2 alpha), put in my setup, pressed sync and get a force close > again. > > Unfortunately the logcat contains the full contents of some of my org > files, which I can't post to the list, so I'm posting parts of it > here: > > [ log with contents of files] > > I/global (14760): Default buffer size used in BufferedWriter > constructor. It would be better to be explicit if an 8k-char buffer is > required. > E/MobileOrg(14760): IO Exception initializing writer on sdcard file > > [log of further files, but this time *without* the contents] > > E/MobileOrg(14760): Error: /sdcard/mobileorg/work/Someday.org in file > work/Someday.org > D/AndroidRuntime(14760): Shutting down VM > W/dalvikvm(14760): threadid=3: thread exiting with uncaught exception > (group=0x4001e180) > E/AndroidRuntime(14760): Uncaught handler: thread main exiting due to > uncaught exception > D/dalvikvm(14760): GC freed 858 objects / 810176 bytes in 83ms > E/AndroidRuntime(14760): java.lang.NullPointerException > E/AndroidRuntime(14760):at > com.matburt.mobileorg.OrgFileParser.parse(OrgFileParser.java:99) > E/AndroidRuntime(14760):at > > com.matburt.mobileorg.MobileOrgActivity.runParser(MobileOrgActivity.java:145) > E/AndroidRuntime(14760):at > > com.matburt.mobileorg.MobileOrgActivity.postSynchronize(MobileOrgActivity.java:269) > E/AndroidRuntime(14760):at > com.matburt.mobileorg.MobileOrgActivity$1.run(MobileOrgActivity.java:117) > E/AndroidRuntime(14760):at > android.os.Handler.handleCallback(Handler.java:587) > E/AndroidRuntime(14760):at > android.os.Handler.dispatchMessage(Handler.java:92) > E/AndroidRuntime(14760):at > android.os.Looper.loop(Looper.java:123) > E/AndroidRuntime(14760):at > android.app.ActivityThread.main(ActivityThread.java:4358) > E/AndroidRuntime(14760):at > java.lang.reflect.Method.invokeNative(Native Method) > E/AndroidRuntime(14760):at > java.lang.reflect.Method.invoke(Method.java:521) > E/AndroidRuntime(14760):at > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) > E/AndroidRuntime(14760):at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) > E/AndroidRuntime(14760):at > dalvik.system.NativeStart.main(Native Method) > I/Process ( 2566): Sending signal. PID: 14760 SIG: 3 > I/dalvikvm(14760): threadid=7: reacting to signal 3 > I/dalvikvm(14760): Wrote stack trace to '/data/anr/traces.txt' > D/dalvikvm( 2898): GC freed 68 objects / 2408 bytes in 209ms > D/dalvikvm( 2614): GC freed 2336 objects / 110792 bytes in 201ms > I/Process (14760): Sending signal. PID: 14760 SIG: 9 > I/ActivityManager( 2566): Process com.matburt.mobileorg (pid 14760) > has died. > I/WindowManager( 2566): WIN DEATH: Window{43e0e690 > com.matburt.mobileorg/com.matburt.mobileorg.MobileOrgActivity > paused=false} > I/WindowManager( 2566): WIN DEATH: Window{43e47e50 > com.matburt.mobileorg/com.matburt.mobileorg.MobileOrgActivity > paused=false} > > We should probably do further debugging off-list. > > -- >Friedrich Delgado Friedrichs > TauPan on Ircnet and Freenode ;) > > > ___ > 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 > ___ 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
[Android] [Orgmode] Force close with MobileOrg Android 0.2_alpha and development snapshot
Hi! I finally got around to trying out MobileOrg for Android. After I finally managed to set up webdav and sync my files, MobileOrg force closed. (development snapshot from today) Now it force closes every time I try to start it. I tried the 0.2 alpha release next but it also force closed on startup. Looking into my /sdcard/mobileorg files, I noticed that only parts of my files were there. In particular, I notice that I have subdirectories 'home' and 'work' in my Org files, but there are no subdirectories in the /sdcard/mobileorg directory. Then I tried deinstalling the application and reinstalling (this time the 0.2 alpha), put in my setup, pressed sync and get a force close again. Unfortunately the logcat contains the full contents of some of my org files, which I can't post to the list, so I'm posting parts of it here: [ log with contents of files] I/global (14760): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required. E/MobileOrg(14760): IO Exception initializing writer on sdcard file [log of further files, but this time *without* the contents] E/MobileOrg(14760): Error: /sdcard/mobileorg/work/Someday.org in file work/Someday.org D/AndroidRuntime(14760): Shutting down VM W/dalvikvm(14760): threadid=3: thread exiting with uncaught exception (group=0x4001e180) E/AndroidRuntime(14760): Uncaught handler: thread main exiting due to uncaught exception D/dalvikvm(14760): GC freed 858 objects / 810176 bytes in 83ms E/AndroidRuntime(14760): java.lang.NullPointerException E/AndroidRuntime(14760):at com.matburt.mobileorg.OrgFileParser.parse(OrgFileParser.java:99) E/AndroidRuntime(14760):at com.matburt.mobileorg.MobileOrgActivity.runParser(MobileOrgActivity.java:145) E/AndroidRuntime(14760):at com.matburt.mobileorg.MobileOrgActivity.postSynchronize(MobileOrgActivity.java:269) E/AndroidRuntime(14760):at com.matburt.mobileorg.MobileOrgActivity$1.run(MobileOrgActivity.java:117) E/AndroidRuntime(14760):at android.os.Handler.handleCallback(Handler.java:587) E/AndroidRuntime(14760):at android.os.Handler.dispatchMessage(Handler.java:92) E/AndroidRuntime(14760):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime(14760):at android.app.ActivityThread.main(ActivityThread.java:4358) E/AndroidRuntime(14760):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(14760):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime(14760):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) E/AndroidRuntime(14760):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) E/AndroidRuntime(14760):at dalvik.system.NativeStart.main(Native Method) I/Process ( 2566): Sending signal. PID: 14760 SIG: 3 I/dalvikvm(14760): threadid=7: reacting to signal 3 I/dalvikvm(14760): Wrote stack trace to '/data/anr/traces.txt' D/dalvikvm( 2898): GC freed 68 objects / 2408 bytes in 209ms D/dalvikvm( 2614): GC freed 2336 objects / 110792 bytes in 201ms I/Process (14760): Sending signal. PID: 14760 SIG: 9 I/ActivityManager( 2566): Process com.matburt.mobileorg (pid 14760) has died. I/WindowManager( 2566): WIN DEATH: Window{43e0e690 com.matburt.mobileorg/com.matburt.mobileorg.MobileOrgActivity paused=false} I/WindowManager( 2566): WIN DEATH: Window{43e47e50 com.matburt.mobileorg/com.matburt.mobileorg.MobileOrgActivity paused=false} We should probably do further debugging off-list. -- Friedrich Delgado Friedrichs TauPan on Ircnet and Freenode ;) ___ 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
Re: [Orgmode] [org-babel] Feature request: Get a scalar for "data=example-table[0, 1]"
Thank you Eric, That was much faster then I had expected. :) It works perfectly now. Regarding the hlines, I find more intuitive not counting them for indexing, since this is how table formulas work in org, but I'm OK with whatever solution you and Dan come up with. At last, after loading message.el I can now use message-mark-inserted-region, which is much better than boxquote-region for code snippets. Thank you again, Darlan 2010/4/21 Eric Schulte : > Hi Darlan, > > Darlan Cavalcante Moreira writes: > >> In the org-babel documentation we see that one can pass a single element >> from a table to a babel source block with >> , >> ! :var data=example-table[0,1] >> ` >> >> I assumed that I would get a scalar value, but it seems that I still get a >> table (but with only one element). For instance, if I have the table below >> >> #+TBLNAME: MyTable >> | X | Y | >> |-+| >> | 0 | 0 | >> | 1 | 1 | >> | 2 | 4 | >> | 3 | 9 | >> | 4 | 16 | >> | 5 | 25 | >> |-+| >> | Sum | 55 | >> #+TBLFM: $2=$1*$1::@8$2=vsum(@2...@-1) >> >> then the code in python to print the value of sum returns >> >> , >> ! #+begin_src python :var sum=MyTable[9,1] :results output :exports none >> ! print sum >> ! #+end_src >> ! >> ! #+results: >> ! : [[55]] >> ` >> >> but I would expect to get only 55, since I'm getting a specific element in >> MyTable and not a sub-table. >> > > I see. Yes I agree it would be more intuitive if we convert trivial > lists to scalars. I'm pushing up this change to the indexing behavior, > thanks for the suggestion! > > Now your example above behaves as follows... > > --8<---cut here---start->8--- > #+TBLNAME: MyTable > | X | Y | > |-+| > | 0 | 0 | > | 1 | 1 | > | 2 | 4 | > | 3 | 9 | > | 4 | 16 | > | 5 | 25 | > |-+| > | Sum | 55 | > #+TBLFM: $2=$1*$1::@8$2=vsum(@2...@-1) > > #+begin_src python :var sum=MyTable[2:7,1] :exports none > return sum > #+end_src > > #+results: > | 0 | 1 | 4 | 9 | 16 | 25 | > > #+begin_src python :var sum=MyTable[9,1] :exports none > return sum > #+end_src > > #+results: > : 55 > --8<---cut here---end--->8--- > >> >> In addition, the hlines are being counted. Is this intended behaviour? > > Unfortunately there is no clean way (at least that I am aware of) to > handle 'hlines *before* the table indexing code has a crack at parsing > the table. I suppose we could simply strip out all hlines whenever a > table is being indexed, but I'm not sure if that's always desirable... > >> I remember that there is a thread in the list about keeping the hlines >> in resulting tables, but even if that is desirable, counting the >> hlines as lines will result in troubles (python give me an error if I >> use sum=MyTable[9,1], for instance). >> > > This is a more general problem. As it happens Dan and I are currently > testing an update which will introduce some new header arguments to deal > with this issue exactly . It's still a little too green to inflict on a > wider audience, but trust me when I say that relief is on the horizon. > >> >> >> I was trying to plot the table with Org-Babel and Gnuplot with the code below >> >> #+begin_src gnuplot :var data=MyTable[1:-2] :var sum=MyTable[7,1] >> :results silent :exports none >> reset >> set label "Sum: %.0f",sum at graph 0.03, graph 0.93 >> plot data with linespoints >> #+end_src >> >> but the sum variable will have the value of a temporary file with the >> element [7,1] instead of the actual value. I could use ":var sum=55" but >> then I would have to change this whenever I change the table. >> > > For a short email this is packed with probing questions. :) > > This has to do with passing literal values to gnuplot (as opposed to > tables). When gnuplot receives a vector it drops it to a table and > replaces the variable with the table (so gnuplot can pull the values > out), when it receives a scalar it just drops the scalar value directly > into the code. > > The above indexing fix should also fix this problem. > > Best -- Eric > >> >> >> - Darlan >> >> ps: How do I do that "cute here start/end"? Is it gnus functionality (I use >> wanderlust) or it is more general? >> > > The function is called `message-mark-inserted-region' and is part of > message.el which I believe is distributed with Emacs (can't be sure). > >> >> >> ___ >> 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 > -- Darlan Cavalcante Moreira "SDR4all, a new way of teaching telecommunications: http://www.sdr4all.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
Re: [Orgmode] [patch] Terminating lists by indentation of #+SPECIALS too
Hi Carsten, Carsten Dominik writes: > Hi Sebastian, > > I am not sure I understand this patch fully. And it looks to me that this > should be taken care of in `org-export-html-close-list-maybe'. Could you take > another look and check if this could be easily moved into there? I am > confused > why this is inside the when clause about protectedness of the line. I was aware of the function `org-export-html-close-list-maybe' but I couldn't get that to work. Now got it to work by adding a new parameter to that function, saying, that it's first argument is raw HTML (see new patch below). There was another problem about paragraphs. In this file, "*List ONE*" was wrapped in "", while "*List TWO*" was not: * Some Lists #+HTML: *List ONE* - Item one - Item two #+html: #+html: *List TWO* - Item one - Item two #+HTML: The new patch fixes this, too. That is, what the new `org-open-par-maybe' is for. It's a corner case and I should keep it for testing. I published all my org-notes (more than 100 files) to HTML and they validate better then before. So the patch might be save to apply. --- lisp/org-html.el 2010-04-21 17:02:18.0 +0200 +++ lisp/org-html-versuch-mit-rawhtml.el 2010-04-21 17:50:10.0 +0200 @@ -929,6 +929,12 @@ ;; Protected HTML (when (get-text-property 0 'org-protected line) +(when in-local-list + (org-export-html-close-lists-maybe line t) + (insert line "\n") + (throw 'nextline nil)) + + (let (par (ind (get-text-property 0 'original-indentation line))) (when (re-search-backward "\\(\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t) @@ -959,10 +965,12 @@ (when (equal "ORG-VERSE-START" line) (org-close-par-maybe) (insert "\n\n") +(setq org-par-open t) (setq inverse t) (throw 'nextline nil)) (when (equal "ORG-VERSE-END" line) (insert "\n") +(setq org-par-open nil) (org-open-par) (setq inverse nil) (throw 'nextline nil)) @@ -986,6 +994,8 @@ (unless (string-match "[ \t]*$" line) (setq line (concat line "") + (org-open-par-maybe) + ;; make targets to anchors (setq start 0) (while (string-match @@ -1982,6 +1992,11 @@ (org-close-par-maybe) (insert "\n") (setq org-par-open t)) +(defun org-open-par-maybe () + "Insert , but only if no paragraph is open." + (when (not org-par-open) +(insert "\n") +(setq org-par-open t))) (defun org-close-par-maybe () "Close paragraph if there is one open." (when org-par-open @@ -1995,15 +2010,20 @@ (defvar in-local-list) (defvar local-list-indent) (defvar local-list-type) -(defun org-export-html-close-lists-maybe (line) - (let ((ind (or (get-text-property 0 'original-indentation line))) +(defun org-export-html-close-lists-maybe (line &optional rawhtml) + "RAWHTML suppresses paragraphs and checks the indentation for +`#+SPECIAL:' lines." + (let ((ind + (if rawhtml + (org-get-indentation line) + (or (get-text-property 0 'original-indentation line ; (and (string-match "\\S-" line) ; (org-get-indentation line didclose) (when ind (while (and in-local-list (<= ind (car local-list-indent))) - (setq didclose t) + (setq didclose (not rawhtml)) (org-close-li (car local-list-type)) (insert (format "\n" (car local-list-type))) (pop local-list-type) (pop local-list-indent) Sebastian > But I may have just lost my memory of how this works > > - Carsten > > On Apr 19, 2010, at 1:54 AM, Sebastian Rose wrote: > >> Haaarrrgh --- >> >> >> the first patch in my previous mail does not work for all cases. Hairy >> stuff >> >> >> Here's what did _not_ work with my previous patch: >> >> #+html: >> *Unsorted Patterns* >>- a >>- b >>- c >> #+HTML: Somthing inside the last item!!! >> #+HTML: >> >> >> >> >> >> But this one finally works: >> >> >> diff --git a/lisp/org-html.el b/lisp/org-html.el >> index fcddd50..0174e43 100644 >> --- a/lisp/org-html.el >> +++ b/lisp/org-html.el >> @@ -929,6 +929,17 @@ lang=\"%s\" xml:lang=\"%s\"> >> >>;; Protected HTML >>(when (get-text-property 0 'org-protected line) >> +(when in-local-list >> + (let ((ind (org-get-indentation line))) >> +(while (and (car local-list-indent) (< ind (car local- >> list-indent))) >> + (org-close-li (car local-list-type)) >> + (insert (format "\n" (car local-list-type))) >> + (setq local-list-indent (cdr local-list-indent)) >> + (setq local-list-type (cdr local-list-type)) >> + (setq in-local-list local-list-indent)) >> +(insert line "\n") >> +(throw 'nextline nil))) >> + >> (let (par (ind (get-text-property 0 'original-indentation line))) >>(when (re-search-backward >> "\\(\\
Re: [Orgmode] Precision setting for spreadsheet calculation
On Apr 18, 2010, at 3:41 PM, Michael Brand wrote: On 10-03-02 9:15 PM, Michael Brand wrote: I also played around quite a bit with the precision settings and will put the resulting examples into the Worg FAQ. But I would like to postpone my Worg FAQ update because its link to the manual would be confusing before the manual update itself will have been made. I added http://orgmode.org/worg/org-faq.php#table-high-precision and http://orgmode.org/worg/org-faq.php#table-float-fraction Hi Michael, this is really very useful, I learned a lot from reading these two new FAQs. Thank you for your efforts. - Carsten ___ 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
Re: [Orgmode] [org-babel] Feature request: Get a scalar for "data=example-table[0, 1]"
Hi Darlan, Darlan Cavalcante Moreira writes: > In the org-babel documentation we see that one can pass a single element > from a table to a babel source block with > , > ! :var data=example-table[0,1] > ` > > I assumed that I would get a scalar value, but it seems that I still get a > table (but with only one element). For instance, if I have the table below > > #+TBLNAME: MyTable > | X | Y | > |-+| > | 0 | 0 | > | 1 | 1 | > | 2 | 4 | > | 3 | 9 | > | 4 | 16 | > | 5 | 25 | > |-+| > | Sum | 55 | > #+TBLFM: $2=$1*$1::@8$2=vsum(@2...@-1) > > then the code in python to print the value of sum returns > > , > ! #+begin_src python :var sum=MyTable[9,1] :results output :exports none > !print sum > ! #+end_src > ! > ! #+results: > ! : [[55]] > ` > > but I would expect to get only 55, since I'm getting a specific element in > MyTable and not a sub-table. > I see. Yes I agree it would be more intuitive if we convert trivial lists to scalars. I'm pushing up this change to the indexing behavior, thanks for the suggestion! Now your example above behaves as follows... --8<---cut here---start->8--- #+TBLNAME: MyTable | X | Y | |-+| | 0 | 0 | | 1 | 1 | | 2 | 4 | | 3 | 9 | | 4 | 16 | | 5 | 25 | |-+| | Sum | 55 | #+TBLFM: $2=$1*$1::@8$2=vsum(@2...@-1) #+begin_src python :var sum=MyTable[2:7,1] :exports none return sum #+end_src #+results: | 0 | 1 | 4 | 9 | 16 | 25 | #+begin_src python :var sum=MyTable[9,1] :exports none return sum #+end_src #+results: : 55 --8<---cut here---end--->8--- > > In addition, the hlines are being counted. Is this intended behaviour? Unfortunately there is no clean way (at least that I am aware of) to handle 'hlines *before* the table indexing code has a crack at parsing the table. I suppose we could simply strip out all hlines whenever a table is being indexed, but I'm not sure if that's always desirable... > I remember that there is a thread in the list about keeping the hlines > in resulting tables, but even if that is desirable, counting the > hlines as lines will result in troubles (python give me an error if I > use sum=MyTable[9,1], for instance). > This is a more general problem. As it happens Dan and I are currently testing an update which will introduce some new header arguments to deal with this issue exactly . It's still a little too green to inflict on a wider audience, but trust me when I say that relief is on the horizon. > > > I was trying to plot the table with Org-Babel and Gnuplot with the code below > > #+begin_src gnuplot :var data=MyTable[1:-2] :var sum=MyTable[7,1] > :results silent :exports none > reset > set label "Sum: %.0f",sum at graph 0.03, graph 0.93 > plot data with linespoints > #+end_src > > but the sum variable will have the value of a temporary file with the > element [7,1] instead of the actual value. I could use ":var sum=55" but > then I would have to change this whenever I change the table. > For a short email this is packed with probing questions. :) This has to do with passing literal values to gnuplot (as opposed to tables). When gnuplot receives a vector it drops it to a table and replaces the variable with the table (so gnuplot can pull the values out), when it receives a scalar it just drops the scalar value directly into the code. The above indexing fix should also fix this problem. Best -- Eric > > > - Darlan > > ps: How do I do that "cute here start/end"? Is it gnus functionality (I use > wanderlust) or it is more general? > The function is called `message-mark-inserted-region' and is part of message.el which I believe is distributed with Emacs (can't be sure). > > > ___ > 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 ___ 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
Re: [Orgmode] [Patch] M-Right and M-Left behave differently on headings and list items
Carsten Dominik writes: > On Apr 21, 2010, at 3:32 PM, Bastien wrote: > >> Carsten Dominik writes: >> >>> do others agree with Matti's view? >> >> FWIW, I do. > > There is still another difference. > > Currently, when I execute the indentation command > several times in a row, the range to which this applies > is locked. > > So for example" > > - level 1a > - level 2a > - level 2b > - level 2c > - level 1b > > If I now go on level 1a and use M-S-left, level 1b becomes a sibling > of 2c. If I immediately after this do M-S-right, 1b should be indented > along with 2c, but this does not happen because the item range is > locked. If, however, you do something in between, like moving the > cursor by one character, 1b will be included. > > I believe I did this a long time ago, because I felt that not locking > the range for commands in direct succession would too quickly modify > the structure, including at places outside of the current view ( > beyond the window end) > > If you are calling for more consistency, maybe this "feature" should > go as well? I hope that this is sufficiently closely related to belong in this thread: I find it surprising that org-do-demote deactivates the region. Let's say I start out with * 1 ** 11 * 111 * 112 * 2 and I wish to move to make 111 and 112 be children of 11 The way that seems natural to me is to select headings 111 and 112, and apply org-demote-subtree twice in succession. So with point at the beginning of the 111 line, C-space down down M-right M-right However, this leads me to * 1 ** 11 ** 111 ** 112 ** 2 because after one application of org-demote-subtree, the region becomes deactivated and the second demotion applies to heading 2, which is unlikely to have been intended. Dan > > - Carsten > > > > ___ > 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 ___ 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] [org-babel] Feature request: Get a scalar for "data=example-table[0, 1]"
In the org-babel documentation we see that one can pass a single element from a table to a babel source block with , ! :var data=example-table[0,1] ` I assumed that I would get a scalar value, but it seems that I still get a table (but with only one element). For instance, if I have the table below #+TBLNAME: MyTable | X | Y | |-+| | 0 | 0 | | 1 | 1 | | 2 | 4 | | 3 | 9 | | 4 | 16 | | 5 | 25 | |-+| | Sum | 55 | #+TBLFM: $2=$1*$1::@8$2=vsum(@2...@-1) then the code in python to print the value of sum returns , ! #+begin_src python :var sum=MyTable[9,1] :results output :exports none !print sum ! #+end_src ! ! #+results: ! : [[55]] ` but I would expect to get only 55, since I'm getting a specific element in MyTable and not a sub-table. In addition, the hlines are being counted. Is this intended behaviour? I remember that there is a thread in the list about keeping the hlines in resulting tables, but even if that is desirable, counting the hlines as lines will result in troubles (python give me an error if I use sum=MyTable[9,1], for instance). I was trying to plot the table with Org-Babel and Gnuplot with the code below #+begin_src gnuplot :var data=MyTable[1:-2] :var sum=MyTable[7,1] :results silent :exports none reset set label "Sum: %.0f",sum at graph 0.03, graph 0.93 plot data with linespoints #+end_src but the sum variable will have the value of a temporary file with the element [7,1] instead of the actual value. I could use ":var sum=55" but then I would have to change this whenever I change the table. - Darlan ps: How do I do that "cute here start/end"? Is it gnus functionality (I use wanderlust) or it is more general? ___ 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] Re: [Patch] M-Right and M-Left behave differently on headings and list items
Carsten Dominik writes: > On Apr 21, 2010, at 3:32 PM, Bastien wrote: > >> Carsten Dominik writes: >> >>> do others agree with Matti's view? >> >> FWIW, I do. > > There is still another difference. > > Currently, when I execute the indentation command > several times in a row, the range to which this applies > is locked. > > So for example" > > - level 1a > - level 2a > - level 2b > - level 2c > - level 1b > > If I now go on level 1a and use M-S-left, level 1b becomes a sibling > of 2c. If I immediately after this do M-S-right, 1b should be indented > along with 2c, but this does not happen because the item range is > locked. If, however, you do something in between, like moving the > cursor by one character, 1b will be included. > > I believe I did this a long time ago, because I felt that not locking > the range for commands in direct succession would too quickly modify > the structure, including at places outside of the current view ( > beyond the window end) > > If you are calling for more consistency, maybe this "feature" should > go as well? Wouldn't keeping it simple be best? ie. just have M-left and M-right move the current entry and let M-S-left and M-S-right move as it does today (including locked regions etc) I've found I want to move this one list entry in the middle left and can't since it drags the entire substructure with it -- so I resort to deleting (or inserting) spaces to move the one line. It's works but it's a little more cumbersome than prompting/demoting the entire structure. But then it's only one line so it's not hard to edit a single line... I don't think removing the lock is really a good idea personally. Regards, Bernt ___ 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
Re: [Orgmode] [Patch] M-Right and M-Left behave differently on headings and list items
On Apr 21, 2010, at 3:32 PM, Bastien wrote: Carsten Dominik writes: do others agree with Matti's view? FWIW, I do. There is still another difference. Currently, when I execute the indentation command several times in a row, the range to which this applies is locked. So for example" - level 1a - level 2a - level 2b - level 2c - level 1b If I now go on level 1a and use M-S-left, level 1b becomes a sibling of 2c. If I immediately after this do M-S-right, 1b should be indented along with 2c, but this does not happen because the item range is locked. If, however, you do something in between, like moving the cursor by one character, 1b will be included. I believe I did this a long time ago, because I felt that not locking the range for commands in direct succession would too quickly modify the structure, including at places outside of the current view ( beyond the window end) If you are calling for more consistency, maybe this "feature" should go as well? - Carsten ___ 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
Re: [Orgmode] [Patch] M-Right and M-Left behave differently on headings and list items
Carsten Dominik writes: > do others agree with Matti's view? FWIW, I do. -- Bastien ___ 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
Re: [Orgmode] [Patch] M-Right and M-Left behave differently on headings and list items
On 10-Apr-21, at 8:53 AM, Carsten Dominik wrote: Hi, do others agree with Matti's view? I agree. I think it would be better if the arrow keys behaved the same on a headline and on a list. -Anthony Thanks. - Carsten On Apr 20, 2010, at 12:29 AM, Matti De Craene wrote: Hello all, When operating on a heading, M-Right/M-Left promotes or demotes one heading only, and M-S-Right/M-S-Left promotes or demotes an entire subtree. When operating on list items however, there is no distinction between M-Right/M-Left and M-S-Right/M-S-Left. Both key combinations operate on the current item and on all subitems Example: No difference between M-Right and M-S-Right on item 1 below: - item 1 - item 2 - item 3 I find this behaviour somewhat confusing. Attached patch seems to fix that for me. Kind Regards, Matti items.patch>___ 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 - Carsten ___ 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 ___ 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] Re: [Patch] M-Right and M-Left behave differently on headings and list items
Hi Carsten and Matti, > do others agree with Matti's view? Yes, for me. > On Apr 20, 2010, at 12:29 AM, Matti De Craene wrote: > >> Hello all, >> >> When operating on a heading, M-Right/M-Left promotes or demotes one >> heading only, and M-S-Right/M-S-Left promotes or demotes an entire >> subtree. >> >> When operating on list items however, there is no distinction between >> M-Right/M-Left and M-S-Right/M-S-Left. Both key combinations operate >> on the current item and on all subitems >> >> Example: No difference between M-Right and M-S-Right on item 1 below: >> - item 1 >>- item 2 >>- item 3 >> >> I find this behaviour somewhat confusing. >> >> Attached patch seems to fix that for me. -- Sébastien Vauban ___ 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
Re: [Orgmode] [Patch] M-Right and M-Left behave differently on headings and list items
Hi, do others agree with Matti's view? Thanks. - Carsten On Apr 20, 2010, at 12:29 AM, Matti De Craene wrote: Hello all, When operating on a heading, M-Right/M-Left promotes or demotes one heading only, and M-S-Right/M-S-Left promotes or demotes an entire subtree. When operating on list items however, there is no distinction between M-Right/M-Left and M-S-Right/M-S-Left. Both key combinations operate on the current item and on all subitems Example: No difference between M-Right and M-S-Right on item 1 below: - item 1 - item 2 - item 3 I find this behaviour somewhat confusing. Attached patch seems to fix that for me. Kind Regards, Matti items.patch>___ 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 - Carsten ___ 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] Re: How you ORGanize yourself? (aka: Why not one file to rule'em all?)
"Alan E. Davis" writes: > 5. I hacked the code to provide six priority levels, #A--#F. I > haven't gotten around to use all the levels, but I forsee > being able, for example, to use #F as shopping list items. There's no need to hack the code for this. You can modify the variables that control how many priorities you get with - org-default-priority - org-highest-priority - org-lowest-priority ___ 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
Re: [Orgmode] Re: How you ORGanize yourself? (aka: Why not one file to rule'em all?)
My .02Euro-cents worth. I used to have an uber.org file setup, but i found it de-focused my thinking. I'd get sidetracked because a topic caught my attention or looked out of place. I've moved to something a bit more dynamic now, its still under construction though. I wanted to be able to minimize the amount of keystrokes i need to access a particular file, and have something that translated well to a mobile keypad. So my new philosophy is that I've decided to use numbers. They're easy to memorize and can be used in a kind of personal Dewey decimal scheme. Breaking it down, I have a bunch of directories in ~/ | org | the main org directory, under git | | 0_INBOX | a clearing house for file based "stuff" - firefox downloads to here | | 1_PROJECT | root tree for current project folders | | 2_SOMEDAY | root tree for someday project folders and tickler reminder files| | 5_TOREAD| electronic media i want to read - pdfs text files etc. | | 6_TOLISTEN | podcasts, audiobooks etc, | | 7_TOWATCH | downloaded videos etc. | | 8_REFERENCE | general reference material. | Using git, I sync my ~/org directory across the various machines i use org-mode on, but i leave the [0-9]_ named directories local to the machine. That provides context. I'm still experimenting with keeping the numbered directories under git. Its proving problematic when my sourcecode is also under git too. The 1_PROJECT folder contains a folder per project. Each project folder has a 1+.org file in it, which automatically gets picked up and used in the Agenda (see .emacs stuff below for details). That way the agenda is only populated with work i can actually do on that machine. I'm still looking into how to use git and the attachment system to manage project directories as separate git projects... In the sycned ~/org folder i have these files which are included in the agenda. All of these files can be found with two keystrokes, a number then a '+'. | 0+inbox.org| where all my remember stuff is dumped.| | 1+projects.org | personal/portable misc small project container| | 2+someday.org | Someday/Tickler/To-Buy| | 4+calendar.org | Appointments, birthdays (yet to sync with google) | | 8+contacts.org | Contact information | | 9+journal.org | Musings, Writings, rants etc. | And finally i'm using the numbers again, and "traffic light" style colors for task and project state tracking. | key | color | tag | description | |-++--+-| | 0 | green | DONE | Task done | | 1 | grey | TODO | Heading is a next action that was outlined and might need doing | | 2 | yellow | NEXT | Heading is a next action that needs doing. | | 3 | orange | WAIT | Heading is something i am waiting for | | 4 | yellow | APPT | Heading is an appointment of some kind | Tim. the .emacs code (setq org-default-notes-file (expand-file-name "~/org/0+inbox.org") org-todo-keywords (quote (;; normal workflow | (sequence "TODO(1!)" "NEXT(2!/!)" "WAIT(3@/!)" "APPT(4@/!)" "|" "DONE(0!/@!)" "DEFERRED(d...@!/!)" "CANCELED(c...@!/!)") ;; project state indicators (type "PROJECT(P!/@!)" "SOMEDAY(S!/@!)" "|" "PROJDONE" "PROJCANC") )) org-todo-keyword-faces (quote (;; "traffic light" style task colours ("TODO" :foreground "grey" :weight bold) ("NEXT" :foreground "gold" :weight bold) ("DONE" :foreground "forest green" :weight bold) ("WAIT" :foreground "orange" :weight bold) ("APPT" :foreground "gold" :weight bold) ("CANCELED" :foreground "indianred" :weight bold) ;; project level todo indicators ("SOMEDAY" :foreground "orchid" :weight bold) ("PROJECT" :foreground "grey" :weight bold) ("PROJDONE" :foreground "forest green" :weight bold) ("PROJCANC" :foreground "indianred" :weight bold) ))) (setq org-agenda-files ()) ;; use ~/org and search the top level directories in the 1_PROJECT folder (defun toc:add-org-agenda-directories (dir filter) "add files matched by filter in directory dir to org-agenda-files list" (interactive) (dolist (d2 (file-expand-wildcards (expand-file-name dir))) (if (file-directory-p d2) (dolist (f (directory-files d2 t filter t)) (push f org-agenda-files) ; only include numbered files from org directory (toc:add-org-agenda-directories "~/org" "[1-9]+.*.org$") ; auto include - 1+ files (toc:add-org-agenda-directories "~/1_PROJECT/*" "1\+.*.org$") ;; (setq org-refile-targets '((org-agenda-files :maxlevel . 3))) ___ Emacs-orgmo
Re: [Orgmode] suggestions of Android smartphones
On 21 Apr 2010 10:09:47 +0200, "Sven Bretfeld" wrote: > > Hi all > > I'm sorry to break the thread. By mistake I sent an answer to Daniel as > a PM. Now, I don't have the previous posting because of my expiration > settings. I will do some editing to my original answer because of > questions he asked me in the meantime. I'm really sorry. [...] Sven, Thank you very much for this message. Very helpful to have such a detailed description of a working scenario for org and mobile phones! I'll definitely be keeping this message until I manage to get myself a smartphone... Thanks again, eric ___ 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
Re: [Orgmode] error when exporting to pdf
Hi Buck, In this process, Org-mode will produce a .tex file. Try running pdflatex on the file "by hand", this will give you (and, if still necessary, us), more information on what is going wrong. - Carsten On Apr 21, 2010, at 2:22 AM, Buck Brody wrote: I am trying to export to PDF. I typed C-c C-e d. Which should be, "export as LaTeX and process to PDF and open PDF file". I received a message that said "PDF file was not produced". The org file I used was the one in the example http://orgmode.org/worg/org-tutorials/org-beamer.php . Version information and backtrace are below. Thanks for your help. Buck Versions: Emacs 22.3.1 Org-Mode 6.34c Backtrace: Debugger entered--Lisp error: (error "PDF file was not produced") signal(error ("PDF file was not produced")) error("PDF file was not produced") (if (not (file-exists-p pdffile)) (error "PDF file was not produced") (set-window-configuration wconfig) (when org-export-pdf- remove-logfiles (dolist ... ... ...)) (message "Exporting to PDF...done") pdffile) (let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) (cmds org-latex-to-pdf-process) (outbuf ...) (bibtex- p ...) cmd) (with-current-buffer outbuf (erase-buffer)) (message "Processing LaTeX file...") (if (and cmds ...) (funcall cmds file) (while cmds ... ... ... ...)) (message "Processing LaTeX file...done") (if (not ...) (error "PDF file was not produced") (set- window-configuration wconfig) (when org-export-pdf-remove- logfiles ...) (message "Exporting to PDF...done") pdffile)) org-export-as-pdf(nil) (let ((pdffile ...)) (if pdffile (org-open-file pdffile) (error "PDF file was not produced"))) org-export-as-pdf-and-open(nil) call-interactively(org-export-as-pdf-and-open) (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set- process-sentinel p ...) (message "Background process \"%s\": started" p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1 ass)) (when (and bpos ...) (let ... ... ... ... ...))) (let* ((bg ...) subtree-p (help "[t] insert the export option template\n[v] limit export to visible part of outline tree\n[1] only export the current subtree\n[SPC] publish enclosing subtree (with LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a] export as ASCII [A] to temporary buffer\n\n[h] export as HTML [H] to temporary buffer [R] export region\n[b] export as HTML and open in browser\n\n[l] export as LaTeX [L] to temporary buffer\n[p] export as LaTeX and process to PDF[d] ... and open PDF file\n\n[D] export as DocBook [V] export as DocBook, process to PDF, and open\n\n[m] export as Freemind mind map\n[x] export as XOXO \n[g] export using Wes Hardaker's generic exporter\n\n[i] export current file as iCalendar file\n[I] export all agenda files as iCalendar files [c] ...as one combined file\n\n[F] publish current file [P] publish current project\n[X] publish a project... [E] publish every projects") (cmds ...) r1 r2 ass (cpos ...) (cbuf ...) bpos) (save-excursion (save-window- excursion ... ... ... ... ... ... ...)) (and bpos (goto-char bpos)) (setq r2 (if ... ... r1)) (unless (setq ass ...) (error "No command associated with key %c" r1)) (if (and bg ... ... ...) (let ... ... ...) (if subtree-p ...) (call-interactively ...) (when ... ...))) org-export(nil) call-interactively(org-export) ___ 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 - Carsten ___ 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
Re: [Orgmode] error in this morning's git release
On Wed, 21 Apr 2010 09:25:56 +0100, Eric S Fraga wrote: > > [1 ] > Carsten et al., > > This morning's git version (8am BST) fails to work due to a problem > with org-inlinetask, specifically "const: unknown function" when > executing (require 'org-inlinetask) in my initialisation. > > Thanks, > eric Answering my own message: it works fine now (after the latest update to the git release: Org-mode version 6.35trans (release_6.35g.86.ge849)). Apologies for the noise and for the lack of detail in the earlier message (I was rushed as my train was pulling into my station...). Thanks, eric -- Eric S Fraga, GnuPG Fingerprint: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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] remove-compatibility-code branch obsolete
Hi everyone, the remove-compatibility-code branch is now obsolete, I have pushed much of this into the master, but not all of it. Michael Sperber is trying to integrate stuff into XEmacs which will make my life here a lot easier - and the remaining compatibility stuff is minor and can remain. - Carsten ___ 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
Re: [Orgmode] Re: How you ORGanize yourself? (aka: Why not one file to rule'em all?)
More than you want to know, I'm certain. I would certainly appreciate any ideas that others might provide. I am reluctant to provide much in the way of personal details, but perhaps I do have to provide some detail, in order to call attention to how I use Org-mode, in many aspects of my life. The pattern of my usage of org-mode has evolved through perhaps a year and a half, yet I am still at a very modest level of understanding. All the same, I have grown into new understandings about how to use Org. The ~/org directory (under git control so I can keep up to date on three computers) has been weighted down with a considerable level of cruft. I am a scatterbrained/eclectic, constantly thinking of new ways to clutter these files; yet, Org-mode is an ideal tool for this, and I am learning more and more about how to use it. The main pattern that begins to emerge is the usage of many files, but more and more of them are merging into single topical or function based files, something like the following. However, I sense that some of the org functions (including some agenda based functionality, and especially tagging) are starting to slow down. The files 1. Main files 1. JOURNAL.org:: Various longer posts, from some remember templates with various top level headers as targets. 2. notes.org:: target for org's tools for firefox, as well as for a remember template to store notes for later filing. 3. LetterDrafts.org:: writing correspondence 4. Todo.org:: Various kinds of TODO notes 5. Happenings.org:: Diary like functionality 6. Diary.org:: Emacs diary 7. Contacts.org:: I still haven't figured out how to do this. 2. Project related files, general 1. System.Journal.org:: where I log various system issues and try to keep on top of changes to my system, both hardware and operating system, as well as software. 2. Classes.org:: Where I keep various kinds of notes on courses I teach. (I think I have struggled with this the most). 3. Field.Journal.org:: I am a biologist who makes field notes. 4. Music.org:: Becoming huge with guitar tablature, lyrics, notes on the Guitar, etc. 5. Drafts.org:: Drafts of all kinds of documents. 6. SCHOOL.org:: Notes about the school where I teach. 7. Microscopy.org:: Notes on microscope use and hardware. 8. Science.org:: Notes of a scientific nature, about literature or research. 9. Quotes.org:: I have a remember template for storing away quotes. 10. Sweeps.org:: Hardly used, up to recently, a place to store "Mind Sweeps" or Brainstorms. 11. Emacs.org:: Log and notes about use of emacs, and notes about the changes I've made to .emacs.el 12. Health.Journal.org:: notes on health issues for the members of my family. 13. HOWTO.org:: When I have figured out some settings or installation notes, I keep them in this file in a highly unintelligible HOWTO format. Sometimes even I cannot read them. 14. Film.org:: I keep notes on films I watch and vidoes I use in teaching. Including time-indexed notes made with the relative-timer facility or Org-mode. 15. EmacsTricks.org:: 3. Project files, more specific, and more numerous. For example: 1. BeachHoppers.org 2. DigitalPhotography.org 3. LetterToJoe.org 4. Worms.org 5. Recipes.org 6. MakingDo.org:: a few notes for a book about running a laboratory on a shoestring, using found objects, etc. 7. Tides.org:: One of my interests. 8. Lexicon.org:: I am saving notes here using a remember template that saves linguistic notes in "band format." 9. ScientificLiterature.org:: I am trying to organize notes on downloaded PDFs and bibtex reference database. Usage notes. 1. I am learning to use the agenda. I have some custom agenda commands. It has taken me a long time to learn how I can keep track of events and appointments, as well as TODO items. I'll be learning for a long time yet. SCHEDULING is useful, as are DEADLINES. It's taking a while to fall into habits of use to make these useful to myself. 2. I am slowly learning to use tags in a personally useful way. 1. Context is somewhat useful. However, I really need a shopping list. 3. I am starting to use inheritance of keywords on headlines, as it helps clean things up. 3. I am also gradually beginning to understand how I can use TODO keywords. 1. My
[Orgmode] error in this morning's git release
Carsten et al., This morning's git version (8am BST) fails to work due to a problem with org-inlinetask, specifically "const: unknown function" when executing (require 'org-inlinetask) in my initialisation. Thanks, eric -- Eric S Fraga, GnuPG Fingerprint: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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] error when exporting to pdf
I am trying to export to PDF. I typed C-c C-e d. Which should be, "export as LaTeX and process to PDF and open PDF file". I received a message that said "PDF file was not produced". The org file I used was the one in the example http://orgmode.org/worg/org-tutorials/org-beamer.php. Version information and backtrace are below. Thanks for your help. Buck Versions: Emacs 22.3.1 Org-Mode 6.34c Backtrace: Debugger entered--Lisp error: (error "PDF file was not produced") signal(error ("PDF file was not produced")) error("PDF file was not produced") (if (not (file-exists-p pdffile)) (error "PDF file was not produced") (set-window-configuration wconfig) (when org-export-pdf-remove-logfiles (dolist ... ... ...)) (message "Exporting to PDF...done") pdffile) (let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) (cmds org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd) (with-current-buffer outbuf (erase-buffer)) (message "Processing LaTeX file...") (if (and cmds ...) (funcall cmds file) (while cmds ... ... ... ...)) (message "Processing LaTeX file...done") (if (not ...) (error "PDF file was not produced") (set-window-configuration wconfig) (when org-export-pdf-remove-logfiles ...) (message "Exporting to PDF...done") pdffile)) org-export-as-pdf(nil) (let ((pdffile ...)) (if pdffile (org-open-file pdffile) (error "PDF file was not produced"))) org-export-as-pdf-and-open(nil) call-interactively(org-export-as-pdf-and-open) (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-sentinel p ...) (message "Background process \"%s\": started" p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1 ass)) (when (and bpos ...) (let ... ... ... ... ...))) (let* ((bg ...) subtree-p (help "[t] insert the export option template\n[v] limit export to visible part of outline tree\n[1] only export the current subtree\n[SPC] publish enclosing subtree (with LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a] export as ASCII [A] to temporary buffer\n\n[h] export as HTML [H] to temporary buffer [R] export region\n[b] export as HTML and open in browser\n\n[l] export as LaTeX [L] to temporary buffer\n[p] export as LaTeX and process to PDF [d] ... and open PDF file\n\n[D] export as DocBook [V] export as DocBook, process to PDF, and open\n\n[m] export as Freemind mind map\n[x] export as XOXO\n[g] export using Wes Hardaker's generic exporter\n\n[i] export current file as iCalendar file\n[I] export all agenda files as iCalendar files [c] ...as one combined file\n\n[F] publish current file [P] publish current project\n[X] publish a project... [E] publish every projects") (cmds ...) r1 r2 ass (cpos ...) (cbuf ...) bpos) (save-excursion (save-window-excursion ... ... ... ... ... ... ...)) (and bpos (goto-char bpos)) (setq r2 (if ... ... r1)) (unless (setq ass ...) (error "No command associated with key %c" r1)) (if (and bg ... ... ...) (let ... ... ...) (if subtree-p ...) (call-interactively ...) (when ... ...))) org-export(nil) call-interactively(org-export) ___ 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
Re: [Orgmode] Re: How you ORGanize yourself? (aka: Why not one file to rule'em all?)
My process has gone through some revisions. My current setup is as follows: client-projects.org I keep all paid projects for clients in one big file. I used to keep them in a file for each client until one of them noticed that their name was being pushed to github in my agenda files. studio-projects.org This file holds all internal projects for my studio. Paintings, drawings, administrative tasks, repair and studio related research materials. home-projects.org Just that. Anything related to the house, cars, wife, kid, dogs, etc. notes.org I use this file for random thoughts and information I find online. mind.org How to explain this one? When I find information that I want to act on in the future as R&D I throw it into mind.org and give it a todo status. Usually stuff in here pertains to things I don't understand and want to spend time learning. Hence the name. phone.org When on client calls I take notes in the phone file which later gets refiled to their respective places calendar.org This is synced using Doug Hellmann's ical2org python script. I have a cron set to sync it every hour so that my google calendar updates my org file. I have todochiku installed to notify me via growl of appointments. I may go back to having a single org file for each client. Right now I have about 20 projects in that file with long lists and I'm struggling a little with keeping it organized enough that I don't lose track of projects. Beyond this setup, every hour a cron syncs my org files to a private mercurial repository at bitbucket. — Greg ___ 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
Re: [Orgmode] suggestions of Android smartphones
Hi all I'm sorry to break the thread. By mistake I sent an answer to Daniel as a PM. Now, I don't have the previous posting because of my expiration settings. I will do some editing to my original answer because of questions he asked me in the meantime. I'm really sorry. Hi Daniel Daniel Martins writes: > BTW what Android smartphone do you have? I have a HTC Magic. ConnectBot is my favorite application. I have Emacs always running as a daemon on my Computers. So connecting to them via ConnectBot and starting Emacs is a matter of five seconds. No need for a genuine Emacs on Android. EDIT: You can do the same if you have Emacs 23 running and if you are willing to never shut your PC down. To speed up the start of Emacsclient I connect to the PC via ConnectBot using a key, not a password. My .bashrc has an alias defined to start 'emacsclient -t' with the alias 'ec'. Emacs will be available within ca. 5 seconds even from a distance of 300km. (You should have a UTMS flatrate for this.) For Org stuff, I have an Emacs function that automatically generates html files of all important agenda views once every hour. I copy these files to the phone via AndFTP once or twice a day. Capturing I do with Remember the Milk. So there are two methods of working with Org on Android before MobileOrg is ready: the ssh method and the FTP/Remember the Milk method. I'm quite happy with this solution. EDIT: I explained my RTM method in a posting some weeks ago. The code is included in that thread. Just search the archive for 'Remember the Milk'. As for the function for generating html exports of the agenda views: --8<---cut here---start->8--- (defun sb-org-update-year-agenda-file (&optional force) (interactive) (save-excursion (save-window-excursion (let ((file "~/.gtd/html/org-year-agenda.html")) (org-batch-agenda "a" org-agenda-ndays 180 org-agenda-include-diary nil) (org-write-agenda file) ;; do it once at startup (sb-org-update-year-agenda-file t) --8<---cut here---end--->8--- This produces an html output of the main agenda view for 6 months. I have a few other export functions for NEXT/HOME, NEXT/OFFICE and the like. All html files are updated every 30 minutes to include all tasks captured in the meantime: --8<---cut here---start->8--- (defun sb-org-update-all () (interactive) (sb-org-update-today-txt-agenda-file) (sb-org-update-week-agenda-file) (sb-org-update-mit-txt-agenda-file) (sb-org-update-mit-agenda-file) (sb-org-update-big-agenda-file) (sb-org-update-today-agenda-file) (sb-org-update-year-agenda-file) (sb-org-update-home-agenda-file) (sb-org-update-office-agenda-file) (sb-org-update-waiting-file) (sb-org-update-delegated-file) (sb-org-update-project-agenda-file) ) (run-at-time nil 1800 'sb-org-update-all) --8<---cut here---end--->8--- On the Android side, I download these files once or twice a day to the SD card with AndFTP (via SFTP of course). The directory ~/.gtd/html is configured as the working directory in AndFTP. So, just press 'select all' and start the download. This takes about 10 seconds, because the year agenda file is quite large. I have linked each file on the Android desktop with an Icon, which opens the file in an html viewer. The view contains all formatting and colors of the original Emacs agenda view. As you see, I export some agenda views also as txt files (it's the same function as above, just replace the file ending .html with .txt). I use these files with GnomeOSD, i.e. my most important appointments, deadlines and things do to appear on my PC screen once an hour in large letters and with a sound, to remind me of my tasks. Greetings Sven Daniel Martins writes: > --- resending with a proper title --- > > Matthew, > > Just a suggestion for newbies. > > Could you generate a video of MobileOrg Android similar to those of > the MobileOrg Iphone. > > I am still open to suggestions of Android smartphones. > > If I need to access a remote ssh account and open Emacs, the available > keyborards are OK? > > Daniel > > > PS I "bought" an Android phone called Motorola Quench but due to a > "misunderstanding" with the operator I was forced to cancel the > purchase. (I am still very annoyed with this problem) > > > > 2010/4/13 Matthew Jones : >> I am the developer/maintainer of MobileOrg for Android and I'd appreciate >> any feedback on the application. You can find more information and >> download links on the >> wiki: http://wiki.github.com/matburt/mobileorg-android/ >> 73, >> Matthew W. Jones (KI4ZIB) >> http://matburt.net >> >> >> On Mon, Apr 12, 2010 at 10:08 PM, Daniel Martins >> wrote: >>> >>> Please, share your first impressions!!! I just bought an Android phone >>> and would like to take similar routes. >>> >>> Daniel >>> >>> 2010/2/16 David Rogoff : >>> > On 2010-02-16 13:4
Re: [Orgmode] [patch] Terminating lists by indentation of #+SPECIALS too
Hi Sebastian, I am not sure I understand this patch fully. And it looks to me that this should be taken care of in `org-export-html-close-list-maybe'. Could you take another look and check if this could be easily moved into there? I am confused why this is inside the when clause about protectedness of the line. But I may have just lost my memory of how this works - Carsten On Apr 19, 2010, at 1:54 AM, Sebastian Rose wrote: Haaarrrgh --- the first patch in my previous mail does not work for all cases. Hairy stuff Here's what did _not_ work with my previous patch: #+html: *Unsorted Patterns* - a - b - c #+HTML: Somthing inside the last item!!! #+HTML: But this one finally works: diff --git a/lisp/org-html.el b/lisp/org-html.el index fcddd50..0174e43 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -929,6 +929,17 @@ lang=\"%s\" xml:lang=\"%s\"> ;; Protected HTML (when (get-text-property 0 'org-protected line) +(when in-local-list + (let ((ind (org-get-indentation line))) +(while (and (car local-list-indent) (< ind (car local- list-indent))) + (org-close-li (car local-list-type)) + (insert (format "\n" (car local-list-type))) + (setq local-list-indent (cdr local-list-indent)) + (setq local-list-type (cdr local-list-type)) + (setq in-local-list local-list-indent)) +(insert line "\n") +(throw 'nextline nil))) + (let (par (ind (get-text-property 0 'original-indentation line))) (when (re-search-backward "\\(\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t) Again: If it makes things easier, I could apply the change to the master branch and send an appropriate patch. Sebastian Sebastian Rose writes: Hello Carsten, there was much discussion about a terminator and I ran into a problem, that made me think we need one. But then I found we had one --- it's just not used on HTML export. Below is a little file I wrote. Thanks to the `- __' items, it results in the XHTML closely to what I wanted it to. But only as long as I use those _undocumented_ `- __' items. Once you remove them, you'll see, that the `#+html: Here's the Org-file I wrote (remove and add the `- __' list items to see the effect): #+OPTIONS: toc:nil #+STYLE: #+STYLE: body,p,div,td{font-size:13px;font-family:sans-serif;} #+STYLE: div { text-align:left; } #+STYLE: #content {width:550px; #+STYLE: margin-left:auto;margin-right:auto;text-align:center; }#+STYLE: #postamble { width:550px;clear:both;border-top:1px solid black;#+STYLE: margin-left:auto;margin-right:auto;text-align:center; } #+STYLE: * List of design patterns #+HTML: *Behavioural Patterns* - [[file:BatchCommand][BatchCommand]] - [[file:ChainOfResponsibility.org][Chain Of Responsibility]] - [[file:Command.org][Command]], UndoableCommand and BatchCommand - [[file:Interpreter.org][Interpreter]] - [[file:Iterator.org][Iterator]] - [[file:Mediator.org][Mediator]] - [[file:Memento.org][Memento]] - [[file:NullObject][NullObject]] - [[file:Observer.org][Observer]] - [[file:State.org][State]] - [[file:Strategy.org][Strategy]] - [[file:TemplateMethod.org][Template Method]] - [[file:Visitor.org][Visitor]] *Creational Patterns* - [[file:AbstractFactory.org][Abstract Factory]] - [[file:Builder.org][Builder]] - [[file:Factory.org][Factory]] - [[file:FactoryMethod.org][Factory Method]] - [[file:Prototype.org][Prototype]] - [[file:Singleton.org][Singleton]] - __ #+html: #+html: *Structural Patterns* - [[file:Adapter.org][Adapter]] - [[file:Composite.org][Composite]] - [[file::Bridge.org][Bridge]] - [[file:Decorator.org][Decorator]] - [[file:Facade.org][Facade]] - [[file:Flyweight.org][Flyweight]] - [[file:Proxy.org][Proxy]] *Unsorted* - [[file:BusinessDelegate.org][Business Delegate]] - [[file:DataAccessObject.org][Data Access Object]] - [[file:DataTransferObject.org][Data Transfer Object]] - [[file:DependencyInjection.org][Dependency Injection]] - [[file:FluentInterface.org][Fluent Interface]] - [[file:InversionOfControl.org][Inversion Of Control]] - [[file:ModelViewControler.org][Model View Controler]] - [[file:ModelViewPresenter.org][Model View Presenter]] - [[file:Plugin.org][Plugin]] - __ #+HTML: And, finally, the patch. I would have used the function `org-export-html-close-lists-maybe' but that didn't work, so I wrote similar code just in place. Carsten: If it makes things easier for you, I could apply the change to the master branch and send an appropriate patch. diff --git a/lisp/org-html.el b/lisp/org-html.el index fcddd50..812e63c 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -929,6 +929,15 @@ lang=\"%s\" xml:lang=\"%s\
Re: [Orgmode] [patch] typo: customization group org-plain-list
Applied, thanks. - Carsten On Apr 18, 2010, at 10:39 PM, Sebastian Rose wrote: Found a typo in lisp/org-list.el. Patch is against branch `remove-compatibility-code' diff --git a/lisp/org-list.el b/lisp/org-list.el index 180bc5a..f45819a 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -119,7 +119,7 @@ When a string, it will be used as a regular expression. When the bullet type of a list is changed, the new bullet type will be matched against this regexp. If it matches, there will be two spaces instead of one after the bullet in each item of he list." - :group 'org-plain-list + :group 'org-plain-lists :type '(choice (const :tag "never" nil) (regexp))) Sebastian ___ 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 - Carsten ___ 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
Re: [Orgmode] Bug: C-c ' eats last newline of a figure [6.35trans (release_6.35g.72.g2e12)]
Applied, thank. - Carsten On Apr 19, 2010, at 8:34 AM, Dan Davison wrote: diff --git a/lisp/org-src.el b/lisp/org-src.el index 54ec4af..3319a9e 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -459,15 +459,6 @@ the language, a switch telling if the content should be in a single line." (pos (point)) re1 re2 single beg end lang lfmt match-re1 ind entry) (catch 'exit - (when (org-at-table.el-p) - (re-search-backward "^[\t]*[^ \t|\\+]" nil t) - (setq beg (1+ (point-at-eol))) - (goto-char beg) - (or (re-search-forward "^[\t]*[^ \t|\\+]" nil t) - (progn (goto-char (point-max)) (newline))) - (setq end (point-at-bol)) - (setq ind (org-edit-src-get-indentation beg)) - (throw 'exit (list beg end 'table.el nil nil ind))) (while (setq entry (pop re-list)) (setq re1 (car entry) re2 (nth 1 entry) lang (nth 2 entry) single (nth 3 entry)) @@ -498,7 +489,16 @@ the language, a switch telling if the content should be in a single line." (throw 'exit (list (match-end 0) end (org-edit-src-get-lang lang) -single lfmt ind +single lfmt ind) + (when (org-at-table.el-p) + (re-search-backward "^[\t]*[^ \t|\\+]" nil t) + (setq beg (1+ (point-at-eol))) + (goto-char beg) + (or (re-search-forward "^[\t]*[^ \t|\\+]" nil t) + (progn (goto-char (point-max)) (newline))) + (setq end (point-at-bol)) + (setq ind (org-edit-src-get-indentation beg)) + (throw 'exit (list beg end 'table.el nil nil ind)) (defun org-edit-src-get-lang (lang) "Extract the src language." - Carsten ___ 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
Re: [Orgmode] Re: Can I set achive or refile target to date-tree?
On Apr 19, 2010, at 2:55 PM, Osamu OKANO wrote: Hi, all. I wrote the defadvice of org-archive-subtree so that I can archive in a date-tree. Please (setq org-archive-location "%s_archive::date-tree"), then you can archive in a date-tree. http://gist.github.com/370843 Pretty nice! - Carsten Regards. ___ 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 - Carsten ___ 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