Re: [Orgmode] multiline description list, partial patch

2009-09-11 Thread Eric Schulte
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Eric,

 I am assuming you are trying to do something like this:

  - a very long
description item :: here is the explanation

 This is not going to work properly with export.


Exactly, when description items line-wrap I'd like to preserve their
bold face, but your export point is well take.

also, thanks for pointing out the `org-description-max-indent' variable,
that will greatly help my sense of org-aesthetic. Thanks -- Eric


___
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] orgstruct and orgtbl mode inhibit TAB completion of addresses in gnus

2009-09-11 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
 On Sep 8, 2009, at 10:03 PM, Sebastian Rose wrote:

 Hi,


 I don't remember when this started, but since some days orgstruct-mode
 and orgtbl-mode inhibit TAB-completion in the `To:', `Cc:' and 'Bcc:'
 lines in gnus. I have to turn off _both_ of them to make it work
 again.

 Do you have yasnippets on?


Yes. I don't explicitly turn it on though. Also, yasnippets does not
make any difference. No need to turn it off.

Can I do something to help debugging this problem?

(It's not such a big problem, though. I switched to message-mode without
orgstruct  Co. A keyboard shortcut turns on orgstruct and orgtbl.)



 Did you add anything to some of the ...-tab-..hooks in Org?


No.


 I have:

  (add-hook 'message-mode-hook 'turn-on-orgtbl)
  (add-hook 'message-mode-hook 'turn-on-orgstruct)

 in my init file.


 I use
  * GNU Emacs 23.1.1,
  * Org-mode version 6.30trans (release_6.30d.26.g9252)


Best wishes

  Sebastian


___
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] Feature request: org-agenda-store-link

2009-09-11 Thread Peter Westlake
Carsten,

Could I request this as a small feature enhancement, please?
Commands like org-refile have an agenda equivalent so that
the same keys work in the agenda, and it would be very nice
to be able to store a link to an item that way as well.

Regards,

Peter.

On Wed, 09 Sep 2009 15:23 +0100, Peter Westlake
peter.westl...@pobox.com wrote:
 On Wed, 09 Sep 2009 14:39 +0200, Carsten Dominik
 carsten.domi...@gmail.com wrote:
 
  On Sep 8, 2009, at 8:14 PM, Raffi R wrote:
 ...
   In org-mode normally, I can get this behaviour by pressing C-0 C-x
   C-e.  Looking at org.el suggested that I should be able to simply
   provide the 0 as an argument, i.e. using (org-export 0). However,
   org-export seems to ignore that 0.
 
  (let ((current-prefix-arg 0))
(call-interactively 'org-export))
 
 This also happens to be the reason a function I was trying to write
 didn't work! I would never have worked it out for myself - does
 anyone have time to explain why the original form doesn't work?
 
 Here, incidentally, is the function I was writing. It works now!
 It is intended to be bound to C-c l in the agenda buffer, and
 was written by imitating org-agenda-refile:
 
 (defun org-agenda-store-link (arg)
   Store a link to the item at point.
   (interactive P)
   (let* ((marker (or (get-text-property (point) 'org-hd-marker)
  (org-agenda-error)))
  (buffer (marker-buffer marker))
  (org-link-to-org-use-id t))
 (with-current-buffer buffer
   (save-excursion
 (save-restriction
   (widen)
   (goto-char marker)
   (let ((current-prefix-arg 0))
 (call-interactively 'org-store-link)))
 
 Is this the right way to do it?
 
 Peter.
 
 
 ___
 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


[Orgmode] Re: Publishing clocked time

2009-09-11 Thread Peter Jones
Russell Adams rlad...@adamsinfoserv.com writes:
 #+BEGIN timecard

 |++-|
 | *Date* | *Task* | *Hours* |
 |++-|
 | 2009-09-01 | Customer X |   8 |
 | 2009-09-02 | Customer X |   8 |
 | 2009-09-03 | Customer X |   8 |
 | 2009-09-04 | Customer X |   8 |
 | 2009-09-05 | Customer X |   8 |
 |++-|
 |*Total* ||  40 |
 |++-|
 #+END

I've attached my org-invoice.el file which does something very close to
this.  I use it to generate reports in table form like what you are
requesting, and I have another .el file that uses org-invoice as a
library to collect the same data and submit it to my invoicing system.

Example output:

#+BEGIN: invoice
| Task / Date   |  Time |  Price |
|---+---+|
| Friday, August 21, 2009   | 03:00 |  55.00 |
| Blah Blah Blah| 03:00 |  55.00 |
|---+---+|
| Friday, August 28, 2009   | 06:00 |  10.00 |
| Blah Blah Blah| 06:00 |  10.00 |
|---+---+|
| Total:| 09:00 |  65.00 |

#+END:

You can disable the price calculation.



org-invoice.el
Description: application/emacs-lisp


-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com
___
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] Re: Exporting after executing code

2009-09-11 Thread andrea Crotti
Detlef Steuer steuer at unibwh.de writes:

 
 On Fri, 11 Sep 2009 12:41:24 + (UTC)
 andrea Crotti andrea.crotti.0 at gmail.com wrote:
 
  And another thing, is there an easy way to include a file like
  \include or \input in latex??
 
 Yes, you can 
 #+INCLUDE:
 
 http://orgmode.org/manual/Include-files.html#Include-files
 
Mmm why it's not in my info manual?
I also upgraded to latest 6.30e but it's not there, strange..
Thanks anyway

So no ways to execute arbitrary code only at certain conditions and
include it?



___
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: RSI

2009-09-11 Thread Matthew Lundin
Eric S Fraga ucec...@ucl.ac.uk, Eric S Fraga ucec...@ucl.ac.uk
writes:

 At Tue, 01 Sep 2009 15:50:08 -0400,
 Matt Lundin wrote:
 key. Thus, short of using viper, the only solution that works for me is
 to use the Caps Lock key as Control. With that slight modification, I
 find emacs controls *very* comfortable (perhaps even as comfortable than

 Yes, making caps lock act as control is key to using emacs without
 pain (for me).  However, it's not a full solution for some keyboards
 which don't have a caps lock key.  Therefore, I'm intrigued by your
 reference to viper: is it possible to use, constructively and easily,
 viper with org-mode?  If so, any pointers on how to accomplish this
 would be fantastic!  A modal approach to writing/editing is fine with
 me.

Well, I'm sorry to say that org-mode was the reason I abandoned viper.
It's probably a limitation of mine, but I found it too confusing to go
back and forth between all the C-c keys and viper's modal commands. I
also found the behavior of dd and the like to be unpredictable when
called on closed outline headings, drawers, etc. I much prefer the
behavior of C-k in org-mode's native keybindings. I imagine there are
others around here who have gotten it working.

IMO, viper is fine for relatively simple text modes. But for more
complex modes, I found it easier to stick with emacs' native
keybindings.

YMMV.

- Matt


___
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: RSI

2009-09-11 Thread Eric S Fraga
At Fri, 11 Sep 2009 11:34:27 -0400,
Matthew Lundin wrote:

 Well, I'm sorry to say that org-mode was the reason I abandoned viper.
 It's probably a limitation of mine, but I found it too confusing to go
 back and forth between all the C-c keys and viper's modal commands. I

Thanks Matt.  I kind of expected that to be the case.  Oh well, I'll
stick to standard emacs for now then!

eric


___
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: Exporting after executing code

2009-09-11 Thread Nick Dokos
andrea Crotti andrea.crott...@gmail.com wrote:

 Detlef Steuer steuer at unibwh.de writes:
 
  
  On Fri, 11 Sep 2009 12:41:24 + (UTC)
  andrea Crotti andrea.crotti.0 at gmail.com wrote:
  
   And another thing, is there an easy way to include a file like
   \include or \input in latex??
  
  Yes, you can 
  #+INCLUDE:
  
  http://orgmode.org/manual/Include-files.html#Include-files
  
 Mmm why it's not in my info manual?
 I also upgraded to latest 6.30e but it's not there, strange..
 Thanks anyway
 

My info manual says 6.29c and #+INCLUDE is present and accounted for.

HTH,
Nick


___
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] Org-mode Makefile: make clean needed? make doc error?

2009-09-11 Thread Daniel Martins
Thanks Samuel,

I would suggest to include your script as another directive for Makefile (if
possible)

In older machines this unneeded compilations takes a lot of time


Daniel

PS It works. I put the script below in a file OrgUpdate

dan...@martins:~/Trabalho/svn/lib/emacs-lisp/org-mode$ OrgUpdate
Already up-to-date.
# On branch master
# Changed but not updated:
#   (use git add file... to update what will be committed)
#
#modified:   Makefile
#
no changes added to commit (use git add and/or git commit -a)
dan...@martins:~/Trabalho/svn/lib/emacs-lisp/org-mode$



2009/9/10 Samuel Wales samolog...@gmail.com

 Perhaps the makefile could use texi2html and emacs-w3m could display?

 Also, AFAIK, git pull does not return an exit status, so  will always
 execute.

 One solution:

head=`git rev-parse --verify HEAD`
git pull
git status
newhead=`git rev-parse --verify HEAD`
if [ $newhead != $head ]
then
#does make clean ret exit code?
account echodoq1 make cleanall  elup--make-clean 
echo \=== make 
makeelup--make 21 
echo 
cat elup--make | account mygrep error
diffoldnew cat doc/org.texi
#make install ... unnec unless you want
#delorg to be backed up.  if so then
#install setting prefix lispdir etc. in
#some annoying way
fi

___
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: Publishing clocked time

2009-09-11 Thread Russell Adams
I noticed in the comments you're working on a way to upload to
Freshbooks! That quite exciting, given I use them too!

On Fri, Sep 11, 2009 at 08:02:26AM -0600, Peter Jones wrote:
 Russell Adams rlad...@adamsinfoserv.com writes:
  #+BEGIN timecard
 
  |++-|
  | *Date* | *Task* | *Hours* |
  |++-|
  | 2009-09-01 | Customer X |   8 |
  | 2009-09-02 | Customer X |   8 |
  | 2009-09-03 | Customer X |   8 |
  | 2009-09-04 | Customer X |   8 |
  | 2009-09-05 | Customer X |   8 |
  |++-|
  |*Total* ||  40 |
  |++-|
  #+END
 
 I've attached my org-invoice.el file which does something very close to
 this.  I use it to generate reports in table form like what you are
 requesting, and I have another .el file that uses org-invoice as a
 library to collect the same data and submit it to my invoicing system.
 
 Example output:
 
 #+BEGIN: invoice
 | Task / Date   |  Time |  Price |
 |---+---+|
 | Friday, August 21, 2009   | 03:00 |  55.00 |
 | Blah Blah Blah| 03:00 |  55.00 |
 |---+---+|
 | Friday, August 28, 2009   | 06:00 |  10.00 |
 | Blah Blah Blah| 06:00 |  10.00 |
 |---+---+|
 | Total:| 09:00 |  65.00 |
 
 #+END:
 
 You can disable the price calculation.
 


 
 
 -- 
 Peter Jones - 303-219-0226
 pmade inc.  - http://pmade.com

 ___
 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



--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
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] Re: Publishing clocked time

2009-09-11 Thread Peter Jones
Russell Adams rlad...@adamsinfoserv.com writes:
 I noticed in the comments you're working on a way to upload to
 Freshbooks! That quite exciting, given I use them too!

Unfortunately (for you) I'm no longer working with the client that
required me to use Freshbooks.  So, I don't expect to finish that code.

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



___
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: Exporting after executing code

2009-09-11 Thread Sebastian Rose
andrea Crotti andrea.crott...@gmail.com writes:
 Nick Dokos nicholas.dokos at hp.com writes:

 
 My info manual says 6.29c and #+INCLUDE is present and accounted for.
 
 My fault I didn't add the path to the info list, I was
 looking in the old info manual..

 Thinking about code execution I think it should be possible,
 the spreadsheet does that in some ways..


See:
  http://eschulte.github.com/org-babel/



Sebastian


___
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: Exporting after executing code

2009-09-11 Thread Carsten Dominik


On Sep 11, 2009, at 7:57 PM, Sebastian Rose wrote:


andrea Crotti andrea.crott...@gmail.com writes:

Nick Dokos nicholas.dokos at hp.com writes:



My info manual says 6.29c and #+INCLUDE is present and accounted  
for.



My fault I didn't add the path to the info list, I was
looking in the old info manual..

Thinking about code execution I think it should be possible,
the spreadsheet does that in some ways..



See:
 http://eschulte.github.com/org-babel/



or, for a lighter solution


http://repo.or.cz/w/org-mode.git?a=blob_plain;f=contrib/lisp/org-eval.el;hb=HEAD


or

http://orgmode.org/worg/org-contrib/org-eval-light.php

But org-babel may really be the way to go.

- Carsten



___
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] multiline description list, partial patch

2009-09-11 Thread Carsten Dominik


On Sep 11, 2009, at 8:03 AM, Eric Schulte wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


Hi Eric,

I am assuming you are trying to do something like this:

- a very long
  description item :: here is the explanation

This is not going to work properly with export.



Exactly, when description items line-wrap I'd like to preserve their
bold face, but your export point is well take.

also, thanks for pointing out the `org-description-max-indent'  
variable,

that will greatly help my sense of org-aesthetic. Thanks -- Eric


The easiest fix for the export problem would be modifying
auto-fill-inhibit-regexp to include lines are description
items.  But it is also a hack

- Carsten




___
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] multiline description list, partial patch

2009-09-11 Thread Sebastian Rose
Hi Eric,


I think long descriptions are _very_ unusual (it's called definition
list (dl) in HTML and definition term (dt).

I used to do this here, before those lists were supported directly in
Org-mode:

  - *Bold longish term* \\
Description of the bold longish term.


I bound this function to a key:


(defun sr-insert-org-dd-item ()
  (interactive)
  (let  ( (in (read-from-minibuffer Definition list DT item: )) )
(newline-and-indent)
(insert (concat + * in * ))
(newline-and-indent)))




I remember I had to set `org-plain-list-ordered-item-terminator' to `t'
to make this work correctly.


This was added in 2008-02-25 and removed, when Carsten added the support
for the definition lists. And I never missed it.



  Sebastian


___
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] OT: Help making LaTex export

2009-09-11 Thread Bart Bunting
Hi all,

 

This may be a little off topic but I wasn't sure where else to ask so here
goes.

 

I use org mode all the time for work.  I would like to use it more for
producing documents e.g. proposals, statements of work etc.  The issue I
have is that we have a specific word template that my bosses insist on
using.  This is really just a logo and specific title page headers and
footer etc.  They are concerned about the look of the document, producing
pdfs would be fine.

 

My problem is this:

I am blind so it's difficult to get the layout and style of the document
correct when working with LaTeX.  I was hoping there may be someone willing
to take a look at the template and see if it would be possible to write some
LaTeX so that when I export my documents from org they look the same as our
standard template.  There isn't anyone else at my work who knows LaTeX that
can do this so I thought maybe someone out there would possibly be
interested.

 

I of course would be willing to pay for the effort involved.

 

If anyone is able to assist if they would like to contact me off list that
would be great!

 

b...@ursys.com.au

 

Thanks in advance and apologies for the off topic message.

 

Regards

 

Bart

 

___
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] Resolving overlapping clocked time between tasks?

2009-09-11 Thread Jeff Kowalczyk
I have related tasks from two org files/subtrees where a small percentage of 
the clocked time overlaps. These are a manual worklog and a generated git 
commit log, see below.

Does anyone have a suggestion about marking and/or resolving overlapping 
clocked time?

I plan to merge the subtrees and org-sort by closed time. Once sorted, manual 
inspection is possible, but error-prone and slow going.

My initial thought was to add the commits as negative time (i.e. 
clockout--clockin) to the manually clocked tasks. However, that doesn't 
subtract in clocktable summaries, see below.

Thanks for any ideas. Given some pointers to Org and Emacs functions and a 
suggested algorithm, I can code up some Emacs Lisp to get this done.

Thanks,
Jeff


---


file acme.org:

* Worklog ACME
#+BEGIN: clocktable :maxlevel 2 :scope subtree
Clock summary at [2009-09-11 Fri 20:38]

| L | Headline| Time   |  |
|---+-++--|
|   | *Total time*| *8:00* |  |
|---+-++--|
| 1 | Worklog ACME| 8:00   |  |
| 2 | DONE Onsite at ACME || 8:00 |
#+END:

** DONE Onsite at ACME:onsite:deployment:acme:
   CLOSED: [2008-09-09 Tue 15:00]
   :LOGBOOK:
   CLOCK: [2008-09-09 Tue 10:18]--[2008-09-09 Tue 10:12] = -0:06
   CLOCK: [2008-09-09 Tue 07:00]--[2008-09-09 Tue 15:00] =  8:00
   :END:

Onsite notes for the day, including commits to git repository.


---


file acme-git.org:

* Worklog Git Repository ACME
** DONE Commit 1:git:acme:
   CLOSED: [2008-09-09 Tue 10:18]
   :LOGBOOK:
   CLOCK: [2008-09-09 Tue 10:12]--[2008-09-09 Tue 10:18] =  0:06
   :END:
   :PROPERTIES:
   :commit: 3e9095ce125804ac3f741687855e50cebcd83fb1
   :END:
: Commit 1 body
: 
** DONE Commit 2:git:acme:
   CLOSED: [2008-09-09 Tue 10:20]
   :LOGBOOK:
   CLOCK: [2008-09-09 Tue 10:18]--[2008-09-09 Tue 10:20] =  0:02
   :END:
   :PROPERTIES:
   :commit: cd5827ba3d13b8215a3db61dc78cce019283a6a3
   :END:
: Commit 2 body
: 
** DONE Commit 3:git:acme:
   CLOSED: [2008-09-10 Wed 09:53]
   :LOGBOOK:
   CLOCK: [2008-09-10 Wed 09:49]--[2008-09-10 Wed 09:53] =  0:04
   :END:
   :PROPERTIES:
   :commit: ab2363840a9bb652468bbc4334f4fcaf8ca49f16
   :END:
: Commit 3 body
: 



  



___
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: Publishing clocked time

2009-09-11 Thread Carsten Dominik

Hi Peter,

should we add org-invoice.el to the contrib directory?
Also, I would like to add org-crypt.el, actually to the core.
Do you agree, and do you have a copyright agreement signed
with the FSF?

- Carsten

On Sep 11, 2009, at 4:02 PM, Peter Jones wrote:


Russell Adams rlad...@adamsinfoserv.com writes:

#+BEGIN timecard

|++-|
| *Date* | *Task* | *Hours* |
|++-|
| 2009-09-01 | Customer X |   8 |
| 2009-09-02 | Customer X |   8 |
| 2009-09-03 | Customer X |   8 |
| 2009-09-04 | Customer X |   8 |
| 2009-09-05 | Customer X |   8 |
|++-|
|*Total* ||  40 |
|++-|
#+END


I've attached my org-invoice.el file which does something very close  
to

this.  I use it to generate reports in table form like what you are
requesting, and I have another .el file that uses org-invoice as a
library to collect the same data and submit it to my invoicing system.

Example output:

#+BEGIN: invoice
| Task / Date   |  Time |  Price |
|---+---+|
| Friday, August 21, 2009   | 03:00 |  55.00 |
| Blah Blah Blah| 03:00 |  55.00 |
|---+---+|
| Friday, August 28, 2009   | 06:00 |  10.00 |
| Blah Blah Blah| 06:00 |  10.00 |
|---+---+|
| Total:| 09:00 |  65.00 |

#+END:

You can disable the price calculation.

org-invoice.el

--
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com
___
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] Feature request: org-agenda-store-link

2009-09-11 Thread Carsten Dominik

Hi Peter,

that does make a lot of sense, why did we not think of this earlier?
Works now.

Thanks!

- Carsten

On Sep 11, 2009, at 1:41 PM, Peter Westlake wrote:


Carsten,

Could I request this as a small feature enhancement, please?
Commands like org-refile have an agenda equivalent so that
the same keys work in the agenda, and it would be very nice
to be able to store a link to an item that way as well.

Regards,

Peter.

On Wed, 09 Sep 2009 15:23 +0100, Peter Westlake
peter.westl...@pobox.com wrote:

On Wed, 09 Sep 2009 14:39 +0200, Carsten Dominik
carsten.domi...@gmail.com wrote:


On Sep 8, 2009, at 8:14 PM, Raffi R wrote:

...

In org-mode normally, I can get this behaviour by pressing C-0 C-x
C-e.  Looking at org.el suggested that I should be able to simply
provide the 0 as an argument, i.e. using (org-export 0). However,
org-export seems to ignore that 0.


(let ((current-prefix-arg 0))
 (call-interactively 'org-export))


This also happens to be the reason a function I was trying to write
didn't work! I would never have worked it out for myself - does
anyone have time to explain why the original form doesn't work?

Here, incidentally, is the function I was writing. It works now!
It is intended to be bound to C-c l in the agenda buffer, and
was written by imitating org-agenda-refile:

(defun org-agenda-store-link (arg)
 Store a link to the item at point.
 (interactive P)
 (let* ((marker (or (get-text-property (point) 'org-hd-marker)
(org-agenda-error)))
(buffer (marker-buffer marker))
(org-link-to-org-use-id t))
   (with-current-buffer buffer
 (save-excursion
   (save-restriction
 (widen)
 (goto-char marker)
 (let ((current-prefix-arg 0))
   (call-interactively 'org-store-link)))

Is this the right way to do it?

Peter.


___
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] orgstruct and orgtbl mode inhibit TAB completion of addresses in gnus

2009-09-11 Thread Carsten Dominik


On Sep 11, 2009, at 11:04 AM, Sebastian Rose wrote:


Carsten Dominik carsten.domi...@gmail.com writes:

On Sep 8, 2009, at 10:03 PM, Sebastian Rose wrote:


Hi,


I don't remember when this started, but since some days orgstruct- 
mode
and orgtbl-mode inhibit TAB-completion in the `To:', `Cc:' and  
'Bcc:'

lines in gnus. I have to turn off _both_ of them to make it work
again.


Do you have yasnippets on?



Yes. I don't explicitly turn it on though. Also, yasnippets does not
make any difference. No need to turn it off.

Can I do something to help debugging this problem?


If you are in such a line and have turned off orgstruct-mode and  
orgtbl-mode,
Please do `C-h k TAB' to find out what function is bound to TAB in the  
absence

of orgstruct-mode.  The do the same for `C-h k C-i'

What do you get?

- Carsten


___
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