[Orgmode] Re: Bind C-u C-c C-x C-i to a key

2010-08-12 Thread Andreas Burtzlaff
Markus Heller  writes:

> Hello all,
>
> I'd like to bind `C-u C-c C-x C-i' to the  key in emacs 23.
>
> I guess the line in my .emacs has to look like
>
> (global-set-key (kbd "") 'org-XXX-XXX)
>
> but what exactly would org-XXX-XXX be?
>
> I apologize if this is a question with an obvious answer ...

The C-u says that the function that is bound to the rest of the key
combination is called with the first argument being `t'.

To get information about the function bound to a key combination use:
C-h k 
and then press the key combination (without the C-u prefix).
In this case it is org-clock-in.

This should bind org-clock-in with argument `t' to F12:

(defun ab-org-clock-in-select ()
  (interactive)
  (org-clock-in t))

(global-set-key (kbd "") 'ab-org-clock-in-select)

Maybe there's a more elegant way I don't know about..

HTH

Andreas

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

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


[Orgmode] Re: FYI: Spanish translation of Org mode manual and blog post about "Timestamp calculations in Emacs with org-mode"

2010-08-09 Thread Andreas Burtzlaff
Carsten Dominik  writes:

> On Aug 9, 2010, at 10:14 PM, Nick Dokos wrote:
>
>> Carsten Dominik  wrote:
>>
>>>
>>> On Aug 9, 2010, at 9:50 PM, David Maus wrote:
>>>
 These two things recently hit my inbox:

 Timestamp calculations in Emacs with org-mode
 http://www.hollenback.net/index.php/EmacsOrgTimestamps
 (via emacswiki.org)

 Manual de Org
 http://gnu.manticore.es/manual-org-emacs
 (via emacswiki.org)
>>>
>>> I am now linking to this from the homepage.  Can anyone with a bit
>>> more spanish knowledge identify the translator, so that I can credit
>>> him?
>>>
>>
>> The Credits section has an "English" button that says:
>>
>> ,
>> | This site initially claims to be a sort of quasi-personal page with
>> | some suggestions and contributions on Emacs, as a framework for
>> ideas
>> | and projects that the manticore association has for the near future:
>> | therefore focuses considerably on the Internationalization (i18n)
>> and
>> | the "end users".
>> |
>> | I am smc here at manticore dot es. You can write me there if you
>> | wish, for matters relating to the GNU operating system and GNU Emacs
>> | and the like.
>> |
>> | This site was made with Drupal. It is not meant -yet- for the
>> massive
>> | registration of unoccupied surfers, so you will not see the option
>> to
>> | "register", but you can get it as always through ?q=user.
>> |
>> | Everything that is published here is under the terms of the GNU Free
>> | Documentation License (GFDL), the most updated version provided by
>> the
>> | Free Software Foundation (FSF). In the case of translations or
>> | documentation that has to do with official GNU packages, I transfer
>> | copyright to the FSF.
>> `
>
> No name here either, right?

But a hint:

"I am smc here at manticore dot es."

That's either an email address or some username at the site.

Here is the message announcing the translation:

http://gnu.manticore.es/node/638

Maybe they respond to a comment to that message?

Andreas


>
> - Carsten
>
>>
>> HTH,
>> Nick
>
> - 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
Andreas

___
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: keys and command name info

2010-08-09 Thread Andreas Burtzlaff
Carsten Dominik  writes:

> On Aug 9, 2010, at 12:26 AM, Gregor Zattler wrote:
>
>> Hi Carsten, org-mode developers,
>> * Carsten Dominik  [02. Aug. 2010]:
>>> I am not sure I would like such a change because I think it
>>> makes the manual harder and less fluid to read and considerably
>>> longer.
>>
>> It makes the manual longer as in bytes/bandwidth but not as in
>> lines which IMHO corresponds with the amount of time one needs to
>> read the manual.
>>
>> If it's consistent within the manual it's IMHO not confusing or
>> harder to read because it's easy to skip.
>>
>> To me actually this hints look like headings.  They would support
>> me in skimming a section of commands in order to find the right
>> one.  Those paragraphs with key sequences at the beginning are
>> hard to skim because all the info which stands out is not
>> relevant if one searches for a specific action.
>>
>> Seeing how the command is named in the context of usage
>> information might help lisp novices in getting an idea why some
>> solutions work the way they do.
>
> Hi Gregor, thanks for chiming in and summarizing your arguments.
> And that you say it makes it easier to find the right command
> may be a good argument to insert the command names.
>
> Some of the  original arguments, that these names would stick
> more easily and that it would make it easy for a hacker to
> find the command name for rebinding, these do not fly, I think.
> I don't think anyone calls Org commands with M-x, and if a
> hacker needs to find a command name, `C-h b' and in particular
> `C-h k' are the perfect ways to get to the names.
>
> I have put a version of the manual as modified by Andreas here:
>
>http://orgmode.org/org-manual-with-command-names.pdf
>
> Not all the command names are in there, but quite a few are.
> I'd like to hear from more people
>
> - if they would like to have the names there (i.e. if it would
>   help them finding a command)
> - if the position (first thing in the command description)
>   is right, or if it would be better to have it
>  - last thing in the description
>  - or after the first sentence, this is how the GNUS manual
>does it.

Having the function names in the manual at all makes it look a bit
overloaded and might lose us a couple of newbies, I think. Personally, I
would not have use for it.

If the names are included in the manual I strongly object to them being
at the beginning of the first sentence. The fixed starting column of the
sentences becomes variable and that makes it hard to skim through for
those who don't want to read the function names.

What about having them in the same line as the keybinding but aligned to
the right?

`C-c [' org-agenda-file-to-front
 Add current file to the list of agenda files.  The file is added to
 the front of the list.  If it was already in the list, it is moved
 to the front.  With prefix arg, file is added/moved to the end.

It would make the manual longer, but at least it looks clean.
It is easy to neglect the function names if one wants, and just as easy
to skim through them.

Andreas



>
> Thanks to Andreas for his work so far, and please, let me
> hear more opinions.
>
> - 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

___
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: [ANN] org-protocol-httpd

2010-08-04 Thread Andreas Burtzlaff
Hello Torsten,

Torsten Wagner  writes:

> Hi Andreas,
>
> this sounds very interesting and I would like to look further inside.
> The following idea just came to my mind:
> Might it be possible to use org-protocol-httpd as a server for
> mobileorg? Because this would allow to have a light-weight client on a
> smartphone (only to display the requested results) and to do all the
> magic within org-mode and emacs on the server side.
> E.g. I could ask the server to generate dynamically a particular
> html-export of an agenda and display it in a browser like application on
> my phone. Sure there need to be something like https and some other
> security measures if it operates as an public accessible server.

It is technically possible to make Emacs serve html exports of Org files
and Org agendas through http and provide functionality to edit them
through http requests. I thought of that too, but I'm not sure this
has real advantages over using a plain web server or Dropbox and the
likes, as MobileOrg does. After all not everybody has his own server.

The only remotely sensible thing I can think of at the moment is having
javascript code for viewing and sending changes to an Emacs server that
updates the html accordingly. That would be a platform independent port
of MobileOrg, without third-party services for syncing involved and
with an UI that is not really native to the device.

Anyway, I'm interested in your elaborations on this.

Andreas

>
> However, by using the original export functions of org-mode, there would
> be no need to parse org-files throw other programs to extract the
> necessary information.
>
> Running a emacs session on a server might be strange for some, but the
> smartphone application might even provide a way to connect over ssh to
> the emacs session. With this you would have easy viewing and simple
> editing of org-mode files and if needed a full featured org-mode session
> on your smartphone (yep I'm aware some here run emacs natively on there
> phone).
>
> Best regards
>
> Torsten
>
>
>
> On 08/04/2010 07:12 AM, Andreas Burtzlaff wrote:
>> Hello all,
>> 
>> org-protocol-httpd is an Http-server running in Emacs that responds to
>> requests where the path is:
>> 
>>  - an org-protocol action.
>>In this case the associated handler from org-protocol is executed.
>>  - an org-protocol-httpd action.
>>In this case the associated handler is executed 
>>and its return value is passed back to the client.
>> 
>> My reason for writing this is that I needed a proper way to retrieve
>> information from Emacs for use in Fireforg, but it might be interesting
>> for those of you having problems configuring protocols in Firefox as
>> well. For details on how to use it from a Firefox bookmark please refer
>> to the in-file documentation.
>> 
>> org-protocol-httpd.el is available in the lisp/ directory from the
>> 'org-protocol-httpd' branch on:
>> 
>> git://github.com/atheb/org-mode.git
>> 
>> (Please note, that the small change to org-protocol.el in that branch is
>> needed.)
>> 
>> Although I deem it stable, testing is very appreciated.
>> 
>> Andreas
>> 
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


[Orgmode] [ANN] org-protocol-httpd

2010-08-03 Thread Andreas Burtzlaff
Hello all,

org-protocol-httpd is an Http-server running in Emacs that responds to
requests where the path is:

 - an org-protocol action.
   In this case the associated handler from org-protocol is executed.
 - an org-protocol-httpd action.
   In this case the associated handler is executed 
   and its return value is passed back to the client.

My reason for writing this is that I needed a proper way to retrieve
information from Emacs for use in Fireforg, but it might be interesting
for those of you having problems configuring protocols in Firefox as
well. For details on how to use it from a Firefox bookmark please refer
to the in-file documentation.

org-protocol-httpd.el is available in the lisp/ directory from the
'org-protocol-httpd' branch on:

git://github.com/atheb/org-mode.git

(Please note, that the small change to org-protocol.el in that branch is
needed.)

Although I deem it stable, testing is very appreciated.

Andreas

___
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: Browsing worg

2010-07-30 Thread Andreas Burtzlaff
suvayu ali  writes:

> Hi everyone,
>
> I am new to org-mode. I was wondering if there was any way to browse
> worg content other than with a web browser. It would be really
> convenient if I could do it within emacs, maybe as info pages or .org
> files?

Sure, the html version of worg is generated from org files.
Just clone the repository with:

git clone http://repo.or.cz/r/Worg.git

and browse through the .org files.

Have a look here for additional information on how to contribute to
worg:

http://orgmode.org/worg/worg-git.php

HTH

Andreas

>
> Thanks for any responses.

___
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: Some problems with times in a spreadsheet

2010-07-22 Thread Andreas Burtzlaff
Cecil Westerhof  writes:

> Op woensdag 21 jul 2010 15:46 CEST schreef Juan:
>
>>> | # | Total hours | 16@ 15' 0" | 18@ 5' 0"  |
>>> | ^ | | totalTime1 | totalTime2 |
>>> |---+-++|
>>> #+TBLFM: $totalTime1=vsum(@-i...@-i); f2 :: $totalTime2=vsum(@-i...@-i); f2
>>
>>> First of all I would like to see 16.25 instead of 16@ 15' 0". Is this
>>> possible?
>>
>> Calc's "deg" function does this.
>>
>> use deg(vsum(...)) in the formulas
>
> That works. Thanks. I should learn calc. ;-}
>
> I now have (I already made changes):
> |---+-+--+--|
> | # | Total hours | 14.00| 6.00 |
> | ^ | | totalTime1   | totalTime2   |
> |   | Hourly rate | 40   | 50   |
> | ^ | | hourRate1| hourRate2|
> | # |  To declare | 560.00   | 300.00   |
> | ^ | | declaration1 | declaration2 |
> |---+-+--+--|
> #+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 :: 
> $totalTime2=deg(vsum(@-i...@-i)); f2 :: $declaration1=$totalTime1*$hourRate1; 
> f2 :: $declaration2=$totalTime2*$hourRate2; f2
>
> This works. One strange thing (not important I think, but I mention
> it), I needed to recalculate twice. The first time the 'Total hours'
> was displayed correctly, only the second time 'To declare' was
> displayed correctly.
>
> I have two formula's that I have to write for every column, I still
> would like to now if there is a way to only write them once.

No, I'm afraid not.

> I am not very happy with the long line of formula's. Especially when I
> have to repeat formula's. Would something like this be possible?
> #+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 ::
>  $totalTime2=deg(vsum(@-i...@-i)); f2 ::
>  $declaration1=$totalTime1*$hourRate1; f2 ::
>  $declaration2=$totalTime2*$hourRate2; f2
>

The formula editor ( C-c ' ) will display the formulas one per line and
make duplicating and changing them much easier.

HTH

Andreas

> This would at least make updating repeating formula's easier and
> easier to check.

___
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-mode release 7.01

2010-07-19 Thread Andreas Burtzlaff
Markus Heller  writes:

> Andreas Burtzlaff  writes:
>
>> Markus Heller  writes:
>>
>>> Carsten Dominik  writes:
>>>
>>> [snip]
>>>
>>>>
>>>> Thanks, thanks, thanks!
>>>>
>>>> Enjoy!
>>>>
>>>> - Carsten
>>>>
>>>> P.S. If you are trying to find the 7.01 release on the master branch
>>>> in the repository, you will not.  The releases are now on a new branch,
>>>> called "maint", which will contain only commits that are also releases.
>>>> This will make it easier to make minor fixes to a release while
>>>> development
>>>> continues on the master branch.
>>>
>>> This might be a bit OT, I apoligize, but how exactly do I get the new
>>> release with git?  I'm new to git, and I've tried the following:
>>>
>>> 1. Change the branch to maint
>>> 2. git pull git://repo.or.cz/org-mode.git maint
>>>
>>
>> That command tries to merge maint with the branch you're currently on -
>> most likely main.
>>
>> If you do not have manual changes in your working tree you can run
>>
>> git reset --hard
>>
>> to undo that merge.
>>
>>
>> I think what you want is:
>>
>> git pull
>> git checkout -t origin/maint
>
> Andreas,
>
> thanks for the reply, worked as advertised.
>
> Cheers
> Markus

Great, but thinking about it again, it is not necessary to switch to the
maint branch unless you want to stick to releases and not follow the bleeding 
edge of
development.

Andreas

>
>
> ___
> 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
Andreas

___
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-mode release 7.01

2010-07-19 Thread Andreas Burtzlaff
Markus Heller  writes:

> Carsten Dominik  writes:
>
> [snip]
>
>>
>> Thanks, thanks, thanks!
>>
>> Enjoy!
>>
>> - Carsten
>>
>> P.S. If you are trying to find the 7.01 release on the master branch
>> in the repository, you will not.  The releases are now on a new branch,
>> called "maint", which will contain only commits that are also releases.
>> This will make it easier to make minor fixes to a release while
>> development
>> continues on the master branch.
>
> This might be a bit OT, I apoligize, but how exactly do I get the new
> release with git?  I'm new to git, and I've tried the following:
>
> 1. Change the branch to maint
> 2. git pull git://repo.or.cz/org-mode.git maint
>

That command tries to merge maint with the branch you're currently on -
most likely main.

If you do not have manual changes in your working tree you can run

git reset --hard

to undo that merge.


I think what you want is:

git pull
git checkout -t origin/maint


Andreas


> All I get is a list of Merge conflicts from the Auto-merging as shown
> below.
>
> I must be doing something wrong, it'd be great if one of the git wizards
> could help me out :-)
>
> Thanks and cheers, and tons of thanks to Carsten and all contributors!!
> Markus
>
> The merge conflicts I get:
>
>>From git://repo.or.cz/org-mode
>  * branchmaint  -> FETCH_HEAD
> Auto-merging ORGWEBPAGE/index.org
> Auto-merging README_DIST
> CONFLICT (content): Merge conflict in README_DIST
> Auto-merging doc/org.texi
> CONFLICT (content): Merge conflict in doc/org.texi
> Auto-merging doc/orgcard.tex
> CONFLICT (content): Merge conflict in doc/orgcard.tex
> Auto-merging lisp/ob-C.el
> CONFLICT (content): Merge conflict in lisp/ob-C.el
> Auto-merging lisp/ob-R.el
> CONFLICT (content): Merge conflict in lisp/ob-R.el
> Auto-merging lisp/ob-asymptote.el
> CONFLICT (content): Merge conflict in lisp/ob-asymptote.el
> Auto-merging lisp/ob-clojure.el
> CONFLICT (content): Merge conflict in lisp/ob-clojure.el
> Auto-merging lisp/ob-comint.el
> CONFLICT (content): Merge conflict in lisp/ob-comint.el
> Auto-merging lisp/ob-css.el
> CONFLICT (content): Merge conflict in lisp/ob-css.el
> Auto-merging lisp/ob-ditaa.el
> CONFLICT (content): Merge conflict in lisp/ob-ditaa.el
> Auto-merging lisp/ob-dot.el
> CONFLICT (content): Merge conflict in lisp/ob-dot.el
> Auto-merging lisp/ob-emacs-lisp.el
> CONFLICT (content): Merge conflict in lisp/ob-emacs-lisp.el
> Auto-merging lisp/ob-eval.el
> CONFLICT (content): Merge conflict in lisp/ob-eval.el
> Auto-merging lisp/ob-exp.el
> CONFLICT (content): Merge conflict in lisp/ob-exp.el
> Auto-merging lisp/ob-gnuplot.el
> CONFLICT (content): Merge conflict in lisp/ob-gnuplot.el
> Auto-merging lisp/ob-haskell.el
> CONFLICT (content): Merge conflict in lisp/ob-haskell.el
> Auto-merging lisp/ob-keys.el
> CONFLICT (content): Merge conflict in lisp/ob-keys.el
> Auto-merging lisp/ob-latex.el
> CONFLICT (content): Merge conflict in lisp/ob-latex.el
> Auto-merging lisp/ob-lob.el
> CONFLICT (content): Merge conflict in lisp/ob-lob.el
> Auto-merging lisp/ob-matlab.el
> CONFLICT (content): Merge conflict in lisp/ob-matlab.el
> Auto-merging lisp/ob-mscgen.el
> CONFLICT (content): Merge conflict in lisp/ob-mscgen.el
> Auto-merging lisp/ob-ocaml.el
> CONFLICT (content): Merge conflict in lisp/ob-ocaml.el
> Auto-merging lisp/ob-octave.el
> CONFLICT (content): Merge conflict in lisp/ob-octave.el
> Auto-merging lisp/ob-perl.el
> CONFLICT (content): Merge conflict in lisp/ob-perl.el
> Auto-merging lisp/ob-python.el
> CONFLICT (content): Merge conflict in lisp/ob-python.el
> Auto-merging lisp/ob-ref.el
> CONFLICT (content): Merge conflict in lisp/ob-ref.el
> Auto-merging lisp/ob-ruby.el
> CONFLICT (content): Merge conflict in lisp/ob-ruby.el
> Auto-merging lisp/ob-sass.el
> CONFLICT (content): Merge conflict in lisp/ob-sass.el
> Auto-merging lisp/ob-screen.el
> CONFLICT (content): Merge conflict in lisp/ob-screen.el
> Auto-merging lisp/ob-sh.el
> CONFLICT (content): Merge conflict in lisp/ob-sh.el
> Auto-merging lisp/ob-sql.el
> CONFLICT (content): Merge conflict in lisp/ob-sql.el
> Auto-merging lisp/ob-sqlite.el
> CONFLICT (content): Merge conflict in lisp/ob-sqlite.el
> Auto-merging lisp/ob-table.el
> CONFLICT (content): Merge conflict in lisp/ob-table.el
> Auto-merging lisp/ob-tangle.el
> CONFLICT (content): Merge conflict in lisp/ob-tangle.el
> Auto-merging lisp/ob.el
> CONFLICT (content): Merge conflict in lisp/ob.el
> Auto-merging lisp/org-agenda.el
> CONFLICT (content): Merge conflict in lisp/org-agenda.el
> Auto-merging lisp/org-archive.el
> CONFLICT (content): Merge conflict in lisp/org-archive.el
> Auto-merging lisp/org-ascii.el
> CONFLICT (content): Merge conflict in lisp/org-ascii.el
> Auto-merging lisp/org-attach.el
> CONFLICT (content): Merge conflict in lisp/org-attach.el
> Auto-merging lisp/org-bbdb.el
> CONFLICT (content): Merge conflict in lisp/org-bbdb.el
> Auto-merging lisp/org-beamer.el
> CONFLICT (content): Merge conflict in lisp/

[Orgmode] Re: Bib system based on org-mode

2010-07-10 Thread Andreas Burtzlaff
Qiang Guo  writes:

> Hi, Community
>
> org-mode is a great tool to record and recognize
> things. Has anybody ever thought of using it as a
> bibliographical system as Endnote, and etc ?

Yes, the format you propose below is used by Fireforg. Have a look at
its documentation at:

http://orgmode.org/worg/org-devel.php

It's currently experimental and has some performance problems, but I
plan a stable and improved release after the feature freeze.


Andreas

>
> Right now, I am trying to organize my reference records in
> org-mode. This is handy because org-mode has some nice
> features such as :PROPERTY:, tags, ... For example, an entry
> could be like this
> /--/
> * Spectrum Sensing based on 
>   :PROPERTIES:
>   :author: XXX and XXX
>   :journal: Trans on Wireless Comm
>   :month: june
>   ...
>   :END:
>   ** Notes
>  Some notes can be put here. 
>
> /--/
>
> Of course, the record can be imported from any structured
> bib file such as bibtex files, endnote files by implementing
> some lisp code.
>
> Are there some other ways of using org-mode to organize
> paper records I don't know about ? Or are there any people
> interested in writing a extension or something to org-mode ?
> I am a elisp newbie, but I can of course join in such a
> project if there are such one.
>
> Cheers~
>
> Qiang
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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


[Orgmode] Re: [BUG] Shift-left and Shift-right reset time to 0:00

2010-05-08 Thread Andreas Burtzlaff
Nathaniel Flath  writes:

> Whenever I am on a timestamp with a time that isn't zero-filled, shift-left
> and right zero the time.  for example:
> <2010-05-08 Sat 2:00> becomes:
>   <2010-05-09 Sun 00:00>
> This does not occur for stamps of the form:
> <2010-05-08 Sat 02:00>

I reported that a while ago and the answer I got from Carsten was, that
single-digit hours are simply not allowed:

http://thread.gmane.org/gmane.emacs.orgmode/19883/focus=19935

Andreas

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


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


Re: [Orgmode] Re: Gmane readers - please subscribe

2010-04-27 Thread Andreas Burtzlaff
On Tue, 27 Apr 2010 20:02:50 +1000
Ben Finney  wrote:

> [...]
> For an infrequently-to-never used passphrase, one of two things is the
> case: either it's unique, or it is identical to the passphrase that
> accesses some other set of services for the user.
> 
> Since it's an infrequently-to-never accessed service, it's an
> unreasonable burden to expect the user to maintain unique passphrases
> for every such service. If for this list, why not for every such list?

An idea to generate unique passwords for different services is to take
the first N characters of the hash of a string that is the
concatenation of the domain name and a master password.
I have a page on my site that does just that in javascript.
No need to maintain anything.
Frequently used passwords are stored in firefox or occasionally even in
my head.

The equivalent bash command I use for the orgmode list is:

echo -n "lists.gnu.org" | md5sum | awk '{print substr ($1,0,7)}'

Andreas 




___
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 in org-table?

2010-04-08 Thread Andreas Burtzlaff

I have been able to reproduce the behaviour reported in the OP exactly once.
After adding a second table to the file the tooltip behaved as expected
and neither undoing nor starting from a fresh file could reproduce it

While experimenting I noticed that in the following table:

| Title1 | Title2 |
|+|
| 1. column, 1. rather long entry | 2. column, 1. rather long entry |
| 1. column, 2. rather long entry | 2. column, 2. rather long entry |
| <14>   | <14>   |

the tooltip texts for the "=>" in the second column are those of the
first column.

I'm running:

Emacs  : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.6)
 of 2010-04-05 on fluxx
Package: Org-mode version 6.35f (release_6.35f.1.g39c91.dirty)

Andreas 



On Thu, 8 Apr 2010 17:32:54 +0200
Rainer Thiel  wrote:

> 2010/4/7 Carsten Dominik :
> > this works just fine for me.
> 
> Many thanks to Carsten and David for their responses.  I'am a bit at a
> loss on where the problem may lay:  I have made a fresh installation
> of Emacs 23.1 and org-mode 6.35f -- and nothing else.
> 
> The .emacs init file contains nothing else but:
> 
> -->
> (require 'org-install)
> 
> <--
> 
> Yet, I am still experiencing the same problem:  When in the file:
> 
> -->
> | Col1   | Col2  | Col3  |
> |+---+---|
> | long table entry | sh. t. e. | sh. t. e. |
> | <10>   |   |   |
> 
> <--
> 
> the table is aligned properly (showing " long tab=> " in the first
> column), and I move the mouse cursor over that field, what is shown in
> the pop-up window is only "Clipped table field, use C-c ` to edit.
> Full value is:" and an empty line.
> 
> Since I am running Emacs under Windows (Vista) I am wondering if in
> programming this feature any assumptions might have been made about
> the behaviour of the operating system, assumptions Windows might not
> match?
> 
> Best regards, and many thanks for your help
> 
> Rainer
> -- 
> Prof. Dr. Rainer Thiel
> Dekan Philosophische Fakult__t
> 07737 Jena, Germany (EU)
> r.th...@uni-jena.de
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


Re: [Orgmode] Re: Bug in table formula editor?

2009-11-22 Thread Andreas Burtzlaff
Hello andrea,

On Sun, 22 Nov 2009 11:51:31 + (UTC)
andrea Crotti  wrote:

> Yes I'm sorry the table was too big and screwed up so I didn't copy the 
> formulas.
> Anyway it's everything here
> http://github.com/AndreaCrotti/my-project-euler/blob/master/euler.org
> 
> For the "bug" just go over the table
> - press C-c '
> - start typing a new formula with @+
> after that emacs hangs and not even C-g restores it...

I cannot reproduce this with Emacs 23.1.1 and org-6.33trans
release_6.33f.30.g011f.
If Emacs hangs completely it might be a bug in the Emacs core rather
then org-mode.

> I now would like to use only one formula in the whole rectangular area and 
> take the extension from the first header of the column.

@1

so your full formula would look like:

'(check_file (concat "prob_" A& "." (downcase @1)))

HTH

Andreas


___
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] [babel] Bug: Export code block before first heading

2009-11-20 Thread Andreas Burtzlaff
Exporting a file with a source block before the first heading, like:

#+BEGIN_SRC emacs-lisp

...

#+END_SRC 

to html yields the error 
"Before first headline at position 3 in buffer  org-mode-tmp"

A backtrace is attached.

Andreas

Emacs  : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.6)
 of 2009-11-18 on fluxx
Package: Org-mode version 6.33f (release_6.33f.16.ge103)
Debugger entered--Lisp error: (error "Before first headline at position 3 in 
buffer  org-mode-tmp")
  signal(error ("Before first headline at position 3 in buffer  org-mode-tmp"))
  error("Before first headline at position %d in buffer %s" 3 #)
  (condition-case nil (outline-back-to-heading invisible-ok) (error (error 
"Before first headline at position %d in buffer %s" ... ...)))
  org-back-to-heading(t)
  (progn (org-back-to-heading t) (point))
  (or beg (progn (org-back-to-heading t) (point)))
  (let* ((beg ...) (end ...)) (goto-char beg) (if (re-search-forward 
org-property-start-re end t) (setq beg ...) (if force ... ...) (goto-char beg) 
(if ... ...)) (if (re-search-forward org-property-end-re end t) (setq end ...) 
(or force ...) (goto-char beg) (setq end beg) (org-indent-line-function) 
(insert ":END:\n")) (cons beg end))
  (save-excursion (let* (... ...) (goto-char beg) (if ... ... ... ... ...) (if 
... ... ... ... ... ... ...) (cons beg end)))
  (catch (quote exit) (save-excursion (let* ... ... ... ... ...)))
  org-get-property-block()
  (let ((range ...)) (if (and range ... ...) (if ... ... "")))
  (if (member property org-special-properties) (cdr (assoc property ...)) (let 
(...) (if ... ...)))
  (if (and inherit (if ... ... t)) (org-entry-get-with-inheritance property) 
(if (member property org-special-properties) (cdr ...) (let ... ...)))
  (save-excursion (goto-char (or pom ...)) (if (and inherit ...) 
(org-entry-get-with-inheritance property) (if ... ... ...)))
  (save-excursion (if (markerp pom) (set-buffer ...)) (save-excursion 
(goto-char ...) (if ... ... ...)))
  (org-with-point-at pom (if (and inherit ...) (org-entry-get-with-inheritance 
property) (if ... ... ...)))
  org-entry-get(3 "exports" selective)
  (or (org-entry-get (point) header-arg (quote selective)) (cdr (assoc 
header-arg org-file-properties)))
  (let ((val ...)) (when val (cons ... val)))
  (lambda (header-arg) (let (...) (when val ...)))("exports")
  mapcar((lambda (header-arg) (let (...) (when val ...))) ("exports" "results" 
"session" "tangle" "var"))
  (delq nil (mapcar (lambda ... ...) (quote ...)))
  (progn (delq nil (mapcar ... ...)))
  (unwind-protect (progn (delq nil ...)) (set-match-data 
save-match-data-internal (quote evaporate)))
  (let ((save-match-data-internal ...)) (unwind-protect (progn ...) 
(set-match-data save-match-data-internal ...)))
  (save-match-data (delq nil (mapcar ... ...)))
  org-babel-params-from-properties()
  (org-babel-merge-params org-babel-default-header-args 
(org-babel-params-from-properties) (if (boundp lang-headers) (eval 
lang-headers) nil) (org-babel-parse-header-arguments 
(org-babel-clean-text-properties ...)))
  (list lang (with-temp-buffer (save-match-data ... ... ...)) 
(org-babel-merge-params org-babel-default-header-args 
(org-babel-params-from-properties) (if ... ... nil) 
(org-babel-parse-header-arguments ...)) switches)
  (let* ((lang ...) (lang-headers ...) (switches ...) (body ...) 
(preserve-indentation ...)) (list lang (with-temp-buffer ...) 
(org-babel-merge-params org-babel-default-header-args ... ... ...) switches))
  org-babel-parse-src-block-match()
  (setq info (org-babel-parse-src-block-match))
  (save-excursion (goto-char head) (setq info 
(org-babel-parse-src-block-match)) (forward-line -1) (when (looking-at ...) 
(setq info ...) (if ... ...) (unless header-vars-only ...)) info)
  (if (setq head (org-babel-where-is-src-block-head)) (save-excursion 
(goto-char head) (setq info ...) (forward-line -1) (when ... ... ... ...) info) 
(if (save-excursion ... ...) (org-babel-parse-inline-src-block-match) nil))
  (let ((case-fold-search t) head info args) (if (setq head ...) 
(save-excursion ... ... ... ... info) (if ... ... nil)))
  org-babel-get-src-block-info()
  (org-babel-exp-do-export (org-babel-get-src-block-info) (quote block))
  (and (re-search-backward org-babel-src-block-regexp nil t) 
(org-babel-exp-do-export (org-babel-get-src-block-info) (quote block)))
  (or (and (re-search-backward org-babel-src-block-regexp nil t) 
(org-babel-exp-do-export ... ...)) (and (re-search-backward org-block-regexp 
nil t) (match-string 0)) (error "Unmatched block [bug in 
`org-babel-exp-src-blocks']."))
  org-babel-exp-src-blocks(#("\n" 0 1 (fontified t font-lock-fontified t)) 
#("emacs-lisp" 0 10 (font-lock-fontified t fontified t)))
  apply(org-babel-exp-src-blocks #("\n" 0 1 (fontified t font-lock-fontified 
t)) #("emacs-lisp" 0 10 (font-lock-fontified t fontified t)))
  (if (memq type org-export-blocks-witheld) "" (apply func body headers))
  (progn (if (memq type org-export-blocks-withel

[Orgmode] Bug: Single digit hours part in timestamps [6.33f (release_6.33f.16.ge103)]

2009-11-20 Thread Andreas Burtzlaff

A single digit hours part like 9:00 is changed to 00:00 by
org-clone-subtree-with-time-shift and when using S- on it:

* Subtree to shift +1d with org-clone-subtree-with-time-shift
** An entry <2009-11-20 Fri 9:00>

Results in:

* Shifted subtree
** An entry <2009-11-21 Sat 00:00>

The same also happens with S- on the time part of the stamp.

I'm not quite sure a single digit hour is really according to the
specification, but it is displayed correctly in the agenda.

Andreas

Emacs  : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.6)
 of 2009-11-18 on fluxx
Package: Org-mode version 6.33f (release_6.33f.16.ge103)


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


Re: [Orgmode] Re: org-protocol bug

2009-11-11 Thread Andreas Burtzlaff
On Wed, 11 Nov 2009 10:06:36 +0100
Sebastian Rose  wrote:
> 
> Andreas, could you check if it works for you, too?
> 

Yes, it works with both 23 and 22.

Thanks for your effort.

Andreas


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


Re: [Orgmode] Sparse-tree at cursor point

2009-11-09 Thread Andreas Burtzlaff
Hello Marcelo,

On Mon, 9 Nov 2009 18:03:58 -0600
Marcelo de Moraes Serpa  wrote:

> Hello list,
> 
> The sparse-tree feature is very useful when you want to follow tasks of a
> specific project, and want to filter the whole org file to show only the
> relevant project tree. However, I did not find a way to apply this function
> to a specific tree at the cursor point. Sometimes, I want to act by project,
> and I know exactly where it is in the file, and I want to apply the sparse
> tree at this item, instead of searching by regexp, todo, etc. Is it
> possible?

Yes, that is possible by narrowing to the subtree.
While on the heading for the subtree you want to apply the sparse tree
function on press:
C-x n s (to narrow to the subtree)
C-c /
C-x n w (to widen the view to the whole file)

HTH

Andreas


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


Re: [Orgmode] getting Firefox tabs into org on a mac

2009-10-24 Thread Andreas Burtzlaff
On Fri, 23 Oct 2009 12:56:15 -0700
Samuel Wales  wrote:

> Minor correction and new error messages.
> 
> The process filter error message was probably due to not running the
> fireforg things in .emacs.  I had commented them out because they take
> several minutes to load the links in org-agenda-files, and when I
> restarted emacs to try to get fireforg to work, they didn't get run. 

Generating and looking up the registry doesn't scale well. With a huge
amount of links in the agenda files a proper database like sqlite would
be needed instead of generating a huge xml file that needs to be parsed
all the while. If I get time I might try that.

> Here are new error messages.
> 
> error in process filter: org-protocol-unhex-compound: Invalid
> character: 8211, #o20023, #x2013
> error in process filter: Invalid character: 8211, #o20023, #x2013

Using only the org-protocol bookmarks I get the same error with Emacs 22
but not with Emacs 23, when trying to remember the URL:
http://orgmode.org/worg/org-contrib/org-protocol.php

A full backtrace is attached.
8211 seems to be the &ndash in the title.

What Emacs version are you using?

Sebastian, any idea?

 -- Andreas


Debugger entered--Lisp error: (error "Invalid character: 8211, #o20023,
#x2013") char-to-string(8211)
  (concat ret (char-to-string sum))
  (setq ret (concat ret (char-to-string sum)))
  (progn (setq ret (concat ret ...)) (setq sum 0))
  (if (= 0 eat) (progn (setq ret ...) (setq sum 0)))
  (when (= 0 eat) (setq ret (concat ret ...)) (setq sum 0))
  (let* ((b ...) (a ...) (b ...) (c1 ...) (c2 ...) (val ...)
(shift ...) (xor ...)) (if (>= val 192) (setq eat shift)) (setq val
(logxor val xor)) (setq sum (+ ... val)) (if (> eat 0) (setq eat ...))
(when (= 0 eat) (setq ret ...) (setq sum 0))) (while bytes (let*
(... ... ... ... ... ... ... ...) (if ... ...) (setq val ...) (setq
sum ...) (if ... ...) (when ... ... ...))) (let* ((bytes ...) (ret "")
(eat 0) (sum 0)) (while bytes (let* ... ... ... ... ... ...)) ret)
org-protocol-unhex-compound("%20%E2%80%93%20") (let* ((start ...)
(end ...) (hex ...) (replacement ...)) (setq tmp (concat tmp ...
replacement)) (setq str (substring str end))) (while (string-match "\\(%
[0-9a-f][0-9a-f]\\)+" str) (let* (... ... ... ...) (setq tmp ...) (setq
str ...))) (let ((tmp "") (case-fold-search t)) (while (string-match "\
\(%[0-9a-f][0-9a-f]\\)+" str) (let* ... ... ...)) (setq tmp (concat tmp
str)) tmp) org-protocol-unhex-string("org-protocol.el%20%E2%80%93%
20Intercept%20calls%20from%20emacsclient%20to%20trigger%20custom%
20actions") mapcar(org-protocol-unhex-string ("http%3A%2F%2Forgmode.org%
2Fworg%2Forg-contrib%2Forg-protocol.php" "org-protocol.el%20%E2%80%93%
20Intercept%20calls%20from%20emacsclient%20to%20trigger%20custom%
20actions" "")) (if (fboundp unhexify) (mapcar unhexify split-parts)
(mapcar (quote org-protocol-unhex-string) split-parts)) (if unhexify
(if (fboundp unhexify) (mapcar unhexify split-parts) (mapcar ...
split-parts)) split-parts) (let* ((sep ...) (split-parts ...)) (if
unhexify (if ... ... ...) split-parts)) org-protocol-split-data("http%3A
%2F%2Forgmode.org%2Fworg%2Forg-contrib%
2Forg-protocol.php/org-protocol.el%20%E2%80%93%20Intercept%20calls%
20from%20emacsclient%20to%20trigger%20custom%20actions/" t) (let*
((parts ...) (template ...) (url ...) (type ...) (title ...)
(region ...) (orglink ...) remember-annotation-functions) (setq
org-stored-links (cons ... org-stored-links)) (kill-new orglink)
(org-store-link-props :type type :link url :description title :initial
region) (raise-frame) (org-remember nil (string-to-char template))) (if
(and (boundp ...) (fboundp ...)) (let* (... ... ... ... ... ... ...
remember-annotation-functions) (setq org-stored-links ...) (kill-new
orglink) (org-store-link-props :type type :link url :description
title :initial region) (raise-frame) (org-remember nil ...)) (message
"Org-mode not loaded.")) org-protocol-remember("http%3A%2F%2Forgmode.org
%2Fworg%2Forg-contrib%2Forg-protocol.php/org-protocol.el%20%E2%80%93%
20Intercept%20calls%20from%20emacsclient%20to%20trigger%20custom%
20actions/") funcall(org-protocol-remember "http%3A%2F%2Forgmode.org%
2Fworg%2Forg-contrib%2Forg-protocol.php/org-protocol.el%20%E2%80%93%
20Intercept%20calls%20from%20emacsclient%20to%20trigger%20custom%
20actions/") (throw (quote fname) (funcall func result)) (if greedy nil
(throw (quote fname) (funcall func result))) (unless greedy (throw
(quote fname) (funcall func result))) (progn (unless greedy
(throw ... ...)) (funcall func result) (throw (quote fname) t)) (if
(fboundp func) (progn (unless greedy ...) (funcall func result)
(throw ... t))) (when (fboundp func) (unless greedy (throw ... ...))
(funcall func result) (throw (quote fname) t)) (let* ((func ...)
(greedy ...) (splitted ...) (result ...)) (when
(plist-get ... :kill-client) (message "Greedy org-protocol handler.
Killing client.") (server-edit)) (when (fboundp func) (unless
greedy ...) (funcall func result) (throw ... t))) (progn 

Re: [Orgmode] getting Firefox tabs into org on a mac

2009-10-24 Thread Andreas Burtzlaff
Hi Samuel,

thanks for taking the time to report your findings and ideas.

On Fri, 23 Oct 2009 11:31:32 -0700
Samuel Wales  wrote:

> Hi Andreas,
> 
> On Tue, Oct 20, 2009 at 01:12, Andreas Burtzlaff  wrote:
> > I will add an entry to the tab context menu tonight to do this in one
> > step.
> 
> Thanks, kind of you.
> 
> > Concerning syncing I'm not sure I get your plan entirely. Is the main
> > purpose of it to synchronize the tabs between different browsers?
> 
> Yes, that would be nice.  Also, you don't want to save a
> duplicate of the same tab.

So this is a special case of having a list/tree of bookmarks
sychronized between Org, Firefox and other browsers.
It needs communication from Emacs to the browser plugin, which I had
working once. I'll try to revive that code when I get time.

> It might be useful to have more than one remember template:
> one for saving all tabs and one for saving one tab.

In the updated documentation take a look at the option
"List of characters specifying available remember templates".

> Another
> idea is to have a button on the status line that you can
> left click on to remember one tab.

Ok, that would save one click at the expense of the
status bar's cleaness. Would the middle mouse button do?

> 
> Apparent bugs and suggestions follow.  (Others not
> developing Fireforg need not read.)
> 
> ===
> 
> There was a setting that I didn't understand having to do
> with using DOI.  Perhaps how this works can be explained.
> Does it use the net?  You might want to mention that it
> stands for digital object identifier.

It searches for a Digital Object Identifier in the hmtl code of the
site shown. If "Prefetch links to extract" is enabled, it does so also
for all links in a website after it is loaded.
I've updated the documentation.

> I had to change head -1 to head -n 1 in the pull script to
> fix an error in head.  head is /sw/bin/head, perhaps from
> some fink or macports package.

That's fixed, thanks.

> Perhaps the error messages in emacs and ff can explain what
> you need to do to fix them.  Also, perhaps common
> non-working states can be checked for.  That would make it
> easier.
> 
> I used your suggested template:
> 
>   ("fireforg" ?w  "* %:description \n %:link %!")
> 
> Sometimes, nothing happens.  Other times, emacs opens a
> buffer that is blank.  It expects you to do c-x # to finish
> the buffer.  Currently nothing is happening, so I can't
> describe that one more fully.
> 
> At one point I got this error message.
> 
>   error in process filter: Setting current directory: no such
>   file or directory,
>   /Users/.../fireforg/org-protocol:/remember:/http%3A%2F%2F...

That all is a symptom of org-protocol not having been initialized.

> It might be nice to document whether any of the options will
> slow Firefox or Emacs down.  (Even if none of them do.)

Yes, done that.

> I noticed that the Read It Later extension no longer has a
> button.  Might be a coincidence.

I can't reproduce this with either order of installation. If this
persists could you please check whether there are any errors in
"Tools"->"Error console" concerning either of the plugins?

> Perhaps giving git instructions would make it easier to dl
> the .sh, .xpi, and .el all at once.  "git clone
> http://repo.or.cz/w/org-fireforg.git"; did not work.
> (Something about corruption; I don't have the output now.)

git clone http://repo.or.cz/r/org-fireforg.git

The directory "w" shows the website for the project.

 -- Andreas

> That is all the bug reporting I can do.  I will have to stop
> trying to get Fireforg to work.  I cannot make further
> attempts as debugging requires far too much physical use of
> keyboard and mouse.
> 
> Thanks.
> 
> 
> On Tue, Oct 20, 2009 at 17:00, Andreas Burtzlaff  wrote:
> > On Tue, 20 Oct 2009 10:12:42 +0200
> > Andreas Burtzlaff  wrote:
> >
> >> On Mon, 19 Oct 2009 20:40:54 -0700
> >> Samuel Wales  wrote:
> >>
> >> > I have a huge number of Firefox tabs that I want to get into
> >> > org.  Figuring out how has gotten complicated, despite good
> >> > documentation out there.
> >> >
> >> > I want simply title and url for each tab.
> >> >
> >> > Maybe like this:
> >> >
> >> >   * Firefox tabs
> >> >     * Public Git Hosting - Worg.git/summary
> >> >   http://repo.or.cz/w/Worg.git
> >> >     * Google Search
> >> >   http://www.google.com
> >> >
> >> > Would be nice to get fancier by allowing annotatio

Re: [Orgmode] [PATCH 3/3] Some small fixes in org-registry.

2009-10-21 Thread Andreas Burtzlaff

Here's a clean rewrite of org-registry-assoc-all and
org-registry-find-all that also fixes a small bug:

---
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 8524c9f..313fc74 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-22  Andreas Burtzlaff  
+
+   * lisp/org-registry.el (org-registry-assoc-all): Clean rewrite
+   (org-org-registry-find-all): Clean rewrite
+
 2009-10-19  James TD Smith  
 
* lisp/org-registry.el (org-registry-assoc-all): Stop this from
diff --git a/contrib/lisp/org-registry.el b/contrib/lisp/org-registry.el
index 01b2fc8..ad382f0 100644
--- a/contrib/lisp/org-registry.el
+++ b/contrib/lisp/org-registry.el
@@ -145,19 +145,16 @@ buffer."
 
 (defun org-registry-assoc-all (link &optional registry)
   "Return all associated entries of LINK in the registry."
-  (let ((reg (copy-list (or org-registry-alist registry))) entry
output)
-(while (setq entry (assoc link reg))
-  (add-to-list 'output entry)
-  (setq reg (delete entry reg)))
-(nreverse output)))
+  (org-registry-find-all 
+   (lambda (entry) (string= link (car entry)))
+   registry))
 
 (defun org-registry-find-all (test &optional registry)
   "Return all entries satisfying `test' in the registry."
-  (let ((reg (copy-list (or org-registry-alist registry))) entry
output)
-(while (setq entry (find-if test reg))
-  (add-to-list 'output entry)
-  (setq reg (delete entry reg)))
-(nreverse output)))
+  (delq nil 
+(mapcar 
+ (lambda (x) (and (funcall test x) x)) 
+ (or registry org-registry-alist
 
 ;;;###autoload
 (defun org-registry-visit ()
---

On Wed, 21 Oct 2009 10:43:13 +0200
Carsten Dominik  wrote:

> Applied, thanks.
> 
> - Carsten
> 
> On Oct 20, 2009, at 4:51 AM, James TD Smith wrote:
> 
> > org-registry-assoc-all removed matching links from the registry.  
> > This meant
> > subsequent calls with the same parameters would return nothing.
> >
> > Add another function for finding entries in the register, which used  
> > find-if to
> > get entries satisfying a predicate.
> > ---
> > contrib/ChangeLog|9 +++--
> > contrib/lisp/org-registry.el |   40 +++ 
> > +
> > 2 files changed, 31 insertions(+), 18 deletions(-)
> >
> > diff --git a/contrib/ChangeLog b/contrib/ChangeLog
> > index e30c28f..8524c9f 100644
> > --- a/contrib/ChangeLog
> > +++ b/contrib/ChangeLog
> > @@ -1,3 +1,10 @@
> > +2009-10-19  James TD Smith  
> > +
> > +   * lisp/org-registry.el (org-registry-assoc-all): Stop this from
> > +   deleting the links it finds from the registry.
> > +   (org-registry-find-all): Add a new function which returns all
> > +   registry entries which satisfy a test function.
> > +
> > 2009-10-02  Carsten Dominik  
> >
> > * lisp/org-special-blocks.el (org-special-blocks-ignore-regexp):
> > @@ -284,5 +291,3 @@
> > * lisp/org-irc.el: New file.
> >
> > * ChangeLog: New file.
> > -
> > -
> > diff --git a/contrib/lisp/org-registry.el b/contrib/lisp/org- 
> > registry.el
> > index f8d3d61..01b2fc8 100644
> > --- a/contrib/lisp/org-registry.el
> > +++ b/contrib/lisp/org-registry.el
> > @@ -39,25 +39,25 @@
> > ;;
> > ;; This is were org-registry comes in handy.
> > ;;
> > -;; M-x org-registry-show will tell you the name of the file
> > +;; M-x org-registry-show will tell you the name of the file
> > ;; C-u M-x org-registry-show will directly jump to the file
> > ;;
> > -;; In case there are several files where the link lives in:
> > +;; In case there are several files where the link lives in:
> > ;;
> > ;; M-x org-registry-show will display them in a new window
> > ;; C-u M-x org-registry-show will prompt for a file to visit
> > ;;
> > ;; Add this to your Org configuration:
> > -;;
> > +;;
> > ;; (require 'org-registry)
> > ;; (org-registry-initialize)
> > ;;
> > ;; If you want to update the registry with newly inserted links in the
> > ;; current buffer: M-x org-registry-update
> > -;;
> > +;;
> > ;; If you want this job to be done each time you save an Org buffer,
> > ;; hook 'org-registry-update to the local 'after-save-hook in org- 
> > mode:
> > -;;
> > +;;
> > ;; (org-registry-insinuate)
> >
> > ;;; Code:
> > @@ -94,7 +94,7 @@ buffer."
> >  (match-string-no-properties 1 blink)))
> >  (desc (or (and (string-match org-bracket-link-regexp blink)
> > (match-str

Re: [Orgmode] getting Firefox tabs into org on a mac

2009-10-20 Thread Andreas Burtzlaff
On Tue, 20 Oct 2009 10:12:42 +0200
Andreas Burtzlaff  wrote:

> On Mon, 19 Oct 2009 20:40:54 -0700
> Samuel Wales  wrote:
> 
> > I have a huge number of Firefox tabs that I want to get into
> > org.  Figuring out how has gotten complicated, despite good
> > documentation out there.
> > 
> > I want simply title and url for each tab.
> > 
> > Maybe like this:
> > 
> >   * Firefox tabs
> > * Public Git Hosting - Worg.git/summary
> >   http://repo.or.cz/w/Worg.git
> > * Google Search
> >   http://www.google.com
> > 
> > Would be nice to get fancier by allowing annotations (for
> > use by fireforg?).  And allowing syncing back and forth.
> > But first, I just want to get started.
> >
> > I envision two ways of doing this.  Maybe there are more.
> > 
> >   1) Have emacs or a script convert one of the folders in
> >  the bookmark file to an org outline as above.
> >   2) Have org-mac-protocol set up for individual tabs to be
> >  clicked to get them remembered.
> > 
> > If I do (2), then I'd want it to be easy.  That is, without
> > having to switch from mouse to keyboard.  But does (2) work
> > on a Mac?  Last I heard, org-mac-protocol works for Safari,
> > but not Firefox.
> 
> Fireforg has a workaround for Macs:
> http://orgmode.org/worg/org-devel.php#sec-1.2.6
> 
> So you could select the tabs one after another and trigger remember
> from the Fireforg status bar menu. (This menu is accessible by right
> clicking on the status bar entry.)
> 
> I will add an entry to the tab context menu tonight to do this in one
> step.

With the latest version it is possible to pass all tabs to remember
by selecting "All tabs"-> "remember (..)" in the status bar menu.
This only makes sense when using a remember template that stores the
note automatically ("%!" in the template string).

Your proposed format would be:
"* %:description \n %:link %!"

If the mac workaround is enabled and the latest version of pull.sh is used, then
this should also work on a Mac.

Andreas

> Concerning syncing I'm not sure I get your plan entirely. Is the main
> purpose of it to synchronize the tabs between different browsers?
> 
> Andreas
> 
> > Ideas very welcome.  I am stuck here.
> > 
> > Thanks.
> > 
> > 
> > P.S.  I /also/ have a huge number of Safari tabs and a huge
> > number of emacs-w3m tabs.  I've found those also difficult
> > to orgify.  So ideas here are also welcome.  But Firefox is
> > more important now.
> > 
> > 
> > ___
> > Emacs-orgmode mailing list
> > Remember: use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> 
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


Re: [Orgmode] getting Firefox tabs into org on a mac

2009-10-20 Thread Andreas Burtzlaff
On Mon, 19 Oct 2009 20:40:54 -0700
Samuel Wales  wrote:

> I have a huge number of Firefox tabs that I want to get into
> org.  Figuring out how has gotten complicated, despite good
> documentation out there.
> 
> I want simply title and url for each tab.
> 
> Maybe like this:
> 
>   * Firefox tabs
> * Public Git Hosting - Worg.git/summary
>   http://repo.or.cz/w/Worg.git
> * Google Search
>   http://www.google.com
> 
> Would be nice to get fancier by allowing annotations (for
> use by fireforg?).  And allowing syncing back and forth.
> But first, I just want to get started.
>
> I envision two ways of doing this.  Maybe there are more.
> 
>   1) Have emacs or a script convert one of the folders in
>  the bookmark file to an org outline as above.
>   2) Have org-mac-protocol set up for individual tabs to be
>  clicked to get them remembered.
> 
> If I do (2), then I'd want it to be easy.  That is, without
> having to switch from mouse to keyboard.  But does (2) work
> on a Mac?  Last I heard, org-mac-protocol works for Safari,
> but not Firefox.

Fireforg has a workaround for Macs:
http://orgmode.org/worg/org-devel.php#sec-1.2.6

So you could select the tabs one after another and trigger remember
from the Fireforg status bar menu. (This menu is accessible by right
clicking on the status bar entry.)

I will add an entry to the tab context menu tonight to do this in one
step.

Concerning syncing I'm not sure I get your plan entirely. Is the main
purpose of it to synchronize the tabs between different browsers?

Andreas

> Ideas very welcome.  I am stuck here.
> 
> Thanks.
> 
> 
> P.S.  I /also/ have a huge number of Safari tabs and a huge
> number of emacs-w3m tabs.  I've found those also difficult
> to orgify.  So ideas here are also welcome.  But Firefox is
> more important now.
> 
> 
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


Re: [Orgmode] to bookmarks

2009-09-26 Thread Andreas Burtzlaff
On Sat, 26 Sep 2009 13:59:49 + (UTC)
andrea Crotti  wrote:

> Bookmarks from org-mode:
>
>I insert many many links inside my orgmode but sometimes I would also like 
> to have them in my 
> browsers (safari and firefox sometimes).
>
>Is there already something working out of the box?

How about exporting the org file to html and open that with your
browser?
Perhaps create a sparse tree for all links in the file first, e.g.:

(defun ab-org-sparse-tree-show-links ()
  (interactive)
  (org-occur org-any-link-re))

and then only export the visible content using C-c C-e v h

Andreas

P.S. I planned such a feature for Fireforg but haven't implemented it
yet; partly because I haven't figured out how to filter and export an
org-file structure to xml in a customizable way, without reinventing
the wheel.

>
>The hierarchy like
>
>* level1
>** level2
>   [[http://sito.com][sito]]
>
> Should maybe create directories, for a cleaner view..
> 
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


Re: [Orgmode] Question on spreadsheet formula

2009-09-25 Thread Andreas Burtzlaff
Hi,

you could rewrite the formula using vertical sums:

|-+--+--+---|
| No. |P |E | B |
|-+--+--+---|
|   1 | 5000 | 2000 |  3000 |
|   2 | 7000 | 1000 |  9000 |
|   3 | 5000 | 1000 | 13000 |
#+TBLFM: $4=vsum(@-i$...@0$2)-vsum(@-i$...@0$3)

HTH

Andreas


On Sat, 26 Sep 2009 03:08:11 + (UTC)
RC  wrote:

> Hi,
> On applying the column formula on the table shown below:
>   |-+--+--+--|
>   | No. |P |E | B|
>   |-+--+--+--|
>   | |  |  | 0|
>   |   1 | 5000 | 2000 |  |
>   |   2 | 7000 | 1000 |  |
>   |   3 | 5000 | 1000 |  |
> #+TBLFM: $...@-1$4+$2-$3
> 
> I get:
>   |-+--+--+---|
>   | No. |P |E | B |
>   |-+--+--+---|
>   | |  |  | B |
>   |   1 | 5000 | 2000 | B + 3000  |
>   |   2 | 7000 | 1000 | B + 9000  |
>   |   3 | 5000 | 1000 | B + 13000 |
> #+TBLFM: $...@-1$4+$2-$3
> 
> When what I would like is:
>   |-+--+--+---|
>   | No. |P |E | B |
>   |-+--+--+---|
>   | |  |  | 0 |
>   |   1 | 5000 | 1000 | 3000  |
>   |   2 | 5000 | 1000 | 9000  |
>   |   3 | 5000 | 1000 | 13000 |
> #+TBLFM: $...@-1$4+$2-$3
> 
> Is there a way I can restrict application of the column formula to below the
> horizontal line.
> Thanks,
> RC
> 
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


Re: [Orgmode] [PATCH] Org-mode version 6.30trans (release_6.30d.19.g1db9); Last character in file not folded correctly

2009-09-07 Thread Andreas Burtzlaff
On Mon, 07 Sep 2009 17:59:14 +0200
David Maus  wrote:

> 
> According to Carsten this misbehaviour is not Orgmode's fault, but
> Outline-Mode's
> 
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg16542.html
> 
> and should be reported as a bug in Emacs23 (what I do use, too).
> 
> *But*: I didn't file a bugreport for Emacs because I cannot reproduce
> this misbehavior outside Orgmode. It's indeed (hide-subtree) that
> causes the last char beneath a headline be displayed after the
> three-dots-thingy but (hide-subtree) behaves fine when used in 'pure'
> outline-mode.

It was indeed org-modes rewrite of outline-end-of-subtree that
triggered the misbehaviour.

Here's the patch:

--8<---cut here---start->8---
diff --git a/lisp/org.el b/lisp/org.el
index 74d7f78..c75f1b9 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16880,7 +16880,7 @@ If there is no such heading, return nil."
   (if (eq major-mode 'org-mode)
   (progn
(org-end-of-subtree nil t)
-   (backward-char 1))
+   (if (not (eobp)) (backward-char 1)))
 ad-do-it))
 
 (defun org-forward-same-level (arg &optional invisible-ok)
--8<---cut here---end--->8---

Andreas


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


[Orgmode] Org-mode version 6.30trans (release_6.30d.19.g1db9); Last character in file not folded correctly

2009-09-07 Thread Andreas Burtzlaff


The last character in a file is not folded correctly,e.g:



* fold this heading

The following X is the *last character* in the file: X


yields:


* fold this heading...X



Emacs  : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.7)
 of 2009-08-21 on fluxx
Package: Org-mode version 6.30trans (release_6.30d.19.g1db9)


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


Re: [Orgmode] Re: Some table questions

2009-09-04 Thread Andreas Burtzlaff
On Fri, 04 Sep 2009 12:46:02 +0200
andrea crotti  wrote:

> Carsten Dominik  writes:
> 
> > No, this is not possible currently.
> >
> 
> Well but I can set up formulas for an entire column like for example:
> 
> | 1 | 1 |
> | 2 | 4 |
> #+TBLFM: $2=$1^2
> 
> If I could hide one column with another setting than I would be able to
> apply the formula on a hidden field..
> 
> I'm not sure it's so easy to do though, but it could open other
> possibilities, no?

It is possible to apply a formula only to one column, e.g.:
| 1 | a | q |
| 2 | b | r |
#+TBLFM: $...@0+10

will add 10 to all entries in the first column.

As for your encryption/decryption example, you can invoke a lisp
function on every item in a column, as described in the manual:
http://orgmode.org/manual/Formula-syntax-for-Lisp.html
e.g:

| readable | secret |
| text | text   |
#+TBLFM: $2='(rot13-string @0)

For real encryption/decryption toggling one could prepend a special
character to each entry to indicate whether it is currently
encrypted or not.

Andy


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


Re: [Orgmode] Fireforg: org-protocol mac workaround and BibTeX import using Zotero

2009-08-17 Thread Andreas Burtzlaff
On Mon, 17 Aug 2009 15:17:25 +0100
Eric S Fraga  wrote:

> At Sun, 16 Aug 2009 11:52:16 +0200,
> Andreas Burtzlaff wrote:
> > 
> > 
> > 
> > Fireforg is now capable of sending a BibTeX entry for every item
> > imported into Zotero to Org. For details see the doc at
> > http://orgmode.org/worg/org-devel.php#fireforg
> 
> Andreas,
> 
> you've convinced me that it's about time I played around with Zotero
> (got it, installed it, working, loving it!), org-protocol (got it,
> installed it, working!) and fireforg (got it, installed it, not sure
> if it's working...).
> 
> At one point, your instructions say: Set "Inject Zotero" in the
> preference dialog.
> 
> I have no idea where to set this!  Can you please point me in the
> right direction?  The zotero preferences dialogue has no mention of
> injecting anything and I don't know of any preference dialogue for
> fireforg et al.

The Fireforg extension has its own preferences dialogue accessible under
Tools->Add-ons->Fireforg->Preferences, as all extensions have.

Sorry, that this was not as intuitive as I thought :-|
I'll make the documentation a bit more verbose.

Andreas


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


[Orgmode] Fireforg: org-protocol mac workaround and BibTeX import using Zotero

2009-08-16 Thread Andreas Burtzlaff


Fireforg is now capable of sending a BibTeX entry for every item
imported into Zotero to Org. For details see the doc at
http://orgmode.org/worg/org-devel.php#fireforg


I've added a workaround for the broken protocol registration in
Firefox, that keeps mac users from enjoying org-protocol:
- Set "Mac Workaround" in Fireforgs preferences.
- run pull.sh from
http://repo.or.cz/w/org-fireforg.git?a=blob_plain;f=ff_mac_workaround/pull.sh;hb=HEAD

It works by writing the string to be passed to emacsclient to a
temporary file, whose content - if not empty - is passed to emacsclient
every second.

It will work for everything fireforg sends, but will of course not make
the bookmarks work.

I've tested it on linux, but be careful.

Andreas


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


Re: [Orgmode] Workflow for attaching, linking, and saving bibtex links together with notes?

2009-08-12 Thread Andreas Burtzlaff

The use case is very similar to the one I'm starting to get comfortable
with, so here is my vision:

Fireforg could download the pdf , use Zotero's translators to extract
bibliography information and other metadata from a site, and send that
and the file's path to org. There, this information becomes a heading
with properties, like this:

* [[][]] 
  :PROPERTIES:
   :ID: 
   :CUSTOM_ID: 
   :BIB_TYPE:  
   :BIB_AUTHORS: ...
   :BIB_TITLE: ...
   ...
   :URL: ...
   :END:

All further notes go into that subtree.
A lisp function generates bibtex entries from these properties for headings,
optionally filtered by tag, property, occurrence of links to it in a certain 
file, etc.

That way, all information is inside the org file and the entry has a
unique id throughout.

In search results fireforg will mark those entries already imported to
your org files and let's you visit all notes about them.

There are some hurdles to take, though, but it's not overly complicated.
Anyone willing to join in, to make this reality?

Andreas

P.S. Didn't check whether such an idea came up before on the list.
PP.S There was a similar question in this thread:
http://thread.gmane.org/gmane.emacs.orgmode/14756/


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


Re: [Orgmode] Fireforg and the mac

2009-08-10 Thread Andreas Burtzlaff
On Mon, 10 Aug 2009 10:14:55 -0500
Robert Goldman  wrote:

> Is Fireforg expected to work on the Mac?  Or should we expect it to fail
> because of the bug in Mac Firefox that keeps protocol registration from
> working?

At the moment org-protocol is only used to let emacs visit an
annotation on selection. So that - and of course store-link and
remember - will fail, but the annotations should be displayed anyway.

Andreas


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


Re: [Orgmode] Fireforg, a Firefox extension for Org mode interaction (Moved to Worg)

2009-08-08 Thread Andreas Burtzlaff

Up to date documentation of Fireforg now resides on Worg:

http://orgmode.org/worg/org-devel.php#fireforg

Please only use the installation procedures described there from now on.

Andreas


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


Re: [Orgmode] Fireforg, a Firefox extension for Org mode interaction

2009-08-08 Thread Andreas Burtzlaff
On Sat, 8 Aug 2009 17:09:35 -0300
Daniel Martins  wrote:

> The issue on org-agenda-files was solved. It was my mistake, sorry.

No problem
 
> (right click on the statusbar entry) : works in a limited sense. It pops up
> the remember and store-links options but nothing happens when I left-click
> on both fields.

Does org-protocol itself work with the bookmarks described in its
manual? If yes, are there any error messages in Tools->Error console in
Firefox containing: "chrome://fireforg/" ?

> (left click on the statusbar entry) : does absolutely nothing.
> 

It will only show something, if the currently viewed url is found in
the agenda files.

To make a test case put:

* Greatest tool in the world [[http://orgmode.org/][Org mode]]:Org:

in one of your agenda files, save it and visit http://orgmode.org/ with
firefox.

Checklist:
1. Does the file ~/.org-registry.xml exist ? If not, look in *Messages*
   buffer in emacs and send me the last bit.
2. Does it contain orgmode.org? (grep "orgmode.org" ~/.org-registry.xml )
3. Does the statusbar entry show anything, e.g.:
   (1) :Org:
   If not, send me the error messages in firefox as described above.
4. Does the left click work now?

Thanks for the testing

Andreas


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


Re: [Orgmode] Fireforg, a Firefox extension for Org mode interaction

2009-08-08 Thread Andreas Burtzlaff
On Sat, 8 Aug 2009 14:19:35 -0300
Daniel Martins  wrote:

> I followed your indications but it did not work properly.
> 
> 1. My org-agenda-files became nil I dont know the reason

org-agenda-files is not altered in my code.
I made a small mistake in the original posting and am changing the
installation now anyway, but for the time being:
Do you mean the debug message:
"org-registry-initialize: org-agenda-files = nil"
and did you put the lisp code into .emacs?
In that case make
(org-registry-initialize t)
the very _last_ line in your .emacs .
I'll put a page on Worg soon...
My apologies for the inconvenience.
By the way, these kind of emacs configuration issues are a reason why
packaging is a bit problematic, at least at this stage of development.

> 
> 2. The plugin was properly installed in firefox but it did not talk
> propoerly with emacsclient. Nothing happens on emacs.

What exactly did you try?
Your issue 1. prevents the url lookup to work, so I'd only expect
"store-link" and "remember" to work anyway. (right click on the statusbar entry)

Does org-protocol itself work with the bookmarks described in its
manual?

Generally, error messages in firefox are shown in Tools->Error Console:
Look for errors containing: "chrome://fireforg/" , and send them to me
(privately, not through the list, perhaps).

Thanks for your help and patience in testing

Andreas


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


[Orgmode] Fireforg, a Firefox extension for Org mode interaction

2009-08-06 Thread Andreas Burtzlaff
Hello all,

I am developing a Firefox extension for interaction with org-mode that
goes by the name "Fireforg".

It shows the number of occurrences of the currently viewed url in
the agenda files as well as the associated tags in the status bar.
A left click on the status bar entry displays a popup menu, where all
associated headings are shown and a click on one of them lets emacs
visit it.

Furthermore, it alters the style of links that occur in the agenda files
when viewing a website. Their tooltip is set to contain the associated
headers.

A right click on the status bar entry lets the user choose
from predefined actions, currently org-protocol's "store-link" and
"remember".

Although the functionality mentioned above is usable, the code should
still be considered experimental, so don't expect anything and backup
your data. This is not a release but rather a call for testing and
ideas.

* Try it out
To try it out you need to have org-protocol installed as described here:
http://orgmode.org/worg/org-contrib/org-protocol.php

Download org-registry.el and org-fireforg.el from the lisp directory in the
repository: http://repo.or.cz/w/org-fireforg.git

(org-registry.el is supposed to replace the contributed package, but is
still lacking some of its functions (see section below)).
Put the two files in the load-path and initialize by evaluating:

(require 'org-registry) ;; Be sure the downloaded file is used here, not the 
one in contrib
(org-registry-insinuate)
(require 'org-fireforg)
;; When putting the following into .emacs it might fail, if 
;; org-agenda-files has not been initialized yet.
(org-registry-initialize t) 

Finally, click on the file build/fireforg.xpi in the latest tree in the
repository at: http://repo.or.cz/w/org-fireforg.git
confirm the installation of the extension and reload firefox.

(Windows users might have to adjust: org-registry-file-xml  in Emacs
and "registry-file" in Fireforgs preferences.)

* Ideas/Discussion

- Add an optional search string to external links, so that
individual text passages in a website can be referenced and highlighted
in the site itself when it is revisited.

- Show a bookmark tree in firefox that is generated from the header
structure of an org file/a set of org files by filtering those with
url's in them. Together with store-link this would completely replace
firefox's bookmark functionality.
The tree could be shown either using menu popups or better as html
rendered using org's publishing capabilities. As I have no experience
with the later, could someone write such a function?

- Weaker url matching criteria. Match all parent urls, ...

- The registry is currently only updated for files in the agenda to
prevent pollution from temporary org files, possibly containing
org-fstrees. Maybe we could extend the set with
org-agenda-text-search-extra-files? Or rather make it customizable on
its own?

- I hope no one takes offence at the rewrite of org-registry without
renaming or prior discussion. I'd like to add the missing functions, but
can't get org-registry-show to work in Bastien's original version.

- Is the use of the org logo ok for the purpose of the extension?

- The logo and name are also subject to discussion. I'm still wondering
what crossbreeding a firefox and a green unicorn would yield...

* How it works
The rewritten org-registry generates an xml file (customizable through
org-registry-file-xml) that is read and searched by the extension.
An org-protocol subprotocol is used to let emacs visit an occurence.

I also have almost finished code that uses a temporary file to pass
response data from emacs to the extension. Kind of Emacs as a database
server... (probably existed though).

Hope you enjoy it,

Andreas


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


Re: [Orgmode] Spreadsheet bug?

2009-07-23 Thread Andreas Burtzlaff
On Thu, 23 Jul 2009 12:17:03 +0200
meingbg  wrote:

> > Nevertheless:
> >
> > If @2$3 is manually set to 2 in the table, then the formulas produce
> > the expected outcome. So, the problem seems to be the order of
> > execution. If column c is cleared and the formulas are executed, @2$3
> > is read to be 0 for the summation and is set to 2 only afterwards.
> 
> If that was the case, wouldn't @3$3 sum up to 3+0=3? Now it shows 7.

I suspect @2$3 was 4 when you evaluated the formulas, hence the 7.
If you clear column c completely, what is the output of the evaluation then?
I get:

| a |  b | c |
|---++---|
| a |  2 | 2 |
| b |  3 | 3 |
| c | -3 | 0 |
| d |  5 | 5 |

Andy


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


Re: [Orgmode] Spreadsheet bug?

2009-07-23 Thread Andreas Burtzlaff

On Thu, 23 Jul 2009 02:29:30 +0200
meingbg  wrote:

> | a |  b | c |
> |---++---|
> | a |  2 | 2 |
> | b |  3 | 7 |
> | c | -3 | 4 |
> | d |  5 | 9 |
> #+TBLFM: $3=...@-1::@2$3=$2

A good solution is to use
$3=vsum(@-I$-1..$-1)
as proposed in this thread:
http://thread.gmane.org/gmane.emacs.orgmode/1940/focus=1941

Nevertheless:

If @2$3 is manually set to 2 in the table, then the formulas produce
the expected outcome. So, the problem seems to be the order of
execution. If column c is cleared and the formulas are executed, @2$3
is read to be 0 for the summation and is set to 2 only afterwards.
Swapping the order in the TBLFM line doesn't help.

Is the order something like field formulas after column formulas?
Any chance to influence that?

Andy


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


Re: [Orgmode] [ANN] org-fstree: insert directory subtrees into org buffers / UPDATE

2009-06-19 Thread Andreas Burtzlaff
On Thu, 18 Jun 2009 18:35:32 -0400
Lindsay Todd  wrote:

> [...] other than having to
> figure out a path to the attachment directory.  Would be nice if
> org-fstree did that for me.
> 
> I have "att:" as  a link prefix to my attachment directory; if
> org-fstree could expand link prefixes, that would be a nice general
> solution (but what to do if the expansion isn't a local directory?).

Usage of org's link prefixes is implemented and committed to the
repository.

By the way, for remote directories you can use tramp, ange-ftp or any
other emacs access method with org-fstree.

Andreas


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


Re: [Orgmode] [ANN] org-fstree: insert directory subtrees into org buffers / UPDATE

2009-06-11 Thread Andreas Burtzlaff
Lindsay,

you remembered me to publish the new version 0.4 of org-fstree, that
features dynamic generation and deletion of directory contents on
visibility change and thus makes the complete filesystem browsable in
real time inside the org file. ( set option :dynamic-update t )
The entries are also sorted in alphanumeric order now.

http://burtzlaff.de/org-fstree/

Enjoy

On Wed, 10 Jun 2009 15:14:12 -0400
Lindsay Todd  wrote:

> The other thing that would be nice (but I can manage without) is
> to be able to indicate that the directory being listed is the
> attachment directory.  I like to be able to do things like store
> monthly statements from utilities with my notes concerning
> interactions with that utility.

Hm, I don't really get your intention, sorry. How do you want the
directory's content to be displayed if it is an "attachment directory"?

 Andreas


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


Re: [Orgmode] [ANN] org-fstree 0.2

2009-04-03 Thread Andreas Burtzlaff
Carsten,

On Fri, 3 Apr 2009 11:45:44 +0200
Carsten Dominik  wrote:

> > Hm, that works for links to files, but strangely it doesn't for  
> > links to headings in 6.25:
> 
> True,
> 
> and I have no idea why that is so.  Very strange bug, one
> of those only Nick Dokos can find :-)

you didn't count me in :-).
Attached is the patch against org.el (from 6.25b)

Andreas
7445,7450c7445,7451
<   (with-temp-buffer
< (let ((org-inhibit-startup t))
<   (org-mode)
<   (insert s)
<   (goto-char (point-min))
<   (org-open-at-point arg
---
>   (let ((reference-buffer (current-buffer)))
> (with-temp-buffer
>   (let ((org-inhibit-startup t))
> 	(org-mode)
> 	(insert s)
> 	(goto-char (point-min))
> 	(org-open-at-point arg reference-buffer)
7452c7453
< (defun org-open-at-point (&optional in-emacs)
---
> (defun org-open-at-point (&optional in-emacs reference-buffer)
7515a7517,7518
>   ;; if called in a temporary buffer (from org-open-link-from-string), switch back to original buffer
>   (cond (reference-buffer (switch-to-buffer reference-buffer)))
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [ANN] org-fstree 0.2

2009-04-01 Thread Andreas Burtzlaff

> > I'm looking for a better way to display those links and possibly also
> > the content of the headings and am happy to receive new ideas. I  
> > tried the
> > column view, but properties that contain links are displayed as text.
> 
> But you can nonetheless open them with C-c C-o when on the right field.

Hm, that works for links to files, but strangely it doesn't for links to 
headings in 6.25:

* Target

* Test 
 :PROPERTIES:
 :COLUMNS:  %40ITEM %Link1 %Link2
 :END:


** Test Heading
  :PROPERTIES:
  :Link1: [[* Target]]
  :END:

** Test File
  :PROPERTIES:
  :Link1: [[file:somewhere]]
  :END:

Andreas


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


Re: [Orgmode] [ANN] org-fstree 0.2

2009-03-31 Thread Andreas Burtzlaff
Hello Alan,

I think you overlooked one aspect of org-fstree.
If you place a link to a file in the org file (outside the region
between BEGIN_FSTREE and END_FSTREE), e.g:

* Some note [[file:foobar][foobar]]  :someTag:

then this heading will show up behind the file in the fstree as a link
back:

#+BEGIN_FSTREE: some_path

...
** [ ] foobar { [[* Some note][Some note]] } :someTag:
...

#+END_FSTREE

I see that it could in some cases be comfortable to add notes directly
at the file's entry and make them persistent on update. I might write a
function that automatically inserts a heading for the currently selected
file outside the fstree block, if time allows.

I'm looking for a better way to display those links and possibly also
the content of the headings and am happy to receive new ideas. I tried the
column view, but properties that contain links are displayed as text.

Andreas

On Tue, 31 Mar 2009 19:48:37 +1000
"Alan E. Davis"  wrote:

> Together with the ability to limit the recursions, this is potentially
> useful.  Thank you.
> 
> A longstanding item on my wishlist has been a Linux implementation of
> an old MSDOG workalike, 4DOS with the 4dos shell.  That shell worked
> alot like "dir" but it kept a field for comments.  So, with those
> useless msdog 8+3 filenames, one could keep a note, and keep track of
> ...  Maybe you can get it.
> 
> DIred is pretty good, but I haven't found anything yet to do what I
> would like.  I just tried typing notes into the org-fstree buffer of a
> directory listing.  It was pretty nice, not what I want exactly, but
> it could be useful in some cases.
> 
> Except for at least one thing: refreshing the directory deleted my
> notes.  For example:
> 
> *** [D] [[file:/home/ulod/org/org-help][org-help]]
> *** [D] [[file:/home/ulod/org/ARCHIVE][ARCHIVE]]
> *** [D] [[file:/home/ulod/org/orgcard][orgcard]] Hmmm..?
> *** [D] [[file:/home/ulod/org/Journal][Journal]] ???
> *** [D] [[file:/home/ulod/org/plotting][plotting]]my experiments
> *** [D] [[file:/home/ulod/org/LaTeX][LaTeX]]
> *** [D] [[file:/home/ulod/org/Classes][Classes]] Working directory maybe
> *** [D] [[file:/home/ulod/org/MEMO][MEMO]]location of memo
> composition bits
> *** [D] [[file:/home/ulod/org/data][data]]attachments
> *** [D] [[file:/home/ulod/org/auto][auto]]
> *** [D] [[file:/home/ulod/org/org-extra][org-extra]]   better to keep
> the extra bits here for portability?
> *** [D] [[file:/home/ulod/org/org-plot][org-plot]]gnuplot and R
> plotting, I think
> 
> 
> Now when I refresh:
> *** [D] [[file:/home/ulod/org/Classes][Classes]]
> *** [D] [[file:/home/ulod/org/MEMO][MEMO]]
> *** [D] [[file:/home/ulod/org/data][data]]
> *** [D] [[file:/home/ulod/org/auto][auto]]
> *** [D] [[file:/home/ulod/org/org-extra][org-extra]]
> *** [D] [[file:/home/ulod/org/org-plot][org-plot]]
> 
> Do you suppose this could be solved easily?
> 
> Thanks again,
> 
> Alan Davis
> 
> "An inviscid theory of flow renders the screw useless, but the need
> for one non-existent." ---Lord Raleigh (John
> William Strutt), or else his son, who was also a scientist.
> 
> It is undesirable to believe a proposition when
> there is no ground whatsoever for supposing it is true.
>   Bertrand Russell
> 
> 
> 



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


Re: [Orgmode] [ANN] org-fstree 0.2

2009-03-29 Thread Andreas Burtzlaff
Hello Sebastian,

new version 0.2 available. 
http://www.burtzlaff.de/org-fstree/org-fstree.el

On Sun, 29 Mar 2009 03:57:36 +0200
Sebastian Rose  wrote:

> Andreas Burtzlaff  writes:
>   * a customizable list of directory names to skip.
> '("CVS" "_MTN" ".git" ".hg" "RCS") might be a good default.
>   * Add directory names to the skip list
> #+begin fstree -sd (nogo notes)
>   * Skip files by suffix
> #+begin fstree -sf (.jpg .gif ...)

Both implemented with the new options :exclude-regexp-name and 
:exclude-regexp-fullpath
>From the documentation:
 - :exclude-regexp-name  , exclude file/directory 
names matching either 
  of the given regexp 
expressions
   Examples: 
 :exclude-regexp-name (".*\\.pdf$" ".*\\.zip$"), excludes 
files/directories ending with either ".pdf" or ".zip"
 :exclude-regexp-name ("^\\.git$") , excludes files/directories named 
".git"

 - :exclude-regexp-fullpath , same as 
:exclude-regexp-name but matches absolute path to file/directory


>   * Maybe require the option `-r' to be recursive.

Is implemented as an option now: 
:non-recursive t

>   * Add a slash to the directory names to make the list more
> readable. As an alternative, I could imagine to use folder icons
> like speedbar, or use headlines without links for directories (the
> links all look the same, wether they are headlines or leaves).

I added  "[D]" for directories and "[ ]" for files in the headline.
While that looks quite nice imho, I'm still looking for a more appealing 
formatting for the backlinks.
I've tried to add the backlinks as properties "Link1", "Link2",... , but links 
are shown as text in the column view.

Use column view for the links (EXPERIMENTAL): 
*** Test Tree
:PROPERTIES:
:COLUMNS:  %40ITEM %Link1 %Link2 %Link3 %Link4
:END:

#+BEGIN_FSTREE: ~/tmp/ :non-recursive t :links-as-properties t

Any ideas?

Andreas


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


[Orgmode] [ANN] org-fstree: insert directory subtrees into org buffers

2009-03-28 Thread Andreas Burtzlaff
Hello everyone,

the idea is now implemented as an extension to org-mode.

Available here: http://www.burtzlaff.de/org-fstree/org-fstree.el

org-fstree inserts the filesystem subtree for a given directory.
Each file/directory is formatted as a headline, provides links back 
to all headlines that are associated with it (by containing links to the file) 
and is assigned their tags.

Usage:
  - enter a line containing "#+BEGIN_FSTREE: " into an org buffer, 
where  is the directory, that is to be inserted.
  - while the cursor is in the line mentioned, press "C-c C-c"

Hope someone else than Sebastian and me finds this useful.

Andreas


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


Re: [Orgmode] combine orgmode and file system browsing

2009-03-20 Thread Andreas Burtzlaff
Hi Sebastian,

On Sat, 21 Mar 2009 03:20:37 +0100
Sebastian Rose  wrote:

> I like the idea of it.

Thanks!

> Maybe this helps in the TODO file of
> small/medium project. I'll keep it and probably use it :-)

The script does not generate the backlinks only the file system
structure, so it's not really useful, sorry.
It would make more sense to implement that properly as a major-mode and
make each directory update its state from the filesystem and the org file 
whenever it
becomes visible than to have to manually recreate the static representation
everytime the filesystem's structure or the org file's content changes.

Andreas


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


[Orgmode] combine orgmode and file system browsing

2009-03-20 Thread Andreas Burtzlaff
Hello everyone,

while using orgmode to organize data that is strongly bound to files
and directories, I came to the point where in addition to linking from
the orgfile to the target file/directory I longed to have it the other
way round, i.e. getting information about the files/directories
from the orgfile while browsing the filesystem. That led to the
following idea:

Orgmodes folding and linking capabilities are easily combined to
make rudimentary but comfortable file system browsing:

* [[file:test/dirA][dirA]]
** [[file:test/dirA/subdirA][subdirA]]
*** [[file:test/dirA/subdirA/some_file][some_file]]
** [[file:test/dirA/another_file][another_file]]
* [[file:test/dirB][dirB]]

Attached is a bash-script that generates this representation from a
given subtree of the filesystem as a proof of concept.

For each file/directory displayed search for any link to it in a
given orgfile and
   - provide links back to these occurrences
  and/or
   - display the tags and associated content (read-only).

The obvious weakness inherited from linking itself is synchronization on 
directory
structure changes. A possible solution would be to store ids as
hidden files for each directory or even for each file that is referred to.

Does anybody else see the benefits of such a mode?

Andreas


filesystem_to_org.sh
Description: application/shellscript
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] automated link generation

2009-02-13 Thread Andreas Burtzlaff
First of all congratulations for this extraordinary helpful piece of software.

I wonder whether it is possible to create a link (optionally with complete file 
information) for the headline the
cursor is currently on and put it in the kill ring.
That would speed things up quite a bit.

Thanks

Andreas


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