Re: [Orgmode] Both todo and tag search
Hi, On 18.06.2010 06:40, Chao Lu wrote: For the custom agenda command, is it possible to define a search performing both todo and tag search, for example, the items whose todo state is ACTIVE, and the context(defined by tag) is Office? Yes, that should be possible. These two threads may provide valid examples how to to this: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg21269.html http://www.mail-archive.com/emacs-orgmode@gnu.org/msg25260.html A lot of information is also in the manual: http://orgmode.org/org.html#Agenda-Views HTH, Martin ___ 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] Estimate ranges in column view
Hi Mike, On Jun 17, 2010, at 10:06 PM, Mike Gauland wrote: When planning my work, I estimate the effort required as a range, rather than a single value. That is, instead of estimating a certain task will take 4 days, I'll use a range of 3-5 days. If I'm a bit less confident I know how long it will take, I'll use a wider range (e.g., 2-6 days). When I first started doing this, I switched from using a single 'Effort' column in org mode, to two columns (Effort_Low and Effort_High), simply summing each column to get an estimate for a composite task. However, this magnifies the level of uncertainty in the estimate. The final 'Effort_Low' value tells me what to expect if everything goes optimally; 'Effort_High' provides the extremely pessimistic view. More realistic summaries come from considering the range of each pair, using the combined statistical variance in each (low, high) pair to determine the variance in the final value. This is the method used by LiquidPlanner, for example. I've been mucking about with org-colview.el to automate this calculation for me, and am quite pleased with the results so far. I've approached this by adding a new summary type (est) to org-columns-compile-map, and extending org-columns-number-to-string and org-columns-string-to-number to convert ranges to and from strings. This lets me populate an 'Estimates' column with values such as [2 4], and specify a summary type est to have the algorithm described above used to produce the final estimates. I have two questions for the list: 1. Is this the right approach, or should I change the behaviour of the existing EFFORT property? Changing the existing EFFORT property would require more changes in other places for example in the agenda filter that filters by estimated effort, or maybe also in code that helps to set/change the effort property. So to make this fully work with the existing EFFORT property would probably require a lot more work. 2. Is this something others would find useful? I like the idea of variance calculation for this purpose. So I would be inclined to take a patch that will introduce this new summary operator. Depending on how much code this is, you'd also have to sign the papers with the FSF (unless you have done so for Emacs already). To complete the patch, you could make things easy for my be providing a change to the manual, and by also doing the corresponding changes in org-colview-xemacs.el. But neither of these two would be required for acceptance. Cheers - 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] Removing (modify-syntax-entry ?# )
Hi Leo, I have now applied this patch - hopefully it will do the right thing. Thank you for your persistence in trying to fix this old and super- annoying bug. - Carsten On Jun 7, 2010, at 1:12 PM, Leo wrote: Hello Carsten, Setting a comment starter without a corresponding comment ender is problematic and the # creeps in mysteriously under auto-fill. For example, in my current running emacs, this happens almost certainly in all org files that has # in their header. The only (temporary) solution seems to reboot emacs (which is painful and disruptive). If you try eval (forward-comment 1) at the beginning of an org file that has some #+... it will move to the end of file (the whole file is regarded as one single comment). So when auto-fill a long text, it will find the common prefix to be #. In addition, I don't think org mode has clear comment syntax or ideas on what to do with it. I can't see any gain from (modify-syntax-entry ?# ) so I am proposing removing it entirely and get rid of this mysterious and annoying bug once and for all. The attached patch may (though I think it is quite safe) cause some bugs but those will be fixable unlike the one mentioned above. Best wishes, Leo diff --git a/lisp/org/org.el b/lisp/org/org.el index aae49fa..bb36ed8 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -4208,7 +4208,6 @@ The following commands are available: (org-set-tag-faces 'org-tag-faces org-tag-faces)) ;; Calc embedded (org-set-local 'calc-embedded-open-mode # ) - (modify-syntax-entry ?# ) (modify-syntax-entry ?@ w) (if org-startup-truncated (setq truncate-lines t)) (org-set-local 'font-lock-unfontify-region-function @@ -4237,7 +4236,7 @@ The following commands are available: 'org-block-todo-from-checkboxes)) ;; Comment characters -; (org-set-local 'comment-start #) ;; FIXME: this breaks wrapping + (org-set-local 'comment-start #) (org-set-local 'comment-padding ) ;; Align options lines -- CCL-USER (if you fail to plan (plan to fail)) ___ 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] Verbatim LaTeX inside delimiters in HTML export with jsMath?
Hi Christian, how should, in this case, a literal LaTeX environment like \begin{equation} a=b \end{equation} be handled? - Carsten On Jun 17, 2010, at 9:23 AM, Christian Moe wrote: Hi, To display LaTeX math in Org html export with lovely jsMath, it must be exported verbatim with #+OPTIONS: ^:nil TeX:nil so one cannot use lazy superscripts/subscripts or Org entities in the rest of the text. Is there a simple way to turn these options on, but protect LaTeX where it appears *inside math delimiters* so it's exported verbatim? I.e. inside $...$, $$...$$, \( ... \), \[ ... \], \begin ... \end ? I ask because I'm keeping a note file with much text and only a few equations, but with frequent reference to e.g. CO_2 and m^2. It's possible to always write $CO_2$ and $m^2$, but less readable, and irksome when you've got used to an easier way. An inline formula can be protected by surrounding it with verbatim markup, =$...$=, but then it's only good for jsMath, not for LaTeX export. Yours, Christian ___ 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] Re: questions about html export
On Jun 18, 2010, at 3:32 AM, Daniel Mahler wrote: On Fri, Jun 18, 2010 at 2:30 AM, Daniel Mahler dmah...@gmail.com wrote: Hi, I have 2 issues with exporting 1. I would like html export to activate plain links Ignore this, they are activated. 2. I would like to embed source blocks in numbered lists, without breaking the numbering ie: 1) get ready #+BEGIN_SRC sh get_ready #+END_SRC 2) go #+BEGIN_SRC sh go #+END_SRC currently the src blocks cause the numbering to reset, so all items in a sequence like this are numbered 1 this is still an issue Hi Daniel, this should be fixed now. Thank you for the bug report. - 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] Org beamer export bugs
Hello, Just wanted to report little problems when exporting such a contents to Beamer: --8---cut here---start-8--- #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_FRAME_LEVEL: 1 #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default} #+COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra) * Rendering problems For *TeX* - *TeX* should have been twice in bold - Full on productivity -- *Org* and LaTeX [*Free* tools] - *Org* and LaTeX are *free* tools, the MS products not - In the text file, search for =username= and =password= - Following line gets outputted in tt --8---cut here---end---8--- Best regards, Seb -- 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
[Orgmode] Re: Removing (modify-syntax-entry ?# )
On 2010-06-18 08:11 +0100, Carsten Dominik wrote: Hi Leo, I have now applied this patch - hopefully it will do the right thing. Thank you for your persistence in trying to fix this old and super- annoying bug. - Carsten Thank you Carsten. I hope people who use org mode features more extensively can test it out. My personal use since the patch was submitted indicates no problem but my org mode setup is only ~50 lines. Cheers, Leo ___ 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] Verbatim LaTeX inside delimiters in HTML export with jsMath?
Hi, Carsten, Thanks for taking a look. Your example should be output exactly the same as it is currently with the =LaTeX:nil= option, i. e. verbatim: p \begin{equation} a=b \end{equation} /p - and this minimal example could be interpreted by jsMath without any changes in Org-mode export, since it happens to contain no sub/superscripts or entities. What I'd like is for \begin{equation} \e=mc^2 \end{equation} to be output equally verbatim as p \begin{equation} e=mc^2 \end{equation} /p *even when =^:t= is on*, so I could freely write e.g. m^2 in the text and get it superscripted, but not get p \begin{equation} e=mcsup2/sup \end{equation} /p In other words, to have my cake and eat it, too. I hope it's clearer now. Yours, Christian Carsten Dominik wrote: Hi Christian, how should, in this case, a literal LaTeX environment like \begin{equation} a=b \end{equation} be handled? - Carsten On Jun 17, 2010, at 9:23 AM, Christian Moe wrote: Hi, To display LaTeX math in Org html export with lovely jsMath, it must be exported verbatim with #+OPTIONS: ^:nil TeX:nil so one cannot use lazy superscripts/subscripts or Org entities in the rest of the text. Is there a simple way to turn these options on, but protect LaTeX where it appears *inside math delimiters* so it's exported verbatim? I.e. inside $...$, $$...$$, \( ... \), \[ ... \], \begin ... \end ? I ask because I'm keeping a note file with much text and only a few equations, but with frequent reference to e.g. CO_2 and m^2. It's possible to always write $CO_2$ and $m^2$, but less readable, and irksome when you've got used to an easier way. An inline formula can be protected by surrounding it with verbatim markup, =$...$=, but then it's only good for jsMath, not for LaTeX export. Yours, Christian ___ 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 -- Christian Moe E-mail: m...@christianmoe.com Website: http://christianmoe.com Carsten Dominik wrote: Hi Christian, how should, in this case, a literal LaTeX environment like \begin{equation} a=b \end{equation} be handled? - Carsten On Jun 17, 2010, at 9:23 AM, Christian Moe wrote: Hi, To display LaTeX math in Org html export with lovely jsMath, it must be exported verbatim with #+OPTIONS: ^:nil TeX:nil so one cannot use lazy superscripts/subscripts or Org entities in the rest of the text. Is there a simple way to turn these options on, but protect LaTeX where it appears *inside math delimiters* so it's exported verbatim? I.e. inside $...$, $$...$$, \( ... \), \[ ... \], \begin ... \end ? I ask because I'm keeping a note file with much text and only a few equations, but with frequent reference to e.g. CO_2 and m^2. It's possible to always write $CO_2$ and $m^2$, but less readable, and irksome when you've got used to an easier way. An inline formula can be protected by surrounding it with verbatim markup, =$...$=, but then it's only good for jsMath, not for LaTeX export. Yours, Christian ___ 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 -- Christian Moe E-mail: m...@christianmoe.com Website: http://christianmoe.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: add a table entry by org-remember template
Matt Lundin m...@imapmail.org writes: zwz zhangwe...@gmail.com writes: Matt Lundin m...@imapmail.org writes: zwz zhangwe...@gmail.com writes: AFAIK, it is now impossible to add a table entry by org-template. But I think it is very useful. For example, in my private.org, there is a section * Contacts | name | tel. | email | addr | |--+--+-+---| | A| 12 | a...@a.com | somewhere | If it is feasible with such a template (Contact ?c | %^{Name} | %^{tel} | %^{email} | %^{addr} |\n ~/private.org Contacts) to add new contacts, it would be very nice to organize (e.g. sort) all the contacts based on org-table. One solution would be to use properties to store contact information: Yes, this is how I am doing now. I forgot the column view thing. :) BTW, how to sort the headings (names) by the properties? Typing C-c ^ r will prompt you for a property. If you are above the first headline, all first level headlines will be sorted. If you are on a headline, all subheadings will be sorted. and what is dblocks? Sorry for the shorthand. Dynamic blocks can be used to refresh dynamic information (such as a table generated from properties) within an org file. Are they mentioned in the manual? - (info (org) Dynamic blocks) - (info (org) Capturing column view) Best, Matt Thank you, Matt. I have never tried dblocks before. But it is interesting. I will learn to used it. ___ 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: Both todo and tag search
Chao Lu looc...@gmail.com writes: For the custom agenda command, is it possible to define a search performing both todo and tag search, for example, the items whose todo state is ACTIVE, and the context(defined by tag) is Office? Do a tags match search for Office/ACTIVE Items before the / are tags and after the / are TODO keywords. 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
[Orgmode] DAV config for mobileorg
I have this 99% working, but I'm unclear on what the permission plan should be. My apache 2.2 config is DavLockDB /usr/pkg/var/DavLock Alias /org/gdt /home/gdt/ORG Directory /home/gdt/ORG Options Indexes AllowOverride AuthConfig Order allow,deny Allow from all DAV On AuthType Digest AuthName org/gdt AuthUserFile /home/gdt/ORG/.htpasswd Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK Require valid-user /Limit /Directory I've set up ~/ORG to be 770 gdt.www, and mobileorg.org 660, so that apache can write to it. According to apache docs, I should have all this data owned by the apache user, and not be reading/writing it with scp/etc. http://httpd.apache.org/docs/2.2/mod/mod_dav.html I would like to have a second mobileorg user on this system, and have apache access both files via .htpasswd digest auth, and the system prevent each user from reading the others. Am I confused about this? Any hints appreciated. pgpEUCy8SGXYh.pgp Description: PGP signature ___ 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] howto open attachment directory in external program?
in .mailcap i have set-upped: inode/directory-locked; pcmanfm2 '%s'; inode/directory; pcmanfm2 '%s'; text/directory; pcmanfm2 '%s'; but when I'm trying to open attachments directory, it is still opened in emacs. ___ 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] how to sort in the column view?
Hi, I have a custom agenda command which produces a list of items which are scheduled, i.e. have a SCHEDULED or a DEADLINE property. Producing that column view is now defined in 'org-agenda-custom-commands' as: [...] (c Scheduled overview tags SCHEDULED\\|DEADLINE\\/TODO ( (org-agenda-overriding-header SCHEDULED) (org-agenda-view-columns-initially t) (org-agenda-overriding-columns-format %65ITEM %25Responsible %SCHEDULED %DEADLINE %TAGS) (org-agenda-dim-blocked-tasks t))) [...] What I would like to do is to sort on the SCHEDULED and/or DEADLINE column. I tried using org-agenda-sorting-strategy on the custom view, but that does not seem to work. Can someone give me a nudge in the right direction for sorting on the SCHEDULED column (property)? Thanks, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ 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] [babel] exports, caching, remote execution
Eric Schulte wrote: Is scpc in the line above a transport protocol? Maybe this should be an org-mode wide features, i.e. the ability to resolve remote file references with C-c C-o and on export. Does that sound reasonable, and would it take care of the need in this particular case? I've created two IDEA issue in the issue file for this and another operation on links especially during export: Link resolving and link dereferencing. Just out of my head without many thoughs about how to implement: 1. Following the URI specs (RFC 3986) resolving and dereferencing means: the process of determining an access mechanism and the appropriate parameters necessary to dereference a URI (sc. resolving, D.M.); this resolution may require several iterations. To use that access mechanism to perform an action on the URI's resource is to dereference the URI. (1.2.2) The basic idea is, that an Org mode link is a URI identifying a resource; upon export it might be necessary or desired to provide either an access mechanism suitable for the output format to access the entity referenced by the URI or another URI (see below). E.g.: An info reference to the Org mode manual [[info:org]] could be resolved to a web link [[http://orgmode.org/manual/]] when exporting to html. Resolving is already done for files when exporting to html: [[file:foo.baz]] is resolved to a relative web link, pointing to foo.baz. Dereferencing a link like [[file:/scpc:u...@example.com:/users/home/user/test.png]] could or would hence be part of resolving a file link. It fetches the resource (test.png), puts it into current directory and returns a link suitable for the export context. Another example would be a hypothetical Org mode link type rfc that opens and stores links to RFCs using rfcview-mode. When exporting an Org mode document to html, the function `org-rfc-resolve-link' is called and returns a web link pointing to a web resource of the RFC. When exporting to latex, the function `org-rfc-resolve-link' returns a link of type bib with the BibTeX key of the RFC (e.g. rfc:4287 - bib:RFC4287), assuming that a reference to a RFC in a LaTeX document is a bibliographic reference. 2. To complete this way of link handling we require a third function: Link markup. An Org mode link handler may provide a markup-link function that takes the exporting context and the link and returns suitable markup of LINK in CONTEXT. E.g. the handler for BibTeX links provides the function `org-bib-markup-link' that returns proper markup of a bibliographic reference. In context of LaTeX export his would be a \cite command with the BibTeX key of the bib link (bib:RFC4287 - \cite{4287}). 3. For the sake of Lispness and to avoid repeated parsing, we define a Lisp representation of an Org link to be: ((TYPE AI RESOURCE) . PROPS) Where - TYPE :: Is a symbol of the type (scheme) of the link - RESOURCE :: Is the path or name of the referenced resource - AI :: Is t, if RESOURCE contains an authority, otherwise it is nil. Cf. RFC3986, 3.2; in the written representation of a URI the presence of an authority is indicated by the two slashes after the colon. - PROPS :: Is a property list of additional link properties (e.g. description) Examples: - [[http://orgmode.org/manual/][Org mode manual]] is represented as: ((http t orgmode.org/manual/) . (:description Org mode manual)) - [[info:org][Org mode manual]] is represented as ((info nil org) . (:description Org mode manual)) - [[file:foo/baz.org]] is represented as ((file nil foo/baz.org)) Having this, resolving a link is modifying TYPE, RESOURCE and AI. E.g. ((file nil foo/baz.org)) - ((http nil foo/baz.html)) ((file nil /scp:u...@example.com:/users/home/user/test.png)) - ((file nil test.png)) [dereferenced] - ((http nil test.png)) [finally resolved] 4. The question of how to actually resolve a link is up to the respective link handler and I am not sure how to provide easy customization of such a system. Comments are welcome, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp6APP0Coy3F.pgp Description: PGP signature ___ 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] Two bugs in org-indent (plus a fix to correct one of them)
William Henney wrote: Consider what one would want to happen when org-indent-indentation-per-level = 1 (which is what I prefer): Indentation of 0 * Level one heading Indentation of 2 ** Level two heading Indentation of 3 *** Level three heading Indentation of 4 So, the desired sequence of indentation is [0, 2, 3, 4, ...] whereas the original formula gives the sequence [0, 1, 2, 3, ...] Ah, so it boils down to the question what proper indentation looks like. Suppose this could only be 'solved' by providing customization for the formula itself. -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpNLbTeL7ut3.pgp Description: PGP signature ___ 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] [ANN] Org to Atom, revisited
Olivier Schwander wrote: [here]: http://ictsoc.de/code/org-atom/example.atom Is there the source of this feed somewhere ? It would be nice to have a self sufficient example. I've uploaded the source of the example feed to http://ictsoc.de/code/org-atom/example.org But it's really as straightforward as the simple example in the documentation. * Download and installation Maybe it would be useful to have the emacs lisp fragment users need to put in their .emacs file ? And add this part to the Download and install section of the online manual. I'll put more detailed install instructions there as soon as there is a decision about including org-atom into Org or not (yet). 1.2 Headline properties A headline that matches the TAGS/PROP/TODO query for feed entries requires at least two headline properties to be present: The =ID= property with a unique identifier of the headline (preferable a UUID) and a property called =atom_published= containing a time stamp with the date an entry should be considered to be published. If these two properties are not present, they are automatically created using Org's default method to create ID properties[2] and current time and date for the publishing date[3] Maybe it should be better to extract timestamp from the usual timestamp below headlines, like this one: * Some title [2010-06-16 mer. 14:19] or * DONE Some title CLOSED: [2010-06-16 mer. 14:19] Actually, with this solution, it would be better to remove the timestamp used from the export, since it will displayed by the reader. The problem is, that the Atom specification requires an entry to have at least a atom:updated element. Thus there must be timestamp somewhere. Binding the timestamp to a special position in Org mode markup would limit the functionality of the exporter. However: I understand that it could be reasonable to not use a property, but an already present timestamp. What about something like this: The name of the published and updated property can be customized. It can either be a string with the property name or the symbol 'timestamp_ia. If it is this symbol, the exporter uses the first inactive timestamp of a headline. If the headline does not have an inactive timestamp, the exporter throws an error. 1.3 Export settings content: turn on/off publishing content When content is t, the headline is exported both in title and in content, is this a feature or a bug ? If it's a feature, it should be nice to have an option to disable it. Hah! Good catch. Never paid attention to this. Just pushed a commit that removes the title in the content element. Thanks for the comment and suggestions. -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpYbWBGrWdoa.pgp Description: PGP signature ___ 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] Agenda is slow because of vc-mode
Daniel Clemente wrote: Hi. I have a shell script which exports my agenda to a file. It's pretty slow: about 90 seconds. There are many files (200 .org files, 76k lines, 3'6 Mb, 1600 open tasks) but the performance should be better. I found a way to bring it down to 11 seconds: temporarily disable the version control tools I'm using (bazaar, git). To test, just change their names so that Emacs can't run them. Since this slowness is caused by vc-mode, I wonder if it's possible for Org to open the agenda files without enabling vc-mode, for vc-mode is not necessary for org-mode. I fear not, because org-agenda-get-day-entries uses org-get-agenda-file-buffer to open a buffer normally, and this buffer should be fully functional for later usage. That's indeed the problem: Its hard to figure a default options for such functionality. As a hack, I used (defun vc-find-file-hook () nil) in my script; this does the trick. Instead of overloading `vc-find-file-hook' you could use something like this: (defun dmj/disable-vc-for-agenda-files-hook () Disable vc-mode for Org agenda files. (if (and (fboundp 'org-agenda-file-p) (org-agenda-file-p (buffer-file-name))) (remove-hook 'find-file-hook 'vc-find-file-hook) (add-hook 'find-file-hook 'vc-find-file-hook))) (add-hook 'find-file-hook 'dmj/disable-vc-for-agenda-files-hook) It removes vc-find-file-hook from the list of find-file-hooks when the file is question is an agenda file. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpMWUQKfplsm.pgp Description: PGP signature ___ 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] DAV config for mobileorg
I've actually just been using python's pywebdav: http://code.google.com/p/pywebdav/ running on my VPS. I plan to just use this until I get Dropbox (or something like it) support integrated. 73, Matthew W. Jones (KI4ZIB) http://matburt.net On Fri, Jun 18, 2010 at 8:23 AM, Greg Troxel g...@ir.bbn.com wrote: I have this 99% working, but I'm unclear on what the permission plan should be. My apache 2.2 config is DavLockDB /usr/pkg/var/DavLock Alias /org/gdt /home/gdt/ORG Directory /home/gdt/ORG Options Indexes AllowOverride AuthConfig Order allow,deny Allow from all DAV On AuthType Digest AuthName org/gdt AuthUserFile /home/gdt/ORG/.htpasswd Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK Require valid-user /Limit /Directory I've set up ~/ORG to be 770 gdt.www, and mobileorg.org 660, so that apache can write to it. According to apache docs, I should have all this data owned by the apache user, and not be reading/writing it with scp/etc. http://httpd.apache.org/docs/2.2/mod/mod_dav.html I would like to have a second mobileorg user on this system, and have apache access both files via .htpasswd digest auth, and the system prevent each user from reading the others. Am I confused about this? Any hints appreciated. ___ 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: Pretty org-entities in org-mode buffers
Can we also have support for colors ? At least for a few colors ? With Regards, Raghav. ___ 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] Agenda is slow because of vc-mode
Since this slowness is caused by vc-mode, I wonder if it's possible for Org to open the agenda files without enabling vc-mode, for vc-mode is not necessary for org-mode. I suspect part of the problem is that vc-mode is slower than it should be. Probably almost all of this time is 'git status foo.org' to find out if the buffer gets a * or not. Perhaps a variable to vc-mode to omit that part would help, but I don't really know. pgpNpGx3cEi7A.pgp Description: PGP signature ___ 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] Bug: clocktable :link often jumps to wrong target [6.36c]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Links created by clocktable :link are simple text search links. Therefore, they often hit the wrong target. For example, I used to have multiple clocktables at the beginning of my file: first a daily summary, then a weekly one, then a complete one, i.e. following clocktables summarized supersets of preceding ones. Therefore, most of the time I clicked a link in the first clocktable, the next text search target was the occurrence of the same task in the second clocktable, whereas clicking that link in the second clocktable would take me back into the first. I have been able to partly work around that by moving the clocktables to the end of the file, as the search always seems to start at the beginning of the file. Nevertheless, when I have two tasks foobar and foo, occurring in that order in the file, clicking on the [[foo]] link in the clocktable takes me to the foobar task, as that has a foo substring and occurs first in the file. I would like clocktable to generate links that uniquely link to the task from which the particular clocktable entry has been generated. (I'd even be willing to assign CUSTOM_ID properties for that purpose, i.e. clocktable could take them into account for creating links, when they exist.) But the best solution would IMHO be a truly unique identification, e.g. by some XPath-like path, e.g. /1/2/3 for the 3rd subtask of the 2nd subtask of the 1st top-level task. (Sure, that order will be invalidated when I change my task list, but, so what, then I would be willing to recompute the clocktable before using links.) Emacs : GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.9) of 2010-06-15 on thinkpad Package: Org-mode version 6.36c current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-files '(~/svn/kwarc.info/clange/default.org) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-clock-idle-time 10 ) -- Christoph Lange, Jacobs Univ. Bremen, http://kwarc.info/clange, Skype duke4701 signature.asc Description: This is a digitally signed message part. ___ 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: howto open attachment directory in external program?
Kestutis Matonis maton...@gmail.com writes: in .mailcap i have set-upped: inode/directory-locked; pcmanfm2 '%s'; inode/directory; pcmanfm2 '%s'; text/directory; pcmanfm2 '%s'; but when I'm trying to open attachments directory, it is still opened in emacs. I'm not sure why org-attach is not respecting the mailcap settings. But for a simple solution you could add a setting to org-file-apps: (add-to-list 'org-file-apps '(directory . pcmanfm2)) 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: howto open attachment directory in external program?
Matt Lundin m...@imapmail.org writes: Kestutis Matonis maton...@gmail.com writes: in .mailcap i have set-upped: inode/directory-locked; pcmanfm2 '%s'; inode/directory; pcmanfm2 '%s'; text/directory; pcmanfm2 '%s'; but when I'm trying to open attachments directory, it is still opened in emacs. I'm not sure why org-attach is not respecting the mailcap settings. But for a simple solution you could add a setting to org-file-apps: (add-to-list 'org-file-apps '(directory . pcmanfm2)) Oops. The above line should read: (add-to-list 'org-file-apps '(directory . pcmanfm2 %s)) Hope this helps. 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] [PATCH] remove newline characters from the contents of table cells
This patch changes the functionality of orgtbl-to-orgtbl so that it will remove newline characters from the text of table cells and replace them with \n. This protects the final table from such newlines. This patch will probably only have any noticeable effect for tables imported form external files, or from the results of code blocks. Best -- Eric From 34aacc9aa037e8f17c8d32ed61a25f0a350713a0 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Fri, 18 Jun 2010 12:38:26 -0700 Subject: [PATCH] org-table: will now strip newlines from the text of table cells * lisp/org-table.el (orgtbl-to-generic): added the :remove-newlines option which will strip newline characters from the text of table cells and replace then with \n (orgtbl-to-orgtbl): now using the new :remove-newlines option to orgtbl-to-generic --- lisp/org-table.el | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index 46efc28..e81a855 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -4119,6 +4119,7 @@ directly by `orgtbl-send-table'. See manual. (let* ((splicep (plist-get params :splice)) (hline (plist-get params :hline)) (remove-nil-linesp (plist-get params :remove-nil-lines)) + (remove-newlines (plist-get params :remove-newlines)) (*orgtbl-hline* hline) (*orgtbl-table* table) (*orgtbl-sep* (plist-get params :sep)) @@ -4173,9 +4174,13 @@ directly by `orgtbl-send-table'. See manual. (let ((tend (orgtbl-eval-str (plist-get params :tend (if tend (push tend *orgtbl-rtn*) -(mapconcat 'identity (nreverse (if remove-nil-linesp - (remq nil *orgtbl-rtn*) - *orgtbl-rtn*)) \n))) +(mapconcat (if remove-newlines + (lambda (tend) + (replace-regexp-in-string [\n\r\t\f] n tend)) + 'identity) + (nreverse (if remove-nil-linesp + (remq nil *orgtbl-rtn*) + *orgtbl-rtn*)) \n))) (defun orgtbl-to-tsv (table params) Convert the orgtbl-mode table to TAB separated material. @@ -4301,6 +4306,7 @@ and :tend suppress strings without splicing; they can be set to provide ORGTBL directives for the generated table. (let* ((params2 (list + :remove-newlines t :tstart nil :tend nil :hline |--- :sep | -- 1.7.0.4 ___ 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] how to sort in the column view?
Hi, I have a custom agenda command which produces a list of items which are scheduled, i.e. have a SCHEDULED or a DEADLINE property. Producing that column view is now defined in 'org-agenda-custom-commands' as: [...] (c Scheduled overview tags SCHEDULED\\|DEADLINE\\/TODO ( (org-agenda-overriding-header SCHEDULED) (org-agenda-view-columns-initially t) (org-agenda-overriding-columns-format %65ITEM %25Responsible %SCHEDULED %DEADLINE %TAGS) (org-agenda-dim-blocked-tasks t))) [...] What I would like to do is to sort on the SCHEDULED and/or DEADLINE column. I tried using org-agenda-sorting-strategy on the custom view, but that does not seem to work. Can someone give me a nudge in the right direction for sorting on the SCHEDULED column (property)? Thanks, marcel -- Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV-- http://www.hsdev.com So! web applications -- http://make-it-so.info Cobra build -- http://cobra.mrblog.nl ___ 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: oddities with ical export
Daniel Martins daniel...@gmail.com writes: All of them appear in Agenda View but none appears in the .ics file I have the same problem. Actually, /none/ of my entries with associated dates wind up in the resulting ics file. Oh: Setting `org-icalender-include-todo' did the trick. Entries with tags wind up with the tags appended to the headline string, which looks pretty weird and needs to be cleaned up. When I import the ics file into Apple's iCal program, it shows all the org-generated entries as To Do Items, but none of them actually appear on the calendar, as if they have no dates attached. The ics file entries have a few kinds of DTSTART values, but iCal doesn't represent any of them on teh calendar itself. -- Steven E. Harris ___ 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: [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options)
Tried this and it works well -- the output is definitely much better! One oddity -- the EPS generated is black and white whereas the typical output was in color... silly option I'm missing? On Sat, Jun 12, 2010 at 5:24 AM, Eric S Fraga ucec...@ucl.ac.uk wrote: On Sat, 12 Jun 2010 11:17:33 +0100, Eric S Fraga ucec...@ucl.ac.uk wrote: [...] for instance. Then, if I need bitmap images, I use convert from ImageMagick to create these from the EPS files with the required density (depending on intended use, whether screen display or printing), as in convert -quality 95 -density 300 graph.eps graph.png Ooops, ignore the -quality 95 as that is only appropriate if you are creating a lossy format output, such as jpeg! -- Eric S Fraga GnuPG: 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 ___ 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: [OT] gnuplot quality
John Hendy jw.he...@gmail.com writes: Tried this and it works well -- the output is definitely much better! One oddity -- the EPS generated is black and white whereas the typical output was in color... silly option I'm missing? try set terminal postscript eps color enhanced 20 instead of set terminal postscript eps enhanced 20 ___ 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: [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options)
John Hendy jw.he...@gmail.com wrote: Tried this and it works well -- the output is definitely much better! One oddity -- the EPS generated is black and white whereas the typical output was in color... silly option I'm missing? monochrome is default: , | set terminal postscript eps enhanced 20 | Terminal type set to 'postscript' | Options are 'eps enhanced defaultplex \ |leveldefault monochrome colortext \ |dashed dashlength 1.0 linewidth 1.0 butt \ |palfuncparam 2000,0.003 \ |Helvetica 20 ' ` Say help set terminal postcript to gnuplot and it'll spew (among other things): , | `default` sets all options to their defaults: `landscape`, `monochrome`, | `dashed`, `dl 1.0`, `lw 1.0`, `defaultplex`, `noenhanced`, Helvetica and | 14pt. Default size of a PostScript plot is 10 inches wide and 7 inches high. | The option `color` enables color, while `monochrome` prefers black and white | drawing elements. Further, `monochrome` uses gray `palette` but it does not | change color of objects specified with an explicit `colorspec`. | `solid` draws all plots with solid lines, overriding any dashed patterns. | `dashlength` or `dl` scales the length of the dashed-line segments by DL, | which is a floating-point number greater than zero. | `linewidth` or `lw` scales all linewidths by LW. ` 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
Re: [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options)
Much appreciated. Color works perfectly. On Fri, Jun 18, 2010 at 4:13 PM, Nick Dokos nicholas.do...@hp.com wrote: John Hendy jw.he...@gmail.com wrote: Tried this and it works well -- the output is definitely much better! One oddity -- the EPS generated is black and white whereas the typical output was in color... silly option I'm missing? monochrome is default: , | set terminal postscript eps enhanced 20 | Terminal type set to 'postscript' | Options are 'eps enhanced defaultplex \ |leveldefault monochrome colortext \ |dashed dashlength 1.0 linewidth 1.0 butt \ |palfuncparam 2000,0.003 \ |Helvetica 20 ' ` Say help set terminal postcript to gnuplot and it'll spew (among other things): , | `default` sets all options to their defaults: `landscape`, `monochrome`, | `dashed`, `dl 1.0`, `lw 1.0`, `defaultplex`, `noenhanced`, Helvetica and | 14pt. Default size of a PostScript plot is 10 inches wide and 7 inches high. | The option `color` enables color, while `monochrome` prefers black and white | drawing elements. Further, `monochrome` uses gray `palette` but it does not | change color of objects specified with an explicit `colorspec`. | `solid` draws all plots with solid lines, overriding any dashed patterns. | `dashlength` or `dl` scales the length of the dashed-line segments by DL, | which is a floating-point number greater than zero. | `linewidth` or `lw` scales all linewidths by LW. ` 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
[Orgmode] GTD: Tags or Custom TODO states?
Hi Everyone, So, I'm going to try to implement David Allen's Getting Things Done using org-mode, as so many other people have done already. I'd like to set things up more or less right the first time, but since GTD is brand-new to me (just finished the book today!) and I'm still only barely competent at org-mode, I'm a little anxious about the choices I need to make. I think I understand some of the steps I have to take now, but would love some advice from all the GTD'ers out there. So here goes: GTD is a 5-step process: Collect, Process, Organize, Review, Do. I have all my GTD stuff in Dropbox, under ~/Dropbox/GTD, so there won't be any syncing problems across computers (don't have a smartphone yet, so that's not an issue). That directory currently contains: Collect.org this is where stuff gets collected before any processing takes place -- it's especially for things I think of or that get thrown at me when I'm in a rush, or for 'mindsweeps'; essentially, it's a kind of Inbox (I have an email inbox, too, with wanderlust as my mail client -- but i'm not going to get into that now). The items in this file do not have TODO states because I haven't figured out how to manage them yet. Every morning, or thereabouts, I'm supposed to check Collect.org and quickly process each item. Either it gets done right away, thrown out, or assigned a category refiled in one of the other GTD files... Reference.org Stolen from http://www.jboecker.de/2010/04/14/general-reference-filing-with-org-mode.html, this is the one file that contains all my reference material. Again, nothing in here is a TODO, and this file is not in the agenda-files alist. GTD.org this is the main storage place for actionable items, and items that are waiting for a response, so it is listed in the agenda-files alist. My plan is to use custom agenda views to quickly access all actions i need to take and all items i'm waiting for. Everything should be tagged with at least a CONTEXT tag (calls, emails, office, home, errands, etc) and in most cases probably another tag that relates in some ways to content -- so e.g. a person's name could be used as a tag to build what Allen calls agendas for the next meeting you have with that person. limiting on tags should make that pretty straightforward. Everything should also have a TODO state associated with it; right now I'm thinking something like this: TODO WAITING |DONE but maybe there should be others. (i do want to keep things as simple as possible, though) Projects.org This file lists my projects and outlines the sub-projects associated with them. Most of these are not _really_ todos -- but each project does need to have a next action associated with it, and this *is* a real TODO item. Here's where I can't decide which way to go: Add this file to the agenda-files alist, and create two sets of TODO states: PROJECT | DONE and TODO WAITING | DONE and then create custom views for reviewing projects (during the Weekly Review, or maybe more often) and for viewing next actions along with the TODOS from GTD.org; or Just tag the projects headlines with :Project:, and only mark TODO's when there's a next action defined. This is simpler but it makes it a little harder to track projects using the Agenda view. ; or just move the TODO items to GTD.org where they in some sense belong. that seems a little labour intensive though. the main work that I would have to do to set this up is to craete appropriate remember templates and maybe some custom refiling commands. Those don't seem that hard to do. Anyway, I would love to hear whatever advice people have -- I've read around a bit in the archives and mosto f the links from the worg GTD page, but I still have plenty to learn. Thanks much, 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] org-feed not working for codeproject
I have the feed (codeproject http://www.codeproject.com/webservices/articlerss.aspx?cat=2; ~/feeds.org C++ on CodeProject) in the org-feed-alist. Everytime I update the feed, I got a new headline * codeproject added into the file feeds.org without any new items. It is weird and I do not know why. ___ 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