[O] Archiving broken

2011-07-21 Thread Jason Dunsmore
Hello Nicolas,

It looks like the latest commit broke org-archive-subtree:
http://orgmode.org/w/?p=org-mode.git;a=commit;h=5b39df0523

I get the following error when I try to archive anything:

if: The kill is not a (set of) tree(s) - please use S-insertchar to yank 
anyway

I checked out the previous commit (71f654a182) and the problem is gone.

Regards,
Jason



Re: [O] Remove current heading from refile targets?

2011-07-21 Thread Jason Dunsmore
Bastien b...@altern.org writes:

 Jason Dunsmore ja...@dunsmor.com writes:

 Looks good except for one quirk.  If the heading has a TODO keyword, it
 isn't excluded.  Example:

 * Heading1
 ** TODO Subheading1
 * Heading2

 Please test this second patch over the previous one.

That seems to work perfectly.  Thanks again Bastien.



Re: [O] Remove current heading from refile targets?

2011-07-19 Thread Jason Dunsmore
Bastien b...@altern.org writes:

 Jason Dunsmore ja...@dunsmor.com writes:

 Hm, I don't see any change with or without org-completion-use-ido set.
 The current heading still shows up in the refile targets.

 Weird.  I double-check and have the current heading filtered out of the
 refile targets.  Can you check again and/or send a small test file?

It looks like it removes top-level headings from the refile targets, but
nothing below that.  For example, in the org file below, place the
cursor on Subheading1 and type M-x org-refile.  The current
heading will be in the list of refile targets.

--8---cut here---start-8---
* Heading1
** Subheading1
* Heading2
--8---cut here---end---8---



Re: [O] Remove current heading from refile targets?

2011-07-18 Thread Jason Dunsmore
Bastien b...@altern.org writes:

 Hi Jason,

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 I noticed that when I go to refile a heading, the heading that I'm
 refiling is listed in the refile targets.  If I choose to refile the
 heading to itself, the following error is displayed:

 org-refile: Cannot refile to position inside the tree or region

 When I'm choosing a refile target, the current heading gets in the way.
 Would it make sense to remove the current heading from the refile
 targets?  

 Indeed.

 I've just pushed a fix for this.

 I have org-completion-use-ido set to `t', so I'm using the ido
 interface to refile.

 I don't use `org-completion-use-ido' so I cannot test, but it should
 work okay -- please let me know if there is any problem.

Hm, I don't see any change with or without org-completion-use-ido set.
The current heading still shows up in the refile targets.  Here are my
org-refile related configs:

(setq org-refile-targets '((nil . (:maxlevel . 2
(setq org-refile-allow-creating-parent-nodes t)
(setq org-refile-use-outline-path t)
(setq org-refile-use-cache nil)

Regards,
Jason



[O] Remove current heading from refile targets?

2011-07-17 Thread Jason Dunsmore
I noticed that when I go to refile a heading, the heading that I'm
refiling is listed in the refile targets.  If I choose to refile the
heading to itself, the following error is displayed:

org-refile: Cannot refile to position inside the tree or region

When I'm choosing a refile target, the current heading gets in the way.
Would it make sense to remove the current heading from the refile
targets?  I have org-completion-use-ido set to `t', so I'm using the ido
interface to refile.

Regards,
Jason



Re: [O] Calendar-like view of the org-agenda

2011-07-13 Thread Jason F. McBrayer

On Wed, 13 Jul 2011 11:34:48 +0530, Aankhen wrote:


That's odd. I'm using Emacs 24 on Windows 7 64-bit (and before this
I've used 23 on both 7 and Vista), and my font is set to Consolas.
Emacs happily substitutes other fonts where Consolas is missing 
glyphs

(see the attached screenshot). The only snag is that it takes a while
to find a suitable font, at times.

I'm using a precompiled binary from emacs-for-windows.[1] Perhaps it
has special support for font substitution or something…


Huh. I looked at the HELLO file, and you seem to be right. It's pulling 
in
fonts as needed for various South Asian, East Asian, and Middle/Near 
Eastern
languages, but still failing horribly with unicode box drawing, as well 
as

various symbols (like the recycle symbol, which we use abundantly on
identi.ca). Perhaps Consolas falsely reports that it has those symbols.



Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Jason F. McBrayer

On Tue, 12 Jul 2011 11:38:53 +0200, Sebastien Vauban wrote:

Eric S Fraga wrote:

I was going to suggest you try Liberation Mono; it's what I moved to
from Consolas for just this reason. However, I am confused about 
fonts

in Emacs. If I C-u C-x = at any character in this paragraph, I get
for example: : xft:-unknown-Liberation
Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x4C)


Look at the results under Windows (in 8 pt):

http://i.imgur.com/qkavC.png [2]Some figures are simply missing dots 
in

their graphical representation...

If, however, I do this at the top right corner character above, I 
get :

xft:-unknown-DejaVu Sans
Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x933) It seems
Emacs is using different typefaces... In any case, I do recommend
Liberation but I guess I should also recomment DejaVu Sans? ;-)


DejaVu Sans is a bit better, but it must be in 9pt to be right... 
while I

really like smaller fonts.

I still will give it a try for a couple of days. But, as of now, 
nothing

beats Consolas yet...



I /think/ that in X, emacs will select the closest font it can find to
in order to get the characters it needs. However, in Windows, it will
only use the default font (or whatever is explicitly specified for the
face), even if that font is missing characters. The only workaround
I've found for buffers that need a lot of Unicode characters is to use
DejaVu Sans Mono. Consolas is very nice, but its Unicode coverage is
not good.

--
+---+
| Jason F. McBrayer jmcb...@carcosa.net |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |




Re: [O] Web bookmarks in ORG?

2011-07-11 Thread Jason Dunsmore
Angel de Vicente ang...@iac.es writes:

 Is there anyone using ORG for keeping web bookmarks? Basically I'm
 looking at Delicious-like functionality, where I just put tags to web
 addresses and I can search the bookmarks either for their name or with
 tags.

For a while, I was keeping an Org file with bookmarks organized
del.icio.us-style, eg:

--8---cut here---start-8---
* [[http://url1.com][Title1]] :tag1:tag2:tag3:

Notes...

* [[http://url2.com][Title2]] :tag1:tag2:tag3:

Notes...

* ...
--8---cut here---end---8---

But then I started incorporating the links into the body of my notes (I
keep a notebook directory with an Org file for each broad subject and
Org headings/subheadings for more granular organization).  I found the
web links much more useful in the context of my notes, so I stopped
using the del.icio.us-style format.

Regards,
Jason



Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?

2011-07-06 Thread Jason F. McBrayer

On Wed, 06 Jul 2011 07:26:45 -0600, Eric Schulte wrote:


I think the first place to look for executing Java from Org-mode code
blocks would be to check if any existing Emacs java modes already
provide support for interactive code evaluation.


I believe JDEE does support this:


jde-bsh-run is an interactive compiled Lisp function in `jde-bsh.el'.

(jde-bsh-run)

*Starts the JDEE version of the BeanShell.


But honestly, getting everything set up for your environment for it to 
actually work right is a pain and three quarters.


--
+---+
| Jason F. McBrayer jmcb...@carcosa.net |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |



Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?

2011-07-05 Thread Jason F. McBrayer

On Tue, 05 Jul 2011 10:07:19 +0100, Eric S Fraga wrote:

Torsten Wagner writes:

Hi all, I need to evaluate many small java snippets. I tried to do 
this
in org-mode but so fare it didn't work out. org-babel seems to have 
no

java support ?


Not directly but, given the issues with class paths and naming 
schemes,

I would suggest that the best route is to use babel to tangle code
instead of trying to execute it directly within org.


My guess is that if you want to execute it directly within org, the
thing to do is to run it in beanshell[1], like JDEE does. I'm not
really familiar enough with org-babel to tell you how to go about
doing that, though.


[1] http://www.beanshell.org/

--
+---+
| Jason F. McBrayerjmcb...@carcosa.net  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|




[O] Server maintenance

2011-06-18 Thread Jason Dunsmore
Orgers,

I plan on doing some updates on the server tonight (June 18th) at around
9:00 PM CDT.  The website and git repository will be unavailable for
30-60 minutes.  I'll send another email just before and after the
maintenance.

Regards,
Jason



Re: [O] Server maintenance

2011-06-18 Thread Jason Dunsmore
I've decided to postpone the maintenance, since I won't be available
tomorrow to address any issues caused by the updates.

Regards,
Jason



Re: [O] org-capture does not fully clean up after C-c C-k

2011-06-16 Thread Jason Dunsmore
Carsten Dominik carsten.domi...@gmail.com writes:

 On 4.5.2011, at 14:30, Leo wrote:

 Hello,
 
 I have one template as follows
 
 (n Notes entry (file Notes.org) * %?\n  %i :prepend t)
 
 Every time I `C-c C-k' to abort the capture, a blank line is inserted at
 the front of file Notes.org.

 Hi Leo,

 I am unable to reproduce this.  I do get an empty line the first time,
 but when the empty line is already there, then there is no problem.

 Do you find the insertion of this one empty line a problem?

It's a significant problem for me.  I still use org-remember because 1)
org-capture inserts an extra blank line and 2) canceling a capture
doesn't work for some reason - I get the following message:

org-capture-finalize: Capture process aborted, but target buffer could not be 
cleaned up correctly

Both of these issues cause me to do manual clean up following every
capture.

Please let me know if there are fixes/workarounds for these issues.  I'd
like to finally make the switch to org-capture.

Regards,
Jason



Re: [O] http://orgmode.org/ is down

2011-06-14 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

 Just a heads up.

 The main orgmode.org server appears to be down, git and the web-page.

Everything should be back up now.

I found the VM kernel-panicked.  I'll upgrade the kernel soon.

Regards,
Jason



Re: [O] Day Planner link broken

2011-05-10 Thread Jason Dunsmore
Brian Brooks brooks.br...@gmail.com writes:

 Just an FYI, the Day Planner link on orgmode.org is broken.

I updated the link.  Thanks for reporting this.



Re: [O] typo

2011-05-10 Thread Jason Dunsmore
Cor Ninaber cornina...@gmail.com writes:

 This bug is a very silly little thing but there is missing a letter in the
 description of Org Mobile Index File in the settings. Namely inks
 should be links (see the copy below).

Fixed.  http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=c735d62f0

Thanks for reporting this.



[O] Clocktable question

2011-05-05 Thread Jason Knight
I'm working on several grant-funded projects which require not only
the amount of time spent on a project but the start and end times for
each task. I've not been able to figure out how to get clocktable to
do this for me.

If what I've got in my .org files is this:

CLOCK: [2011-05-04 Wed 11:19]--[2011-05-04 Wed 13:22] =  2:03

-- I need my end-of-month report to show the total duration, as well
as the start and end time. How do I accomplish this? Is there
something I can do with the :formatter parameter?

Thanks for your input!

Jason Knight



Re: [O] worg/org-contrib list items are missing

2011-05-04 Thread Jason Dunsmore
Sullivan, Gregory (US SSA) gregory.sulli...@baesystems.com writes:

 Something is broken exporting worg source to lists:

 http://orgmode.org/worg/org-contrib/

 is missing the list item headers.

I see it's missing the left part of the description list items.  I ran a
git-bisect and found the commit that introduced the problem:

--8---cut here---start-8---
49e6bc899758114d6d29e69a8f9e40798d26782b is the first bad commit
commit 49e6bc899758114d6d29e69a8f9e40798d26782b
Author: Ethan Ligon li...@are.berkeley.edu
Date:   Sat Apr 9 18:39:35 2011 +0200

Fix for html  docbook export of description list items

The problem is illustrated by the following example:

* Illustration of bug in html export
  - This has a space after the colons :: so will work in latex and html
  - This doesn't have a space after the colons ::so is an invalid
description item according to the org manual.  Won't work in html
or docbook.  Will nevertheless work in latex, provided /first/
description item is valid.
  - Has a terminating space ::
- So it works in both html and latex export!
- Even though it's difficult to distinguish from the next example.
  - Lacks a terminating space ::
- At present, *doesn't* work in html or docbook export, does in
  latex.  This is the case that the following patch fixes.

:04 04 feb2527d8b3294e9d9a118f4752a414b8431d706 
4bdeed49ce735a321ddbb3053c22282dd9909677 M   lisp
--8---cut here---end---8---

Ethan, can you investigate?



[O] Worg now always publishing with latest Org version

2011-04-29 Thread Jason Dunsmore
Hello Worg contributors,

I've changed the Worg publishing process so that it always updates the
version of Org used to publish Worg before publishing.  Until we have a
way to gracefully handle publishing/export errors, this should help
prevent and troubleshoot the publishing errors that frequently cause
Worg to break.

* Preventing publishing errors

Locally export any document you edit as HTML (C-c C-e H) prior to
committing it to Worg and ensure the export process doesn't fail.  This
will be more reliable if you're running the latest version of Org.

You may also want to check the formatting in a browser before committing
your change (C-c C-e b).

* Troubleshooting publishing errors

If you notice Worg isn't updating, visit
http://orgmode.org/worg/publishing.txt and look for the export error
near the bottom to find the file where publishing stopped.  Locally
update to the latest version of Org, open that file, and try reproducing
the export error (C-c C-e H).  If it's not obvious where the problem is,
look at the most recent changes to the file in question:

cd Worg
git log -p org-quotes.org

Try reverting some of those changes and then re-test exporting (C-c C-e
H).

Matt,

Is there an existing page on Worg where I should put this info?

Regards,
Jason



Re: [O] particular capture method for a diet .. ?

2011-04-22 Thread Jason Earl
On Fri, Apr 22 2011, Christopher Allan Webber wrote:

 So I've been meaning to put something up on this in worg for a while.

 I've been dieting using orgmode, basic calorie tracking, and something
 resembling the ideas out of The Hacker's Diet for the last year
 (actually 2.5 years with a 1.5 year break in which I continued to
 weigh in mostly but didn't follow my calorie goals ;)) and have lost 
 60 pounds so far (originally was 275, not all that's recorded in my
 files during the first few weeks of dieting, anyway at 210 now), going
 from morbidly obese to just overweight, and I'm still losing weight
 (soon enough, being a fat guy will be far behind me).  Here's the
 org-babel generated gnuplot graphs to show it (regenerated and pushed to
 my site every morning):

 http://dustycloud.org/tmp/weight.png
 http://dustycloud.org/tmp/weight_month.png

Congratulations!  I have been doing something similar for just over a
year.  Unfortunately, I made the mistake of using Simple Emacs
Spreadsheets for my spreadsheets (I didn't really know about org-mode
when I started).  This means my spreadsheets can hold about a month's
worth of data before they become too big to be usable.

I switched my weight spreadsheet into org a while back so that I could
use gnuplot to make graphs, but my food log is still in SES.

 Here's a screenshot:
 http://dustycloud.org/tmp/org-diet2.png

 Roughly in the terrible amount of hacks that compose org-diet I've
 wrapped together these ideas/tools:
  - calorie tracking
  - recipe calorie calculation
  - weigh-in via org-capture
  - calorie clocking (clock out at the end of the day to verify you've
got accurate numbers for that day)
  - habit tracking of whether you've met your calorie goals
  - weight graphing with 10 day moving averaging to remove some of the
noise from a daily weigh in/out
  - bmi calculation
  - a really shitty calories-per-day-to-lose-to-meet-your-goals estimator

 It's really nothing complex, and mostly it's not software, just a
 methedology with a *slight* amount of poorly written software in elisp
 and org-babel, but the system works great.

It sounds more feature complete than what I am currently using, and I
actually *like* what I am using.

 I planned after meeting my diet goals (hitting normal weight) that I'd
 release the whole thing (including my present diet file for reference)
 under GPLv3, document it in worg, and put my own diet file out there
 under CC0, but maybe I should do it sooner... problem is I don't have
 time presently while trying to work on http://mediagoblin.org on
 weekends to make a proper release, but I could at least bundle
 together everything you need to have a full system using my hacks for
 now if you want, with really terrible but usable documentation,
 without taking up too much time. :)

 Interested?  I could probably throw together a terrible tarball this
 weekend if you want to use it and post it to the list.

 One thing that's clear from the diet I've collected: whenever I've
 followed the system, without fail, I've lost weight.  When I've
 deviated I've stayed level or I've gained weight (the no-movement
 middle of the diet graph I linked to).  Follow the system, use habit
 tracking and stuff, stick to your calorie goals (I shoot for a lower
 occasional-goal of 1300 calories and an absolute minimum goal of 1600
 calories), and it *fucking works* without any support of the bullshit
 diet industry.

 I've heard a few people saying they have interest in the stuff I have
 so maybe I should just do that crappy release for now; better than
 nothing?

I would at least be interested in taking a look at it.  No promises, of
course, but if I ended up using it, I would at least be willing to help
you package (and possibly document) what you have.

 Hopefully being useful while making embarassing admissions about my
 body,
  - cwebb

There is nothing embarrassing about losing over 60 pounds.  The
mediagoblin.org thing looks interesting as well.

Jason



Re: [O] ToC in org-faq

2011-04-01 Thread Jason Dunsmore
Nick Dokos nicholas.do...@hp.com writes:

 The table of contents in the org-faq page on Worg,

 http://orgmode.org/worg/org-faq.html

 is always expanded, afaict: it's not a button that expands when you
 mouse over it, as is the case in most (all?) Worg pages. Is that by
 design or did something break?

I think it's by design:
http://repo.or.cz/w/Worg.git/blobdiff/509e39e..9b4399:/org-faq.org



Re: [O] broken link at orgmode.org

2011-03-31 Thread Jason Dunsmore
Rustom Mody rustompm...@gmail.com writes:

 In http://orgmode.org/index.html#sec-4
 there is this line
 ... latest released manuals (currently for Org 7.5), please browse
 this directory.

 The 'this directory' link seems to be broken

Yep, it's a 404.

http://orgmode.org/manual/release_7.5/

There are no directories under http://orgmode.org/manual/ on the server.
Where can I find these files Bastien?



[O] T-shirt idea

2011-03-25 Thread Jason Dunsmore
T-shirt idea for babies/little kids:
http://dunsmor.com/img/110325094800.png



Re: [O] T-shirt idea

2011-03-25 Thread Jason Dunsmore
Christopher Allan Webber cweb...@dustycloud.org writes:

 What about mom's orgmode file?

Good point.  Here's one for the Moms:
http://dunsmor.com/img/110325124500.png



Re: [O] Custom Agenda View for Projects

2011-03-18 Thread Jason McBrayer
On Thu, Mar 17, 2011 at 6:55 PM, Josh Berry d...@condordes.net wrote:

 I think org considers child tasks to be dependencies of the parent
 task -- so if a parent task (such as your PROJ) has children, it won't
 be displayed in a tags-todo agenda view, because that takes
 dependencies into account.

That's a logical explanation, but shouldn't this only be the case if
the parent has the :ORDERED: property set?

 Have you tried just a tags view with a match of TODO=\PROJ\?
 IIRC this will do what you want.

I gave this a test, and apparently it does not. What's shown is still
dependent on the value of org-enforce-todo-dependencies.

--
Jason F. McBrayer
http://jfm.carcosa.net/



Re: [O] Worg updating?

2011-03-17 Thread Jason Dunsmore
Erik Iverson er...@ccbr.umn.edu writes:

 On 03/17/2011 05:34 PM, Nick Dokos wrote:
 Thomas S. Dyet...@tsdye.com  wrote:

 Aloha all,

 Changes I made to the LaTeX export tutorial several days ago haven't
 made their way to Worg yet.  Is Worg updating?

 All the best,
 Tom


 Thanks for reminding me: I made a change to org-hacks some time ago and it
 hasn't shown up yet.  Maybe it would be a good idea to timestamp pages
 with the update time?

 Does Worg contain any information on how Worg is built? I found

http://orgmode.org/worg/sources/

 See:

 http://orgmode.org/worg/worg-setup.html

 which will direct you to:

 http://orgmode.org/worg/publishing.txt

 AT the bottom of that file:

 Generating tree-style sitemap for Sitemap for project worg-pages
 Not a standard Org-mode time string: 2010.08.25 20:41:52

This and another badly formatted date were causing the Worg publishing
process to fail.  I fixed it in these two commits:

http://repo.or.cz/w/Worg.git/commitdiff/cba1f50f636401723c6bf9c38d86e725817123ff
http://repo.or.cz/w/Worg.git/commitdiff/a5ba2e96757d7b5870f667f9bd23c9491bd9f14e

Thomas' new section is now present after republishing Worg:

http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-10_1

Regards,
Jason



Re: [O] Custom Agenda View for Projects

2011-03-16 Thread Jason McBrayer
I can see the same behaviour here. I only get a few of my PROJECT headlines
if org-enforce-todo-dependencies is t; I get all of them if it is nil.

My value for org-todo-keywords is:

((type TODO NEXTACTION INPROCESS WAITING NEEDSPREREQ | DONE
DELEGATED CANCELLED)
 (type PROJECT | COMPLETED)
 (type SOMEDAY MAYBE | CANCELLED))

The odd thing, to me, is that this doesn't seem to affect e.g. WAITING or
SOMEDAY tasks, though those are not likely to have children, which PROJECT
headlines certainly will.

-- 
Jason F. McBrayer
http://jfm.carcosa.net/


Re: [O] Other programs to edit Org documents?

2011-03-16 Thread Jason McBrayer
I'm toying with the idea of writing a webapp that conforms to the
org-mobile-push/pull specifications as kind of a testbed for some other
ideas, but I don't know if I've got the round tuits available to actually
make it happen.

On Wed, Mar 16, 2011 at 6:48 AM, Scot Becker scot.bec...@gmail.com wrote:

 A simple org-mode viewer (that allows you to do some basic
 folding/unfolding and search -- or even something more complex that
 would allow you to view it as a mind-map?) would be nice. It could
 even be simplified with more GUI bells and whistles and still allow
 one to insert data and save the file. It would not be a full
 replacement for emacs, ever, but would allow other less technical
 users to use it as well.

 There are all kinds of advantages to this, seems to me, and of course it
 partly exists in the form of Moblie Org.  Org-mode is both an interface and
 a specification, you could say (as well as a friendly club).  And you can
 work with the latter (the markup specification) apart from the former if you
 have need to.   A web-app for viewing and editing org-mode files would open
 nice possibilities for collaboration with the not-yet-initiated and for
 using your files when you are away-from-emacs.

 Scot





-- 
Jason F. McBrayer
http://jfm.carcosa.net/


Re: [O] Rework org-export-html-preamble/postamble (again)

2011-03-15 Thread Jason Dunsmore
Bastien b...@altern.org writes:

 Hi Jason,

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 This patch fixed that export error, but I'm still seeing the problems
 with exporting #+TITLE: in an h1 heading described at:

 http://article.gmane.org/gmane.emacs.orgmode/39100

 You mean that, without any :html-preamble and with
 ̀org-export-html-preamble' set to `t' (as it is by default in these
 patches), you don't see any h1title/h1 ?

If :html-preamble isn't set, I see an h1title/h1.  If it is set, but
without explicitly defining h1 class=\title\%t/h1 in
the :html-preamble string, there is no h1title/h1.  This is not how
it worked before the recent changes to html exporting (ie. previously it
wasn't necessary to explicitly define h1%t/h1 in the :html-preamble
string).  The previous behavior seems more consistent.

This is with the latest git version (commit b6b7057467b6b).

`org-export-html-preamble' is set to `t' in all my testing.

Regards,
Jason



Re: [O] Another HTML Export Question

2011-03-15 Thread Jason Dunsmore
Scott Randby sran...@gmail.com writes:

 3. How do I change the text of the creator line?

 You cannot.

 Bummer.

You can set a custom creator-info in :html-postamble.  Here's
my :html-postamble string:

--8---cut here---start-8---
p class=\author\Author: %a (img src=\comments.png\ alt=\comments 
email\ /)/p
p class=\date\Date: %d/p
p class=\creator\Generated by %c/p
--8---cut here---end---8---




Re: [O] Rework org-export-html-preamble/postamble (again)

2011-03-15 Thread Jason Dunsmore
Bastien b...@altern.org writes:

 Hi Jason,

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 You mean that, without any :html-preamble and with
 ̀org-export-html-preamble' set to `t' (as it is by default in these
 patches), you don't see any h1title/h1 ?

 If :html-preamble isn't set, I see an h1title/h1.  

 When :html-preamble in a publishing project, it falls back on
 org-export-html-preamble, which defaults to `t'.

 You need to set :html-preamble to nil so that the HTML export
 doesn't insert h1title/h1.

 If it is set, 

 (to what?)

 but without explicitly defining h1 class=\title\%t/h1 in the
 :html-preamble string, there is no h1title/h1.

 When :html-preamble is set to `t' in a publishing project, and
 org-export-html-preamble-format hasn't been modified, it should
 insert h1 class=\title\%t/h1 -- it does here.

Yes, the same happens for me.  The case I'm referring to is
when :html-preamble is set to a string.

 Can you give an example I can test?

Set :html-preamble to:

--8---cut here---start-8---
div class=\menu\ \
a href=\index.html\index/a :: \
a href=\changelog.html\changelog/a :: \
a href=\sitemap.html\sitemap/a \
/div
--8---cut here---end---8---

When I export as HTML with this config, I don't see an h1title/h1.
Do you?

Previously, :html-preamble could be set to a format string without
h1%t/h1 and h1title/h1 would still be exported.

Regards,
Jason



Re: [O] Rework org-export-html-preamble/postamble (again)

2011-03-10 Thread Jason Dunsmore
Bastien b...@altern.org writes:

 Hi Jason,

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 Bastien b...@altern.org writes:

 Hopefully this patch will solve a few issues that have just been raised
 about the new behavior of org-export-html-preamble/postamble.

 With this patch, I get the following error when exporting to HTML:

 list: Symbol's value as variable is void: creator-info

 Applying the attached patch above the previous one should do.

 Let me know, thanks!

This patch fixed that export error, but I'm still seeing the problems
with exporting #+TITLE: in an h1 heading described at:

http://article.gmane.org/gmane.emacs.orgmode/39100



Re: [O] org-mode with pyblosxom or blosxom?

2011-03-09 Thread Jason McBrayer
I use org-mode with pyBlosxom, though I haven't posted anything for a month
of Sundays.

I don't use org-mode to maintain the blog, only to compose. Generally, I
just export a subtree to HTML and save that in a folder that pyBlosxom knows
about. The only catch is the need to strip the id attributes that org-mode
adds (because they will be duplicated between entries).

Smarter things to do would be to either add a Markdown exporter to org-mode,
or to add an org-markup interpreter to pyBlosxom, but I haven't been
sufficiently motivated to do either of those.

I also do all this manually, because it's just not very much work to do so.

On Sat, Mar 5, 2011 at 12:42 PM, Vinh Nguyen vinhdi...@gmail.com wrote:

 Dear list,

 Is anyone currently using org-mode in conjunction with pyblosxom or
 blosxom for their blogs?  I think there might be a few out there doing
 so because I found
 [[http://comments.gmane.org/gmane.emacs.orgmode/18069][this]] thread
 referring to it.  If so, do you have any notes to share?  I'm
 exploring the idea of migrating from wordpress to it.  Thanks.

 -- Vinh




-- 
Jason F. McBrayer
http://jfm.carcosa.net/


Re: [O] Re: [Orgmode] HTML export options are being ignored

2011-03-09 Thread Jason Dunsmore
Bastien b...@altern.org writes:

 Also, I have no title when I set the title with #+TITLE:  on the first
 line.  I'm not sure if this has to do with org-export-html-title-format
 being removed.

 Mhh.. I cannot reproduce this.  Can you check again?

I was mistaken.  It was exporting a title.  However, it wasn't
exporting the h1 header with the title.  I needed to append the
following to my :html-preamble for it to have the old behavior:

h1 class=\title\%t/h1

So when :html-preamble isn't defined, #+TITLE: affects both title and
h1.  But when :html-preamble is defined, #+TITLE: only affects
title.

Is this a bug?  It makes sense to me that #TITLE: would add an h1 page
heading with or without :html-preamble being defined.

Regards,
Jason



Re: [O] Rework org-export-html-preamble/postamble (again)

2011-03-09 Thread Jason Dunsmore
Bastien b...@altern.org writes:

 Hopefully this patch will solve a few issues that have just been raised
 about the new behavior of org-export-html-preamble/postamble.

With this patch, I get the following error when exporting to HTML:

list: Symbol's value as variable is void: creator-info



Re: [O] Uniquely url-ify sentences?

2011-03-07 Thread Jason Dunsmore
r...@rosslaird.com (Ross A. Laird) writes:

 I'd like to post one sentence from this manuscript every day as a
 tweet with a link back to the sentence

Will this do what you need?

--8---cut here---start-8---
(defun org-linkify-sentence (url)
  Converts a sentence to an Org-mode link.
  (interactive sURL: )
  (save-excursion
(forward-char)
(backward-sentence)
(push-mark)
(forward-sentence)
(kill-region (region-beginning) (region-end))
(insert [[ url ][ (first kill-ring) ]])))
--8---cut here---end---8---

Just put the cursor on the sentence and type M-x org-linkify-sentence
RET.  You might want to create a keybinding for it if you use it often:

(define-key org-mode-map \C-cs 'org-linkify-sentence)

Also, I'd recommend creating a link abbreviation if you link to the same
site often: http://orgmode.org/org.html#Link-abbreviations

I have a series of custom org-linkify-* functions that I use to convert
various pieces of text to Org-mode links.  I'm still trying to figure
out how they can be generalized to be useful to others.

Regards,
Jason



Re: [O] Worg 403 Forbidden

2011-03-02 Thread Jason Dunsmore
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Bastien,

 Bastien wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:
 In any case, http://orgmode.org/worg/sources/.emacs-custom.el is as well
 not found.

 I just added it.

 I see that there is a file on http://orgmode.org/worg/sources/emacs-custom.el
 (with the leading `.' -- fine for me), but I get a 403 Forbidden error this
 time.

Fixed.  It was just a permissions problem.

___
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: [O] Worg 404 Not Found

2011-02-28 Thread Jason Dunsmore
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi,

 The file http://orgmode.org/worg/sources/emacs.el, referenced in
 http://orgmode.org/worg/worg-setup.html, is not found on Worg.

Fixed it.  Thanks.

___
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] HTML export options are being ignored

2011-02-26 Thread Jason Dunsmore
Cássio Koshikumo ckoshik...@gmail.com writes:

 Hi all,

 I think there's a bug with the html exporter. With this OPTIONS line:

 #+OPTIONS: num:nil author:nil creator:nil timestamp:nil toc:nil

 I get rid of the numbering and the TOC, but still get the creator, the
 timestamp and the author lines at the end of the page. Exporting to ASCII seem
 to exclude them properly.

 Does anyone else experience this?

I'm also having issues with HTML export.  The :email-info, :preamble,
and :postamble publishing options are being ignored.

___
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] HTML export options are being ignored

2011-02-26 Thread Jason Dunsmore
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 Cássio Koshikumo ckoshik...@gmail.com writes:

 Hi all,

 I think there's a bug with the html exporter. With this OPTIONS line:

 #+OPTIONS: num:nil author:nil creator:nil timestamp:nil toc:nil

 I get rid of the numbering and the TOC, but still get the creator, the
 timestamp and the author lines at the end of the page. Exporting to ASCII 
 seem
 to exclude them properly.

 Does anyone else experience this?

 I'm also having issues with HTML export.  The :email-info, :preamble,
 and :postamble publishing options are being ignored.

I found the commit that broke things:

http://orgmode.org/w/org-mode.git/commitdiff/da8dc7bba7261

1) :preamble was renamed :html-preamble
2) :postamble was renamed :html-postamble
3) org-export-email-info is no longer checked before attempting export
   of email address.

For the first two, the manual needs to be updated.  The third change
seems like a bug.

Also, I have no title when I set the title with #+TITLE:  on the first
line.  I'm not sure if this has to do with org-export-html-title-format
being removed.

Regards,
Jason

___
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: Worg publishing broken?

2011-02-18 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

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

 Would there be any way to get the Worg publishing script or export of
 source code blocks to fail gracefully in these instances? 

 That would be helpful indeed.  

 As a first step, we could handle errors in a more clever way by using
 the variable `noninteractive', testing if Emacs is running in batch
 mode.  In batch mode, instead of blocking the export process with a
 (error ...), we could just logs problems.

 Let's collect places where errors can block the publishing process.

Sounds like a good approach.  I found a few using:

$ git log --oneline | grep -i export | egrep -i 
fix|issue|broke|problem|error|resolve|correct|publish

All the ones I found were related to Babel.

1) Used shell instead of sh for the source block mode.  Fixed by
   commit e4ed828.
2) Used =code-block-name= instead of : code-block-name.
   Fixed by commit 90cb8cb.  When I tested this with by checking out
   90cb8cb and trying to export org-contrib/babel/org-babel.org, I got
   the error org-babel-exp-lob-one-liners: Wrong type argument:
   stringp, nil.
3) Enclosing #+begin_src into #+begin_quote.  Fixed by commit fd3bca5.
   The error is: File mode specification error: (file-error Cannot open
   load file html-helper-mode)

___
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] Worg publishing broken?

2011-02-16 Thread Jason Dunsmore
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi,

 I have today pushed two updates onto Worg which have not yet been published.
 Maybe Worg publishing is currently broken?

A recently-added section on the FAQ was using shell as the mode of a
source block instead of sh.  I fixed it and re-pulled/published Worg.

http://repo.or.cz/w/Worg.git/blobdiff/45de0bd521aab3af38ec20804a270f306aa2416e..e4ed8284faddd0cd29c9cd3b98d19c9730f66e6e:/org-faq.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


Re: [Orgmode] [PATCH] Preserve trailing blank lines

2011-02-15 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 However, with your patch, I get a weird behavior.

 Config:

 ,
 | (setq org-blank-before-new-entry '((heading . nil)
 |(plain-list-item . nil)))
 `

 Test file:

 ,
 | * Section
 | 
 | ** Subsection 1
 | Body
 | 
 | ** Subsection 2
 | Body
 `

 Trying to move Subsection 1 down (with org-metadown):

 ,
 | * Section
 | Body   ??
 | 
 | ** Subsection 2
 | 
 | ** Subsection 1
 | Body
 `

 Are you able to reproduce this?  

I finally had a chance to test this out with the latest Org from git and
a vanilla Emacs config, and I was unable to reproduce the behavior you
saw.  Here is what I did:


$ git clone git://orgmode.org/org-mode.git

$ emacs23 -Q 

(Edit org.el to re-introduce patch.)

$ cd org-mode/

$ git diff
diff --git a/lisp/org.el b/lisp/org.el
index 164081c..4329def 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -18507,10 +18507,10 @@ Taken from `count' in cl-seq.el with all keyword argum
   Move backwards over whitespace, to the beginning of the first empty line.
 Returns the number of empty lines passed.
   (let ((pos (point)))
-(skip-chars-backward  \t\n\r)
-;; (if (cdr (assoc 'heading org-blank-before-new-entry))
-;;(skip-chars-backward  \t\n\r)
-;;   (forward-line -1))
+;;(skip-chars-backward  \t\n\r)
+(if (cdr (assoc 'heading org-blank-before-new-entry))
+   (skip-chars-backward  \t\n\r)
+  (forward-line -1))
 (beginning-of-line 2)
 (goto-char (min (point) pos))
 (count-lines (point) pos)))


Then I evaluated the following in Emacs:


(delete /usr/share/emacs/23.2/lisp/org/ load-path)
(add-to-list 'load-path ~/tmp/org-mode/lisp)
(require 'org-install)
(setq org-blank-before-new-entry '((heading . nil)
   (plain-list-item . nil)))


You can see what happened on my screen with the following:


wget http://98.129.169.48/tmp/emacs-testing.time
wget http://98.129.169.48/tmp/emacs-testing.script
scriptreplay emacs-testing.time emacs-testing.script


Would you mind testing it out again?

Regards,
Jason

___
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] Choosing css for Worg

2011-02-03 Thread Jason Dunsmore
Jambunathan K kjambunat...@gmail.com writes:

 Emacswiki has a nice and easy way to choose CSS for the page it
 renders. Look for `use it' links in the below page.

 http://www.emacswiki.org/emacs/CSS

 Is there anything similar for org/worg pages? 

Hi Jambunathan,

You can use a browser extension for this:
https://addons.mozilla.org/en-US/firefox/addon/style-sheet-chooser-ii/
https://chrome.google.com/extensions/detail/daodklicmmjhcacgkjpianadkdkbkbce

Also, see the recent discussion:
http://thread.gmane.org/gmane.emacs.orgmode/31506/focus=36462

It doesn't look like there are alternate style sheets for non-Worg pages
on orgmode.org, but you can probably use a browser extension to
customize those as well.

Regards,
Jason

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


[Orgmode] [PATCH] [BUG] Timestamps surrounded by @@ in HTML export

2011-02-01 Thread Jason Dunsmore
I noticed in the latest Git version that each inactive timestamp has
@@ before and after it in HTML exported output.  Here is a patch that
fixes it.

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 6c0e5e3..2f0377b 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -2124,14 +2124,14 @@ But it has the disadvantage, that Org-mode's HTML conver
(or b (setq b (substring s 0 (match-beginning 0
(setq r (concat
 r (substring s 0 (match-beginning 0))
- @span class=\timestamp-wrapper\
+ span class=\timestamp-wrapper\
 (if (match-end 1)
-(format @span class=\timestamp-kwd\%s @/span
+(format span class=\timestamp-kwd\%s /span
 (match-string 1 s)))
-(format  @span class=\timestamp\%s@/span
+(format  span class=\timestamp\%s/span
 (substring
  (org-translate-time (match-string 3 s)) 1 -1))
-@/span)
+/span)
  s (substring s (match-end 0
   ;; Line break if line started and ended with time stamp stuff
   (if (not r)

___
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] [worg] dangling/403 link error

2011-01-30 Thread Jason Dunsmore
Eric S Fraga e.fr...@ucl.ac.uk writes:

 Hello,

 in page http://orgmode.org/manual/Languages.html#Languages, there is a
 link to language specific documentation,

 http://orgmode.org/worg/org-contrib/babel/languages

 which is a directory without an index.org file so you get a =403
 Forbidden= message as the web server does not appear to allow for
 directory listings.  I'm not sure if this is related to the recent move
 of the website.

I enabled directory indexing for:
http://orgmode.org/worg/org-contrib/babel/languages/

Regards,
Jason

___
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] [PATCH] Preserve trailing blank lines

2011-01-26 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 Jason Dunsmore ja...@dunsmor.com writes:

 I now understand this is a formatting convention issue.  

 I'm trying to figure out when this patch is useful.  I understand this
 is when `org-blank-before-new-entry' doesn't set heading to t or auto, 
 but I don't understand what it the difference the patch introduces then.

 Could you send a _visual_ example, with useless empty lines that you
 want to get rid off when org-metaup etc ?

Convention 1: Newline above headings

This seems to be used more often when the body does not have delimiting
newlines.

Configuration:

--8---cut here---start-8---
(setq org-blank-before-new-entry '((heading . t)
   (plain-list-item . t)))
--8---cut here---end---8---

Org example:

--8---cut here---start-8---

* Section

** Subsection 1
Body

** Subsection 2
Body
--8---cut here---end---8---


Convention 2: Newline after bodies

This seems to be used more often when the body does have delimiting
newlines.

Configuration:

--8---cut here---start-8---
(setq org-blank-before-new-entry '((heading . nil)
   (plain-list-item . nil)))
--8---cut here---end---8---

Org example:

--8---cut here---start-8---
* Section
** Subsection 1

Body

** Subsection 2

Body

--8---cut here---end---8---

I've seen both conventions in use on Worg and in Org-mode tutorials.

I just tested these configurations and Org examples out with the patch
and it seems to work well.  I've been using the patch on my systems for
a while now and haven't noticed any bad side-effects.

Let me know if you need any other information.

Regards,
Jason

___
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: tags grouping not working

2011-01-25 Thread Jason Dunsmore
Benjamin Andresen be...@in-ulm.de writes:

 Hey there,

 I've just upgraded to the latest org-mode HEAD and noticed that the tag
 behavior changed. (It now sorts entries, except now grouping is broken.)

 This is how it used to work:
 (Assume #+TAGS: { foo(f) bar(b) } quux(q) for all of this.)

 * Foo :foo:

 now using M-x org-set-tags-command and pressing 'b' will result in:

 * Foo :bar:

 now selecting 'q' in the same prompt will result in:

 * Foo :bar:quux:

 but instead what will happen is:

 * Foo :quux:

 The offending commit is: 
 commit c7d1e0f997d2aa1043c9cbbf72d03f05195d692e
 Author: Bastien Guerry b...@altern.org
 Date:   Tue Jan 18 00:50:32 2011 +0100

 just reverting that piece of code on the current HEAD makes grouping
 work again.

 best regards,
 benny

 P.S. Sorry if that has been reported before, I couldn't find any mention
 of tags. Also git bisect is handy.

Yep, this commit needs to be reverted.  See my message about this:

http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00942.html

Can you do this Bastien?

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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-20 Thread Jason Dunsmore
Jeff Horn jrhorn...@gmail.com writes:

 On Wed, Jan 19, 2011 at 9:24 PM, Matt Lundin m...@imapmail.org wrote:
 I believe these pages have not been exported since we turned off the
 inline css publishing option; i.e., they have not been touched since
 that time, so the publishing mechanism does not export them.

 Matt,

 I was going to grep through the repo and touch all the files that
 haven't changed since then. Obviously, that's not really possible
 since the org files don't contain this CSS. :-) Perhaps Jason could
 give us a list of the affected files? Something like

grep -r 'CDATA' *

 in the Worg root might do the trick.

 Also, I was rather doomed to failure anyway. Touching a file doesn't
 change its contents, so git won't think anything has changed. (I know,
 it's a Duh)

 Maybe once we find the files, we could use a script add a whitespace
 character to the end of each org file and republish?

I temporarily set:

(setq org-publish-use-timestamps-flag nil)

And republished Worg.  All the pages were regenerated.  That removed the
inline CSS and fixed the title inconsistencies.

Thanks!

___
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: Worg needs some reorganizing

2011-01-20 Thread Jason Dunsmore
Erik Iverson er...@ccbr.umn.edu writes:

 Jeff Horn wrote:
 On Thu, Jan 20, 2011 at 6:22 AM, Dan Davison dandavis...@gmail.com wrote:
 I strongly second this. In fact I'll stick my neck out more: Worg is
 great, but for tutorials on org-mode, HTML export is often the wrong
 format for obvious reasons (i.e. unless you go to some trouble, it
 conceals a lot of the org syntax). I'm tempted to suggest that htmlized
 output should be the default format for many org tutorials on Worg.

 I respectfully disagree with your assertion. When someone writes a
 document properly, i.e. in a literate fashion, i.e. using org source
 blocks, the right syntax is shown at the right time. Please see the
 manual as an example.

 I must admit I ran into this exact problem when writing an org-babel/R
 tutorial.  The problem came down to the following: I was writing an
 interactive org-mode document showing mainly how code blocks work within
 org.  This of course necessitates that I describe code block arguments.
 But these aren't shown in export. I believe the solution would be
 to export an example block to HTML, but then *also* include a source
 code block for interactive org-mode use.

 So my tutorial makes perfect sense when you're following along in org
 mode.  But the HTML export seems a little odd since only the content
 of the code blocks are shown, and not the full code blocks, which is
 the point of the tutorial.

I see this issue a lot on the Babel pages.  What needs to be done is
wrap each source/example block in another block with org as the
language.

For example:

--8---cut here---start-8---
#+begin_src org
  ,#+begin_src sh :results output
ls -al
  ,#+end_src
#+end_src
--8---cut here---end---8---

I think this should be done for all Babel documents to make them more
coherent when reading them on the web.  I found the babel documentation
quite confusing in the beginning because of this.

Eric and Dan,

Do you agree with this?

___
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: Worg needs some reorganizing

2011-01-20 Thread Jason Dunsmore
Jeff Horn jrhorn...@gmail.com writes:

 On Thu, Jan 20, 2011 at 6:22 AM, Dan Davison dandavis...@gmail.com wrote:
 I strongly second this. In fact I'll stick my neck out more: Worg is
 great, but for tutorials on org-mode, HTML export is often the wrong
 format for obvious reasons (i.e. unless you go to some trouble, it
 conceals a lot of the org syntax). I'm tempted to suggest that htmlized
 output should be the default format for many org tutorials on Worg.

 I respectfully disagree with your assertion. When someone writes a
 document properly, i.e. in a literate fashion, i.e. using org source
 blocks, the right syntax is shown at the right time. Please see the
 manual as an example.

 Now, I'm no fan of nerfing choices in order to force anyone to do
 things The Right Way (tm), but it bears mentioning.

 I see no harm in publishing using org-publish-org-to-org with htmlize.
 We could even add a link in the footer or header of each page that
 links to the htmlized source. I do *not* agree in making it the
 default format for any page.

FYI, Bastien implemented the htmlize version of Worg Tuesday.  You can
see it on any Worg page by replacing .html with .org.html.  Example:

http://orgmode.org/worg/org-contrib/babel/intro.org.html
http://orgmode.org/worg/org-contrib/babel/intro.html

Maybe we should add some colors to that htmlize output.  I agree a link
to the Org version on every page would be useful.

___
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: [PATCH] Stable key assignment for org-fast-tag-selection

2011-01-20 Thread Jason Dunsmore
Matt Lundin m...@imapmail.org writes:

 Bastien bastien.gue...@wikimedia.fr writes:

 emacs-orgm...@dunsmor.com writes:

 - Eval (setq org-use-fast-tag-selection t)
 - Eval (setq org-fast-tag-selection-single-key expert)
 - Create a heading with tags :a1:a2:
 - Create another heading with tags :a1:a2:
 - Type C-c a, C-c a, C-c a, C-c a
 - Notice how it changes from a1 to a2

 I reproduced this, well spotted.

 Below is a patch to make the character assignment stable, given that all
 of the same tags exist in the file each time it's run.

 Thanks for the patch!

 I was not able to apply it using the pw utility, so I made the change
 myself -- I forgot to do a git commit --amend --author tho, sorry!

 This patch breaks grouping in fast tag selection, since the sort
 function ignores the grouping information provided in org-tag-alist.

 Here's a sample org-tag-alist:

 (setq org-tag-alist '((:startgroup . nil)
 (desk . ?d)
 (email . ?m)
 (hack . ?k)
 (net . ?n)
 (phone . ?p)
 (:endgroup . nil)
 (:startgroup . nil)
 (home . ?h)
 (yard . ?y)
 (errands . ?e)
 (:endgroup . nil)
 (:startgroup . nil)
 (read . ?r)
 (script .?s)
 (think . ?t)
 (travel . ?j)
 (:endgroup . nil)))

 And here's the prompt for org-tag-alist:

 Inherited:  inbox per prof
 Current:
  Next change exits
 }
 }
 }
 { { { [d] desk  [m] email [e] errands   [k] hack  [h] home  
   [n] net   [p] phone [r] read  [s] script[t] think 
   [j] travel[y] yard  

Good catch.  I see the problem.

--8---cut here---start-8---
(sort org-tag-alist (lambda (a b) (string (car a) (car b
--8---cut here---end---8---

Yields:

--8---cut here---start-8---
((:endgroup)
 (:endgroup)
 (:endgroup)
 (:startgroup)
 (:startgroup)
 (:startgroup)
 (desk . 100)
 (email . 109)
 (errands . 101)
 (hack . 107)
 (home . 104)
 (net . 110)
 (phone . 112)
 (read . 114)
 (script . 115)
 (think . 116)
 (travel . 106)
 (yard . 121))
--8---cut here---end---8---

And a bunch of code relies on the position of the :startgroup
and :endgroup dummy tags.

I wonder why this design was chosen instead of using a list of alists
for grouping.  For example:

--8---cut here---start-8---
(setq org-tag-alist '(((desk . ?d)
   (email . ?m)
   (hack . ?k)
   (net . ?n)
   (phone . ?p))
  ((home . ?h)
   (yard . ?y)
   (errands . ?e))
  ((read . ?r)
   (script .?s)
   (think . ?t)
   (travel . ?j
--8---cut here---end---8---

Maybe org-tag-alist could either be an alist or a list of alists, and a
simple (listp (caar org-tag-alist)) test could be used to see what form
org-tag-alist is in and then handle accordingly.  Does anybody see a
problem with that approach?

This doesn't seem like a trivial change, so my original patch should
probably be reverted until this gets implemented properly.

Regards,
Jason

___
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: Worg needs some reorganizing

2011-01-19 Thread Jason Dunsmore
Matt Lundin m...@imapmail.org writes:

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 I made a version of the FAQ without the javascript folding:

 http://orgmode.org/tmp/worg/org-faq-nojs.html
 http://orgmode.org/tmp/worg/org-faq.html

 It like it better, but it's still a bit unwieldy.  Maybe the FAQ just
 needs to be reorganized.  See how Wikipedia does it:

 http://en.wikipedia.org/wiki/Wikipedia:FAQ
 http://en.wikipedia.org/wiki/Wikipedia:FAQ_Index

 Matt or Bastien, do you have an opinion on reorganizing the FAQ?

 I reorganized the FAQ into categories a year or so ago; it's remarkable
 to consider how much the document has grown (thanks to the community!)
 since then.

 I believe it is helpful to have the entire FAQ on one page, though I'd
 agree could use some pruning. My plan is to move some the longer
 entries to documentation pages of their own, leaving behind a brief
 answer along with a link to more detailed documentation.

 I'd like to get rid of the javascript folding on the FAQ. I've found
 that on slower computers it can take a few seconds for the entire page
 to fold, while artifacts of entries flash briefly on the screen.

These changes sound great.

 On this one page, I think we need a simple (non-js) table-of-contents.
 Is there a way to override the hidden toc for this page only?

I agree (copying Eric on this email - he might know).

 I'll also see if I can work up a local export hook to add a Back to
 top link for each entry.

I think this might be unnecessary (hitting Back, typing the Home
key, or middle clicking at the top of the scroll bar can all already do
this).

___
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: Worg needs some reorganizing

2011-01-19 Thread Jason Dunsmore
Jeff Horn jrhorn...@gmail.com writes:

 On Wed, Jan 19, 2011 at 12:34 PM, Jason Dunsmore
 emacs-orgm...@dunsmor.com wrote:
 I think this might be unnecessary (hitting Back, typing the Home
 key, or middle clicking at the top of the scroll bar can all already do
 this).

 I'm not an expert, but that is not very accessible. Shouldn't be a
 problem with modern text browsers, but I remember this being an
 accessibility recommendation for FAQish pages at my previous
 university.

Hm, that sounds a bit like folklore.  Is there some accessibility
standard we can follow, and should we (how up-to-date are these
documents relative to modern accessible browsers)?  I noticed every
other project FAQ I came across doesn't do this:

http://wiki.apache.org/httpd/FAQ
https://git.wiki.kernel.org/index.php/GitFaq
http://kb.mozillazine.org/Firefox_:_FAQs

___
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: Worg needs some reorganizing

2011-01-19 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

 Achim Gratz strom...@nexgo.de writes:

 Eric Schulte schulte.e...@gmail.com writes:
 I just pushed up an edit to the Worg repository which should reset all
 of the defaults on the TOC of the org-faq-nojs.org page.  If this works
 I vote we set this as the sole org-faq page.

 It works, but I think you would want

 font-size: inherit;


 applied, thanks


 in the first block.  If there's a way to have org wrap the toc into
 different divs, you would not need to undo the styles.


 agreed, but I think this is the simpler solution for now.

 BTW: this changes has now propagated through to
 http://orgmode.org/worg/org-faq-nojs.html

Looks like the TOC links are larger than the text on the rest of the
page.  Can the text size be made the same?

___
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: Worg needs some reorganizing

2011-01-19 Thread Jason Dunsmore
Achim Gratz strom...@nexgo.de writes:

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:
 Looks like the TOC links are larger than the text on the rest of the
 page.  Can the text size be made the same?

 That's what the inherit is fixing.  You may still have the old copy in
 cache, I've just now been able to get the new version that Eric pushed
 some time ago.

Oh okay.

Does anybody know why some pages have inline CSS?  For example:

http://orgmode.org/worg/org-configs/index.html

--8---cut here---start-8---
style type=text/css 
 !--/*--![CDATA[/*!--*/
  html { font-family: Times, serif; font-size: 12pt; }
  .title  { text-align: center; }
  .todo   { color: red; }
  .done   { color: green; }
  .tag{ background-color: #add8e6; font-weight:normal }
  .target { }
  .timestamp { color: #bebebe; }
  .timestamp-kwd { color: #5f9ea0; }
  .right  {margin-left:auto; margin-right:0px;  text-align:right;}
  .left   {margin-left:0px;  margin-right:auto; text-align:left;}
  .center {margin-left:auto; margin-right:auto; text-align:center;}
  p.verse { margin-left: 3% }
  pre {
  border: 1pt solid #AEBDCC;
  background-color: #F3F5F7;
  padding: 5pt;
  font-family: courier, monospace;
font-size: 90%;
overflow:auto;
  }
  table { border-collapse: collapse; }
  td, th { vertical-align: top;  }
  th.right  { text-align:center;  }
  th.left   { text-align:center;   }
  th.center { text-align:center; }
  td.right  { text-align:right;  }
  td.left   { text-align:left;   }
  td.center { text-align:center; }
  dt { font-weight: bold; }
  div.figure { padding: 0.5em; }
  div.figure p { text-align: center; }
  textarea { overflow-x: auto; }
  .linenr { font-size:smaller }
  .code-highlighted {background-color:#00;}
  .org-info-js_info-navigation { border-style:none; }
  #org-info-js_console-label { font-size:10px; font-weight:bold;
   white-space:nowrap; }
  .org-info-js_search-highlight {background-color:#00; color:#00;
 font-weight:bold; }
  /*]]*/--
/style
--8---cut here---end---8---

I came across this when trying to figure out what was causing the
different H1 styles (top page title).  For example, compare:

http://orgmode.org/worg/org-faq-nojs.html
and
http://orgmode.org/worg/org-configs/index.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] Re: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 Jason seems to be garnering a lot of votes, but Eric's zenburn
 emulation makes my eyes happy. If Jason wins out, I suppose I could
 always just read Worg in emacs... :D

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

There's a Firefox add-on that will give you configurable per-site user
CSS:
https://addons.mozilla.org/en-US/firefox/addon/stylish/

Looks like most browsers have a feature for this.

Opera:
http://my.opera.com/community/forums/topic.dml?id=109574

Chrome:
https://chrome.google.com/extensions/detail/fjnbnpbmkenffdnngjfgmeleoegfcffe
http://www.google.com/support/forum/p/Chrome/thread?tid=1fa0dd079dbdc2ffhl=en
http://code.google.com/p/chromium/issues/detail?id=2393

Safari:
http://hetima.com/safari/stand-e.html

And there's something in the CSS 2.1 spec about allowing users to attach
style sheets that I don't fully understand.
http://www.w3.org/TR/CSS21/

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Matt Lundin m...@imapmail.org writes:

 Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 Jason seems to be garnering a lot of votes, but Eric's zenburn
 emulation makes my eyes happy. If Jason wins out, I suppose I could
 always just read Worg in emacs... :D

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

 Could we perhaps go ahead and put the new stylesheets on Worg along with
 alternate stylesheet links in the publishing preamble?

That's okay with me.  I just uploaded the latest stylesheet with Eric's
collapsed TOC integrated in:
http://orgmode.org/tmp/worg.css

You can see it in action at:
http://orgmode.org/tmp/worg/

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 Thanks all for the work on worg.css -- I'm excited to see this happen!

 I'm putting Sebastian explicitely into the loop: I remember Sebastian
 worked on org.css (and maybe worg.css?) to make sure the spacing between
 HTML headings was okay for folding/unfolding through org-info-js.  Maybe
 this is something that should be taken care of with the new worg.css.

My starting point was the old worg.css file.  I noticed there was
excessive space between sections.  When I removed the following two
lines:

--8---cut here---start-8---
/* Add more spacing between section. Padding, so that folding with 
org-info.js works as expected. */
padding-bottom:2em;
--8---cut here---end---8---

It fixed the problem with excessive spacing.  Removing it didn't cause
an issue with the javascript-folded pages that I could see.

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Nick Dokos nicholas.do...@hp.com writes:

 Jason Dunsmore emacs-orgm...@dunsmor.com wrote:

 ...
 That's okay with me.  I just uploaded the latest stylesheet with Eric's
 collapsed TOC integrated in:
 http://orgmode.org/tmp/worg.css
 
 You can see it in action at:
 http://orgmode.org/tmp/worg/
 

 I haven't been able to see Eric's TOC in action yet (w/Firefox 3.0.19 on
 Ubuntu 8.10): I looked at the screenshots Eric posted, but I see nothing
 in the upper RH corner. Are there any prerequisites? I'll try more
 recent FF on more recent Ubuntu and perhaps some other browsers/distros
 as well, but if anybody has any ideas, I'd appreciate them.

The front page doesn't have a TOC.  You can see it here:
http://orgmode.org/tmp/worg/org-dependencies.html

Hit C-S-r to reload without using the cache if you still don't see it.

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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

 I'm partial to the emacs.css bundled with my
 submission over the current code fontification, but that's just me.

I put your pre style in place:
http://orgmode.org/tmp/worg.css

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:


 By the way, having the javascript section-folding enabled on only some
 pages is confusing and doesn't make for the best browsing experience.
 Now that the TOC will be collapsed by default, perhaps it's no longer
 needed?


 Yes the javascript is probably the culprit here, I agree that with the
 hidden TOC it is probably not required.  My preference would be to
 remove the section folding (and use of javascript) from Worg entirely.


 Is there a consensus on removing Javascript folding from *all* pages on
 Worg.  I think this would be an improvement both for the readability and
 stylistic coherence of the site.

I am in favor of removing the javascript folding from all Worg pages.
It would improve the consistency and experience of browsing Worg.

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

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

 Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 Jason seems to be garnering a lot of votes, but Eric's zenburn
 emulation makes my eyes happy. If Jason wins out, I suppose I could
 always just read Worg in emacs... :D

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

 Could we perhaps go ahead and put the new stylesheets on Worg along with
 alternate stylesheet links in the publishing preamble? That way we could
 begin to tweak the stylesheets as a community and test them on the
 fly. (It would also save Jason the work of having to publish to tmp
 directories.) Others would then be free to add their own
 stylesheets---though I suppose that adding alternate stylesheet links
 will require access to the publishing options on the server.

 Once we've decided on a default, we could then adjust the preamble
 accordingly and clean up the alternates.


 This sounds like a great approach to me.  I'm convinced that there are
 other Org-mode users with much more sophisticated knowledge of CSS who
 may improve our initial efforts in time.

 One other alternative that comes to mind--while we're making impositions
 on Jason's kindness :)--is that it would be nice to have an alternate
 version of Worg published side-by-side with the original, only instead
 of publishing each page using org-publish-as-html, it could publish each
 page using only htmlize.  That way we could show off how nice Org-mode
 syntax can be when viewed from inside of Emacs, and users could see a
 side-by-side between the plain-text and html versions.  An example of
 this approach done successfully is Dan's Babel example at
 http://www.stats.ox.ac.uk/~davison/software/org-babel/drift.org.html

That sounds like a good idea.  Do you know exactly how to do this?

I added the following to org-publish-project-alist:

--8---cut here---start-8---
(worg-htmlize
 :base-directory ~/git/Worg/
 :base-extension org
 :html-extension org.html
 :publishing-directory /var/www/orgmode.org/worg/
 :recursive t
 :htmlized-source t
 :publishing-function htmlize)
--8---cut here---end---8---

But when I run:

--8---cut here---start-8---
(defun publish-worg-htmlize nil
   Publish Worg.
   (interactive)
   (add-hook 'org-publish-after-export-hook 'worg-fix-symbol-table)
   (let ((org-format-latex-signal-error nil)
 (org-startup-folded nil))
 (org-publish-project worg-htmlize)))
--8---cut here---end---8---

I get the error Symbol's function definition is void: publish-htmlize.
I made sure to (require 'htmlize).

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:


 One last change I would suggest, is that rather than use inline css for
 the highlighted source code, we use a css stylesheet by setting the 

   (setq org-export-htmlize-output-type 'css)

 Then use a single .css style sheet as done with the @import(emacs.css)
 in my previous submission.  I'm partial to the emacs.css bundled with my
 submission over the current code fontification, but that's just me.


 While we're fixing things, are there any objections to making the
 publishing change recommended above?  It should significantly reduce the
 size of pages which contain a large amount of source code, and will make
 it easier to adjust the fontification inside of code blocks.

I agree that org-export-htmlize-output-type should be set to 'css.

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 Eric Schulte schulte.e...@gmail.com writes:


 By the way, having the javascript section-folding enabled on only some
 pages is confusing and doesn't make for the best browsing experience.
 Now that the TOC will be collapsed by default, perhaps it's no longer
 needed?


 Yes the javascript is probably the culprit here, I agree that with the
 hidden TOC it is probably not required.  My preference would be to
 remove the section folding (and use of javascript) from Worg entirely.


 Is there a consensus on removing Javascript folding from *all* pages on
 Worg.  I think this would be an improvement both for the readability and
 stylistic coherence of the site.

 I am in favor of removing the javascript folding from all Worg pages.
 It would improve the consistency and experience of browsing Worg.

I made a version of the FAQ without the javascript folding:

http://orgmode.org/tmp/worg/org-faq-nojs.html
http://orgmode.org/tmp/worg/org-faq.html

It like it better, but it's still a bit unwieldy.  Maybe the FAQ just
needs to be reorganized.  See how Wikipedia does it:

http://en.wikipedia.org/wiki/Wikipedia:FAQ
http://en.wikipedia.org/wiki/Wikipedia:FAQ_Index

Matt or Bastien, do you have an opinion on reorganizing the FAQ?

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Matt Lundin m...@imapmail.org writes:

 My suggestion would be to go with Jason's css (combined with Eric's
 expandable table of contents) then have Eric's css and the old-worg 
 css available as alternative css.

 I like Jason's stylesheet, and have a couple of observations:

 1) h3 headers are indented, but the text beneath them is not.
- See 
 http://orgmode.org/tmp/worg-jason/org-tutorials/org-custom-agenda-commands.html#sec-2_1

Yes, that was intentional.  I wanted to keep the column width constant.

 2) h1 is a little bit off center, perhaps because of the org-mode logo?

I fixed this.

Thanks,
Jason

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 I made a version of the FAQ without the javascript folding:

 http://orgmode.org/tmp/worg/org-faq-nojs.html
 http://orgmode.org/tmp/worg/org-faq.html

 Thanks.  Nitpicking: I'd prefer paragraphs to be indented to the right
 (so that headines are always left from the text)  But just a matter of
 taste, of course.

I implemented this.  Example:
http://orgmode.org/tmp/worg-jason/org-dependencies.html

The variable column widths don't look bad like I thought they would.

 It like it better, but it's still a bit unwieldy.  Maybe the FAQ just
 needs to be reorganized.  See how Wikipedia does it:

 http://en.wikipedia.org/wiki/Wikipedia:FAQ
 http://en.wikipedia.org/wiki/Wikipedia:FAQ_Index

 Matt or Bastien, do you have an opinion on reorganizing the FAQ?

 I don't have a strong opinion about this: splitting the FAQ into
 org-faq-*.org comes to my mind, but it's a big task.  org-info-js, 
 while not optimal for *every* page on Worg, was doing a good job 
 on the FAQ.

Sometimes I come across one of those huge javascript-folded pages via a
Google search.  When I visit the page, I'm unable to find the content on
the page that I'm looking for because the browser search function
doesn't work.

Example: 
http://www.google.com/search?q=Why+aren't+items+disappearing+from+my+agenda+once+they+are+marked+done

Most people would go to the next Google result.  I usually end up
searching the HTML source.  I guess you could switch to Emacs and search
Worg, but I don't usually do that and Org-mode newbies certainly would
not do that.

I'd be happy to help reorganize the FAQ.  I think it would be a big help
to Org-mode noobs to be able to easily find information on Worg via
search engines.  Let me know how I can help.

___
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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Matt Lundin m...@imapmail.org writes:

 Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 Jason seems to be garnering a lot of votes, but Eric's zenburn
 emulation makes my eyes happy. If Jason wins out, I suppose I could
 always just read Worg in emacs... :D

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

 Could we perhaps go ahead and put the new stylesheets on Worg along with
 alternate stylesheet links in the publishing preamble? That way we could
 begin to tweak the stylesheets as a community and test them on the
 fly. (It would also save Jason the work of having to publish to tmp
 directories.) Others would then be free to add their own
 stylesheets---though I suppose that adding alternate stylesheet links
 will require access to the publishing options on the server.

The new stylesheet is in place now.

Eric,

Looks like there's a conflict with new TOC and the org-people page:

http://orgmode.org/worg/org-people.html

Can it be fixed?

___
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: Worg needs some reorganizing

2011-01-17 Thread Jason Dunsmore
I updated your first one and added your second one.  I also updated mine
to use your idea for the Org mascot.

So we have three options:

Option 1: http://orgmode.org/tmp/worg-jason/
Option 2: http://orgmode.org/tmp/worg-eric/
Option 3: http://orgmode.org/tmp/worg-eric2/

I think they're all a major improvement to Worg.  How should we move
forward with this?  Take a vote?

Regards,
Jason

___
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: Worg needs some reorganizing

2011-01-17 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 Jason Dunsmore ja...@dunsmor.com writes:

 I updated your first one and added your second one.  I also updated mine
 to use your idea for the Org mascot.

 So we have three options:

 Option 1: http://orgmode.org/tmp/worg-jason/
 Option 2: http://orgmode.org/tmp/worg-eric/
 Option 3: http://orgmode.org/tmp/worg-eric2/

 Wow!  I love this.  My preference goes to Jason's version: both plain
 simple and colorful.  I also love Eric's expandable table of contents:
 the one we have for now often clutters the page too much...

 I think they're all a major improvement to Worg.  

 So do I -- thanks for this!

 How should we move forward with this?  Take a vote?

 Matt's call :)

 My suggestion would be to go with Jason's css (combined with Eric's
 expandable table of contents) then have Eric's css and the old-worg 
 css available as alternative css.

Sounds good.  But first.. I noticed an issue with the expandable TOC on
a couple of pages:

http://orgmode.org/tmp/worg-eric/org-faq.html
http://orgmode.org/tmp/worg-eric/org-glossary.html

Does it have something to do with the javascript section-folding?

By the way, having the javascript section-folding enabled on only some
pages is confusing and doesn't make for the best browsing experience.
Now that the TOC will be collapsed by default, perhaps it's no longer
needed?

Regards,
Jason

___
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: Worg needs some reorganizing

2011-01-17 Thread Jason Dunsmore
Achim Gratz strom...@nexgo.de writes:

 Bastien bastien.gue...@wikimedia.fr writes:
 Wow!  I love this.  My preference goes to Jason's version: both plain
 simple and colorful.

 Please do not use fixed measures in pixels, points, inches or
 centimeters and prescribed font families.  Let this choice reside with
 the user, they know what fonts in which sizes are readable on their
 computer.  Relative font sizes with a 1.2 scaling factor or the symbolic
 fontsizes specified by CSS are more friendly.

 I also love Eric's expandable table of contents:
 the one we have for now often clutters the page too much...

 +1

 I think the unicorn icon should be a bit smaller so that the reserved
 space on top is not so large and it might be a quicklink back to the top
 worg page.  In Jasons version to me the space between list items, table
 rows, etc. looks a bit too large - but that should be easily tuned.

Good suggestions.

I made several unit changes from px to em, removed the line-height
property, and removed Georgia as the default font:

diff --git a/worg.css b/worg.css
index 9742965..ccb732a 100644
--- a/worg.css
+++ b/worg.css
@@ -4,2 +4 @@
-font:14px Georgia,serif;
-line-height:18px;
+font:0.9em serif;
@@ -44 +46 @@
-font-size:30px;
+font-size:2.1em;
@@ -67 +69 @@
-font-size:21px;
+font-size:1.45em;
@@ -80 +82 @@
-font-size:19px;
+font-size:1.3em;
@@ -88 +90 @@
-font-size:17px;
+font-size:1.2em;

In h2, h3, and h4, removing Arial as the font-family and letting the
browser use the default sans font looked ugly.  Is there a more general
way to specify an Arial-like font?

Properties that define how close the content comes to the unicorn image
still have px units because it needs to be an absolute value.

Let me know if this still looks good.

Regards,
Jason

___
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: Worg needs some reorganizing

2011-01-17 Thread Jason Dunsmore
Achim Gratz strom...@nexgo.de writes:

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:
 I made several unit changes from px to em, removed the line-height
 property, and removed Georgia as the default font:

 Well actually, relative font sizing works would be 'larger' and
 'smaller', which would take into account what fonts are actually
 available.  Specifying the fonts with percentages or em often ends up at
 a font size that is not available and must be scaled, which can look
 really bad.  But before I make a mess by trying to explain it, search
 for:

 css relative font sizes -w3schools

 I actually don't assign sizes in my own CSS and rely on the default
 sizes the browser delivers.  That may be too chancy for you since the
 defaults are bad in several older browsers, but it works well enough
 with all the modern ones.

 In h2, h3, and h4, removing Arial as the font-family and letting the
 browser use the default sans font looked ugly.  Is there a more
 general way to specify an Arial-like font?

 Sans-serif uses whatever the user has specified to be used for this
 font.  To me, Arial looks ugly and I'm using a different font there;
 I've also replaced serif with the same font because I've yet to find a
 website that actually reads better with a serif font.  Finally, I've
 also locked my fonts so I don't get overruled by some webdesigners idea
 of nice-looking and readable (which may well be true on their
 computer).  :-)

 BTW, sans is not a generic font family and might actually return a
 (pixel?) font installed on the system.  Last but not least, font
 families should be quoted and generic families not, e.g.:

 font: Georgia, sans-serif;
 font-size: medium; /* absolute specification decided by UA, user preference */

Hi Achim,

I've taken all of your advice to heart and created this improved CSS
file:

http://orgmode.org/tmp/worg-improved.css

:) Joking aside, please send me a patch or CSS file with your
suggestions implemented.

Regards,
Jason

___
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: Worg needs some reorganizing

2011-01-16 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

 I recall a discussion of holding a competition to select a new css style
 for Worg (found it here [1]).  I think that such a change could
 fruitfully be combined with the Worg re-organization.

I'm not a web-designer, but here's my stab at re-designing Worg:
http://orgmode.org/tmp/worg/

I think a good addition to Worg would be the option to view it with or
without the javascript section folding.  I personally prefer the entire
web page to be visible without clicking.  Is there a way to do this I'm
not aware of?

Regards,
Jason

___
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: Worg needs some reorganizing

2011-01-16 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 Eric Schulte schulte.e...@gmail.com writes:

 I recall a discussion of holding a competition to select a new css style
 for Worg (found it here [1]).  I think that such a change could
 fruitfully be combined with the Worg re-organization.

 I'm not a web-designer, but here's my stab at re-designing Worg:
 http://orgmode.org/tmp/worg/


 Nice, here's my minimal stylesheet contribution -- most notable for the
 expandable TOC in the corner.  The source is below [1] and the resulting
 style.css is attached below [2]

I've uploaded yours to:
http://orgmode.org/tmp/worg-eric/

So far we have option #1:

http://orgmode.org/tmp/worg/
http://orgmode.org/tmp/worg.css

and option #2:

http://orgmode.org/tmp/worg-eric/
http://orgmode.org/tmp/worg-eric.css

I didn't copy the images, so there will be some broken image links.

If anybody else wants to contribute one, here are a few commands to get
you started:

--8---cut here---start-8---
cd /tmp
wget http://orgmode.org/tmp/worg.tar.gz
tar zxvf worg.tar.gz
cd worg
wget http://orgmode.org/tmp/worg.css
find . -type f -exec sed -i 's|/worg/worg.css|worg.css|' '{}' \;
--8---cut here---end---8---

Then edit worg.css, view file:///tmp/worg/index.html in your browser to
see your changes take effect, and, when finished, send me the css file.

___
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: Worg needs some reorganizing

2011-01-16 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

 and option #2:

 http://orgmode.org/tmp/worg-eric/
 http://orgmode.org/tmp/worg-eric.css


 Thanks for putting this up, I see a problem in the current stylesheet,
 could you please apply the attached alternate version?

Okay, I uploaded the new version.

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


[Orgmode] Org-mode development workflow with Git

2011-01-12 Thread Jason Dunsmore
Hello,

I've been trying to fix more of the Org-mode issues I come across.  This
led me to a particular Git workflow that I documented on my blog:

http://blog.dunsmor.com/2011/01/keeping-a-private-development-branch-in-git-using-multiple-remotes/

I'd be interested to hear about other workflows or how mine might be
improved.

Regards,
Jason

___
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] [PATCH] Preserve trailing blank lines

2011-01-11 Thread Jason Dunsmore
Carsten Dominik carsten.domi...@gmail.com writes:

 On Jan 5, 2011, at 2:24 AM, Jason Dunsmore wrote:

 I like to leave a blank line at the end of items that have bodies,
 but I
 found functions like org-metaup, org-metadown, and org-refile were
 leaving that blank line behind.

 These commands treat empty lines as belonging to the entry
 below the empty line - which is, I think, the right convention here.

I now understand this is a formatting convention issue.  Here is an
updated patch that looks at the setting for `heading' in the variable
org-blank-before-new-entry:

diff --git a/lisp/org.el b/lisp/org.el
index 98c85d0..ee3f873 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -18477,7 +18477,9 @@ Taken from `count' in cl-seq.el with all keyword
argumen
   Move backwards over whitespace, to the beginning of the first empty
   line.
 Returns the number of empty lines passed.
   (let ((pos (point)))
-(skip-chars-backward  \t\n\r)
+(if (cdr (assoc 'heading org-blank-before-new-entry))
+   (skip-chars-backward  \t\n\r)
+  (forward-line -1))
 (beginning-of-line 2)
 (goto-char (min (point) pos))
 (count-lines (point) pos)))

___
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: IMPORTANT: Migration of org-mode.git to the new server on sunday 5pm-7pm CET (UTC+1)

2011-01-09 Thread Jason Dunsmore
Achim Gratz strom...@nexgo.de writes:

 Bastien bastien.gue...@wikimedia.fr writes:
 Please report any problem while pulling or cloning!

 All branches except master have disappeared.  Most notably, the maint
 branch is missing (I've only had master and maint cloned locally).

My bad.  I used git-clone with the --bare option instead of --mirror
when cloning from repo.or.cz.  It's fixed now.  Thanks for catching
this!

___
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: IMPORTANT: Migration of org-mode.git to the new server on sunday 5pm-7pm CET (UTC+1)

2011-01-09 Thread Jason Dunsmore
Konrad Hinsen konrad.hin...@fastmail.net writes:

 On 9 Jan 2011, at 17:05, Bastien wrote:

 If you already have a clone, please update your refs like this:

  ~$ cd your-existing-org-mode-repo/
  ~$ git config remote.origin.url git://orgmode.org/org-mode.git

 Is there an http version as well, for those of us behind nasty
 firewalls? I tried replacing git: by http:, but that doesn't seem to
 yield a valid repo URL.

Hi Konrad,

I just made the org-mode repo available via HTTP.  Try running:

git clone http://orgmode.org/org-mode.git

Regards,
Jason

___
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: IMPORTANT: Migration of org-mode.git to the new server on sunday 5pm-7pm CET (UTC+1)

2011-01-09 Thread Jason Dunsmore
Jambunathan K kjambunat...@gmail.com writes:

 Browser displays loopback address as title of the above URL.

This is because Gitweb requests are being proxied through Nginx to a
CGI-capable web server listening on localhost.  Fixed the title:

--8---cut here---start-8---
# diff gitweb.cgi{~,}
50,51c50
 our $site_name = 
  || ($ENV{'SERVER_NAME'} || Untitled) .  Git;
---
 our $site_name = Git;
--8---cut here---end---8---

___
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] Gitweb short URLs

2011-01-09 Thread Jason Dunsmore
I implemented some rewrite rules to make our Gitweb have
repo.or.cz-style short URLs.

Here are examples of the short URLs:

http://orgmode.org/w/org-mode.git/blob/22eae22:/.gitmodules
http://orgmode.org/w/org-mode.git/blob/lisp/org.el
http://orgmode.org/w/org-mode.git/commit/22eae22
http://orgmode.org/w/org-mode.git/commitdiff/22eae22
http://orgmode.org/w/org-mode.git/log/22eae22
http://orgmode.org/w/org-mode.git/shortlog/22eae22
http://orgmode.org/w/org-mode.git/tree/22eae22
http://orgmode.org/w/org-mode.git/tree/22eae22:/EXPERIMENTAL
http://orgmode.org/w/org-mode.git/summary

And here are the rewrite rules:

rewrite /w/$ /w/gitweb.cgi break;
rewrite /w/(.*)\.git$ /w/gitweb.cgi?p=$1.git break;
rewrite /w/(.*)\.git/summary$ /w/gitweb.cgi?p=$1.gita=summary break;
rewrite /w/(.*)\.git/(tree)/(.*)$ /w/gitweb.cgi?p=$1.gita=$2 break;
rewrite /w/(.*)\.git/(blob|tree)/(.*):/(.*)$ 
/w/gitweb.cgi?p=$1.gita=$2hb=$3f=$4 break;
rewrite /w/(.*)\.git/(blob)/(.*)$ /w/gitweb.cgi?p=$1.gita=$2f=$3 break;
rewrite /w/(.*)\.git/(commit|commitdiff|log|shortlog)/(.*)$ 
/w/gitweb.cgi?p=$1.gita=$2h=$3 break;

Regards,
Jason

___
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: IMPORTANT: Migration of org-mode.git to the new server on sunday 5pm-7pm CET (UTC+1)

2011-01-08 Thread Jason Dunsmore
Carsten Dominik carsten.domi...@gmail.com writes:

 On Jan 8, 2011, at 10:56 AM, Carsten Dominik wrote:


 On Jan 8, 2011, at 10:02 AM, Bastien wrote:

 Hi Bernt,

 Bernt Hansen be...@norang.ca writes:

 Is it really necessary to rebuild the org-mode git repository (with
 filter-branch) to remove the ORGWEBPAGES/ content.  Anyone with a
 clone
 and local branches of the existing repository will need to move
 all of
 these to the new repository.

 Would creating a commit to remove the ORGWEBPAGES directory in the
 existing repository not work just as well?  This will keep all of
 the
 existing SHA1s for historical commits intact.

 I think you're right.  Our goal was to remove ORGWEBPAGES/ into a new
 repo with a proper history of its own.  As Jason did that with
 success,
 I asked him to do the filtering for org-mode.git too -- which might
 be
 too much (my bad).

 Jason, Carsten, what is your take on this?

 I agree with Bernt.

 Sorry, let me be more specific.

 I am for moving the website to a separate repository.  THis makes a
 lot of sense.  It does require to the release process though, because
 my setup also used to update the webpage automatically.

 But I think that Bernt is right that it would be much better for users
 if the git repo remains in tact, so that moving simple means changing
 the pointer to the repo, and that local branches will survive.  So
 simple removing the webpage from the repo with a commit sounds like a
 good idea to me.

 I don't think moving the webpage into a special branch is the right
 solution.

I agree with Carsten and Bernt - keep the org-mode repo's history
intact, remove ORGWEBPAGE in a commit, and split off ORGWEBPAGE into its
own repo.

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


[Orgmode] [PATCH] org-export-htmlize-output-type docstring patch

2011-01-04 Thread Jason Dunsmore
The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.

I noticed the choices for org-export-htmlize-output-type aren't listed
in its docstring.  I had to load up the customize interface to see what
the choices were.  Here's a patch:

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 03a5975..8981708 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -499,8 +499,10 @@ a file.
 
 (defcustom org-export-htmlize-output-type 'inline-css
   Output type to be used by htmlize when formatting code snippets.
-We use as default  `inline-css', in order to make the resulting
-HTML self-containing.
+Choices are `css', to export the CSS selectors only, or `inline-css', to
+export the CSS attribute values inline in the HTML.  We use as default
+`inline-css', in order to make the resulting HTML self-containing.
+
 However, this will fail when using Emacs in batch mode for export, because
 then no rich font definitions are in place.  It will also not be good if
 people with different Emacs setup contribute HTML files to a website,

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


[Orgmode] [PATCH] Preserve trailing blank lines

2011-01-04 Thread Jason Dunsmore
I like to leave a blank line at the end of items that have bodies, but I
found functions like org-metaup, org-metadown, and org-refile were
leaving that blank line behind.  Here's a patch to fix that:

--8---cut here---start-8---
diff --git a/lisp/org.el b/lisp/org.el
index 5eb0bc8..e3d71b7 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -18448,7 +18448,7 @@ Taken from `count' in cl-seq.el with all keyword 
arguments
   Move backwards over whitespace, to the beginning of the first empty line.
 Returns the number of empty lines passed.
   (let ((pos (point)))
-(skip-chars-backward  \t\n\r)
+(forward-line -1)
 (beginning-of-line 2)
 (goto-char (min (point) pos))
 (count-lines (point) pos)))
--8---cut here---end---8---

I can't think of a reason you would want to leave trailing blank lines
behind, but in case some people rely on that behavior, here's an
alternate patch that creates an option called
org-preserve-trailing-blank-lines:

--8---cut here---start-8---
diff --git a/lisp/org.el b/lisp/org.el
index 5eb0bc8..e90798c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1098,6 +1098,11 @@ breaking the list structure.
(const :tag Always t)
(const :tag Auto auto)
 
+(defcustom org-preserve-trailing-blank-lines t
+  Non-nil means preserve blank lines at the end of an item.
+  :group 'org-edit-structure
+  :type 'boolean)
+
 (defcustom org-insert-heading-hook nil
   Hook being run after inserting a new heading.
   :group 'org-edit-structure
@@ -18448,7 +18453,9 @@ Taken from `count' in cl-seq.el with all keyword 
arguments
   Move backwards over whitespace, to the beginning of the first empty line.
 Returns the number of empty lines passed.
   (let ((pos (point)))
-(skip-chars-backward  \t\n\r)
+(if org-preserve-trailing-blank-lines
+   (forward-line -1)
+  (skip-chars-backward  \t\n\r))
 (beginning-of-line 2)
 (goto-char (min (point) pos))
 (count-lines (point) pos)))
--8---cut here---end---8---

If this is accepted, perhaps the function org-back-over-empty-lines
should be renamed to org-back-over-lines.

Regards,
Jason

___
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] Clicking on inline image causes Emacs to segfault when using dynamic cursors

2010-11-23 Thread Jason Dunsmore
The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.

1) What exactly did you do?

Evaluate the following Emacs config (dynamic cursor config is from
http://emacs-fu.blogspot.com/2009/12/changing-cursor-color-and-shape.html):

--8---cut here---start-8---
(add-to-list 'load-path ~/.emacs.d/org-mode/lisp)
(add-to-list 'load-path ~/.emacs.d/org-mode/contrib/lisp)
(require 'org-install)
(setq djcb-read-only-color   gray)
(setq djcb-read-only-cursor-type 'hbar)
(setq djcb-overwrite-color   red)
(setq djcb-overwrite-cursor-type 'box)
(setq djcb-normal-color  yellow)
(setq djcb-normal-cursor-type'bar)
(defun djcb-set-cursor-according-to-mode ()
  change cursor color and type according to some minor modes.
  (cond
(buffer-read-only
  (set-cursor-color djcb-read-only-color)
  (setq cursor-type djcb-read-only-cursor-type))
(overwrite-mode
  (set-cursor-color djcb-overwrite-color)
  (setq cursor-type djcb-overwrite-cursor-type))
(t 
  (set-cursor-color djcb-normal-color)
  (setq cursor-type djcb-normal-cursor-type
(add-hook 'post-command-hook 'djcb-set-cursor-according-to-mode)
--8---cut here---end---8---

Create the following org file:

--8---cut here---start-8---
#+STARTUP: inlineimages
[[file:/usr/local/share/emacs/23.2/etc/images/splash.png]]
--8---cut here---end---8---

Open the org-file and click on the image.

2) What did you expect to happen?

The image to be displayed in it's own buffer.

3) What happened instead?

Emacs crashed with Segmentation fault.

Versions:

Org-mode version 7.3 (release_7.3.120.g666e6)
GNU Emacs 23.2.1

___
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] Clicking on inline image causes Emacs to segfault when using dynamic cursors

2010-11-23 Thread Jason Dunsmore
Nick Dokos nicholas.do...@hp.com writes:

 Open the org-file and click on the image.
 
 2) What did you expect to happen?
 
 The image to be displayed in it's own buffer.
 

 Methinks that's not right: it's an inline image, you specify showing
 inline images on startup, so it should be shown inline, not in its own
 buffer.

If I remove the dynamic cursor code, load emacs, open the org file with
images, and *click on the image*, the image is shown in it's own buffer.
Is this not what is supposed to happen?

___
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: Themes Compatible with color-theme.el

2010-10-11 Thread Jason McBrayer
I've written an humane colour theme for Emacs, which can be found here:
http://bitbucket.org/jfm/color-theme-humane

It's somewhat a work in progress (needs Gnus colours), but is usable now.
Patches gratefully accepted.

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


Re: [Orgmode] Agenda and weather forecast

2010-09-09 Thread Jason McBrayer
Awesome tool. I've fixed a tiny bug, which was causing the invalid
sexp error for me.

-- 
Jason F. McBrayer
http://jfm.carcosa.net/


0001-Missing-.-in-org-google-weather-icon-alist.patch
Description: Binary data
___
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: Agenda and weather forecast | language and units

2010-09-09 Thread Jason McBrayer
On Thu, Sep 9, 2010 at 10:52 AM, Rafael rvf0...@gmail.com wrote:
 Juan Pechiar pech...@computer.org writes:

 E.g. %%(org-google-weather Montevideo,Uruguay es)

 Unfortunately, none of Pachuca, Pachuca,Mexico,
 Pachuca,Hidalgo,Mexico work for me (I get a Bad sexp error) :(
 (New York is fine, however..).

Apply my tiny patch from the other thread (or just customize
org-google-icon-alist to fix the missing . in chance_of_storm).
Strangely, it's the chance of a storm in your location, and not the
location itself that's causing the bad sexp error. Talk about a bug
depending on the weather!

-- 
Jason F. McBrayer
http://jfm.carcosa.net/

___
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: Trouble syncing files to mobile-org.

2010-08-26 Thread Jason Schadel
With help from Richard Moreland, I found my MobileOrg settings were wrong.
 I had 'Index File' set to Mobileorg/index.org when it should have been just
index.org.  Thanks for the help.

On Wed, Aug 25, 2010 at 11:29 AM, Jason Schadel jason.scha...@gmail.comwrote:

 I set it up using the Dropbox option.  When I try to sync, it only syncs
 index.org, mobileorg.org and agendas.org.  I looked in the checksums.dat
 file and noticed that those files are the only files that use 'md5' to
 generate the checksum.  The other files use 'shasum'.

 I've tried removing all the files and pushing them again but every time
 mobile-org just syncs index.org and mobileorg.org.

 After syncing, emacs shows the new items but after a push from emacs and
 resync on the iphone, the items disappear on the iphone.

 I'm using version 1.3 of mobileorg and org-mode version 7.01trans.

 Any ideas?

___
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-indent-mode (lack of) support for plain list

2010-08-03 Thread Jason Dunsmore
Artis Rozentāls artis.rozent...@gmail.com writes:

 I was happy to finally find a way to do soft line wrapping with
 org-indent-mode and visual-line-mode, unfortunately it seems that it
 doesn't support plain lists. Are there any plans to expand
 org-indent-mode to support the full markup of org-mode?

I think indentation of plain lists would be a good option for
org-indent-mode.

___
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] Tracking finances with Babel

2010-08-01 Thread Jason Dunsmore
Hello,

There was a thread on tracking finances with Org-mode back in May:
http://thread.gmane.org/gmane.emacs.orgmode/24877

I had a different solution to the problem which I documented on Worg:
http://orgmode.org/worg/org-contrib/babel/uses.php#tracking-finances

This is my first real use of Babel, so please let me know if there are
ways I can improve.

Regards,
Jason

___
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: Installation - no way

2010-07-28 Thread Jason McBrayer
On Tue, Jul 27, 2010 at 4:58 PM, Andrea Crotti
andrea.crott...@gmail.com wrote:
 Have a look also here
 http://www.ourcomments.org/Emacs/EmacsW32Util.html
 It looks a bit old and I'm not sure it contains org-mode but it should
 be a bit easier for beginners.

I'd also recommend this for Emacs beginners on Windows. EmacsW32 does
have org-mode, just a little out of date.

-- 
Jason F. McBrayer
http://jfm.carcosa.net/

___
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 files and auto-updating

2010-07-14 Thread Jason Guiditta
On Wed, Jul 14, 2010 at 4:30 PM, Carsten Dominik
carsten.domi...@gmail.comwrote:

 Hi Jason,

 from your description it is not really clear to me what your setup is.


 On Jul 12, 2010, at 8:41 PM, Jason Guiditta wrote:

  Hello, apologies if these questions are documented somewhere (in fact, I
 bet they are, just haven't been able to find them).  I am a newcomer to both
 orgmode and emacs in general, so I am still on the steep side of the
 learning curve.  I have spent several days poking around the documentation,
 watching some screencasts, looking at gmane, etc with no success solving my
 issue, so I hope someone can point me in the right direction.

 The group I work with is using orgmode to track tasks for our projects.
  This is currently in one big file (with various tags) that has at the
 bottom a dynamic table


 What do you mean by dynamic table?  Can you show us the relevant section
 of the file?

 Hi Carsten, sure, here is the wrapping chunk of code  (sorry I used the
wrong word, from page 69 of the manual, what I meant to say was 'Dynamic
Block'):

#+BEGIN: columnview :hlines 3 :id 85c58add-2c45-48d5-bff3-6b4cd4f5e20
  output
#+TBLFM:
#+END:

Hope that makes the rest of my question more clear, thanks for the response!

-j

- Carsten

  that we periodically export to html and put up on a server for easier
 viewing of the current state of tasks.  We store this project file in a git
 repo.  I have been asked to do two major things and two minor (at least in
 importance) things to streamline this.

 == Major ==
 1. Move this dynamic table out into its own file to reduce the size of the
 main project file (I am not the only one in the group not that familiar with
 emacs --yet).
 2. Have this table be updated/exported automatically when saving the
 project file.

 From what I have seen, dynamic tables are meant to just be another view of
 the data in a given file, so I am wondering if this is even the right
 approach.  The update/export seems likely to be some org-mode post-save
 command.  If this is the case, guess I'll have to figure out how to write
 some elisp  :-/

 == Minor ==
 1. After automatically updating/exporting the table file, upload that to
 our server as well.
 2. Commit the file to git from the buffer (pretty sure this is just a
 matter of using the git mode I have seen mentioned, but thought I'd throw it
 out there in case there is another suggestion).

 Hopefully these questions are reasonable and I haven't missed obvious
 directions on how to do these things.  I appreciate any assistance from
 members of the list.  (Also, really liking orgmode/emacs in general so far,
 fwiw).

 Thanks,

 -j
 ___
 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] Multiple files and auto-updating

2010-07-12 Thread Jason Guiditta
Hello, apologies if these questions are documented somewhere (in fact, I bet
they are, just haven't been able to find them).  I am a newcomer to both
orgmode and emacs in general, so I am still on the steep side of the
learning curve.  I have spent several days poking around the documentation,
watching some screencasts, looking at gmane, etc with no success solving my
issue, so I hope someone can point me in the right direction.

The group I work with is using orgmode to track tasks for our projects.
This is currently in one big file (with various tags) that has at the bottom
a dynamic table that we periodically export to html and put up on a server
for easier viewing of the current state of tasks.  We store this project
file in a git repo.  I have been asked to do two major things and two minor
(at least in importance) things to streamline this.

== Major ==
1. Move this dynamic table out into its own file to reduce the size of the
main project file (I am not the only one in the group not that familiar with
emacs --yet).
2. Have this table be updated/exported automatically when saving the project
file.

From what I have seen, dynamic tables are meant to just be another view of
the data in a given file, so I am wondering if this is even the right
approach.  The update/export seems likely to be some org-mode post-save
command.  If this is the case, guess I'll have to figure out how to write
some elisp  :-/

== Minor ==
1. After automatically updating/exporting the table file, upload that to our
server as well.
2. Commit the file to git from the buffer (pretty sure this is just a matter
of using the git mode I have seen mentioned, but thought I'd throw it out
there in case there is another suggestion).

Hopefully these questions are reasonable and I haven't missed obvious
directions on how to do these things.  I appreciate any assistance from
members of the list.  (Also, really liking orgmode/emacs in general so far,
fwiw).

Thanks,

-j
___
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: Crash of emacs when using SHIFT-TAB

2010-07-05 Thread Jason Dunsmore
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi

 my emacs is crashing quite regularly when I am using org-babel. Is
 there a way to get a traceback or something similar which I could
 submit to get an idea what is causing it?

 I think this has probably nothing to do with org-babel.  More likely,
 you are using org-indent-mode, on an Emacs version where it does not
 work.  Check the Org manual for the exact version of Emacs you need.

I was bitten by this same bug.  I narrowed it down to org-indent, but I
had no idea I should look in the manual to see which version of emacs
org-indent was compatible with.

Here's a patch that will make emacs display an error if org-indent is
loaded with an incompatible version of emacs:

--8---cut here---start-8---
diff --git a/lisp/org-indent.el b/lisp/org-indent.el
index 77411af..0ef8456 100644
--- a/lisp/org-indent.el
+++ b/lisp/org-indent.el
@@ -131,6 +131,18 @@ FIXME:  How to update when broken?
   (setq org-indent-mode nil)
 (if org-indent-mode
(progn
+  (destructuring-bind (maj min bld)
+  (mapcar 'string-to-number (split-string emacs-version [.]))
+(let ((msg Emacs 23.1.50.3 or greater is recommended for 
org-indent 
+  (when ( maj 23)
+(display-warning 'org msg :warning))
+  (when (= maj 23)
+(unless (= bld 50)
+  (display-warning 'org msg :warning)))
+  (when (and (= maj 23)
+ (= bld 50))
+(unless (= min 1)
+  (display-warning 'org msg :warning)
  (org-set-local 'indent-tabs-mode nil)
  (or org-indent-strings (org-indent-initialize))
  (when org-indent-mode-turns-off-org-adapt-indentation
--8---cut here---end---8---

Perhaps this would be better as a separate function:

--8---cut here---start-8---
(defun org-version-check (version feature level)
  (destructuring-bind (rmaj rmin rbld)
  (mapcar 'string-to-number (split-string version [.]))
(destructuring-bind (maj min bld)
(mapcar 'string-to-number (split-string emacs-version [.]))
  (let ((msg (format Emacs %s or greater is recommended for %s version
 feature)))
(when ( maj rmaj)
  (display-warning 'org msg level))
(when (= maj rmaj)
  (unless (= min rmin)
(display-warning 'org msg level)))
(when (and (= maj rmaj)
   (= min rmin))
  (unless (= bld rbld)
(display-warning 'org msg level)))
--8---cut here---end---8---

It could then be called with:

(org-version-check 23.1.50 org-indent :warning)

I made it display a warning because org-indent seems to work almost
perfectly with the version of emacs I'm running (23.1.1).

Regards,
Jason

___
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] AutOrg, and practice of GTD in a group

2010-06-24 Thread Jason McBrayer
On Thu, Jun 24, 2010 at 9:00 AM, Hellekin O. Wolf helle...@cepheide.org wrote:
 *** So you do maintain multiple NEXT actions per project?

Butting in on this, since I GTD with org-mode, and think the autorg
site is kind of neat, I do maintain multiple NEXT actions per project.
The caveat is that they must meet the following conditions:

1. Be independent of each other
2. All be currently doable in terms of resources and dependencies
3. Be feasible to get done before the next weekly review

Having more than one NEXT action on a project lets you move a project
forward even when you don't have the time/energy for one of them. The
caveat is that you can't let it become a to-do list. That's what #3 is
meant to avoid.

I struggle with this, but for me it's mainly a result of having too
many projects, so limiting myself to one next action on a project
wouldn't be that helpful.

-- 
Jason F. McBrayer
http://jfm.carcosa.net/

___
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] New implementation of the Org remember process ready for comments and testing

2010-06-23 Thread Jason McBrayer
This is really great. The templates are easier to read than the old
ones, and the file+datetree selector works really well with how I do
my work journal.

I do have one issue, which is that :clock-in and :clock-resume don't
seem to work right for me. I have both set on a template. It clocks
into the new headline (which I want, this is for dealing with
interruptions), and when I complete it, it says it's resuming the
interrupted clock. Unfortunately, the clock it resumes is the newly
started one on the new headline. Am I misunderstanding how this is
supposed to work?

-- 
Jason F. McBrayer
http://jfm.carcosa.net/

___
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: how to upgrade org-mode version?

2010-06-10 Thread Jason Dunsmore
Thanks for the follow-up, I corrected my config.

When I ran M-x org-info I saw the message Info-find-file: Info file
org does not exist.  Running make info to produce the org info file
resolved this.


___
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] begin_src generic source code

2010-04-30 Thread Jason McBrayer
On Fri, Apr 30, 2010 at 2:18 PM, Robert Klein rokl...@roklein.de wrote:
 is there a way to include generic source code in an org document?

 I'm trying to put excerpts from configuration files into an org document.

Have you tried #+begin_src conf ?

Conf-mode seems to reasonably support quite a few configuration file
modes, and I suppose it ought to handle your highlighting (etc) needs
in org-mode fairly well.


-- 
Jason F. McBrayer
http://jfm.carcosa.net/


___
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


<    1   2   3   4   >