Re: [Orgmode] How to use org-info.js?

2010-01-05 Thread Water Lin
Manish mailtomanish.sha...@gmail.com writes:

 On Tue, Jan 5, 2010 at 12:07 PM, Water Lin wrote:

 I want to use org-info.js to build a navigator for my knowledge base.

 So I set something like this:
 -
 #+INFOJS_OPT: path:http://orgmode.org/org-info.js
 #+LINK_UP:
 #+LINK_HOME:
 -

 but after I publish my project, there is no this kind of navigator.

 What's the correct way to set it? But I can't find the detail
 description in Worg.


 Does this help http://orgmode.org/worg/code/org-info-js/#sec-1

Thanks

I think I made it work now.

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Boolean word/regexp search problem

2010-01-05 Thread Carsten Dominik

Hi Matt,

On Nov 27, 2009, at 8:54 PM, Matt Lundin wrote:


Hi Carsten,

Matthew Lundin m...@imapmail.org writes:


Matt Lundin m...@imapmail.org writes:

The word/regexp agenda search to work with more than one word or  
regexp

unless the first word or regexp is also preceded by a + or -.


I've investigated this further and beg your permission to offer a few
comments/suggestions.

First, I apologize for missing the change in behavior in the
org-search-view introduced in Org 6.32. Reading the ChangeLog, I now  
see

the following information:

,
| Agenda Search view: Search for substrings
|
| The default in search view (C-c a s) is now that the search  
expression
| is searched for as a substring, i.e. the different words must  
occur in

| direct sequence, and it may be only part of a word. If you want to
| look for a number of separate keywords with Boolean logic, all words
| must be preceded by + or -.
|
| This was, more-or-less, requested by John Wiegley.
`

In particular, I see that all words must be preceded by + or -


In fact, only the first needs the +, for any additional words, the  
plus

is optional, only a - is necessary.  I have improved the documentation
here.


for a
boolean search. I've also read the manual section 10.3.5 as well as  
the
docstring for org-search-view and appreciate that this new behavior  
can

be turned off with the variable
org-agenda-search-view-search-words-only.

A few comments:

1) I'm wondering whether the substring search should be the default. I
search quite often for two or three words or regexps that I know are  
in

an entry (regardless of order), while I rarely search for a specific
phrase or sequence of words. Of course, others might disagree.


I think the main application is actually not looking for a phrase,
but looking for a partial word - which was impossible before this
change.



2) Many web and database search engines use the following  
convention: a

space between words becomes an automatic AND,


That is right.


while quotation marks
indicate searches for a phrase/substring (i.e., words in sequence).


Yes. This is a bit of a hassle to implement.  But I agree that this
would be nice to have - if the search is Boolean.  OK, this is now
in as well.


Having missed the description of the new behavior in the ChangeLog, I
found the new default substring search a bit counter-intuitive. My  
vote

would be for sloppy boolean searches by default, with quotation marks
reserved for substring searches. But of course, this is not a huge
priority for org-mode development, and I have no idea how difficult it
would be to implement!


This is really a matter of taste.  John argues in an email to
me for something which is more emacs internally consistent than
consistent with other programs:

 I realize that search engines work differently than Emacs in several
 cases.  For example, if you type M-x search-forward, then foo, Emacs
 will do a substring search for foo, not a complete string search.
 In fact, it takes work to get Emacs to do a precise word
 search (you have to re-search, then use \foo\), and so it seemed
 odd to me that Org-mode made this its default.

Also, the prompt was really bad, suggesting a Boolean search in any  
case.

Now the prompt does a better job, I think.


3) The new substring search changes the behavior of regexp searches. A
simple regexp search with brackets (e.g, {Carst}) no longer produces  
any

results unless the brackets are preceded by a +. This is true even if
one is searching only for a single regexp. In other words, regexp
brackets now *must* always be preceded by a plus or a minus. Is this  
the

intended behavior?


This is a bug, which I just fixed.  If the first thing is a regexp, this
will turn on Boolean search as well.  Please verify that this is
indeed fixed.



4) Pressing [ or ] or { or } in the agenda buffer adds a +  
or

- after the first term in the minibuffer. E.g.,

--8---cut here---start-8---
[+-]Word/{Regexp} ...: Emacs +
--8---cut here---end---8---

But if the user simply adds another term at the cursor (i.e., after  
the
+), the search will fail, since Emacs now must also be preceded  
by a

+.


I don't think so, see above, additional + is, in fact, optional,
a space is enough.

Another improvement I made is that the + is only added by [ if
the last search was Boolean.  If not, you simply get back to edit
the phrase.


Thanks for reading this long email.


Thanks for putting so much time in helping to improve Org-mode!

I have tried to improve the logic of all this a bit, but I am
sticking with the default for phrase search.  It is important
to keep John Wiegley happy :-)  and I quite like it this way.
The prompt is now more explicit about what is expected, and
you can default to Boolean search by setting the variable
`org-agenda-search-view-always-boolean' if you prefer.

Hope I am also keeping *you* happy this way :-)


Re: [Orgmode] Fwd: Exporting subtree as beamer presentation

2010-01-05 Thread Carsten Dominik

Hi Jerry,

I guess you do not have transient-mark-mode on?  When I turn it off, I  
can

reproduce the bug you are reporting.

The current git release should have this fixed and work without
transient-mark-mode.

- Carsten

On Jan 4, 2010, at 7:26 PM, JBash wrote:


Sorry - With attachments this time.
project1.org has the embedded presentation (CDR Presentation), and  
cdr1.org is that subtree placed in a separate file, adjusting the  
settings accordingly).

Thanks,
Jerry

-- Forwarded message --
From: JBash bashve...@gmail.com
Date: Mon, Jan 4, 2010 at 1:21 PM
Subject: Exporting subtree as beamer presentation
To: emacs-orgmode Mode emacs-orgmode@gnu.org


Hi,

How do I export a beamer presentation, embedded as a subtree in an  
org file? I have attached a file with subtree properties defined as  
described on the worg page - http://orgmode.org/worg/org-tutorials/org-beamer.php 
.


I expected 'C-c C-e 1 d' to do it, but the export is a article  
documentclass, and is the entire document rather than just the  
subtree.
If I cut and paste the subtree to a separate file, and define the  
export settings for beamer at the top of the file, I get the  
expected results (documentclass[presentation]{beamer} (using C-c C-e  
d, since I am now have the entire file, rather than a subtree).


I'm not sure if I have the properties defined improperly, or if I'm  
not using the right command to export the subtree.


(Using 6.33trans, updated from git this morning.)

Thanks,
Jerry


 
project1.orgcdr1.org___

Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: elisp links broken in agenda [6.33trans (release_6.33f.192.ge1a1)]

2010-01-05 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jan 4, 2010, at 7:44 PM, Charles Sebold wrote:


This is with a clean Emacs, nothing in .emacs except for what is
necessary to add my org-mode lisp directory to the load path and
(require 'org-install), Emacs pulled down from bzr this morning, and
current git download of org-mode, pulled a few minutes ago.

With an org file like this:


* TODO Try out [[elisp:(org-version)][link problem]] if possible


Pull this into an agenda view, then put cursor over the link and try  
to

follow it.  The result is as follows:

Debugger entered--Lisp error: (wrong-type-argument listp #([[elisp: 
(org-version)][link problem]] 0 22 (fontified t help-echo LINK:  
elisp:(org-version) face org-link org-no-flyspell t invisible org- 
link keymap (keymap (follow-link . mouse-face) (mouse-3 . org-find- 
file-at-mouse) (mouse-2 . org-open-at-mouse)) mouse-face highlight  
font-lock-multiline t org-category test) 22 23 (fontified t help- 
echo LINK: elisp:(org-version) rear-nonsticky (mouse-face  
highlight keymap invisible intangible help-echo org-linked-text)  
face org-link org-no-flyspell t invisible org-link keymap (keymap  
(follow-link . mouse-face) (mouse-3 . org-find-file-at-mouse)  
(mouse-2 . org-open-at-mouse)) mouse-face highlight font-lock- 
multiline t org-category test) 23 34 (fontified t help-echo LINK:  
elisp:(org-version) face org-link org-no-flyspell t keymap (keymap  
(follow-link . mouse-face) (mouse-3 . org-find-file-at-mouse)  
(mouse-2 . org-open-at-mouse)) mouse-face highlight font-lock- 
multiline t org-category test) 34 35 (fontified t help-echo LINK:  
elisp:(org-version) rear-nonsticky (mouse-face highlight keymap  
invisible intangible help-echo org-linked-text) face org-link org-no- 
flyspell t keymap (keymap (follow-link . mouse-face) (mouse-3 . org- 
find-file-at-mouse) (mouse-2 . org-open-at-mouse)) mouse-face  
highlight font-lock-multiline t org-category test) 35 36  
(fontified t help-echo LINK: elisp:(org-version) face org-link org- 
no-flyspell t invisible org-link keymap (keymap (follow-link . mouse- 
face) (mouse-3 . org-find-file-at-mouse) (mouse-2 . org-open-at- 
mouse)) mouse-face highlight font-lock-multiline t org-category  
test) 36 37 (fontified t help-echo LINK: elisp:(org-version)  
rear-nonsticky (mouse-face highlight keymap invisible intangible  
help-echo org-linked-text) face org-link org-no-flyspell t invisible  
org-link keymap (keymap (follow-link . mouse-face) (mouse-3 . org- 
find-file-at-mouse) (mouse-2 . org-open-at-mouse)) mouse-face  
highlight font-lock-multiline t org-category test)))
 org-offer-links-in-entry(nil #(  test:0 14 (todo-state  
#(TODO 0 4 ...) type todo priority 1001 org-hd-marker #marker  
at 1 in test.org org-marker #marker at 1 in test.org help-echo  
mouse-2 or RET jump to org file ~/test.org mouse-face highlight  
org-complex-heading-regexp ^\\(\\*+\\)[  ]+\\(?:\\(TODO\\|DONE\ 
\))?\\(?:[   ]*\\(\\[#.\\]\\)\\)?[   ]*\\(.*?\\)\\(?:[   ]+\ 
\(:[[:alnum:]_@:]+:\\)\\)?[  ]*$ org-todo-regexp (TODO\\|DONE\ 
\)\\ org-not-done-regexp (TODO\\)\\ done-face org-agenda- 
done face nil dotime nil extra  time  txt #(TODO Try out  
[[elisp:(org-version)][link problem]] if possible 0 4 ... 4 13 ...  
13 35 ... 35 36 ... 36 47 ... 47 48 ... 48 49 ... 49 50 ... 50  
62 ...) effort-minutes nil effort nil duration nil time-of-day nil  
prefix-length 14 org-lowest-priority 67 org-highest-priority 65 tags  
nil org-category test ...)))

 org-agenda-open-link(nil)
 call-interactively(org-agenda-open-link nil nil)



Emacs  : GNU Emacs 23.1.91.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3)
of 2010-01-04 on captainjack
Package: Org-mode version 6.33trans (release_6.33f.192.ge1a1)

current state:
==
(setq
org-export-latex-after-initial-vars-hook
'(org-beamer-after-initial-vars)
org-agenda-files '(~/test.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

Re: [Orgmode] Multiple column views for one file

2010-01-05 Thread Carsten Dominik

Hi Thomas,

On Dec 31, 2009, at 3:31 PM, Thomas Leitner wrote:


Hi,

I don't know if org-mode supports having multiple column views for one
file currently but I did not find a way to do the following.

What I have is a journal file in org-mode in which I record, for
example, films I have seen, books I have read and kilometres I have
run. All of these entries have properties based on their type, for
example, films have the properties Genre, Year and Director. Now I
would like to get a sparse tree for all entries tagged with `film` and
use a special column view for the films. However, when I define the
#+COLUMNS variable at the top, this procedure only works for films,  
and

not for books or other entry types which have different properties.

Therefore it would be nice to be able to define several column views
and the possibility to switch between them. It is currently possible  
to

disable column view by pressing `q` when the cursor is on a head line
in column view. It should probably be no problem to add another hotkey
like `s` for switching to a different column view. The different  
column

views could be defined like this:

#+COLUMNS: films %70ITEM(Details) %TAGS(Context) %Genre %Year  
%Director

#+COLUMNS: books %70ITEM(Details) %TAGS(Context) %Author %Year %Pages


Not a bad idea, but pretty troublesome to implement, because
column view allows you to change the columns format which
then makes it harder to determine where to make the changes.

For now, you can just put several lines into the buffer and
change the order - but I do realize that this is not the most
convenient solution.

I am not implementing this - unless we find more people
who can bring forward a good use case for this.

- Carsten



It seems that org-mode currently ignores the column view names  
(films

and books) so this would be backwards compatible.

I'm still at the beginning of learning Elisp, so I'm not able to
implement this myself and would like to know if others find this
proposal useful and if it could be implemented?

Best regards,
 Thomas


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Question about end date for a scheduled task

2010-01-05 Thread Memnon Anon
Avinash Kulkarni avinas...@gmail.com writes:

 Hi, Is there a way to specify when a particular task should stop
 repeating? For instance, I need to backup the server in my office once
 a week for the next 3 weeks, after which the employee in charge will
 take it over again. Right now, I just added it as a C-x C-s +1w
 scheduled task, but this causes it to show up on my agenda even after
 the third week. Is archiving this task the only option?

For a task only repeated 3 times, I settled on giving each instance a
separate entry. If it is a complex item with several subitems,
the command org-clone-subtree-with-time-shift command helps a lot.

,[ (info (org)Structure editing) ]
| `C-c C-x c'
|  Clone a subtree by making a number of sibling copies of it.  You
|  will be prompted for the number of copies to make, and you can
|  also specify if any timestamps in the entry should be shifted.
|  This can be useful, for example, to create a number of tasks
|  related to a series of lectures to prepare.  For more details, see
|  the docstring of the command `org-clone-subtree-with-time-shift'.  
`

hth



___
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] Function request in exporting to HTML: \bar

2010-01-05 Thread Xin Shi
Hello Experts,

In mathematics, it's frequent to see symbols with a bar over it. This is
easy to do in LaTeX: \bar{A}.  While in HTML, it is :
span style=text-decoration:overlineA/span

I'm wondering if it's possible to implement that into the org-mode.

Thanks!

Xin
___
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] How to use org-info.js?

2010-01-05 Thread Xin Shi
Hi Water,

You can try this :

#+INFOJS_OPT: view:info path:http://orgmode.org/org-info.js

HTH
Xin


On Tue, Jan 5, 2010 at 1:37 AM, Water Lin water...@ymail.com wrote:


 I want to use org-info.js to build a navigator for my knowledge base.

 So I set something like this:
 -
 #+INFOJS_OPT: path:http://orgmode.org/org-info.js
 #+LINK_UP:
 #+LINK_HOME:
 -

 but after I publish my project, there is no this kind of navigator.

 What's the correct way to set it? But I can't find the detail
 description in Worg.

 Thanks

 Water Lin

 --
 Water Lin's notes and pencils: http://en.waterlin.org
 Email: water...@ymail.com
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.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

___
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: Feature request: org-export-format-source-code-or-example and srcname

2010-01-05 Thread Eric Schulte
Hi,

A first pass at this functionality has just been deployed.  The current
solution is very simple, but from here it should be relatively easy to
improve the look and feel of the exported names.

As described here [1], when exporting to html the source-name will be
included in a label element immediately preceding the pre block
containing the code, so

#+source: square
#+begin_src emacs-lisp :var input=1
  (* input input)
#+end_src

will export to

label class=org-src-namesquare/label
pre class=src src-emacs-lisp
span style=color: #7f7f7f;(/span* input inputspan style=color: 
#7f7f7f;)/span
/pre

and in LaTeX the source-name will be added as a listings title element,
so the above block will export to the following LaTeX.

\lstset{language=Lisp}\begin{lstlisting}[title={square}]
(* input input)
\end{lstlisting}

Please let me know how this should be improved.

Thanks -- Eric

Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Carsten and Nicolas,

 (BTW, Nicolas, excellent modifications made to the agenda look  feel!)

 Carsten Dominik wrote:
 when using the listings LaTeX package, it would be very useful if the
 value of srcname was added to the output. For instance,

 #+srcname: my_code_chunk
 #+begin_src latex :results latex :exports code :tangle no
 \usepackage{fontspec,xunicode,xltxtra}
 #+end_src

 would give:

 \lstset{language=TeX}[caption={my\_code\_chunk}]
 \begin{lstlisting}
 \usepackage{fontspec,xunicode,xltxtra}
 \end{lstlisting}

 (note the added [caption={my\_code\_chunk}])

 Is there anyone besides Nicolas what would like to see the source name in
 the exported listing?

 Yes! This is not only desired, but -- for me -- completely required: without
 it, you simply can't do real literate programming documentation...

 An example of how it would be nice to be (using NoWeb):

 http://www.mygooglest.com/sva/ecm-noweb.pdf

 See my (unanswered) thread of 2009-12-04 at 12:13: [babel] Org-babel vs NoWeb
 (and the like).


 Is that something that should be done in org-babel, or in the normal export
 stuff?

 I would answer Org-babel, but if there is one thing I'm sure of, is that I
 don't understand all the implications of my answer. So, take it with low
 consideration.

 Best regards,
   Seb

Footnotes: 
[1]  
http://eschulte.github.com/babel-dev/STARTED-Suitable-export-of-%23%2Bsrcname-and-%23%2Bresname-lines.html



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-expiry: How to define keyword for org-expiry-add-keyword

2010-01-05 Thread David Maus
Hi Markus,

At Mon, 04 Jan 2010 11:37:45 -0800,
Markus Heller wrote:

 If I type M-x org-expiry-process-entries in expiry.org, I get the
 following error:

 Symbol's function definition is void: org-expiry-handler function

This actually is a bug in org-expiry.el that is fixed with the
attached patch.


 I have defined this to be org-expiry-add-keyword, but how do I define
 the actual keyword?


You can define the keyword by setting the variable
`org-expiry-keyword'

,
| (setq org-expiry-keyword KEYWORD)
`

or of cause using customization-interface (M-x customize-group RET
org-expiry RET).

 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


0001-Fix-call-to-function-defined-in-org-expiry-handler-f.patch
Description: Binary data


pgpF8J6gKJStv.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: #+BEGIN_COMMENT turn to \begin{verbatim} [6.33f]

2010-01-05 Thread kazuo fujimoto
Hi, there,

I tried to commnet out following figure environment as follow.

#+BEGIN_COMMNET
#BEGIN_LaTeX
\begin{figure}
\begin{center}
 \includegraphics[scale=0.7]{./Figs/fig-ut-MOJI.eps}
 \caption{Dips town name}
 \label{MOJI-disp}
 \end{center}
\end{figure}
#END_LaTeX
#+end_COMMNET

But results of Export to LaTeX  was verbatim the figure environment as
following:

\begin{verbatim}
#BEGIN_LaTeX
\begin{figure}
\begin{center}
 \includegraphics[scale=0.7]{./Figs/fig-ut-MOJI.eps}
 \caption{Disp town name)を表示させる}
 \label{MOJI-disp}
 \end{center}
\end{figure}
#END_LaTeX
\end{verbatim}

Thank you for your advice.

kazuo

Emacs  : GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
 of 2008-12-14 on BREPNB
modified by Zhang Wei id.b...@gmail.com.
Package: Org-mode version 6.33f



kazuo fujimoto fujimoto at sakushin-u.ac.jp
Sakushin Gakuin University, Faculty of Human  Culture
http://www.sakushin-u.ac.jp/~fujimoto
PGP:D664 D542 D578 5B39  BB2E 50AA 6FEC 2FE7



___
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] RFC: Syntax for page numbers in file: links?

2010-01-05 Thread Jan Böcker
 I am not sure if it makes sense to handle more that a page number, really.

I have thought about this again and concluded that the approach in my
first post is, indeed, over-engineered. I also believe the approach
proposed in this post to be flexible enough to handle some extensions.

On 05.01.2010 13:32, Carsten Dominik wrote:

 
 I have yesterday implemented modifies for file link:
 
 file+sys: now forces opening a file with the system's open command
 file+emacs: forces opening in Emacs.
 I guess it would make sense to make more of these, so that
 one could select a specific viewer for selected files, what
 do you think?

The method of opening a file should not be specified in the link itself,
unless it makes sense to change it for an individual link. Imagine two
users exchanging org files, where one likes to open PDFs with evince and
the other prefers doc-view-mode.

However, this would be useful for links to file types which org-mode
does not know anything about; the user would not have to tell org-mode
about them by modifying org-file-apps first.
Maybe this should not force the opening method, but provide the default
if org-file-apps has nothing to say?



 - org-file-apps should allow to specify how to pass a page number to
  an external program. Unlike the file name, this is an optional
  argument, as a link may not specify a page number at all.

  I do not know how to do this in an elegant way, maybe let
  the user specify multiple entries - one for links with a page
  number, one for links without.
 
 This is not easy at all, but I am sure it can be done.
 

org-file-apps already allows matching regular expressions against the
file name.
I propose the following changes:
- match the regular expressions against the whole link
- if the matching regex used grouping, in addition to replacing %s with
the file name in a command string, replace %1 with the first match, %2
with the second, etc.
- if the org-file-apps entry specifies a lisp form to be evaluated, make
the group matches available to the lisp form being evaluated.

- org-docview.el would only handle org-store-link functionality and
generate links such as file:path::page.

With these changes, the following sample entries in org-file-apps could
then specify the method of how to open links to PDF files with and
without page number specifications.

Open PDFs in evince:

regex:  \.pdf\'
command:evince %s

regex:  \.pdf::\(\d+\)\'
command:evince %s -p %1

Open PDFs in doc-view-mode:

regex:  \.pdf\'
visit in emacs

regex:  \.pdf::\(\d+\)\'
lisp form:  (progn (org-open-file file 1)
   (docview-goto-page (match-string 1 link)))

The lisp form in the last entry could go into org-docview.el as a
convenience function. We would also need a way for org-docview.el to
supply default entries for org-file-apps, maybe a variable
org-file-apps-defaults-alist or something.

AFAIK, this approach would be backwards-compatible with current
org-file-apps entries, which typically match an extension at the end of
the string and specify a command to open the file with, which gets
passed the file name via %s. If the link specifies arguments, the
current entries would no longer match, but they cannot handle arguments
anyway.


___
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] Multiple column views for one file

2010-01-05 Thread Thomas Leitner
On Tue, 5 Jan 2010 14:06:08 +0100, Carsten Dominik wrote:
 Not a bad idea, but pretty troublesome to implement, because
 column view allows you to change the columns format which
 then makes it harder to determine where to make the changes.
 
 For now, you can just put several lines into the buffer and
 change the order - but I do realize that this is not the most
 convenient solution.
 
 I am not implementing this - unless we find more people
 who can bring forward a good use case for this.

I completely understand. Thanks for the answer nonetheless - will go
with your suggestion.

-- Thomas


___
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] Function request in exporting to HTML: \bar

2010-01-05 Thread Xin Shi
Hi Carsten,

Hi Carsten,

It worked. Thank you!

Xin

On Tue, Jan 5, 2010 at 12:27 PM, Carsten Dominik
carsten.domi...@gmail.comwrote:

 Hi Xin,

 take a look at the variable org-emphasis-alist.

 - Carsten


 On Jan 5, 2010, at 4:39 PM, Xin Shi wrote:

  Hello Experts,

 In mathematics, it's frequent to see symbols with a bar over it. This is
 easy to do in LaTeX: \bar{A}.  While in HTML, it is :
 span style=text-decoration:overlineA/span

 I'm wondering if it's possible to implement that into the org-mode.

 Thanks!

 Xin

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


 - Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Org-expiry: How to define keyword for org-expiry-add-keyword

2010-01-05 Thread Markus Heller

On 1/5/2010 8:47 AM, David Maus wrote:

Hi Markus,

At Mon, 04 Jan 2010 11:37:45 -0800,
Markus Heller wrote:


If I type M-x org-expiry-process-entries in expiry.org, I get the
following error:

Symbol's function definition is void: org-expiry-handler function


This actually is a bug in org-expiry.el that is fixed with the
attached patch.


Thanks for the patch.

But when I run M-x org-expiry-process-entries in the agenda or in my 
example file (see below), I get the following message in the minibuffer:


The mark is not set now, so there is no region

When I run M-x org-expiry-process-entry in my example file (see below), 
it works!  This command doesn't work in the agenda, but this is by 
design, right?


Am I correct in assuming that I should be able to use M-x 
org-expiry-process-entries in the agenda?


Thanks and Cheers
Markus



I have defined this to be org-expiry-add-keyword, but how do I define
the actual keyword?



You can define the keyword by setting the variable
`org-expiry-keyword'

,
| (setq org-expiry-keyword KEYWORD)
`

or of cause using customization-interface (M-x customize-group RET
org-expiry RET).

  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416



___
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] TODO list in new buffer?

2010-01-05 Thread Sam Cramer
I'm a new org-mode user.  It's a really nice piece of work, and I'm having a
good time using it to organize a bunch of work-related tasks!

I can't figure out how to create a list of all the TODO items in an org file
in a new buffer.  I'd like to have the TODO list in one buffer and the org
file in another, so I can refer to the TODO list while editing the org file.
 I looked through the manual and didn't see a way to do this, though it's
possible that I overlooked a relevant section.

Thanks,
Sam
___
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] TODO list in new buffer?

2010-01-05 Thread Darlan Cavalcante Moreira

Use M-x clone-indirect-buffer to create another buffer that points to the org
file and then C-c C-v (org-show-todo-tree) in one of the buffers to show the
TODO items.

If all your TODO items are in a subtree you can also go to that subtree and use
C-c C-x b (org-tree-to-indirect-buffer) to create an indirect buffer narrowed to
that subtree.

- Darlan Cavalcante Moreira

At Tue, 5 Jan 2010 17:15:32 -0800,
Sam Cramer samcra...@gmail.com wrote:
 
 I'm a new org-mode user.  It's a really nice piece of work, and I'm having a
 good time using it to organize a bunch of work-related tasks!
 
 I can't figure out how to create a list of all the TODO items in an org file
 in a new buffer.  I'd like to have the TODO list in one buffer and the org
 file in another, so I can refer to the TODO list while editing the org file.
  I looked through the manual and didn't see a way to do this, though it's
 possible that I overlooked a relevant section.
 
 Thanks,
 Sam


___
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] [Resent?] Managing a simple blog

2010-01-05 Thread Pierre de Buyl

Hello,

How do you create your links ?
I publish a site using org and links of the form [[file:page.org] 
[page]] are correctly exported as a relative link to page.html .


Pierre

Le 5 janv. 10 à 17:39, leandro noferini a écrit :


Ciao a tutti,

I am trying  to switch from muse to  org to manage my simple  blog  
but I

cannot set the correct address for the links.

I  don't know  quite  anything about  html  - for  this  reason I   
liked

emacs+muse :-)

This is my .emacs

(Blog personale
 :base-directory ~/Documenti/Blog/
 :base-extension org\\|png\\|jpg\\|gif\\|pdf
 :publishing-directory ~/public_html/blog/
 :recursive t
 :publishing-function org-publish-org-to-html
 :html-extension html
 :link-home http://blog.address/blog.html;
 :link-up nil
 :author Leandro Noferini
 :email lnofe...@cybervalley.org
 :auto-index t
 :index-filename blog.org
 :index-title Il blog di leandro
 :timestamps t
 :section-numbers nil
 :tags t

The files .html resulting have  all the links set to ~/public_html/ 
blog/

and I can't understand how to change: is the use of css compulsory?

--
Ciao
leandro

___
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