Re: [O] org-capture-template: SCHEDULED: obsolete?
On 11/05/2011 11:35 PM, Marius Hofert wrote: Apparently, the string SCHEDULED: is not required for an entry to appear in agenda view. Hi Marius, the difference between date and SCHEDULED: date is that date will cause the entry to appear in the agenda only on the given day, whereas SCHEDULED: date will also cause the entry to be displayed on the current day if it is scheduled in the past and has not been marked DONE yet. To see what I mean, put the following entries into an agenda file: * Test 1 SCHEDULED: 2011-11-05 Sat * DONE Test 2 SCHEDULED: 2011-11-05 Sat * Test 3 2011-11-05 Sat Because Test 1 it is not marked done, if you refresh your agenda view today, you will see something like this: Sched. 2x: Test 1 Test 2 does not show up because it is marked DONE and Test 3 does not show up because it does not contain the SCHEDULED keyword. (Note that Test 1 will only show up on the agenda view for today and the day it was scheduled for when you look at the agenda view for a day in the past or future, for example by using the weekly or monthly view or going forward/backward with the f and b keys. For more information, please refer to Section 8.3, Deadlines and scheduling, in the Org manual. Hope this helps, Jan
Re: [O] org-capture-template: SCHEDULED: obsolete?
Thanks a lot, Jan, that explained it very well. Cheers, Marius On 2011-11-06, at 11:30 , Jan Böcker wrote: On 11/05/2011 11:35 PM, Marius Hofert wrote: Apparently, the string SCHEDULED: is not required for an entry to appear in agenda view. Hi Marius, the difference between date and SCHEDULED: date is that date will cause the entry to appear in the agenda only on the given day, whereas SCHEDULED: date will also cause the entry to be displayed on the current day if it is scheduled in the past and has not been marked DONE yet. To see what I mean, put the following entries into an agenda file: * Test 1 SCHEDULED: 2011-11-05 Sat * DONE Test 2 SCHEDULED: 2011-11-05 Sat * Test 3 2011-11-05 Sat Because Test 1 it is not marked done, if you refresh your agenda view today, you will see something like this: Sched. 2x: Test 1 Test 2 does not show up because it is marked DONE and Test 3 does not show up because it does not contain the SCHEDULED keyword. (Note that Test 1 will only show up on the agenda view for today and the day it was scheduled for when you look at the agenda view for a day in the past or future, for example by using the weekly or monthly view or going forward/backward with the f and b keys. For more information, please refer to Section 8.3, Deadlines and scheduling, in the Org manual. Hope this helps, Jan
[O] org-capture-template: How to correctly capture email addresses?
Hi, I would like to capture contacts (name, email,..) with org-mode and thus setup the following in .emacs: (setq org-capture-templates '((t TODO in ~/org/agenda.org - Tasks entry (file+headline ~/org/agenda.org Tasks) * TODO %?\nSCHEDULED: %^t\n%U %a) (c Contact in ~/org/contacts.org - Contact entry (file+headline ~/org/contacts.org Contact) * %?%(org-contacts-template-name) %^g :PROPERTIES: :EMAIL: %(org-contacts-template-email) :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :END:))) I can easily capture contacts with C-c c c, it prompts for the name, a tag, and the email address. However, instead of an output like * My contact :my.tag: :PROPERTIES: :EMAIL: my.cont...@my.mail.com :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :END: I obtain: * My contact :my.tag: :PROPERTIES: :EMAIL: :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :EMAIL: my.cont...@my.mail.com :END: So the problem is that the first :EMAIL: is ignored and instead a second :EMAIL: is inserted before :END:. How can I obtain the correct output (as described above)? Cheers, Marius
[O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
How can I set up anniversaries with org-contact? My agend.org file contains the following, as mentioned on the bottom of http://julien.danjou.info/org-contacts.html #+STARTUP: showeverything * Birthdays %%(org-contacts-anniversaries) My contacts.org file contains (e.g.): * My contact :my.tag: :PROPERTIES: :EMAIL: my.cont...@my.address.org :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: 2000-01-01 :NOTE: :END: When I access agenda view via C-c a a, I obtain: Bad sexp at line 3 in /Users/myusername/org/agenda.org: (org-contacts-anniversaries) [7 times] Note that line three corresponds to %%(org-contacts-anniversaries) Cheers, Marius
[O] Bug(?) report footnotes
Dear Orgmode community, last week I submitted a journal paper of appr. 30 pages using orgmode and latex export and I ran into trouble regarding footnotes several times. The document didn't compile due to wrongly set brackets of footnotes if: A footnote is placed without a blank line infront of a heading that is exported as itemized. so [fn:xyz] Heading was exported to something like \footnote{asdfsdfasdfasdf \begin{itemize} qwerwerwqe} since the document has been quite big it has been really plenty of work to find these errors. If of any interest I can try to reproduce this in a less than 9500 word ducument. Best Markus P.S.: I used the IEEEtran class.
[O] Feature suggestion
Dear community, since I used Scrivener (Windows Beta) quite a while I'd love to have more of fletcher penny's multimarkdown (or MMD- like Syntax) integrated in orgmode to make it more versatile. Sadly I am not a lisp programmer at all... Best Markus
Re: [O] Bug(?) report footnotes
Hello, Markus Grebenstein p...@mgrebenstein.de writes: If of any interest I can try to reproduce this in a less than 9500 word ducument. Yes, I would appreciate an ECM (minimal complete example) along with the version of Org you're using. Thank you. Regards, -- Nicolas Goaziou
[O] #+STARTUP: content: How to expand only some sections on startup?
Hi, as described on http://orgmode.org/manual/Visibility-cycling.html one can set #+STARTUP: content to start an .org file with all headlines shown, the default is overview. I tried to put #+STARTUP: content in some sections hoping that they will be expanded on startup while other sections will not be expanded (so following overview). Is something like this possible? Cheers, Marius
Re: [O] [bug] Org link dialog escapes URL spaces incorrectly
At Sat, 05 Nov 2011 11:38:56 -0400, Nick Dokos wrote: David Maus dm...@ictsoc.de wrote: At Fri, 04 Nov 2011 14:25:42 -0400, Nick Dokos wrote: Nick Dokos nicholas.do...@hp.com wrote: It probably does, but that's probably not the best place to do it: it might be better to do it in the (setq link on line 9090 or thereabouts. Otherwise, in the *other* case (editing the link at point), we'll end up unescaping twice: probably not a problem, since unescaping should be idempotent (in contrast to escaping ;-) ) but why do it twice? Brian Wightman pointed out to me that the idempotent part of the statement above is definitely wrong (d'oh). The original URL that Jeff Horn posted, when unescaped once, would be completely free of % signs. But if the second (doubly-escaped) form is pasted into the minibuffer, then unescaping once would not be enough. So I presume the thing to do is to take the URL and unescape it repeatedly until it loses all escapes, and then escape it *once* before inserting it in the org buffer. Sounds icky, kludgy, dirty. The question is: 1) is it a solution? and 2) is there a better one? No, this wouldn't be a solution. Consider a link with the sequence %2525 -- Unescape until no more escapes (or rather escapes) will produce a single `%', not %25. Either escape once, or not at all. What roughly happens is this: 1. The user enters a link via `org-insert-link' 2. Org escapes the link and writes it to the buffer 3. The user opens the link with `org-open-at-poin' 4. Org reads the link from the buffer and unescapes it 5. The link gets escaped and passed to the cosuming application (i.e. browser) For steps 2 and 4 it is guaranteed that (string= link (org-link-unescape (org-link-escape link))) Thus, the problem is not in 2 or 4, but in 1 or 5. Step 5 assumes, that a link entered by the user in step 1 was an unescaped link and thus needs escaping before it is passed to the cosuming application. If you enter a link in step 1 that already is escaped, this assumption fails and you'll end up with a double-escaped link that is passed to the consumer. In other words, the question is: How to decide whether an arbitrary URL is percent-escaped or not? Now here's the problem: You can't. Is http://example.tld/foo%40bar; already escaped or not? You can't tell for sure. It depends on the application you copied the link from.[1] What we could do in step 5 is... guess. If the (unescaped) link produced by step 4 does contain characters that need escaping, we escape the link. Otherwise we don't. Not quiet sure about the impact of such a change. Best, -- David [1] Even worse: It may even depend on /how/ or /where/ you copied the link. E.g. the link to a wikipedia page about set theory is copied as http://de.wikipedia.org/wiki/Menge_%28Mathematik%29 if C-c'ed from the address bar but copied as http://de.wikipedia.org/wiki/Menge_(Mathematik) if C-c'ed via Copy link to clipboard at another page (Iceweasel 3.6.23). What a mess - thanks for the clear explanation. Be that as it may, the treatment of links in org-insert-link is inconsistent: in one case, the link is unescaped once, in the other not at all. Hm. I still don't see an inconsistency here: `org-insert-link' reads a link, `org-open-at-point' calls the target application with exactly this link but applies percent escaping. Maybe we could drop this last escaping and push the responsibilty of handling non-conformant URLs to the target application. After all: If the user enters an unescaped link and the target application can't handle it, it's the users fault. So I presume that a single unescaping is desirable (it would e.g. deal with both wikipedia links correctly). But there will be corner cases where this will fail and some manual editing of the link will be necessary, If you mean unescape the user input in step 1 (`org-insert-link'): This could work, too. Besides the edge cases it requires some care to stored links (via `org-store-links') -- the percent character is a valid character for certain link types (e.g. message ids). Personally I start to like the idea of just dopping the escaping before calling the target application. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpuATnHWpNhE.pgp Description: PGP signature
[O] [test] Failure on GNU Emacs 22.3.2 (i686-pc-linux-gnu) of 2011-05-28 on x60s
Running the test suit on GNU Emacs 22.3.2 (i686-pc-linux-gnu) of 2011-05-28 on x60s currently fails with the backtrace below. Somehwere/somehow Babel ends up calling `member' with the second argument not being a list. In Emacs22 this triggers an error, but not so in Emacs23 and upwards. Devs don't consider this a bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=264 Best, -- David Debugger entered--Lisp error: (wrong-type-argument listp 58) member(118 58) (or (and (numberp spec) (= spec ch)) (member ch spec)) (progn (or (and ... ...) (member ch spec))) (block matches (or (and ... ...) (member ch spec))) matches(118 58) (and (matches ch (cdr alts)) (matches last (car alts))) (catch (quote --cl-block-matched--) (and (matches ch ...) (matches last ...))) (cl-block-wrapper (catch (quote --cl-block-matched--) (and ... ...))) (block matched (and (matches ch ...) (matches last ...))) matched(118 58) (and (= balance 0) (matched ch last)) (if (and (= balance 0) (matched ch last)) (progn (setq lst ...) (setq partial nil))) (when (and (= balance 0) (matched ch last)) (setq lst (cons ... lst)) (setq partial nil)) (lambda (ch) (setq balance (+ balance ...)) (setq partial (cons ch partial)) (when (and ... ...) (setq lst ...) (setq partial nil)) (setq last ch))(118) mapc((lambda (ch) (setq balance (+ balance ...)) (setq partial (cons ch partial)) (when (and ... ...) (setq lst ...) (setq partial nil)) (setq last ch)) (58 118 97 114 32 105 110 112 117 116 61 34 101 99 104 111 39 100 34)) (let ((balance 0) (partial nil) (lst nil) (last 0)) (mapc (lambda ... ... ... ... ...) (string-to-list string)) (nreverse (cons ... lst))) (progn (fset (quote matched) (function* ...)) (let (... ... ... ...) (mapc ... ...) (nreverse ...))) (unwind-protect (progn (fset ... ...) (let ... ... ...)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...))) (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect (progn ... ...) (if --cl-letf-bound-- ... ...))) (letf ((... ...)) (let (... ... ... ...) (mapc ... ...) (nreverse ...))) (progn (fset (quote matches) (function* ...)) (letf (...) (let ... ... ...))) (unwind-protect (progn (fset ... ...) (letf ... ...)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...))) (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect (progn ... ...) (if --cl-letf-bound-- ... ...))) (letf ((... ...)) (letf (...) (let ... ... ...))) (letf* ((... ...) (... ...)) (let (... ... ... ...) (mapc ... ...) (nreverse ...))) (flet ((matches ... ...) (matched ... ...)) (let (... ... ... ...) (mapc ... ...) (nreverse ...))) org-babel-balanced-split(:var input=\echo'd\ ((32 9) . 58)) ((lambda (raw) (cons ... ...)) (org-babel-balanced-split arg-string (quote ...))) (mapcar (lambda (arg) (if ... ... ...)) ((lambda ... ...) (org-babel-balanced-split arg-string ...))) (delq nil (mapcar (lambda ... ...) (... ...))) (org-babel-parse-multiple-vars (delq nil (mapcar ... ...))) (progn (org-babel-parse-multiple-vars (delq nil ...))) (if ( (length arg-string) 0) (progn (org-babel-parse-multiple-vars ...))) (when ( (length arg-string) 0) (org-babel-parse-multiple-vars (delq nil ...))) org-babel-parse-header-arguments(:var input=\echo'd\) (org-babel-merge-params org-babel-default-header-args (org-babel-params-from-properties lang) (if (boundp lang-headers) (eval lang-headers) nil) (org-babel-parse-header-arguments (org-babel-clean-text-properties ...))) (list lang (with-temp-buffer (save-match-data ... ... ...)) (org-babel-merge-params org-babel-default-header-args (org-babel-params-from-properties lang) (if ... ... nil) (org-babel-parse-header-arguments ...)) switches block-indentation) (let* ((block-indentation ...) (lang ...) (lang-headers ...) (switches ...) (body ...) (preserve-indentation ...)) (list lang (with-temp-buffer ...) (org-babel-merge-params org-babel-default-header-args ... ... ...) switches block-indentation)) org-babel-parse-src-block-match() (setq info (org-babel-parse-src-block-match)) (save-excursion (goto-char head) (setq info (org-babel-parse-src-block-match)) (setq indent (car ...)) (setq info (butlast info)) (while (and ... ...) (setf ... ...)) (when (looking-at org-babel-src-name-w-name-regexp) (setq name ...) (when ... ...))) (if (setq head (org-babel-where-is-src-block-head)) (save-excursion (goto-char head) (setq info ...) (setq indent ...) (setq info ...) (while ... ...) (when ... ... ...)) (when (org-babel-get-inline-src-block-matches) (setq info ...))) (let ((case-fold-search t) head info name indent) (if (setq head ...) (save-excursion ... ... ... ... ... ...) (when ... ...)) (when (and info ...) (setf ... ...)) (when info (append info ...))) org-babel-get-src-block-info(light) (let* ((info ...) (source-name ...)) (when source-name (setq source-name ... org-babel-library-of-babel ... lob-ingest-count ...))) (let
Re: [O] [PATCH]: New Add defun org-mode-or-derived-mode-p
At Thu, 03 Nov 2011 19:35:01 -0200, Cassio Koshikumo wrote: Hi, all, On the last few days I've been working on a major mode derived from org-mode. While I was at it, I've encoutered some difficulties related to those reported by the OP (Stefan). Specifically: in a lot of places, org-mode will check if it's the current major-mode and, if it's not, will refuse to perform some important task. ... So, finally, here's my question: would it be possible to change all the (eq major-mode 'org-mode) tests and replace them with (derived-mode-p 'org-mode)? Is there any reason not to do this? Please see Carsten's post about the issue: http://article.gmane.org/gmane.emacs.orgmode/47508 If you could provide a list of the functions that need to run in the derived mode or a patch which changes these functions we could put in the `derived-mode-p' selectively. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpIkYAGR4trI.pgp Description: PGP signature
[O] #+begin_src LaTeX blocks export to literal LaTeX
Dear org-mode community, I am configuring my LaTeX export setup and found LaTeX src blocks very nice for the font lock they provide and the possibility of having AUCTeX activated for that block by =C-c '=. However, org's LaTeX exporter puts them into a \verbatim environment by default in the resulting LaTeX file. I looked into the documentation whether some src flags could accomplish this and found none. I see that an option `:exports literal' would be rather too much, since it probably only really makes any sense for this specific use case. But it would be nice nonetheless... Did I make myself clear? Or is there a better approach to this? Thanks in advance! Michael
[O] [PATCH] Category filtering in the agenda
Dear all, here is a patch implementing category filtering in the agenda. The patch is not 100% clean wrt documentation, but I throw it now to get some feedback and some testing done. Press in the agenda to filter by category. Press to filter by the category of the entry point. Another / / removes the filter. / + filters by the default category (General) since everything is in a category. I find this last function quick and useful, so I also implemented it for tag filtering: pressing / / filters by tags from the entry on the current line. A second / / removes the filter. Let me know if the category filtering works ok with you, and if you find the new / / behavior useful. There is one limitation for now: it does not combine with Effort filtering. Thanks, From 948a38b403125359b59c5f5d520be6d053599b0d Mon Sep 17 00:00:00 2001 From: Bastien Guerry b...@altern.org Date: Sun, 6 Nov 2011 19:26:28 +0100 Subject: [PATCH] Implement agenda filtering by category. --- doc/org.texi |6 +- lisp/org-agenda.el | 234 lisp/org-faces.el |6 ++ 3 files changed, 189 insertions(+), 57 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 4a547d0..af189f0 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -7954,10 +7954,10 @@ the entire agenda view---in a block agenda, you should only set this in the global options section, not in the section of an individual block.} You will be prompted for a tag selection letter; @key{SPC} will mean any tag at -all. Pressing @key{TAB} at that prompt will offer use completion to select a -tag (including any tags that do not have a selection character). The command +all. Pressing @key{TAB} at that prompt will use completion to select a +tag (also including tags that do not have a selection character). The command then hides all entries that do not contain or inherit this tag. When called -with prefix arg, remove the entries that @emph{do} have the tag. A second +with a prefix arguement, remove the entries that @emph{do} have the tag. A second @kbd{/} at the prompt will turn off the filter and unhide any hidden entries. If the first key you press is either @kbd{+} or @kbd{-}, the previous filter will be narrowed by requiring or forbidding the selected additional tag. diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index bcc2de4..83c42f0 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -286,8 +286,14 @@ you can \misuse\ it to also add other text to the header. However, (list :tag Deadline Warning days (const org-deadline-warning-days) (integer :value 1)) + (list :tag Category filter preset + (const org-agenda-category-filter-preset) + (list + (const :format quote) + (repeat + (string :tag +category or -category (list :tag Tags filter preset - (const org-agenda-filter-preset) + (const org-agenda-tag-filter-preset) (list (const :format quote) (repeat @@ -1949,6 +1955,7 @@ The following commands are available: (org-defkey org-agenda-mode-map } 'org-agenda-manipulate-query-subtract-re) (org-defkey org-agenda-mode-map / 'org-agenda-filter-by-tag) (org-defkey org-agenda-mode-map \\ 'org-agenda-filter-by-tag-refine) +(org-defkey org-agenda-mode-map 'org-agenda-filter-by-category) (org-defkey org-agenda-mode-map ; 'org-timer-set-timer) (define-key org-agenda-mode-map ? 'org-agenda-show-the-flagging-note) (org-defkey org-agenda-mode-map \C-c\C-x\C-mg'org-mobile-pull) @@ -3043,9 +3050,9 @@ removed from the entry content. Currently only `planning' is allowed here. (defvar org-pre-agenda-window-conf nil) (defvar org-agenda-columns-active nil) (defvar org-agenda-name nil) -(defvar org-agenda-filter nil) -(defvar org-agenda-filter-while-redo nil) -(defvar org-agenda-filter-preset nil +(defvar org-agenda-tag-filter nil) +(defvar org-agenda-tag-filter-while-redo nil) +(defvar org-agenda-tag-filter-preset nil A preset of the tags filter used for secondary agenda filtering. This must be a list of strings, each string must be a single tag preceded by \+\ or \-\. @@ -3055,13 +3062,21 @@ the entire agenda view. In a block agenda, it will not work reliably to define a filter for one of the individual blocks. You need to set it in the global options and expect it to be applied to the entire view.) +(defvar org-agenda-category-filter-preset nil + A preset of the categeory filter used for secondary agenda filtering. +This must be a list of strings, each string must be a single category +preceded by \+\ or \-\. See `org-agenda-tag-filter-preset' for +details.) + (defun org-prepare-agenda (optional name) (setq org-todo-keywords-for-agenda nil) (setq org-done-keywords-for-agenda nil) (setq org-drawers-for-agenda nil) (unless org-agenda-persistent-filter -(setq org-agenda-filter nil)) - (put 'org-agenda-filter :preset-filter org-agenda-filter-preset) +(setq
Re: [O] [PATCH] Category filtering in the agenda
Bastien b...@altern.org writes: Press to filter by the category of the entry point. ... of the entry AT point ... of course. -- Bastien
Re: [O] Makefile restructuring
Recent changes in my Makefile fork: org-version has been changed to always get the version information from org-install.el. This way, there is no need to invoke a shell in org-version or to keep any version information in org.el. Additionally org-version checks where it finds org-install.el and reports the full path so that it should be easier to spot when the load-path has been set up wrongly and/or the (newer) installation of org is missing org-install.el, but it is reachable in an older installation. I've added a target compile-dirty that doesn't include the invocation of make clean so that it is easier to test small changes that only change a single file. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf Blofeld V1.15B11: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] Makefile restructuring
FYI, if Org is insalled through the package manager there is no org-install.el. Package manager creates autoloads on it's own and names it org-autoloads.el. I believe, for most part, org-install and org-autoloads have the same functionality. Recent changes in my Makefile fork: org-version has been changed to always get the version information from org-install.el. This way, there is no need to invoke a shell in org-version or to keep any version information in org.el. Additionally org-version checks where it finds org-install.el and reports the full path so that it should be easier to spot when the load-path has been set up wrongly and/or the (newer) installation of org is missing org-install.el, but it is reachable in an older installation. I've added a target compile-dirty that doesn't include the invocation of make clean so that it is easier to test small changes that only change a single file. Regards, Achim. --
Re: [O] Makefile restructuring
Jambunathan K kjambunat...@gmail.com writes: FYI, if Org is insalled through the package manager there is no org-install.el. Package manager creates autoloads on it's own and names it org-autoloads.el. I believe, for most part, org-install and org-autoloads have the same functionality. Then maybe they should have the same name, but surely they should be produced by the same method. Can you point me to a documentation (or source) that details how the package manager deals with the autoloads? It shouldn't be too difficult to use the same method in the Makefile once I understand how it's done. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] #+STARTUP: content: How to expand only some sections on startup?
Okay, I figured it out. There's a visibility property for that, e.g.: :PROPERTIES: :VISIBILITY: content :END: Cheers, Marius On 2011-11-06, at 15:27 , Marius Hofert wrote: Hi, as described on http://orgmode.org/manual/Visibility-cycling.html one can set #+STARTUP: content to start an .org file with all headlines shown, the default is overview. I tried to put #+STARTUP: content in some sections hoping that they will be expanded on startup while other sections will not be expanded (so following overview). Is something like this possible? Cheers, Marius
Re: [O] Makefile restructuring
Achim Gratz strom...@nexgo.de writes: Jambunathan K kjambunat...@gmail.com writes: FYI, if Org is insalled through the package manager there is no org-install.el. Package manager creates autoloads on it's own and names it org-autoloads.el. I believe, for most part, org-install and org-autoloads have the same functionality. Then maybe they should have the same name, but surely they should be produced by the same method. Can you point me to a documentation (or source) that details how the package manager deals with the autoloads? It shouldn't be too difficult to use the same method in the Makefile once I understand how it's done. This is what I see in package.el. --8---cut here---start-8--- (defun package-unpack (name version) (let* ((dirname (concat (symbol-name name) - version)) (pkg-dir (expand-file-name dirname package-user-dir))) (make-directory package-user-dir t) ;; FIXME: should we delete PKG-DIR if it exists? (let* ((default-directory (file-name-as-directory package-user-dir))) (package-untar-buffer dirname) (package-generate-autoloads (symbol-name name) pkg-dir) (let ((load-path (cons pkg-dir load-path))) (byte-recompile-directory pkg-dir 0 t) (defun package-generate-autoloads (name pkg-dir) (require 'autoload) ;Load before we let-bind generated-autoload-file! (let* ((auto-name (concat name -autoloads.el)) (ignore-name (concat name -pkg.el)) (generated-autoload-file (expand-file-name auto-name pkg-dir)) (version-control 'never)) (unless (fboundp 'autoload-ensure-default-file) (package-autoload-ensure-default-file generated-autoload-file)) (update-directory-autoloads pkg-dir))) --8---cut here---end---8--- If we reconcile what happens here with what is done in Makefile, may be we can uncover why certain macros in org-macs.el doesn't propagated to some set of files. Note that org-macs.el issue is increasingly reported only with emacs-23 and not with emacs-24. One of the reason could be that emacs-24 *already* has most of the macro definitions in the system path. This is not the case with emacs-23 installations which have (much?) older versions of org. From what I understand package manager compiles files in alphabetical order. It means that org-macs.el gets compiled after org-agenda.el. Also when eval-when-compile is done of org-macs.el - somewhere it should be done right? - I don't know which of the org-macs.el gets loaded. Is it system-installed one or the one in the distribution tar. These are some of the leading questions that will lead to satisfactory resolution of recently reported issues with package manager. Regards, Achim. --
Re: [O] #+STARTUP: content: How to expand only some sections on startup?
1. C-h i 2. m org 3. i visibility 4. keep pressing , until you land up where all visibility is documented. 1 = launch info 2 = visit org manual 3 = index lookup for visibility 4 = cycle through all entries Okay, I figured it out. There's a visibility property for that, e.g.: :PROPERTIES: :VISIBILITY: content :END: Cheers, Marius On 2011-11-06, at 15:27 , Marius Hofert wrote: Hi, as described on http://orgmode.org/manual/Visibility-cycling.html one can set #+STARTUP: content to start an .org file with all headlines shown, the default is overview. I tried to put #+STARTUP: content in some sections hoping that they will be expanded on startup while other sections will not be expanded (so following overview). Is something like this possible? Cheers, Marius --
Re: [O] [PATCH] Category filtering in the agenda
here is a patch implementing category filtering in the agenda. The patch is not 100% clean wrt documentation, but I throw it now to get some feedback and some testing done. Press in the agenda to filter by category. Pressto filter by the category of the entry point. Another / / removes the filter. / + filters by the default category (General) since everything is in a category. I find this last function quick and useful, so I also implemented it for tag filtering: pressing / / filters by tags from the entry on the current line. A second / / removes the filter. Let me know if the category filtering works ok with you, and if you find the new / / behavior useful. There is one limitation for now: it does not combine with Effort filtering. I get the folllowing error with the latest HEAD: Debugger entered--Lisp error: (args-out-of-range 0 1) #[(x) \301\302O\207 [x 0 1] 3]() mapconcat(#[(x) \301\302O\207 [x 0 1] 3] (#(Weather 0 7 (fontified nil org-category #(Day/Year 0 8 ...) org-category-position 603)) #(Computer 0 8 (fontified nil org-category #(Animals 0 7 ...) org-category-position 1281)) #(House 0 5 (fontified nil org-category #(Animals 0 7 ...) org-category-position 1281)) #(Writing 0 7 (fontified nil org-category #(Tasks 0 5 ...) org-category-position 69425)) #(Tasks 0 5 (fontified nil org-category #(Tasks 0 5 ...) org-category-position 69382)) #(Parish Council 0 14 (fontified nil org-category #(Parish Council 0 14 ...) org-category-position 67962)) #(Animals 0 7 (fontified nil org-category #(Weather 0 7 ...) org-category-position 647)) #(Subscriptions 0 13 (fontified nil org-category #(House 0 5 ...) org-category-position 49251)) #(Car 0 3 (fontified nil org-category #(Animals 0 7 ...) org-category-position 1281)) home #(Market Drayton. 0 15 (fontified nil org-category Tasks)) #(Capel Curig. 0 12 (fontified nil org-category #(Market Drayton. 0 15 ...) org-category-position 464)) #(Day/Year 0 8 (fontified nil org-category #(Capel Curig. 0 12 ...) org-category-position 534)) #(Appointment. 0 12 (fontified nil org-category calendar))) ) org-agenda-filter-by-category(nil) call-interactively(org-agenda-filter-by-category nil nil)
Re: [O] org-mobile-push problem
i...@bastianebeling.org i...@bastianebeling.org writes: Hi Jambunathan, Sorry, I didn't get into too much detail here because I had the feeling that the problem might have been cause by me not being able to use the package manager correctly rather than the package manager itself. But if it could help others, of course, I'm sharing the details as far as I understand them. I'm using Aquamacs (for Mac OS): GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 Copyright (C) 2011 Free Software Foundation, Inc. When I run package-list-packages, I get the message Failed to download `Org-mode' archive. (didn't note that before), but it still offered the latest version of Org nevertheless. Do M-x customize-variable RET package-archives RET and delete the following Org-mode archive from the list: --8---cut here---start-8--- (add-to-list 'package-archives '(Org-mode . http://orgmode.org/pkg/daily/;)) --8---cut here---end---8--- Ok, deleted. Additionally, you can also look at ~/.emacs.d/elpa/archives/ subdir and recursively delete the directory corresponding to Org-mode archive. I could install it from there and Org appeared to be updated to version 7.7, but somehow the macro org-eval-in-environment was only found after reloading Org uncompiled after every restart of Emacs. This could be repeated infinitely, i.e., I always got this error message when running package-list-packages and it always offered me to install Org. Now I downloaded the tar-file manually and installed it with package-install-file. Now org-eval-in-environment is found normally. After package-list-files I still get the message Failed to download `Org-mode' archive., but it shows Org as installed and does no longer offer to install it. I hope that was more helpful. If you need more information, I will be happy to try to provide it. I am trying to isolate the root cause of the issue here. Hope you can help me locate the root cause. Try the following procedure: 1. Store the org-*.tar that you have downloaded in some safe place. Done. 2. rm -rf ~/.emacs.d/elpa/org-* {BE CAREFUL HERE, YOU ARE DELETING STUFF} - In this step you are deleting your org installed through elpa. Done. 3. Check your .emacs - Does it make have (require 'org-install)? If it has this entry remove that line or comment out that line. Commented out. 4. Restart emacs 5. M-x locate-library RET org RET 6. Note the directory reported. - If it looks like it is coming from your default Emacs installation directory then proceed to step 7. Obviously the directory I just added. - If it looks like it is one of the directories added by you, delete that directory from either load-path or simply delete it from the disk. (To be safe, instead of deleting you can just rename or move the directory somewhere else). Goto step 4. 7. Note the version of Org with M-x org-version RET. Renaming the folder didn't help because Emacs still found it. Moved the folder and now M-x locate-library RET org RET points to the original directory. M-x org-version RET - Org-mode version 6.33x Now do a M-x package-install-file RET Your procedure is exactly what I did eventually to get it running. It worked, when I installed org via package-install-file RET. Instead, now I am reporting in detail what happens when I do M-x package-list-packages: I get the message: Failed to download `Org-mode' archive. After reconfiguring package-archives, you haven't saved it for future sessions or you forgot to recompile your .emacs. It still lists the newest version of org-mode along the packages. This is OK. Because org mode gets updated daily. You are actually seeing the tar files from here. http://elpa.gnu.org/packages/ I hit Install. I get a couple of error messages. Find attached the complete compile log. Emacs restart. org-version - Org-mode version 7.7 org-mobile-push - byte-code: Invalid function: org-eval-in-environment This is along the expected lines. I have done a quick look at the compile log. --8---cut here---start-8--- 168: In end of data: 169: org-agenda.el:8546:1:Warning: the following functions are not known to be defined: 170: calendar-day-name, calendar-day-of-week, calendar-month-name, 171: calendar-absolute-from-gregorian, org-with-gensyms, marker, 172: org-string-nw-p, org-eval-in-environment, 173: org-make-parameter-alist, calendar-gregorian-from-absolute, 174: calendar-date-string, org-face-from-face-or-color, 175: org-entry-blocked-p, calendar-current-date, org-today, 176: calendar-last-day-of-month, calendar-leap-year-p, 177: org-order-calendar-date-args, org-string-match-p, 178:
Re: [O] org-mobile-push problem
Am 06.11.2011 um 22:01 schrieb Jambunathan K: i...@bastianebeling.org i...@bastianebeling.org writes: Hi Jambunathan, Sorry, I didn't get into too much detail here because I had the feeling that the problem might have been cause by me not being able to use the package manager correctly rather than the package manager itself. But if it could help others, of course, I'm sharing the details as far as I understand them. I'm using Aquamacs (for Mac OS): GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 Copyright (C) 2011 Free Software Foundation, Inc. When I run package-list-packages, I get the message Failed to download `Org-mode' archive. (didn't note that before), but it still offered the latest version of Org nevertheless. Do M-x customize-variable RET package-archives RET and delete the following Org-mode archive from the list: --8---cut here---start-8--- (add-to-list 'package-archives '(Org-mode . http://orgmode.org/pkg/daily/;)) --8---cut here---end---8--- Ok, deleted. Additionally, you can also look at ~/.emacs.d/elpa/archives/ subdir and recursively delete the directory corresponding to Org-mode archive. I could install it from there and Org appeared to be updated to version 7.7, but somehow the macro org-eval-in-environment was only found after reloading Org uncompiled after every restart of Emacs. This could be repeated infinitely, i.e., I always got this error message when running package-list-packages and it always offered me to install Org. Now I downloaded the tar-file manually and installed it with package-install-file. Now org-eval-in-environment is found normally. After package-list-files I still get the message Failed to download `Org-mode' archive., but it shows Org as installed and does no longer offer to install it. I hope that was more helpful. If you need more information, I will be happy to try to provide it. I am trying to isolate the root cause of the issue here. Hope you can help me locate the root cause. Try the following procedure: 1. Store the org-*.tar that you have downloaded in some safe place. Done. 2. rm -rf ~/.emacs.d/elpa/org-* {BE CAREFUL HERE, YOU ARE DELETING STUFF} - In this step you are deleting your org installed through elpa. Done. 3. Check your .emacs - Does it make have (require 'org-install)? If it has this entry remove that line or comment out that line. Commented out. 4. Restart emacs 5. M-x locate-library RET org RET 6. Note the directory reported. - If it looks like it is coming from your default Emacs installation directory then proceed to step 7. Obviously the directory I just added. - If it looks like it is one of the directories added by you, delete that directory from either load-path or simply delete it from the disk. (To be safe, instead of deleting you can just rename or move the directory somewhere else). Goto step 4. 7. Note the version of Org with M-x org-version RET. Renaming the folder didn't help because Emacs still found it. Moved the folder and now M-x locate-library RET org RET points to the original directory. M-x org-version RET - Org-mode version 6.33x Now do a M-x package-install-file RET Your procedure is exactly what I did eventually to get it running. It worked, when I installed org via package-install-file RET. Instead, now I am reporting in detail what happens when I do M-x package-list-packages: I get the message: Failed to download `Org-mode' archive. After reconfiguring package-archives, you haven't saved it for future sessions or you forgot to recompile your .emacs. It still lists the newest version of org-mode along the packages. This is OK. Because org mode gets updated daily. You are actually seeing the tar files from here. http://elpa.gnu.org/packages/ I hit Install. I get a couple of error messages. Find attached the complete compile log. Emacs restart. org-version - Org-mode version 7.7 org-mobile-push - byte-code: Invalid function: org-eval-in-environment This is along the expected lines. I have done a quick look at the compile log. --8---cut here---start-8--- 168: In end of data: 169: org-agenda.el:8546:1:Warning: the following functions are not known to be defined: 170: calendar-day-name, calendar-day-of-week, calendar-month-name, 171: calendar-absolute-from-gregorian, org-with-gensyms, marker, 172: org-string-nw-p, org-eval-in-environment, 173: org-make-parameter-alist, calendar-gregorian-from-absolute, 174: calendar-date-string, org-face-from-face-or-color, 175: org-entry-blocked-p, calendar-current-date, org-today, 176: calendar-last-day-of-month, calendar-leap-year-p, 177:
Re: [O] [OT] Scanning for archiving
On Sat, 5 Nov 2011 16:35:11 -0700, Samuel Wales samolog...@gmail.com wrote: I used to find that 8-bit 75dpi was legible and small. True. It all depends on why you're scanning them in the first place. 75dpi is fine when scanning with collaboration/quick-reference in mind, but for archival/backup purposes (i.e. absolute peace of mind when your whole collection of dead trees burns, drowns, or is simply disposed of) or OCR, you'll want to go with 600dpi and beyond. If using DjVu instead of PDF, the storage overhead will be negligible. What ADF scanners are out there for Linux that have high quality reliable ADF, [...] I wish I knew... If anyone on this list can think of a scanner whose ADF doesn't require constant babysitting, I'm betting it won't have a consumer-grade price tag. [...] are fast, [...] Pretty much all of them, these days. and work well with CLI tools? As long as it's supported by SANE [1], rats are entirely optional. Is OCR at the point where it is feasible using CLI? [...] Depends on how fancy the document layout is. For most documents worth scanning (let alone OCR'ing), it always has been. Also see OCRopus [2]. [...] Combining that with a new feature to have the Org agenda work with indexers (I participated in a discussion on that here a long while back) would be interesting. If you don't intend to create a perfect ASCII copy of the document, and your index is restricted to word occurrence/frequency, it'll do just fine. On 2011-11-05, Pieter Praet pie...@praet.org wrote: NOTE: When attempting something like this, a fast scanner with a *reliable* automatic document feeder will help prevent premature hair loss ;) ... [1] http://djvu.org/resources/whatisdjvu.php [2] http://gscan2pdf.sourceforge.net/ Peace -- Pieter [1] http://www.sane-project.org/sane-supported-devices.html [2] http://code.google.com/p/ocropus/
Re: [O] Feature suggestion
Markus Grebenstein post at mgrebenstein.de writes: since I used Scrivener (Windows Beta) quite a while I'd love to have more of fletcher penny's multimarkdown (or MMD- like Syntax) integrated in orgmode to make it more versatile. Sadly I am not a lisp programmer at all... Markus -- What exactly are the features you're thinking about? For example, I read this at the MMD site, but virtually all of these are already implemented in Org-mode: MultiMarkdown adds these features to the basic Markdown syntax: footnotes tables citations and bibliography (works best in LaTeX using BibTeX) math support automatic cross-referencing ability smart typography, with support for multiple languages image attributes table and image captions definition lists glossary entries (LaTeX only) document metadata (e.g. title, author, etc.) -- http://fletcherpenney.net/multimarkdown/features/ Regards, Herb
Re: [O] [bug] Org link dialog escapes URL spaces incorrectly
David Maus dm...@ictsoc.de wrote: What a mess - thanks for the clear explanation. Be that as it may, the treatment of links in org-insert-link is inconsistent: in one case, the link is unescaped once, in the other not at all. Hm. I still don't see an inconsistency here: `org-insert-link' reads a link, `org-open-at-point' calls the target application with exactly this link but applies percent escaping. No, I mean the handling in org-insert-link itself: line 9048 says (setq link (org-extract-attributes (org-link-unescape (org-match-string-no-properties 1 but further down, on line 9114 the link is not unescaped: (setq link (let ((org-completion-use-ido nil) (org-completion-use-iswitchb nil)) (org-completing-read Link: (append (mapcar (lambda (x) (list (concat x :))) all-prefixes) (mapcar 'car org-stored-links)) nil nil nil 'tmphist (car (car org-stored-links) The last line of org-insert-link then takes the value of link (unescaped in one case but not the other), passes it to org-make-link-string and inserts the result. That's what I thought was inconsistent. Nick Maybe we could drop this last escaping and push the responsibilty of handling non-conformant URLs to the target application. After all: If the user enters an unescaped link and the target application can't handle it, it's the users fault. So I presume that a single unescaping is desirable (it would e.g. deal with both wikipedia links correctly). But there will be corner cases where this will fail and some manual editing of the link will be necessary, If you mean unescape the user input in step 1 (`org-insert-link'): This could work, too. Besides the edge cases it requires some care to stored links (via `org-store-links') -- the percent character is a valid character for certain link types (e.g. message ids). Personally I start to like the idea of just dopping the escaping before calling the target application. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de
Re: [O] [OT] Scanning for archiving
On Sun, Nov 6, 2011 at 1:59 PM, Pieter Praet pie...@praet.org wrote: On Sat, 5 Nov 2011 16:35:11 -0700, Samuel Wales samolog...@gmail.com wrote: I used to find that 8-bit 75dpi was legible and small. True. It all depends on why you're scanning them in the first place. 75dpi is fine when scanning with collaboration/quick-reference in mind, but for archival/backup purposes (i.e. absolute peace of mind when your whole collection of dead trees burns, drowns, or is simply disposed of) or OCR, you'll want to go with 600dpi and beyond. One common technique is to always scan 300dpi grayscale (or color) and use clever software to upsample to 600dpi bw (of course somehow segmenting scans into picture and text regions first. What ADF scanners are out there for Linux that have high quality reliable ADF, [...] I wish I knew... If anyone on this list can think of a scanner whose ADF doesn't require constant babysitting, I'm betting it won't have a consumer-grade price tag. I've heard nice things about the Fujitsu ScanSnap S1500 (http://www.fujitsu.com/global/services/computing/peripheral/scanners/product/s1500/) and S1500M (http://www.fujitsu.com/global/services/computing/peripheral/scanners/product/s1500m/). About $450 or so from amazon. The S1300 is about half the price but also slower. Apparently the S1500's are supported on Linux via Sane (http://www.sane-project.org/sane-backends.html#S-FUJITSU). Don't see any mention of the S1300 (but it probably also works?).