Re: [O] possible typo in org manual

2011-06-04 Thread Noorul Islam
On Sat, Jun 4, 2011 at 12:06 PM, skip  wrote:
> The manual I'm using is here:
> http://orgmode.org/org.html#Working-With-Source-Code
>
> See item 14.2.8.1
> sub-heading: Emacs Lisp evaluation of variables
> in the sample code,
>
> #+begin_src sh :var file-name=(buffer-file-name) :exports both
>   wc -w $file
> #+end_src
>
> shouldn't
> file-name=(buffer-file-name)
> be
> file=(buffer-file-name)
>
> --Skip.
>
>

But doc/org.texi has the following enty

@example
#+begin_src sh :var filename=(buffer-file-name) :exports both
  wc -w $filename
#+end_src
@end example

I am not sure how frequently changes are pushed to the web server.

Thanks and Regards
Noorul



Re: [O] possible typo in org manual

2011-06-04 Thread Jude DaShiell
The info pages are a couple versions behind too.

On Sat, 4 Jun 2011, Noorul Islam wrote:

> On Sat, Jun 4, 2011 at 12:06 PM, skip  wrote:
> > The manual I'm using is here:
> > http://orgmode.org/org.html#Working-With-Source-Code
> >
> > See item 14.2.8.1
> > sub-heading: Emacs Lisp evaluation of variables
> > in the sample code,
> >
> > #+begin_src sh :var file-name=(buffer-file-name) :exports both
> >   wc -w $file
> > #+end_src
> >
> > shouldn't
> > file-name=(buffer-file-name)
> > be
> > file=(buffer-file-name)
> >
> > --Skip.
> >
> >
> 
> But doc/org.texi has the following enty
> 
> @example
> #+begin_src sh :var filename=(buffer-file-name) :exports both
>   wc -w $filename
> #+end_src
> @end example
> 
> I am not sure how frequently changes are pushed to the web server.
> 
> Thanks and Regards
> Noorul
> 
> 





Re: [O] Academic Reference Workflows and recommendation of Bibdesk

2011-06-04 Thread Matt Lundin
Chao LU  writes:

> First of all it's free, open resource. Its database file is just an
> bibtex file, so all the records is in plain text, even the thumbnails
> are stored inside this bibtex file. like below,
>
> I do think that BibDesk has great features to investigate, such as
> create the record from the bibtex and embed the picture inside the
> bibtex itself.

Eric Schulte recently added some nice features to org-bibtex.el that
allow for easy entry of bibliographical data in an org file (and export
to bibtex). For instance, one can now import bibtex fields as org
properties.

> Maybe we could also use the *.org as a database file and develop a
> framework to have our entries displayed in more intuitive way, maybe
> by using smart group, tag(keywords).

Would a sparse tree or tags view suffice here, or do you have something
else in mind?

Best,
Matt



[O] git useage question

2011-06-04 Thread Jude DaShiell
I wouldn't be writing this if the documentation were reasonable.  Once 
org-mode gets cloned, how is git properly used to update the cloned 
instance on a machine?





Re: [O] git useage question

2011-06-04 Thread Nick Dokos
Jude DaShiell  wrote:

> I wouldn't be writing this if the documentation were reasonable.  Once 
> org-mode gets cloned, how is git properly used to update the cloned 
> instance on a machine?
> 

What's unreasonable about the doc?

If you don't have any local changes, see 

   http://orgmode.org/worg/org-faq.html#sec-3_2

If you *do* have local changes, see

   http://orgmode.org/worg/org-faq.html#sec-3_3


Nick













Re: [O] git useage question

2011-06-04 Thread Jude DaShiell
Compare that documentation with the documentation written for 
micro-emacs, that should give you an idea what I mean by reasonable 
documentation.  Also, thanks for the faq pointers.

On Sat, 4 Jun 2011, Nick Dokos wrote:

> Jude DaShiell  wrote:
> 
> > I wouldn't be writing this if the documentation were reasonable.  Once 
> > org-mode gets cloned, how is git properly used to update the cloned 
> > instance on a machine?
> > 
> 
> What's unreasonable about the doc?
> 
> If you don't have any local changes, see 
> 
>http://orgmode.org/worg/org-faq.html#sec-3_2
> 
> If you *do* have local changes, see
> 
>http://orgmode.org/worg/org-faq.html#sec-3_3
> 
> 
> Nick
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 





Re: [O] git useage question

2011-06-04 Thread Pieter Praet
On Sat, 4 Jun 2011 18:05:47 -0400 (EDT), Jude DaShiell 
 wrote:
> I wouldn't be writing this if the documentation were reasonable.  Once 
> org-mode gets cloned, how is git properly used to update the cloned 
> instance on a machine?

I wouldn't be writing this if your comment were reasonable.


The following should be more than sufficient:
  - http://orgmode.org/manual/Installation.html#Installation
  - http://orgmode.org/worg/org-faq.html#Keeping-current


In the *highly unlikely* case that it isn't:
  You're probably already aware of this (though this awareness may be
  temporarily impeded due to Saturday night related inebriation), but
  it's worth noting that Org-mode's documentation documents Org-mode.

  Org-mode != git, otherwise it would be called git instead of Org-mode, see?

  Kindly refer to some relevant (and extremely abundant) documentation:
  - http://git-scm.com/documentation


Peace

-- 
Pieter



Re: [O] git useage question

2011-06-04 Thread Jude DaShiell
1) so we understand each other.  My complaint has nothing to do with 
   org-mode's documentation and everything to do with the documentation 
   for git itself.On Sun, 5 Jun 2011, Pieter Praet wrote:

> On Sat, 4 Jun 2011 18:05:47 -0400 (EDT), Jude DaShiell 
>  wrote:
> > I wouldn't be writing this if the documentation were reasonable.  Once 
> > org-mode gets cloned, how is git properly used to update the cloned 
> > instance on a machine?
> 
> I wouldn't be writing this if your comment were reasonable.
> 
> 
> The following should be more than sufficient:
>   - http://orgmode.org/manual/Installation.html#Installation
>   - http://orgmode.org/worg/org-faq.html#Keeping-current
> 
> 
> In the *highly unlikely* case that it isn't:
>   You're probably already aware of this (though this awareness may be
>   temporarily impeded due to Saturday night related inebriation), but
>   it's worth noting that Org-mode's documentation documents Org-mode.
> 
>   Org-mode != git, otherwise it would be called git instead of Org-mode, see?
> 
>   Kindly refer to some relevant (and extremely abundant) documentation:
>   - http://git-scm.com/documentation
> 
> 
> Peace
> 
> 





Re: [O] git useage question

2011-06-04 Thread Pieter Praet
On Sat, 4 Jun 2011 19:26:54 -0400 (EDT), Jude DaShiell 
 wrote:
> 1) so we understand each other.  My complaint has nothing to do with 
>org-mode's documentation and everything to do with the documentation 
>for git itself. [...]

Oh, I see :D

So your query should have been directed to the git mailing list [1],
but I admit that whether it would've garnered any useful responses is
rather doubtful.


Assuming you have no prior experience with distributed version control,
the following should be a very clear and concise introduction:
- http://eagain.net/articles/git-for-computer-scientists/
- http://hoth.entp.com/output/git_for_designers.html
- http://www-cs-students.stanford.edu/~blynn/gitmagic/


It's really worth the effort, as it'll pay back in no time.

Very soon you'll wonder how you've ever been able to work without it ;)


> [...] On Sun, 5 Jun 2011, Pieter Praet wrote:
> 
> > On Sat, 4 Jun 2011 18:05:47 -0400 (EDT), Jude DaShiell 
> >  wrote:
> > > I wouldn't be writing this if the documentation were reasonable.  Once 
> > > org-mode gets cloned, how is git properly used to update the cloned 
> > > instance on a machine?
> > 
> > I wouldn't be writing this if your comment were reasonable.
> > 
> > 
> > The following should be more than sufficient:
> >   - http://orgmode.org/manual/Installation.html#Installation
> >   - http://orgmode.org/worg/org-faq.html#Keeping-current
> > 
> > 
> > In the *highly unlikely* case that it isn't:
> >   You're probably already aware of this (though this awareness may be
> >   temporarily impeded due to Saturday night related inebriation), but
> >   it's worth noting that Org-mode's documentation documents Org-mode.
> > 
> >   Org-mode != git, otherwise it would be called git instead of Org-mode, 
> > see?
> > 
> >   Kindly refer to some relevant (and extremely abundant) documentation:
> >   - http://git-scm.com/documentation
> > 
> > 
> > Peace
> > 
> > 
> 
> 


Peace


[1] http://dir.gmane.org/gmane.comp.version-control.git

-- 
Pieter



Re: [O] git useage question

2011-06-04 Thread Nick Dokos
Jude DaShiell  wrote:

> Compare that documentation with the documentation written for 
> micro-emacs, that should give you an idea what I mean by reasonable 
> documentation.  Also, thanks for the faq pointers.
> 

and

> 1) so we understand each other.  My complaint has nothing to do with 
>org-mode's documentation and everything to do with the documentation 
>for git itself.

[was there supposed to be a 2) etc?]

1) It would have helped if you had said that to begin with: I was left
   wondering what "that" documentation was. And the comparison with the
   micro-emacs doc was entirely impenetrable to me. Can you provide a
   pointer to that doc? Daniel Lawrence's site seems to be gone.

2) For git, Pieter provided some appropriate links. I'll take the
   opportunity to recommend Scott Chacon's book (http://progit.org/book).

3) For future reference, here are pointers to a couple of useful
   documents on how to ask questions and how to submit bug reports:

 http://www.catb.org/~esr/faqs/smart-questions.html
 http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

   The first is linked from the main orgmode page (http://orgmode.org);
   the second is linked from the "How to contribute" page on Worg
   (http://orgmode.org/worg/org-contribute.html). I recommend both of
   these to everybody.

Nick
































Re: [O] git useage question

2011-06-04 Thread Jude DaShiell
The only place microemacs might be by now could be some orphan version of 
the simtel archives.  Taken down but last I knew not entirely removed from 
the internet. On Sat, 4 Jun 2011, Nick Dokos wrote:

> Jude DaShiell  wrote:
> 
> > Compare that documentation with the documentation written for 
> > micro-emacs, that should give you an idea what I mean by reasonable 
> > documentation.  Also, thanks for the faq pointers.
> > 
> 
> and
> 
> > 1) so we understand each other.  My complaint has nothing to do with 
> >org-mode's documentation and everything to do with the documentation 
> >for git itself.
> 
> [was there supposed to be a 2) etc?]
> 
> 1) It would have helped if you had said that to begin with: I was left
>wondering what "that" documentation was. And the comparison with the
>micro-emacs doc was entirely impenetrable to me. Can you provide a
>pointer to that doc? Daniel Lawrence's site seems to be gone.
> 
> 2) For git, Pieter provided some appropriate links. I'll take the
>opportunity to recommend Scott Chacon's book (http://progit.org/book).
> 
> 3) For future reference, here are pointers to a couple of useful
>documents on how to ask questions and how to submit bug reports:
> 
>  http://www.catb.org/~esr/faqs/smart-questions.html
>  http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
> 
>The first is linked from the main orgmode page (http://orgmode.org);
>the second is linked from the "How to contribute" page on Worg
>(http://orgmode.org/worg/org-contribute.html). I recommend both of
>these to everybody.
> 
> Nick
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 





[O] feature request: changing the way numeric priorities are calculated

2011-06-04 Thread Filippo A. Salustri
As I understand org - at least as of v7.4, the numeric values of
priorities as calculated in org-get-priority, are variable and based
on multiplying things by 1000.
I can understand why this is done this way, but it is a little restrictive.

I would like to suggest that the numeric values of priorities be fixed
between 0 and some value that can be user-defined, and that
org-get-priority be tweaked to return a value between 0 and the max
value, based on the range of priorities (i.e. from org-lowest-priority
to org-highest-priority).

So, for instance if you set the max numeric priority to 10, it
wouldn't matter if you had 3 priority levels or 100, they'd all range
between 0 and 10.

In my case, I'm asking for this because I'm writing a user-defined
comparator function that combines a number of features into a single
measure of 'importance' (toodledo does something similar), and having
the ability to essentially 'weight' the priority with respect to other
values would be very useful.

I'd try to do the changes myself, but I'm just not up to the task these days.

Thoughts?
Cheers.
Fil Salustri

--
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/



Re: [O] feature request: changing the way numeric priorities are calculated

2011-06-04 Thread Samuel Wales
I do

(defun alpha-org-priority-score (&optional sg)
  (case (alpha-org-entry-priority-letter sg)
(?A 2)
(?B 0)
(?C -1)
(t (error "Case exhausted for priority"

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support the Whittemore-Peterson Institute (WPI)
===
Extreme bigotry against people with deadly serious diseases is still
extreme bigotry.



[O] [BUG] problem exporting example block to html

2011-06-04 Thread Nick Dokos
Exporting the following to html:

--8<---cut here---start->8---

* foo

#+begin_example
#+TITLE: foo
* One

One

* Two

Euler says:

#+begin_latex
\[
\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}} \over {2}}
\]
#+end_latex
#+end_example
--8<---cut here---end--->8---

deletes the latex section. The problem is that in
org-export-preprocess-string, by the time that we get to
org-export-select-backend-specific-text(), the example has been wrapped in
BEGIN_HTML/END_HTML and the begin_example/end_example have been translated
into /. org-export-select-backend-specific-text() then blindly
deletes the latex section since it does not "belong" to the html backend,
not realizing that it is part of a literal example.

There is also a bug in the latex backend: although the example, including
most of the latex section, is wrapped inside a verbatim environment,
the #+end_latex line has been eaten up - I haven't checked by whom.

GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 
2011-04-13
Org-mode version 7.5 (baseline.265.gcfb05)

Nick