Re: [Orgmode] due today notification
Hi, Buck Brody writes: > Is there a way to know if an item is due today by only looking at the headline > or at an agenda? The is the agenda custom command I use for this: , | ("d" "Due today" agenda "" | ((org-agenda-ndays 1) | (org-deadline-warning-days 0) | (org-agenda-skip-scheduled-if-deadline-is-shown t) | (org-agenda-skip-function |(lambda () | (let* ((dl (org-entry-get nil "DEADLINE"))) | (if (or (not dl) | (equal dl "") | (org-time> dl (org-time-today))) | (progn (outline-next-heading) (point ` It shows all deadlines due today. HTH -- 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] A table formula bug: incremental column fill with negative values
Hi William, On Apr 24, 2010, at 6:03 AM, William Henney wrote: Hi all The following is using today's git trunk of org-mode with emacs 23.1.94.1 (aquamacs 2.0preview5) Consider the following table | -8 | || || || #+TBLFM: $...@-1 - 1::@1$1=-8 Evaluate formulas once (C-u C-c *): | -8 | | -9 | || | -1 | Evaluate formulas again (C-u C-c *): | -8 | | -9 | || || :-) this is a nice bug. Thanks for your report and analysis - I just checked in a fix. - 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-mode CSS property export bug
Carsten Dominik writes: > On Apr 23, 2010, at 1:00 PM, Rick Moynihan wrote: > >> On 23 April 2010 11:46, Sebastian Rose wrote: >>> Very old browsers. Do we have to support them? >> >> I personally don't care for older browsers, though others may differ here. >> >>> The appended testfile works in Opera10 an FF 3.6. Is there something >>> missing? >> >> It works also in Safari 4, and Chrome (both webkit based so you'd >> expect it to work). So this seems fine to me. >> >> R. > > > Can one of you please summarize what the conclusion is? Since there were no objections in 24 hours: let's switch to sec-1 sec-1_1 sec-1_2 ... org-info.js is ready and tested (backward compatible). I'll document the change there and push. 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] Shift-Arrow Pass Through for windmove?
Carsten Dominik writes: > On Apr 24, 2010, at 1:19 AM, Sebastian Rose wrote: > >> Carsten Dominik writes: >>> On Apr 23, 2010, at 6:12 PM, Sebastian Rose wrote: >>> Daniel E. Doherty writes: > All, > > I make *very* frequent use of the shift-arrow keys to move from window > to window inside emacs via windmove. It is probably the most frequent > key combination I access. > > Anyway, is there a way to make org-mode friendlier to it by passing the > key along whenever org-mode would otherwise throw an error. For > example, when not on a heading, when in the agenda, and wherever else? > > I really like Carsten's use of the arrow keys for structure editing and > don't want to lose that, just whenever org-mode can't make use of the > keys. > > Regards, And here all the arrow keys. It's somewhat inelegant, since you always need to keep track of new useful org-bindings. I would find an org-internal solution helpfull too. I use windmove. >>> >>> I have now added >>> >>> (defvar org-shiftup-hook nil >>> "Hook for functions attaching themselves to `S-up'. >>> See `org-ctrl-c-ctrl-c-hook' for more information.") >>> (defvar org-shiftdown-hook nil >>> "Hook for functions attaching themselves to `S-down'. >>> See `org-ctrl-c-ctrl-c-hook' for more information.") >>> (defvar org-shiftleft-hook nil >>> "Hook for functions attaching themselves to `S-left'. >>> See `org-ctrl-c-ctrl-c-hook' for more information.") >>> (defvar org-shiftright-hook nil >>> "Hook for functions attaching themselves to `S-right'. >>> See `org-ctrl-c-ctrl-c-hook' for more information.") >>> >>> But I do not intend to attach specific functionality like windmove to them, >>> and I'd like to reserve the possibility to make S-cursor do something >>> in Org in more contexts. >>> >>> Hope this still helps. >> >> This could be perfect!!! >> >> But wouldn't the hook need to be called at the end of (e.g.) >> `org-shiftright'? >> >> I want to use windmove as the last resort, as does the OP: >> >> >> - (t (org-shiftselect-error >> + (t (if org-shiftright-hook >> + ((run-hook-with-args-until-success 'org-shiftright-hook)) >> + (org-shiftselect-error >> >> ;; end of org-shiftright ($otpional arg) >> >> >> >> Otherwise we would loose the org-mode specific functions. >> >> We want to >> >> 1. try to do somehing org-specific (if org-headline-p ) >> 2. else run the hook (i.e. windmove in this case) >> 3. erroronly if 1. and 2. failed >> >> >> We do use windmove but at the same time we do _not_ want to loose all >> those shift-right... features to come ;) > > Well, the idea is hat these hooks *can* overrule what org-mode wants to do, > so whatever you put into the hook needs to decide if it wants to apply. > > We could add *another* hook at the end... OK - I would love to use that one then. I could stick with my functions otherwise. Overruling is easily done, but to use windmove as a last resort could not even be done using `ad-add-advice' because of the (t (org-shiftselect-error)) 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] org-mode CSS property export bug
Hi everyone, here's a patch for org-html.el to fix those IDs. sec-1.2=> sec-1_2 sec-1.2.3 => sec-1_2_3 diff --git a/lisp/org-html.el b/lisp/org-html.el index 71f62eb..133bffa 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -871,7 +871,9 @@ lang=\"%s\" xml:lang=\"%s\"> t t line))) (while (string-match "<\\(<\\)+\\|>\\(>\\)+" txt) (setq txt (replace-match "" t t txt))) -(setq href (format "sec-%s" snumber)) +(setq href + (replace-regexp-in-string + "\\." "_" (format "sec-%s" snumber))) (setq href (or (cdr (assoc href org-export-preferred-target-alist)) href)) (push (format @@ -2085,8 +2087,11 @@ When TITLE is nil, just close all open levels." " " title))) (unless (= head-count 1) (insert "\n\n")) (setq href (cdr (assoc (concat "sec-" snumber) org-export-preferred-target-alist))) - (setq suffix (or href snumber)) - (setq href (or href (concat "sec-" snumber))) + (setq suffix (or href + (replace-regexp-in-string "\\." "_" snumber))) + (setq href (or href + (replace-regexp-in-string + "\\." "_" (concat "sec-" snumber (insert (format "\n\n%s%s\n\n" suffix level (if extra-class (concat " " extra-class) "") level href Who ever uses org-info.js will have to pull the new (but backward compatible) version from http://orgmode.org/worg/code/org-info-js/org-info.js provided this or something similar gets applied. Please give the server a while to run the publishing before downloading (I guess 2 hours are enough). It's now ... $ date -u Sa 24. Apr 11:13:26 UTC 2010 Best wishes 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] org-mode CSS property export bug
Hi Sebastian, I need to ask: What exactly are we changing? just the class names? of the id and names as well? Will links have to be changed? - Carsten On Apr 24, 2010, at 1:25 PM, Sebastian Rose wrote: Hi everyone, here's a patch for org-html.el to fix those IDs. sec-1.2=> sec-1_2 sec-1.2.3 => sec-1_2_3 diff --git a/lisp/org-html.el b/lisp/org-html.el index 71f62eb..133bffa 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -871,7 +871,9 @@ lang=\"%s\" xml:lang=\"%s\"> t t line))) (while (string-match "<\\(<\\)+\\|>\\(>\\)+" txt) (setq txt (replace-match "" t t txt))) - (setq href (format "sec-%s" snumber)) + (setq href + (replace-regexp-in-string + "\\." "_" (format "sec-%s" snumber))) (setq href (or (cdr (assoc href org-export-preferred-target- alist)) href)) (push (format @@ -2085,8 +2087,11 @@ When TITLE is nil, just close all open levels." " " title))) (unless (= head-count 1) (insert "\n\n")) (setq href (cdr (assoc (concat "sec-" snumber) org-export-preferred- target-alist))) - (setq suffix (or href snumber)) - (setq href (or href (concat "sec-" snumber))) + (setq suffix (or href +(replace-regexp-in-string "\\." "_" snumber))) + (setq href (or href + (replace-regexp-in-string + "\\." "_" (concat "sec-" snumber (insert (format "\n%d%s\">\n%s%s\nid=\"text-%s\">\n" suffix level (if extra-class (concat " " extra-class) "") level href Who ever uses org-info.js will have to pull the new (but backward compatible) version from http://orgmode.org/worg/code/org-info-js/org-info.js provided this or something similar gets applied. Please give the server a while to run the publishing before downloading (I guess 2 hours are enough). It's now ... $ date -u Sa 24. Apr 11:13:26 UTC 2010 Best wishes Sebastian - 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] export problem
I think that problem seemed to be localized to one machine, probably from the tex installation. Thanks On Fri, Apr 23, 2010 at 2:32 AM, Nick Dokos wrote: > Nick Dokos wrote: > > > charles snyder wrote: > > > > > Thanks Nick! > > > > > Glad to help! > > > > BTW, I forgot that you originally reported two problems: the freemind > export > was one of them, but you also had problems with a PDF export. AFAICT, the > solution to the freemind problem could not possibly affect the PDF export, > so I assume that the latter is still a problem - is that correct? > > Thanks, > Nick > > > > On 2 different machines, > > > I got a "no match" when I tried C-h f org-export-as-freemind > > > and when I followed your instructions: > > > > > > M-x load-library org-freemind > > > followed by C-c C-e m > > > > > > It worked! > > > > > > so, when I added: > > > > > > (load-library "C:/Users/clsnyder/Documents/org-6.33/lisp/org-freemind") > to my .emacs, it works! > > > > > > but I have no clue why it stopped working and why I need to add this > when the line above it in .emacs is: > > > > > > (add-to-list 'load-path "C:/Users/clsnyder/Documents/org-6.33/lisp") > > > > > > > The add-to-list just tells emacs where to find the files that it needs to > load. > > Because of it, you should be able to load org-freemind using just > > > > (load-library "org-freemind") > > > > The loading itself can be done in various ways: explicitly as shown > above, or > > implicitly through the autoload mechanism. > > > > In my case, I load org-install.el (in my .emacs). org-install.el contains > the following: > > > > (autoload 'org-export-as-freemind "org-freemind" "\ > > Not documented > > > > \(fn ARG &optional HIDDEN EXT-PLIST TO-BUFFER BODY-ONLY PUB-DIR)" t nil) > > > > so that when org-export-as-freemind is called, the autoload loads > org-freemind.el (or > > org-freemind.elc if the compiled file exists), that defines the function > and the > > call succeeds. > > > > At least, that's how it *should* work. You could do a little detective > work in your > > setup to see how things are initialized and why it did not work. > > > > One hint is that after the autoload is done but before you call the > function, > > if you say > > > >C-h f org-export-as-freemind > > > > it will say > > > > , > > | org-export-as-freemind is an interactive autoloaded Lisp function in > > | `org-freemind.el'. > > | > > | (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER > > | BODY-ONLY PUB-DIR) > > | > > | Not documented > > ` > > > > After you call the function once (which completes the loading), > > > >C-h f org-export-as-freemind > > > > will say something else: > > > > , > > | org-export-as-freemind is an interactive compiled Lisp function in > > | `org-freemind.el'. > > | > > | (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER > > | BODY-ONLY PUB-DIR) > > | > > | Not documented. > > ` > > > > Of course, in your case, emacs didn't know the function at all, so the > > autoload never happened: either you are not loading org-install.el or > > org-install.el does not contain the autoload form. > > > > HTH, > > 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 > > > -- Charles L. Snyder, MD Professor of Surgery Children's Mercy Hospital Kansas City, MO www.clsnyder.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] org-mode CSS property export bug
Carsten Dominik writes: > Hi Sebastian, > > I need to ask: > > What exactly are we changing? just the class names? of the id and names as > well? Will links have to be changed? We are changing the values of the `id' attributes inside html tags. - in headlines ( and similar) - in the containers 1.2.1 Every HERE was e.g. `1.2.1' and will be from now on `1_2_1'. I'm not aware of any other cases, the XHTML-exporter creates IDs with dots. The *custom IDs are not meant to break*, so I'd be glad for everyone to have an eye on this. Also, this change will *not* affect any of the default styles set by Org-mode's exporter. Cases where users stylesheets are affected by this change will be _very_ rare for obvious reasons: One would have to use a slightly odd CSS-selector to match an element by (illegal) id="sec-1.2.1". Best wishes Sebastian > > - Carsten > > On Apr 24, 2010, at 1:25 PM, Sebastian Rose wrote: > >> Hi everyone, >> >> >> here's a patch for org-html.el to fix those IDs. >> >> sec-1.2=> sec-1_2 >> sec-1.2.3 => sec-1_2_3 >> >> >> >> >> diff --git a/lisp/org-html.el b/lisp/org-html.el >> index 71f62eb..133bffa 100644 >> --- a/lisp/org-html.el >> +++ b/lisp/org-html.el >> @@ -871,7 +871,9 @@ lang=\"%s\" xml:lang=\"%s\"> >>t t line))) >> (while (string-match >> "<\\(<\\)+\\|>\\(>\\)+" txt) >>(setq txt (replace-match "" t t txt))) >> -(setq href (format "sec-%s" snumber)) >> +(setq href >> + (replace-regexp-in-string >> + "\\." "_" (format "sec-%s" snumber))) >> (setq href (or (cdr (assoc href >> org-export-preferred-target- >> alist)) href)) >> (push >> (format >> @@ -2085,8 +2087,11 @@ When TITLE is nil, just close all open levels." >> " " title))) >> (unless (= head-count 1) (insert "\n\n")) >> (setq href (cdr (assoc (concat "sec-" snumber) org-export-preferred- >> target-alist))) >> -(setq suffix (or href snumber)) >> -(setq href (or href (concat "sec-" snumber))) >> +(setq suffix (or href >> + (replace-regexp-in-string "\\." "_" snumber))) >> +(setq href (or href >> + (replace-regexp-in-string >> +"\\." "_" (concat "sec-" snumber >> (insert (format "\n> %d%s\">\n%s%s\n> id=\"text-%s\">\n" >> suffix level (if extra-class (concat " " extra-class) >> "") >> level href >> >> >> >> >> Who ever uses org-info.js will have to pull the new (but backward >> compatible) version from >> >> http://orgmode.org/worg/code/org-info-js/org-info.js >> >> provided this or something similar gets applied. Please give the server >> a while to run the publishing before downloading (I guess 2 hours are >> enough). It's now ... >> >> >> $ date -u >> Sa 24. Apr 11:13:26 UTC 2010 >> >> >> >> >> Best wishes >> >> Sebastian > > - 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: due today notification
Buck Brody writes: > Is there a way to know if an item is due today by only looking at the > headline or at an agenda? For instance, could a tag "today" be > triggered based upon a deadline? Basically, when looking at a sparse > tree or an agenda, I would like to know what is due today without using > "agenda for current day or week" or going into column view. C-c / m DEADLINE="" [RET] Best, Matt ___ 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: mobile org
My earlier post was in regard to problems with sync from mobile org on a iphone to a webdav folder on a remote server (in this case a dreamhost account). I got it to work, and though perhaps this overly simplistic description of the steps would be helpful to someone else. The instructions are for a mac, but windows XP will mount webdav folders as well. Unfortunately, windows 7 "hates" webdav, and the easiest way is to install (free) external software to mount a webdav (at least that's my understanding): 1. Go to the finder 2. Click on Go and choose 'connect to server' 3. The server is http://myfile.clsnyder.com/orgmode 4. Click Connect 5. The user name is username 6. The password is password 7. Save as a favorite - it will always need to be mounted in order to access it 8. An icon will show up on the desktop called 'orgmode': this has the remote files 9. You must identify the org-mobile-directory as "/Volumes/orgmode/" - this can be done either in .emacs or just click org -> Mobile org -> Setup. If the latter, save for all future sessions. 10. The org-mobile-files are "/Users/clsnyder/Dropbox/emacs_org/personal.org ", "/Users/clsnyder/Dropbox/emacs_org/reference.org", "/Users/clsnyder/Dropbox/emacs_org/notes.org", "/Users/clsnyder/Dropbox/emacs_org/journal.org", "/Users/clsnyder/Dropbox/emacs_org/calendar.org" Again, this can be done in .emacs or as described above 11. This should work Hope this helps someone. Charles Snyder ___ 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: ``repairing'' time logging/clocks
Martin Steffen writes: > However, in my > orgfile, I have a quite number of time-log entries of the form > > > > CLOCK: [2010-04-24 Sat 06:56]--[2010-04-24 Sat 06:58](***) > > > i.e., the sum is missing. The reason why I have those is because I > repaired non-finished clocks > > CLOCK: [2010-04-24 Sat 06:56]-- > > > by just manually adding the end-time. That seemed to work in that the > sum will appear in summary clock tables. However, entires of the form > (***) are considered "dangling" and since recently org prompts me to do > something about it, i.e., resolve them. > > Is there a possibility to _automatically_ add the number of minutes and > complete the enty (***) to one where the => is added correctly? After you edit a clock entry you can recalculate the total with C-c C-y HTH, 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] org-mode CSS property export bug
He Sebastian, I believe we need a bit more - here is my patch - can you please take a look? Thanks! - Carsten Modified lisp/org-docbook.el diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el index de9ffcc..bb8d048 100644 --- a/lisp/org-docbook.el +++ b/lisp/org-docbook.el @@ -1228,7 +1228,8 @@ When TITLE is nil, just close all open levels." (setq section-number (org-section-number level)) (insert (format "\n\n%s" org-export-docbook-section-id-prefix - section-number title)) + (replace-regexp-in-string "\\." "_" section-number) + title)) (org-export-docbook-open-para (defun org-docbook-expand (string) Modified lisp/org-exp.el diff --git a/lisp/org-exp.el b/lisp/org-exp.el index da8e1a4..44bde65 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -1239,7 +1239,9 @@ Also find all ID and CUSTOM_ID propertiess and store them." (save-excursion (goto-char (point-at-bol)) (org-outline-level (setq target (org-solidify-link-text - (format "sec-%s" (org-section-number level + (format "sec-%s" (replace-regexp-in-string + "\\." "_" + (org-section-number level) (setq last-section-target target) (push (cons target target) target-alist) (add-text-properties Modified lisp/org-html.el diff --git a/lisp/org-html.el b/lisp/org-html.el index 71f62eb..92798d2 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -871,7 +871,9 @@ lang=\"%s\" xml:lang=\"%s\"> t t line))) (while (string-match "<\\(<\\)+\\|>\\(>\\)+" txt) (setq txt (replace-match "" t t txt))) - (setq href (format "sec-%s" snumber)) + (setq href + (replace-regexp-in-string + "\\." "_" (format "sec-%s" snumber))) (setq href (or (cdr (assoc href org-export-preferred-target- alist)) href)) (push (format @@ -2027,7 +2029,7 @@ When TITLE is nil, just close all open levels." (cdr (assoc target org-export-preferred-target-alist (remove (or preferred target)) (l org-level-max) -snumber href suffix) +snumber snu href suffix) (setq extra-targets (remove remove extra-targets)) (setq extra-targets (mapconcat (lambda (x) @@ -2076,7 +2078,8 @@ When TITLE is nil, just close all open levels." extra-targets title "\n") (insert "\n" title "\n" (aset org-levels-open (1- level) t) - (setq snumber (org-section-number level)) + (setq snumber (org-section-number level) + snu (replace-regexp-in-string "\\." "_" snumber)) (setq level (+ level org-export-html-toplevel-hlevel -1)) (if (and org-export-with-section-numbers (not body-only)) (setq title (concat @@ -2084,9 +2087,9 @@ When TITLE is nil, just close all open levels." level snumber) " " title))) (unless (= head-count 1) (insert "\n\n")) - (setq href (cdr (assoc (concat "sec-" snumber) org-export-preferred- target-alist))) - (setq suffix (or href snumber)) - (setq href (or href (concat "sec-" snumber))) + (setq href (cdr (assoc (concat "sec-" snu) org-export-preferred- target-alist))) + (setq suffix (or href snu)) + (setq href (or href (concat "sec-" snu))) (insert (format "\n%d%s\">\n%s%s\n\"text-%s\">\n" suffix level (if extra-class (concat " " extra-class) "") level href On Apr 24, 2010, at 1:25 PM, Sebastian Rose wrote: Hi everyone, here's a patch for org-html.el to fix those IDs. sec-1.2=> sec-1_2 sec-1.2.3 => sec-1_2_3 diff --git a/lisp/org-html.el b/lisp/org-html.el index 71f62eb..133bffa 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -871,7 +871,9 @@ lang=\"%s\" xml:lang=\"%s\"> t t line))) (while (string-match "<\\(<\\)+\\|>\\(>\\)+" txt) (setq txt (replace-match "" t t txt))) - (setq href (format "sec-%s" snumber)) + (setq href + (replace-regexp-in-string + "\\." "_" (format "sec-%s" snumber))) (setq href (or (cdr (assoc href org-export-preferred-target- alist)) href)) (push
[Orgmode] Put latex export buffer in latex-mode?
C-e H brings up the exported html in an html-mode buffer, but C-e L brings up a fundamental-mode buffer rather than latex-mode. Is this an oversight or is there a reason for this? Dan p.s. I could use org-export-latex-after-save-hook, or a change to the source could be something like this Modified lisp/org-latex.el diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 67d9745..3d31248 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -797,6 +797,7 @@ when PUB-DIR is set, use this as the publishing directory." (org-export-latex-fix-inputenc) (run-hooks 'org-export-latex-after-save-hook) (goto-char (point-min)) +(latex-mode) (or (org-export-push-to-kill-ring "LaTeX") (message "Exporting to LaTeX...done")) (prog1 ___ 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] a couple of questions about org-mime
Hi, I'm using org-mode from git repository at commit , | commit 830e0cfe407b42060c3adc490baa7c3104589435 | Author: Carsten Dominik | Date: Thu Apr 22 18:04:13 2010 +0200 ` I have 2 questions regarding `org-mime-htmlize'. 1. How do I quote verbatim code? BEGIN_SRC/END_SRC or BEGIN_EXAMPLE/END_EXAMPLE do not do what I wanted. They follow all the mark-up changes, which are not desirable. The only way I found is using `=', which is not convenient for multi-line code. 2. Why all the ? With mono-spaced fonts in text/plain, line break looks nice. But I don't think those line-breaks need to be preserved even after export to html. Thanks for the good work though. -- Jc/*__o/* X<\ * (__ Y*/\ < ___ 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] a couple of questions about org-mime
Hi, Xiao-Yong Jin writes: > Hi, > > I'm using org-mode from git repository at commit > > , > | commit 830e0cfe407b42060c3adc490baa7c3104589435 > | Author: Carsten Dominik > | Date: Thu Apr 22 18:04:13 2010 +0200 > ` > > I have 2 questions regarding `org-mime-htmlize'. > > 1. How do I quote verbatim code? > >BEGIN_SRC/END_SRC or BEGIN_EXAMPLE/END_EXAMPLE do not do >what I wanted. They follow all the mark-up changes, >which are not desirable. The only way I found is using >`=', which is not convenient for multi-line code. > I'm not sure what you mean here. This should work exactly as does exporting from an org-mode file, so for example exporting the following begin/end_example block with `org-mime-htmlize' (which I've done) wraps the results in a and does not perform any markup (not gnus does some markup like bolding and underlining on it's own, following rules similar to the org markup). #+begin_example some stuff here, *not bold*, /not italicized/, etc... preserve line breaks like in code #+end_example If you have another example which demonstrates your problem please share. > > 2. Why all the ? > >With mono-spaced fonts in text/plain, line break looks >nice. But I don't think those line-breaks need to be >preserved even after export to html. > Use the following to change this behavior (setq org-mime-preserve-breaks nil) Perhaps this should be the default setting. I currently have this set to true because quoted mail (i.e. lines starting with ">") can look very bad with line wrapping. > > Thanks for the good work though. Thanks -- 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