[Orgmode] Re: COMMENTed Radio Targets: Any comments?

2010-11-05 Thread Jambunathan K

Hello Matt

> For stable links to particular headlines, I would recommend CUSTOM_IDs
> over radio targets. E.g.,

I am raising these questions or bugs or even aberrations as a result of
my work on OpenOffice. 

IOW, I am not looking at 'using them as a feature' but to 'understand
them as a feature' and 'cross-checking' my OpenOffice's exporter against
the HTML exporter.

So the question of swithching to custom-ids doesn't arise in my case. 

Jambunathan K.

Matt Lundin  writes:

> Jambunathan K  writes:
>
>> I am noticing Some inconsistencies with commented out 'Radioed
>> Targets'. Example is down below. Comments are welcome ...
>>
>> In the generated HTML,
>>
>> 1. The section titled 'Radioed Target' is not exported because it is
>>commented out.
>> 2. References to 'Radioed Target' still get exported as link. It
>>points to self.
>>
>> I am not sure what the right behaviour should be ...
>
> AFAIK, there are no tests in the exporter to determine whether the
> target of such a link actually exists. 
>
>> * Links
>> ** Targets
>> *** COMMENT <<>>
>> ** References
>> *** References to Radioed Links
>> This section has references to Radioed Target.
>
> For stable links to particular headlines, I would recommend CUSTOM_IDs
> over radio targets. E.g.,
>
> * Links
> ** Targets
>:PROPERTIES:
>:CUSTOM_ID: target
>:END:
> ** References
> *** References to Radioed Links
> This section has references to Radioed Target.
>
> Best,
> Matt

___
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] An Org-mode clone for Vim

2010-11-05 Thread Carsten Dominik

Hi Herbert,

this looks pretty amazing - I had no feeling for how much would
be possible in vim.  I believe that this will make some people
quite happy, and I also think that it is a smart move
to avoid publishing headaches by calling out to Emacs.
I too like the number of hidden lines instead of ellipses
for the outlining and some other little things.  I hope
that you'll keep us up to date here - it looks like we
will be able to learn a few things from your work.

Congratulations

- Carsten

On Nov 5, 2010, at 8:39 PM, Herbert Sitz wrote:

I've been working on a Vim plugin that is file-compatible with Org- 
mode and that
clones a good subset of features.  It's gotten to the point where  
I'd like to
put it up on Github and see if anyone wants to use it and/or help  
develop it
with me.  So far I've implemented a good subset of Org's  
functionality and,
though it has a few rough edges, right now it could be perfectly  
usable for
certain people out there who prefer Vim as a text editor, but who  
have been
drawn to Emacs' Org-mode because of its features.  My project isn't  
at the point
where it has all the features or the polish of Org-mode, but many  
Org-mode users
use only a small subset of Org.  For people who prefer Vim and have  
subsets

coinciding with my project it could be an option.

I've made a video showing what it looks like and demonstrating some  
of the basic
outlining stuff.  I just uploaded it to Vimeo, and it tells me it  
will be
available for viewing in a couple hours (i.e., around 3:15pm PST  
today, Friday

Nov. 5,2010).  When available it will be viewable at this link:
http://vimeo.com/16543959

For someone who asks, 'Why would you bother to do this for Vim when  
it's already

done in Emacs?", I would have these responses:

1.  A lot of people don't like Emacs.  It is of course an insanely  
powerful
piece of software, but a lot of people can never get accustomed to  
the chord-key
command system, or if they do get semi-accustomed they don't like it  
or it

causes them physical pain.
2.  Some people are of the opinion that, while Emacs is admittedly a  
great
operating system/development environment, it lacks a decent text  
editor.  ;)
3.  Emacs and Vim (or Vim and Emacs) are king and queen atop the  
pile of text
editors.  What one has the other should have to, to the extent  
possible.
4.  I consider myself a Vim person, but I moved to Org-mode and  
Emacs myself
(made almost palatable to me by Viper and Vimpulse) because I wanted  
to be able
to publish outlines to PDF and HTML.  Vim has a couple decent  
outliners but
nobody has bothered to create good export systems for quality  
output.  I had
written some (non-publishing-related) extensions for one of the Vim  
outliners

and I knew it wouldn't be that hard to write something in Vim that was
file-compatible with Org-mode, which would then be able to publish  
to PDF and
HTML simply by calling out to an Emacs server.  This was my original  
goal and

it's done and works great.
5.  As I did some work I became more curious about all the task  
management and
organization features in Org-mode, and how they might be implemented  
in Vim.  So
I started coding up stuff for the various Org searches, agenda  
views, sparse
trees, column views, date management, etc.  This is actually fun to  
do and Vim
is well-suited for doing it.  So I've kept going.  I'm hoping  
someone else might

have an interest in doing this with me.
6. As I said in 5., developing this stuff is fun.

That's about it.  If there's any interest I'll do more videos  
showing how other
Org-mode features have been implemented in the Vim plugin, and where  
they stand

right now in the Vim plugin compared to Org-mode.

Regards,

Herb Sitz
Seattle, WA




___
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] An Org-mode clone for Vim

2010-11-05 Thread suvayu ali
Hi Herbert,

This is an amazing effort! I specially like the # of hidden lines on
the right and the read only headlines when folded. I also felt editing
the tree seemed more fluid in your version of "org-mode". I will let
my vim using friends know about this project. Do post back when you
put the code on some publicly accessible repository.


Hi John,

On 5 November 2010 14:50, John Hendy  wrote:
> But, I highly dislike things like C-c C-[n/p] or C-c C-[f/b] for navigating
> headlines. Your arrow navigation was appealing, perhaps only because I'm not
> as used to these shortcuts as others. I find myself using two finger scroll,
> pg[up/dn] and crtl+[right/left arrow] to move around much more than the
> emacs built-in shortcuts. As I said earlier, though, surely they can be
> changed...  I just haven't.

Maybe this will help you tweak the navigation commands to your needs.
https://github.com/suvayu/.emacs.d/blob/master/lisp/org-mode-settings.el#L81

-- 
Suvayu

Open source is the future. It sets us free.

___
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] agenda restriction locks and searching all nodes quickly

2010-11-05 Thread Samuel Wales
Having trouble with setting a restriction lock and also with searching quickly.

Can somebody kindly respond to the questions in the comments below?


(defun alpha-org-agenda-parent-subtree ()
  "Show agenda for all tasks in subtree above point.  This means
all /siblings/ of point and everything beneath them.

If the region is active, operate only on the region.

You can get a fast sorted view with this command.  In this
example, the agenda will show tasks under my subtree.

  * top level 1 -- not shown
* my subtree -- shown
  * TODO a
  * some other headline | (<- point is here)
* TODO [#A] b
  * top level 2 -- not shown

If you sort by priority, b will sort above a.

This allows you to organize nodes hierarchically instead of
keeping things at the same level merely to allow sorting.
"
  (interactive)
  (save-excursion
;;unwind-protect
(if (not (org-up-heading-safe))
(message "top level is nyi")
  ;;is this the right way to do it?  i tried
  ;;(let (org-agenda-overriding-restriction ...
  ;;
  ;;how do i make this work for the active region?
  (org-agenda-set-restriction-lock 'subtree)
  ;;is there a less kludgey way to specify all tasks in the restriction?
  ;;more importantly, what is the absolutely /fastest/ way?
  ;;
  ;;this seems to take forever even for a single node
  (org-search-view nil "{.}"

Thanks.

Samuel

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: "You only think it's dark." [CDC has denied a deadly serious
disease for 25 years]
==
HIV-like virus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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: An Org-mode clone for Vim

2010-11-05 Thread Herbert Sitz
John Hendy  gmail.com> writes:

> 
> 
> Wow! This is pretty neat. You've done some really cool things.
>  

John -- Thanks for the kind words.  I've responded to some of your comments
below to clarify just what my project is and what it isn't.

> 
> I started learning emacs only for org-mode and have never really used vim
>except for editing a few config files when nano is not available. Since I
>started with emacs and it has what I want (org-mode), I can't think of a 
>reason to learn yet another program with it's own set of shortcut 
> oddities :) I can relate to the shortcuts... Sometimes two in a row 
> involving ctrl makes me scratch my head. Though with emacs I'm 
> pretty sure you can literally change anything you want.
> 
> Also, since you're using the export features of org-mode, 
> and as you said you can use vimperator or whatever to 
> emulate vim keystrokes in emacs... is there
> anything really that you can do with the vim version that emacs 
> can't do? I completely understand #5 below -- do it just to 
> do it and it's fun. Other than that, though, aside from some 
> navigation differences and the (#_of_lines) at the
> end of folded headers I was unsure what was to be different. 
> Now you work in vim and just call org-mode to export?
>  

You've got it right.  For someone who is comfortable with Emacs 
and Org-mode there's no reason at all for them to be interested 
in what I'm doing.  The appeal of my project is pretty much 
limited to those people who have a strong preference for using 
Vim rather than Emacs.  Even the people who strongly 
prefer Vim, if they are heavy Org-mode users and depend on a 
wide range of it features and multitude of options, might 
have little use for my project in its current state.


> 2.  Some people are of the opinion that, while Emacs is admittedly 
> a great
> operating system/development environment, it lacks a decent text 
> editor.  ;)
> 
> I've heard this but never understood what was being said.
>  

That comment is mostly an often repeated joke. I think it gets to a 
major difference between Emacs and Vim, which is that Emacs is used 
by many to become the central application they use, with all their
sub-applications implemented in Emacs-lisp.   Vim isn't really used 
that way, partly because it's not as suitable for it, and partly 
because its main author has taken a
stance against that sort of use, in favor of a more Unixey-approach
of merely interacting with outside applications.

> 
> - Navigation. I definitely feel the emacs shortcut pain for certain 
> things. I don't mind exporting. I'm so used to it that 
> do C-x C-s C-c C-e p without blinking to publish to PDF. 
> But, I highly dislike things like C-c C-[n/p] or C-c C-[f/b] for 
> navigating headlines. Your arrow navigation was appealing, 
> perhaps only because I'm not as used to these shortcuts as 
> others. I find myself using two finger scroll, pg[up/dn] and 
> crtl+[right/left arrow] to move around much
> more than the emacs built-in shortcuts. As I said earlier, 
> though, surely they can be changed...  I just haven't.

Yes, I agree that having navigation keys as multi-keypress chord 
combination is sub-optimal.  I'm sure remappings could be done in 
Org, hard thing might be deciding on what key combinations.  
The section-moving commands in Org-mode are already mapped to 
keys similar to the ones I use, don't require multi-keypress
chords even now.

> 
> Great work and very cool project. Thanks for sharing and I 
> really enjoyed the video!
> 

Thanks again,

Herb



___
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] New Screencast: Setting Up Org-mode for Windows

2010-11-05 Thread Russell Adams
I've just posted a new thirty minute screencast on setting up Org-mode
in Windows to Vimeo.

http://vimeo.com/16533939

Included are:

 - Downloading and configuring Emacs for Windows
 - Downloading and installing the latest Org-mode
 - Setting up a working agenda
 - Setting up capture for the agenda
 - Windows native popup reminders from Agenda entries
 - Setting up and use of one touch timestamps

Under my sig are the snippets I used in the video.

Enjoy!

--
Russell Adamsrlad...@adamsinfoserv.com

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

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


--
;;; Agenda Icon Shortcut: "C:\Program Files\emacs-23.2\bin\runemacs.exe" -f 
org-agenda-list

;; start Popup.vbs
; On Error Resume Next
; Msgbox WScript.Arguments(0),0,"Org-Mode Agenda Reminder"
;; end

;; .emacs customizations

; Installing
;; Load org-mode
(add-to-list 'load-path "c:/Org/org-7.3/lisp")
(add-to-list 'load-path "c:/Org/org-7.3/contrib/lisp")
(require 'org)

;; The following lines are always needed.  Choose your own keys.
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when 
global-font-lock-mode is on
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)


; Capture
;; Capture
(global-set-key (kbd "C-c r") 'org-capture)
(setq org-capture-templates
  '(("t" "Agenda Todo" entry
 (file+headline "c:/Org/MyAgenda.org" "Agenda")
 "\n\n** TODO %?\n%T\n\n%i\n%a\n\n\n"
 :empty-lines 1)

("n" "Agenda Notes" entry
 (file+headline "c:/Org/MyAgenda.org" "Agenda")
 "\n\n** %?\n%T\n%i\n%a\n\n\n"
 :empty-lines 1)))


; Popups
;; Get appointments for today
(defun my-org-agenda-to-appt ()
  (interactive)
  (setq appt-time-msg-list nil)
  (run-at-time "24:01" nil 'my-org-agenda-to-appt)
  (let ((org-deadline-warning-days 0));; will be automatic in org  5.23
(org-agenda-to-appt)))

;;; Disabled so that I can open multiple emacs without org loading agenda files.
(appt-activate t)

;; 5 minute warning
(setq appt-message-warning-time '60)
(setq appt-display-interval '15)

;; Update appt each time agenda opened.
(add-hook 'org-finalize-agenda-hook 'my-org-agenda-to-appt)

;; Setup agenda popup, we tell appt to use window, and replace default function
(setq appt-display-format 'window)
(setq appt-disp-window-function (function my-appt-disp-window))

(defun my-appt-disp-window (min-to-app new-time msg)
  (save-window-excursion
(shell-command
 (concat
  "c:/windows/system32/cscript.exe //nologo c:/Org/Popup.vbs \"" msg "\"") 
nil nil)))


;; Timestamps
;; Insert immediate timestamp
(setq org-agenda-skip-additional-timestamps nil)
(define-key global-map (kbd "")
  '(lambda () (interactive)
  (when (eq major-mode 'org-mode)
(org-insert-time-stamp nil t t)
(insert "\n"


___
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] An Org-mode clone for Vim

2010-11-05 Thread John Hendy
On Fri, Nov 5, 2010 at 2:39 PM, Herbert Sitz  wrote:

> I've been working on a Vim plugin that is file-compatible with Org-mode and
> that
> clones a good subset of features...


> I've made a video showing what it looks like and demonstrating some of the
> basic
> outlining stuff.  I just uploaded it to Vimeo, and it tells me it will be
> available for viewing in a couple hours (i.e., around 3:15pm PST today,
> Friday
> Nov. 5,2010).  When available it will be viewable at this link:
> http://vimeo.com/16543959


Wow! This is pretty neat. You've done some really cool things.


>
> For someone who asks, 'Why would you bother to do this for Vim when it's
> already
> done in Emacs?", I would have these responses:
>
> 1.  A lot of people don't like Emacs.  It is of course an insanely powerful
> piece of software, but a lot of people can never get accustomed to the
> chord-key
> command system, or if they do get semi-accustomed they don't like it or it
> causes them physical pain.
>

I started learning emacs only for org-mode and have never really used vim
except for editing a few config files when nano is not available. Since I
started with emacs and it has what I want (org-mode), I can't think of a
reason to learn yet another program with it's own set of shortcut oddities
:) I can relate to the shortcuts... Sometimes two in a row involving ctrl
makes me scratch my head. Though with emacs I'm pretty sure you can
literally change *anything* you want.

Also, since you're using the export features of org-mode, and as you said
you can use vimperator or whatever to emulate vim keystrokes in emacs... is
there anything *really* that you can do with the vim version that emacs
can't do? I *completely* understand #5 below -- do it just to do it and it's
fun. Other than that, though, aside from some navigation differences and the
(#_of_lines) at the end of folded headers I was unsure what was to be
different. Now you work in vim and just call org-mode to export?


> 2.  Some people are of the opinion that, while Emacs is admittedly a great
> operating system/development environment, it lacks a decent text editor.
>  ;)
>

I've heard this but never understood what was being said.


>
> That's about it.  If there's any interest I'll do more videos showing how
> other
> Org-mode features have been implemented in the Vim plugin, and where they
> stand
> right now in the Vim plugin compared to Org-mode.
>
>
After watching the video, my favorites that might be cool to see in org-mode
were:
- (#_of_lines) instead of ... at the end of headings. Very, very cool. I
like that. I also like that they were right flushed instead of right after
the word. Kind of makes it quite easy to see where there is hidden
information. This has come up before as a potential liability. There are
workarounds, but I particularly liked yours!

- Navigation. I *definitely *feel the emacs shortcut pain for certain
things. I don't mind exporting. I'm so used to it that I do C-x C-s C-c C-e
p without blinking to publish to PDF. *But*, I highly dislike things like
C-c C-[n/p] or C-c C-[f/b] for navigating headlines. Your arrow navigation
was appealing, perhaps only because I'm not as used to these shortcuts as
others. I find myself using two finger scroll, pg[up/dn] and
crtl+[right/left arrow] to move around much more than the emacs built-in
shortcuts. As I said earlier, though, surely they can be changed...  I just
haven't.

Great work and very cool project. Thanks for sharing and I really enjoyed
the video!


John


> Regards,
>
> Herb Sitz
> Seattle, WA
>
>
>
>
> ___
> 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: Installing Orgmode through ELPA-tarball

2010-11-05 Thread Martin Stemplinger
Hallo Jambunathan K.,

> Thanks for trying out ELPA.

It looks pretty interesting and is an ideaa long overdue IMHO!
>
>
>>>2. Use the Emacs package manager's =M-x list-packages= to browse
>>>   and install the latest version.
>>
>> Failed with the error message: Failed to download `Orgmode' archive.
>>
>
> This is expected. Orgmode cannot act as ELPA repo. There are some minor
> things to be fixed.  Tarball is the way to go atleast for next few days
> ...
OK
>
>>>3. Do =M-x package-install-file=. When prompted for =Package file
>>>   name=, point it to .tar file downloaded in step 2.
>>>
>> Failed with the error message: package-read-from-string: Can't read whole 
>> string
>
> Questions:
> =
>
> What package.el you are using? I hope it is the one that is bundled in
> to Emacs and *not* the one distributed from http://tromey.com.
Yes. It says in the header

;; Author: Tom Tromey 
;; Created: 10 Mar 2007
;; Version: 0.9
;; Keywords: tools

>
> May I ask you what version of Emacs you use and what OS you run on?
Sorry I shuld have mentioned that. It's GNU Emacs 24.0.50.1
(i386-mingw-nt6.1.7600) of 2010-10-18 on windows 7 Home Premium
>
> There is a comment in the package manager that there is a dependency on
> GNU tar. May be the tar binary that you are running is not "GNU tar
> compatible"
I use the one from gnuwin32. It says tar (GNU tar) 1.22.
>
> Just to confirm, copy the below elisp code to scratch buffer and do a
> C-x C-e with cursor before the marker '@'.
>
> What do you get?
>
I get this:

Debugger entered--Lisp error: (error "Can't read whole string")
  signal(error ("Can't read whole string"))
  error("Can't read whole string")
  package-read-from-string("tar: Archive value 297315 is out of gid_t range 
0..65535\n(define-package \"org\" \"20101101\" \"Outline-based notes management 
and organizer\" nil)\ntar: Exiting with failure status due to previous 
errors\n")
  (progn (setq default-directory "~/tmp/") (package-read-from-string 
(shell-command-to-string (concat "tar -xOf org-20101101.tar 
org-20101101/org-pkg.el"
  eval((progn (setq default-directory "~/tmp/") (package-read-from-string 
(shell-command-to-string (concat "tar -xOf org-20101101.tar 
org-20101101/org-pkg.el")
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)
  recursive-edit()
  byte-code("\306  
@\307=\203!\310\311\312\"\210\313\311!\211A@)\242\314=\203!\310\315\312\"\210\316!\210\317
 \210\320 !\210\f\203d\321ed\"
V\203Web\210\322
\245y\210`db\210\322
\245
Zy\210`|\210)\323c\210eb\210\324\325\326 
\"\210\327\306!\210\324\330!\210\331\312\324\330!\210\212\332 
\210+\331\207" [unread-command-char debugger-args x debugger-buffer 
noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t 
backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer 
count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil 
recursive-edit middlestart buffer-read-only standard-output] 4)
  debug(error (error "Can't read whole string"))
  signal(error ("Can't read whole string"))
  error("Can't read whole string")
  package-read-from-string("tar: org-20101101.tar: Cannot open: No such file or 
directory\ntar: Error is not recoverable: exiting now\n")
  (progn (setq default-directory "~/tmp/") (package-read-from-string 
(shell-command-to-string (concat "tar -xOf org-20101101.tar 
org-20101101/org-pkg.el"
  eval((progn (setq default-directory "~/tmp/") (package-read-from-string 
(shell-command-to-string (concat "tar -xOf org-20101101.tar 
org-20101101/org-pkg.el")
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)
  recursive-edit()
  byte-code("\306  
@\307=\203!\310\311\312\"\210\313\311!\211A@)\242\314=\203!\310\315\312\"\210\316!\210\317
 \210\320 !\210\f\203d\321ed\"
V\203Web\210\322
\245y\210`db\210\322
\245
Zy\210`|\210)\323c\210eb\210\324\325\326 
\"\210\327\306!\210\324\330!\210\331\312\324\330!\210\212\332 
\210+\331\207" [unread-command-char debugger-args x debugger-buffer 
noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t 
backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer 
count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil 
recursive-edit middlestart buffer-read-only standard-output] 4)
  debug(error (file-error "Setting current directory" "no such file or 
directory" "~/tmp/"))
  call-process("D:/Entwicklung/emacs-24.0.50/bin/cmdproxy.exe" nil t nil "-c" 
"tar -xOf org-20101101.tar org-20101101/org-pkg.el")
  shell-command-to-string("tar -xOf org-20101101.tar org-20101101/org-pkg.el")
  (package-read-from-string (shell-command-to-string (concat "tar -xOf 
org-20101101.tar org-20101101/org-pkg.el")))
  (progn (setq default-directory "~/tmp/") (package-read-from-string 
(shell-command-to-string (concat "tar -xOf org-20101101.tar 
org-20101101/org-pkg.el"
  eval((progn (setq default-director

Re: [Orgmode] [Babel] Arguments...

2010-11-05 Thread Eric Schulte
Sébastien Vauban  writes:

> Hello,
>
> Two small questions, with that minimal example:
>
> #+begin_src org
> ,* Database
> ,
> ,** Back up the database
> ,
> ,Create a backup file of the existing database:
> ,
> ,#+srcname: backup-db(dbName, dbBackupFile)
> ,#+begin_src sql
> ,BACKUP DATABASE dbName TO DISK = 'dbBackupFile'
> ,go
> ,#+end_src
> ,
> ,** Back up the database
> ,
> ,Create a backup file of the existing database:
> ,
> ,#+srcname: backup-db :var dbName :var dbBackupFile
> ,#+begin_src sql
> ,BACKUP DATABASE dbName TO DISK = 'dbBackupFile'
> ,go
> ,#+end_src
> #+end_src
>
> 1. I read on http://orgmode.org/manual/var.html that the second way to pass
>arguments is "more natural". Though, "nobody" "never" uses it in all the
>examples published on this ML. Why? Are there still subtle differences, or
>could such come in the future that would make one choose one over the
>other?
>

I think we are committed to maintaining both ways of defining variables
for code blocks for the foreseeable future.

>
> 2. In both cases, the variables are not exported to HTML (and LaTeX?), making
>the readability of such a documented code a bit difficult. Feature or bug?
>

The variable names should be exported to both HTML and LaTeX (when
org-export-latex-listings is set to true) when the following declaration
schema is used (at least they are for me).

#+source: something(x=9)
#+begin_src emacs-lisp
  x
#+end_src

Best -- Eric

>
> Best regards,
>   Seb

___
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] [Babel] Executing sh code within sessions

2010-11-05 Thread Eric Schulte
Hi Seb,

Yes, I've noticed the shell session evaluation problems as well.  I
think one possible solution is for us to move from the current schema of
echoing a babel-specific marker to indicate that evaluation has
completed (which isn't working very well and is fairly ugly to boot) and
move towards something more like what Dan has done with R, where the
output is written to a file, and we check for that file to be created to
signal the end of session based evaluation.

This is certainly something that needs to be addressed, however I for
one won't have any time over the next week (I'm attending a conference).

Rest assured this issue is in our inbox. :)

Best Regards -- Eric

Sébastien Vauban  writes:

> Hi Eric,
>
> As requested, I'm here emphasizing the important part of this post:
>
> When executing sh code block within a session, it never terminates, echoing...
>
> : executing Sh code block...
>
> in the minibuffer.
>
> The =sva= shell buffer contains:
>
> #+begin_src sh
> echo In $(pwd):
>
> /sebast...@mediacenter:...ples/Org-scraps 0$ In 
> /cygdrive/c/home/sva/Examples/Org-scraps:
> /sebast...@mediacenter:...ples/Org-scraps 0$ echo In $(pwd):
> In /cygdrive/c/home/sva/Examples/Org-scraps:
> /sebast...@mediacenter:...ples/Org-scraps 0$ ls *.org
> Agenda-Sorting-Strategy.org
> Clock-Report.org
> org-beamer-fpu-rules.org
> org-hist.org
> /sebast...@mediacenter:...ples/Org-scraps 0$ echo 'org_babel_sh_eoe'
> org_babel_sh_eoe
> /sebast...@mediacenter:...ples/Org-scraps 0$
> #+end_src
>
> Does that ring a bell to you?
>
> Details below, if needed.
>
> Best regards,
>   Seb
>
> Sébastien Vauban wrote:
>> #+TITLE: Executing sh-code within a session
>> #+AUTHOR:Seb Vauban
>> #+LANGUAGE:  en_US
>>
>> * Executing sh-code within a session
>>
>> ** Context
>>
>> - git pull done this morning (2010-11-04 Thu).
>>
>> - EmacsW32 + Cygwin bash as inferior shell
>>
>>   #+begin_src emacs-lisp
>>   (setq shell-file-name "bash")
>>   (setenv "SHELL" "bash")
>>   (setq shell-command-switch "-c")
>>   (setq w32-quote-process-args t)
>>   (setq explicit-shell-file-name "bash")
>>   #+end_src
>>
>> ** First time
>>
>> The first time I execute the following:
>>
>> #+begin_src sh :session sva
>> echo In $(pwd):
>> ls *.org
>> #+end_src
>>
>> I get the following error:
>>
>> #+begin_src emacs-lisp
>> Debugger entered--Lisp error: (error "Marker does not point anywhere")
>>   ansi-color-apply-on-region(# #)
>>   ansi-color-process-output("")
>>   run-hook-with-args(ansi-color-process-output "")
>>   comint-send-input(nil t)
>>   (lambda (line) (insert line) (comint-send-input nil t) (sleep-for 
>> 0.25))("echo In $(pwd):")
>>   mapc((lambda (line) (insert line) (comint-send-input nil t) (sleep-for 
>> 0.25)) ("echo In $(pwd):" "ls *.org" "echo 'org_babel_sh_eoe'"))
>>   (progn (goto-char (process-mark ...)) (let (... ...) (setq dangling-text 
>> ...) (delete-region start end)) (mapc (lambda ... ... ... ...) (append ... 
>> ...)) (while (progn ... ...) (accept-process-output ...)) (goto-char 
>> (process-mark ...)) (insert dangling-text))
>>   (unwind-protect (progn (goto-char ...) (let ... ... ...) (mapc ... ...) 
>> (while ... ...) (goto-char ...) (insert dangling-text)) (remove-hook (quote 
>> comint-output-filter-functions) (quote my-filt)))
>>   (progn (fset (quote my-filt) (function* ...)) (add-hook (quote 
>> comint-output-filter-functions) (quote my-filt)) (unwind-protect (progn ... 
>> ... ... ... ... ...) (remove-hook ... ...)))
>>   (unwind-protect (progn (fset ... ...) (add-hook ... ...) (unwind-protect 
>> ... ...)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound 
>> ...)))
>>   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect 
>> (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
>>   (letf ((... ...)) (add-hook (quote comint-output-filter-functions) (quote 
>> my-filt)) (unwind-protect (progn ... ... ... ... ... ...) (remove-hook ... 
>> ...)))
>>   (letf* ((... ...)) (add-hook (quote comint-output-filter-functions) (quote 
>> my-filt)) (unwind-protect (progn ... ... ... ... ... ...) (remove-hook ... 
>> ...)))
>>   (flet ((my-filt ... ...)) (add-hook (quote comint-output-filter-functions) 
>> (quote my-filt)) (unwind-protect (progn ... ... ... ... ... ...) 
>> (remove-hook ... ...)))
>>   (let ((string-buffer "") dangling-text raw) (flet (...) (add-hook ... ...) 
>> (unwind-protect ... ...)) (if (and t body ...) (setq raw ...)) (split-string 
>> string-buffer comint-prompt-regexp))
>>   (progn (unless (org-babel-comint-buffer-livep session) (error "buffer %s 
>> doesn't exist or has no process" session)) (set-buffer session) (let (... 
>> dangling-text raw) (flet ... ... ...) (if ... ...) (split-string 
>> string-buffer comint-prompt-regexp)))
>>   (unwind-protect (progn (unless ... ...) (set-buffer session) (let ... ... 
>> ... ...)) (set-match-data save-match-data-internal (quote evaporate)))
>>   (let ((save-match-data-internal ...)) (unwind-protect (progn ... ...

Re: [Orgmode] Re: Enhancing the Org/Gnus experience

2010-11-05 Thread Eric S Fraga
Sébastien Vauban  writes:

> Hi Eric,
>
> Eric S Fraga wrote:

[...]

>> Just to update you all.  I found the problem and it had nothing to do
>> with either gnus or org!  The problem was that I had the following in my
>> font-lock-mode-hook:
>>
>> : (show-ws-highlight-trailing-whitespace)
>>
>> This seemed to wipe out all other font locking information in gnus.
>
> Funny. I have this -- a lot in comments! -- in my .emacs file:
>
> #+begin_src emacs-lisp
>   ;; highlight trailing whitespaces in all modes
>   (setq-default show-trailing-whitespace t)
>
>   ;; ;; FIXME When turned on, Gnus becomes black and white only...

Yes, exactly what I had.  Since I had the hook set *before* I started
using gnus again (I did used to use it a couple of years ago), I hadn't
realised that I was getting very little font locking happening!  I'll
try the =setq-default= to see if that works.

[...]

>> Apologies for all the noise and thanks to all that tried to help me!
>
> You're welcome. And... then... what's your impression? ;-)

Love it!  Having emacs-lisp and latex code blocks fontified within an
email message is fantastic.  Thanks!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.28.g8744.dirty)

___
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: COMMENTed Radio Targets: Any comments?

2010-11-05 Thread Matt Lundin
Jambunathan K  writes:

> I am noticing Some inconsistencies with commented out 'Radioed
> Targets'. Example is down below. Comments are welcome ...
>
> In the generated HTML,
>
> 1. The section titled 'Radioed Target' is not exported because it is
>commented out.
> 2. References to 'Radioed Target' still get exported as link. It
>points to self.
>
> I am not sure what the right behaviour should be ...

AFAIK, there are no tests in the exporter to determine whether the
target of such a link actually exists. 

> * Links
> ** Targets
> *** COMMENT <<>>
> ** References
> *** References to Radioed Links
> This section has references to Radioed Target.

For stable links to particular headlines, I would recommend CUSTOM_IDs
over radio targets. E.g.,

* Links
** Targets
   :PROPERTIES:
   :CUSTOM_ID: target
   :END:
** References
*** References to Radioed Links
This section has references to Radioed Target.

Best,
Matt

___
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] An Org-mode clone for Vim

2010-11-05 Thread A. Ryan Reynolds
onethingwell.org just finished a week's worth of coverage on vim
outliners. I don't use vim, so I'm not particularly invested, but
introducing another one to the vim people might be a hard sell; there
already seem to be quite a number of options available on that
platform. On the other hand, if you can replicate all of Org's
features I've no doubt you'll succeed in winning them over! And in any
case, doing something for fun is a reward by itself.

-- 
A. Ryan Reynolds

___
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] An Org-mode clone for Vim

2010-11-05 Thread Herbert Sitz
I've been working on a Vim plugin that is file-compatible with Org-mode and that
clones a good subset of features.  It's gotten to the point where I'd like to
put it up on Github and see if anyone wants to use it and/or help develop it
with me.  So far I've implemented a good subset of Org's functionality and,
though it has a few rough edges, right now it could be perfectly usable for
certain people out there who prefer Vim as a text editor, but who have been
drawn to Emacs' Org-mode because of its features.  My project isn't at the point
where it has all the features or the polish of Org-mode, but many Org-mode users
use only a small subset of Org.  For people who prefer Vim and have subsets
coinciding with my project it could be an option.

I've made a video showing what it looks like and demonstrating some of the basic
outlining stuff.  I just uploaded it to Vimeo, and it tells me it will be
available for viewing in a couple hours (i.e., around 3:15pm PST today, Friday
Nov. 5,2010).  When available it will be viewable at this link:
http://vimeo.com/16543959

For someone who asks, 'Why would you bother to do this for Vim when it's already
done in Emacs?", I would have these responses:

1.  A lot of people don't like Emacs.  It is of course an insanely powerful
piece of software, but a lot of people can never get accustomed to the chord-key
command system, or if they do get semi-accustomed they don't like it or it
causes them physical pain.
2.  Some people are of the opinion that, while Emacs is admittedly a great
operating system/development environment, it lacks a decent text editor.  ;)
3.  Emacs and Vim (or Vim and Emacs) are king and queen atop the pile of text
editors.  What one has the other should have to, to the extent possible.
4.  I consider myself a Vim person, but I moved to Org-mode and Emacs myself
(made almost palatable to me by Viper and Vimpulse) because I wanted to be able
to publish outlines to PDF and HTML.  Vim has a couple decent outliners but
nobody has bothered to create good export systems for quality output.  I had
written some (non-publishing-related) extensions for one of the Vim outliners
and I knew it wouldn't be that hard to write something in Vim that was
file-compatible with Org-mode, which would then be able to publish to PDF and
HTML simply by calling out to an Emacs server.  This was my original goal and
it's done and works great.
5.  As I did some work I became more curious about all the task management and
organization features in Org-mode, and how they might be implemented in Vim.  So
I started coding up stuff for the various Org searches, agenda views, sparse
trees, column views, date management, etc.  This is actually fun to do and Vim
is well-suited for doing it.  So I've kept going.  I'm hoping someone else might
have an interest in doing this with me.
6. As I said in 5., developing this stuff is fun.

That's about it.  If there's any interest I'll do more videos showing how other
Org-mode features have been implemented in the Vim plugin, and where they stand
right now in the Vim plugin compared to Org-mode.

Regards,

Herb Sitz
Seattle, WA 




___
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] When opening email links, unseen messages marked as read!

2010-11-05 Thread David Maus
At Fri, 05 Nov 2010 13:47:22 +0100,
Sébastien Vauban wrote:
> Now, suppose I have 1 unseen (hence, unread as well) email that has been moved
> into that same INBOX.friends folder (because of the splitting rules).
>
> ... 
> 
> But... the unseen messages are marked as read, though I've not read them at
> all... 

You meant: The /unread/ messages are marked as read?  

Just to avoid confusion about the terminology: In IMAP there is a
distinction between Read/Unread and Seen/Unseen messages.  An Unseen
(or: Recent) message is a message that has not been seen by the IMAP
client.  As soon as the client "sees" a message (i.e. SELECT the
mailbox) it loses this flag.  Sounds like this is happening.  Seeing
the message does of course not affect the Read/Unread flag.

If it really is the Unread flag that is removed, it sounds like
problem of your setup or Gnus.  AFAIK just tells Gnus to open a
particular message in a particular folder.

WL works fine (as always).

Best,
  -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


[Orgmode] [PATCH] AM/PM support on the agenda timegrid

2010-11-05 Thread Christopher Allan Webber
Hello all,

I get distracted parsing 24-hour-time into 12-hour AM/PM style time.  So
I added support for AM/PM style time on the agenda timegrid.

git clone git://dustycloud.org/org-mode -b ampm

(Check out the "ampm" branch.)

Then:

#+BEGIN_SRC emacs-lisp
(setq org-agenda-timegrid-use-ampm t)
#+END_SRC

Then just reload the agenda and you're good!


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


Re: [Orgmode] Re: Worg pull broken?

2010-11-05 Thread David Maus
At Fri, 05 Nov 2010 10:32:28 +0100,
Sébastien Vauban wrote:
> > Pulling git+ssh://repo.or.cz/srv/git/Worg.git works fine here.
> 
> To do this, I need a password on repo.or.cz. Who do I have to ask for this?
> 

Just register a user at [1] with a SSH public key.  IIRC the user name
in the key comment must be the email adress.

E.g.

ssh-keygen -C "y...@somewhere.tld"

Or instead of git+ssh you can use the native Git protocol: 

git://repo.or.cz/org-mode

Best,
  -- David

[1] http://repo.or.cz/reguser.cgi

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


[Orgmode] Re: Meetup/conference

2010-11-05 Thread Stephen Eglen
Robert Goldman  writes:

> Since we're talking about meet-ups, I'd like to say it would be great to
> see an informal org-mode meet-up attached to other conferences one might
> attend.
>
> Not as an alternative to the Hawaii proposal, but as an "also."

I will be presenting a tutorial on Emacs Speaks Statistics at next
year's R conference.  This will include some time devoted to org-babel,
of course focused towards R usage.

http://www.warwick.ac.uk/statsdept/useR-2011/

Stephen


___
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] Broken CUSTOMID links

2010-11-05 Thread Jambunathan K

Note the 'H:1' in options line. Export this to HTML. Note that CUSTOMID
link is broken. A snippet of relevant HTML section is attached
below. 

Change 'H:1' to 'H:3' note that there is no more brokenness. 

Possible root cause: When headlines are turned to list 'extra-targets'
are not identified correctly.

(This bug is unrelated to any of the previous internal link bugs that I
have reported)

# Input file

#+OPTIONS:   H:1

* Links
** Targets
   
*** Fuzzy Target

*** Target with CUSTOMID
:PROPERTIES:
:CUSTOM_ID: aabbccddeeff
:END:

*** Dedicated Target
#   <>

*** <<>>

** References

*** References to Fuzzy Target
This is a link to [[Fuzzy Target]].

*** References to CUSTOMID links
This link to  [[#aabbccddeeff][CUSTOMID Target]] is broken.

*** References to Dedicated Target
There is a link to nodesc [[Dedicated Target]] here. There is a link
to [[Dedicated%20Target][Jump to Dedicated Target]] here.

*** References to Radioed Links
This section has references to Radioed Target. One more reference
to Radioed Target.



#+begin_src html
  
  

  
  
  Target with CUSTOMID 
  

  
  
  
  

  References to CUSTOMID links 
  
  This link to  
  
CUSTOMID Target
  
  is broken.

  
#+end_src


Jambunathan K.

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


Re: [Orgmode] org-sparse-tree command name

2010-11-05 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Nov 5, 2010, at 8:28 AM, Andreas Röhler wrote:



<
20101105_orgtexi_names
.patch>___
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] org-mode completion tip

2010-11-05 Thread Raymond Zeitler
Cool!  Thanks for sharing!

BTW, I did not disable M-.  My Emacs must've been precompiled to ignore
it.  Or maybe I put the setting into my .emacs so long ago, I don't remember
doing it.  I've had to reassign C- and C-S- to switch buffers.

- Ray

--
Raymond Zeitler  

-Original Message-
Date: Fri, 05 Nov 2010 10:26:11 -0500
From: Erik Iverson 
Subject: [Orgmode] org-mode completion tip
To: emacs-orgmode 
Message-ID: <4cd42213.20...@ccbr.umn.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello,

I have always ignored in-buffer Completion
(http://orgmode.org/org.html#Completion) in org-mode
because it is bound to M-, which my window manager
(any many others) use to switch applications.

Many of you may have disabled your window manager's
special usage of that key, or re-bound the org-complete
command to another key chord in emacs.

However, just this morning I discovered you can use
C-M-i in as an alternative to M- in emacs, so that
completion also works with that key chord.

Hopefully someone else may find this useful.

--Erik



___
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] Arguments...

2010-11-05 Thread Sébastien Vauban
Hello,

Two small questions, with that minimal example:

#+begin_src org
,* Database
,
,** Back up the database
,
,Create a backup file of the existing database:
,
,#+srcname: backup-db(dbName, dbBackupFile)
,#+begin_src sql
,BACKUP DATABASE dbName TO DISK = 'dbBackupFile'
,go
,#+end_src
,
,** Back up the database
,
,Create a backup file of the existing database:
,
,#+srcname: backup-db :var dbName :var dbBackupFile
,#+begin_src sql
,BACKUP DATABASE dbName TO DISK = 'dbBackupFile'
,go
,#+end_src
#+end_src

1. I read on http://orgmode.org/manual/var.html that the second way to pass
   arguments is "more natural". Though, "nobody" "never" uses it in all the
   examples published on this ML. Why? Are there still subtle differences, or
   could such come in the future that would make one choose one over the
   other?

2. In both cases, the variables are not exported to HTML (and LaTeX?), making
   the readability of such a documented code a bit difficult. Feature or bug?

Best regards,
  Seb

-- 
Sébastien Vauban


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


Re: [Orgmode] org-mode completion tip

2010-11-05 Thread John Hendy
Good to know -- I just had so many issues with Alt and Ctrl for things that
I switched my cycle through windows to the Windows key + tab since I don't
use it for anything else (at least in Arch Linux + xfce). Not everyone has
that flexibility, though... Cool find!

On Fri, Nov 5, 2010 at 10:26 AM, Erik Iverson  wrote:

> Hello,
>
> I have always ignored in-buffer Completion
> (http://orgmode.org/org.html#Completion) in org-mode
> because it is bound to M-, which my window manager
> (any many others) use to switch applications.
>
> Many of you may have disabled your window manager's
> special usage of that key, or re-bound the org-complete
> command to another key chord in emacs.
>
> However, just this morning I discovered you can use
> C-M-i in as an alternative to M- in emacs, so that
> completion also works with that key chord.
>
> Hopefully someone else may find this useful.
>
> --Erik
>
> ___
> 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] org-mode completion tip

2010-11-05 Thread Darlan Cavalcante Moreira

There's yet another option. You can press ESC (release it) and then
TAB. This is valid for all shortcuts that use the Meta key. It is not very
practical if you want to use the shortcut several times in secession, but
for a single use such as the completion in org it works very well for me.

--
Darlan

At Fri, 05 Nov 2010 10:26:11 -0500,
Erik Iverson  wrote:
> 
> Hello,
> 
> I have always ignored in-buffer Completion
> (http://orgmode.org/org.html#Completion) in org-mode
> because it is bound to M-, which my window manager
> (any many others) use to switch applications.
> 
> Many of you may have disabled your window manager's
> special usage of that key, or re-bound the org-complete
> command to another key chord in emacs.
> 
> However, just this morning I discovered you can use
> C-M-i in as an alternative to M- in emacs, so that
> completion also works with that key chord.
> 
> Hopefully someone else may find this useful.
> 
> --Erik
> 
> ___
> 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: [Accepted] [Orgmode] org-agenda: fix org-agenda-category-icon-alist defcustom type

2010-11-05 Thread Julien Danjou
On Fri, Nov 05 2010, Bastien Guerry wrote:

Thanks.

Clearly this patch works fine, but it's probably not as good as it could
be. I suck at defcustom, so if anyone can do a better job on the
properties part, please go ahead.

-- 
Julien Danjou
// ᐰhttp://julien.danjou.info

___
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


[Accepted] [Orgmode] org-agenda: fix org-agenda-category-icon-alist defcustom type

2010-11-05 Thread Bastien Guerry
Patch 364 (http://patchwork.newartisans.com/patch/364/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1288968225-10023-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] org-agenda: fix org-agenda-category-icon-alist defcustom
>   type
> Date: Fri, 05 Nov 2010 19:43:45 -
> From: Julien Danjou 
> X-Patchwork-Id: 364
> Message-Id: <1288968225-10023-1-git-send-email-jul...@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou 
> 
> * list/org-agenda.el (org-agenda-category-icon-alist): Fix defcustom
>   type.
> 
> Signed-off-by: Julien Danjou 
> 
> ---
> lisp/org-agenda.el |   15 +++
>  1 files changed, 7 insertions(+), 8 deletions(-)
> 
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index 9dbda4d..68aaa86 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -1463,14 +1463,13 @@ category, you can use:
>  
>(\"Emacs\" '(space . (:width (16"
>:group 'org-agenda-line-format
> -  :type '(list :tag "Category icons"
> -(repeat
> - (list
> -  (string :tag "Category regexp")
> -  (string :tag "File or data")
> -  (string :tag "Type")
> -  (boolean :tag "Data?")
> -  (list :tag "Properties")
> +  :type '(alist :key-type (string :tag "Regexp matching category")
> + :value-type (choice (list :tag "Icon"
> +   (string :tag "File or data")
> +   (symbol :tag "Type")
> +   (boolean :tag "Data?")
> +   (repeat :tag "Extra image properties" 
> :inline t symbol))
> + (list :tag "Display properties" sexp
>  
>  (defgroup org-agenda-column-view nil
>"Options concerning column view in the agenda."
> 

___
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


[Accepted] [Orgmode] org-sparse-tree command name

2010-11-05 Thread Bastien Guerry
Patch 363 (http://patchwork.newartisans.com/patch/363/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C4CD3B219.1050100%40easy-emacs.de%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] org-sparse-tree command name
> Date: Fri, 05 Nov 2010 12:28:25 -
> From: =?utf-8?q?Andreas_R=C3=B6hler_=3Candreas=2Eroehler=40easy-emacs=2Ede?=
>   =?utf-8?q?=3E?=
> X-Patchwork-Id: 363
> Message-Id: <4cd3b219.1050...@easy-emacs.de>
> To: emacs-orgmode 
> 
> 
> 
> 
> diff --git a/doc/org.texi b/doc/org.texi
> index 72053e9..2f4c225 100644
> --- a/doc/org.texi
> +++ b/doc/org.texi
> @@ -1400,8 +1400,7 @@ commands can be accessed through a dispatcher:
>  @table @asis
>  @orgcmd{C-c /,org-sparse-tree}
>  This prompts for an extra key to select a sparse-tree creating command.
> -...@kindex C-c / r
> -...@item C-c / r
> +...@orgcmd{c-c / r,org-sparse-tree}
>  @vindex org-remove-highlights-with-change
>  Occur.  Prompts for a regexp and shows a sparse tree with all matches.  If
>  the match is in a headline, the headline is made visible.  If the match is in
> 

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


[Orgmode] org-mode completion tip

2010-11-05 Thread Erik Iverson

Hello,

I have always ignored in-buffer Completion
(http://orgmode.org/org.html#Completion) in org-mode
because it is bound to M-, which my window manager
(any many others) use to switch applications.

Many of you may have disabled your window manager's
special usage of that key, or re-bound the org-complete
command to another key chord in emacs.

However, just this morning I discovered you can use
C-M-i in as an alternative to M- in emacs, so that
completion also works with that key chord.

Hopefully someone else may find this useful.

--Erik

___
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: TaskJuggler3, revisited

2010-11-05 Thread John Hendy
On Fri, Nov 5, 2010 at 7:29 AM, Anthony Lander wrote:

> Hi John,
>
> On 10-Nov-4, at 5:24 PM, John Hendy wrote:
>
> Nice! I was able to do the following:
>
> - grab your copy of org-taskjuggler.el and install it
> - get the .org file here:
> http://orgmode.org/manual/TaskJuggler-export.html
>  - export to a .tjp
>
>
> If you grabbed the code I wrote, you can export the file, and compile it
> directly with tj3 using C-c e J, saving a step.
>
>
That *would *be awesome.


> - swap out the default export with the code below and run "tj3
> tj3-test.tjp" and get a nice html report!
> --- If you're looking for a default tj3 export... perhaps start with what's
> below?
>
>
>
But note that I have to do some manual steps on the .tjp before compiling
with tj3. My main issue is defining the report. How do you define the report
manually in the .org file or elsewhere so that tj3 doesn't try it on the
default tj2 report instead. When I do C-c e J currently, I get no output
files; essentially it's just a silent fail.


> Thanks for the pointer to the reports - I'll try to add them in to the
> example file.
>
>
That would be great -- On worg's org-tj tutorial, I see not reference of how
to specify one's report directly.


> Also, thank you for testing the code, and please post if you find bugs, or
> other problems,
>
>
Will do! I plan to be using this shortly on my own project for work and will
report on any issues experienced. I also hope to be tailoring the reports a
bit. I can't believe how long the tj3 report format is to create the html
output. I'm going to have to dig around and find out how to just create a
gantt chart -- I also wish the css was embedded or drawn in some other way
-- when sharing this, I will have to take a screenshot or something and send
it off.

While not fully featured, Eric's TikZ posting a bit back on the mailing list
has the advantage of being completely portable. I'll figure something out!


John


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


[Orgmode] [PATCH] org-agenda: fix org-agenda-category-icon-alist defcustom type

2010-11-05 Thread Julien Danjou
* list/org-agenda.el (org-agenda-category-icon-alist): Fix defcustom
  type.

Signed-off-by: Julien Danjou 
---
 lisp/org-agenda.el |   15 +++
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 9dbda4d..68aaa86 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1463,14 +1463,13 @@ category, you can use:
 
   (\"Emacs\" '(space . (:width (16"
   :group 'org-agenda-line-format
-  :type '(list :tag "Category icons"
-  (repeat
-   (list
-(string :tag "Category regexp")
-(string :tag "File or data")
-(string :tag "Type")
-(boolean :tag "Data?")
-(list :tag "Properties")
+  :type '(alist :key-type (string :tag "Regexp matching category")
+   :value-type (choice (list :tag "Icon"
+ (string :tag "File or data")
+ (symbol :tag "Type")
+ (boolean :tag "Data?")
+ (repeat :tag "Extra image properties" 
:inline t symbol))
+   (list :tag "Display properties" sexp
 
 (defgroup org-agenda-column-view nil
   "Options concerning column view in the agenda."
-- 
1.7.2.3


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


[Orgmode] Re: How do I convert org to OpenOffice?

2010-11-05 Thread Jambunathan K
da...@adboyd.com (J. David Boyd) writes:

>> I put it up on repo.or.cz as I already had an account there. Here is the
>> URL:
>>
>> - http://repo.or.cz/w/org-mode/oo.git/
>>
>
>
> When I try to clone from this, using
>
>> git clone  http://repo.or.cz/w/org-mode/oo.git/ myoo
>
>
> I get:
>
>> warning: remote HEAD refers to nonexistent ref, unable to checkout.
>

Try this URL http://repo.or.cz/r/org-mode/oo.git?

Jambunathan K.








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


[Orgmode] Re: How do I convert org to OpenOffice?

2010-11-05 Thread J. David Boyd
Jambunathan K  writes:

>> I'm glad of it though!  Jambunathan, would you be willing to put your code up
>> on github?  Then we can perhaps all help out in a co-ordinated manner. 
>
> I put it up on repo.or.cz as I already had an account there. Here is the
> URL:
>
> - http://repo.or.cz/w/org-mode/oo.git/
>


When I try to clone from this, using

> git clone  http://repo.or.cz/w/org-mode/oo.git/ myoo


I get:

> warning: remote HEAD refers to nonexistent ref, unable to checkout.

I must be doing something wrong?


Dave


___
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: Enhancing the Org/Gnus experience

2010-11-05 Thread Sébastien Vauban
Hi Eric,

Eric S Fraga wrote:
> Tassilo Horn  writes:
>> Eric S Fraga  writes:
 if it is working, then the following code block should be fontified as
 if in an Org-mode buffer

 #+begin_src emacs-lisp
   (message "is it working?")
 #+end_src
>>>
>>> Definitely not working then!  This comes out as simple text in gnus
>>> and doesn't look at all like it would in an org buffer for me.
>>
>> Hm, for me it's shown the same as verbatim blocks or stuff like
>
> Just to update you all.  I found the problem and it had nothing to do
> with either gnus or org!  The problem was that I had the following in my
> font-lock-mode-hook:
>
> : (show-ws-highlight-trailing-whitespace)
>
> This seemed to wipe out all other font locking information in gnus.

Funny. I have this -- a lot in comments! -- in my .emacs file:

#+begin_src emacs-lisp
  ;; highlight trailing whitespaces in all modes
  (setq-default show-trailing-whitespace t)

  ;; ;; FIXME When turned on, Gnus becomes black and white only...
  ;; ;;*** show-wspace (emacs-goodies-el)
  ;; (when (try-require 'show-wspace)
  ;;   ;; Highlight tabs
  ;;   (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)
  ;;
  ;;   ;; Highlight trailing whitespace
  ;;   (add-hook 'font-lock-mode-hook 
'show-ws-highlight-trailing-whitespace)
  ;;
  ;;   ;; Highlight non-breaking spaces
  ;;   (add-hook 'font-lock-mode-hook 'show-ws-highlight-hard-spaces))


  ;; FIXME Same problem as above
  ;; ;; highlight tabs in all modes
  ;; (add-hook 'font-lock-mode-hook
  ;;   '(lambda ()
  ;;  (font-lock-add-keywords
  ;;   nil
  ;;   '(("\t" 0 'trailing-whitespace prepend)

  ;; ;; show zero-width spaces
  ;; (font-lock-add-keywords
  ;;  nil
  ;;  `((,(format "\\(%c\\)" ?\u200b) ; #\ZERO_WIDTH_SPACE
  ;; (1 (progn (compose-region (match-beginning 1) (match-end 1)
  ;;   ?\u2b1b ; #\BLACK_LARGE_SQUARE
  ;;   'decompose-region)
  ;;   nil)
#+end_src

Hence, the same observation as yours regarding Gnus. I think I once asked help
on the Emacs and Gnus newsgroups, but the answer is very low there, and I
never got anybody even confirming it...

> Whether this is a problem with the whitespace highlighting codes or
> within gnus, I don't know but I can live without trailing spaces being
> highlighted!

Though, I do have highlight of trailing whitespaces. The first 2 lines must be 
it.

> Apologies for all the noise and thanks to all that tried to help me!

You're welcome. And... then... what's your impression? ;-)

Best regards,
  Seb

-- 
Sébastien Vauban


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


Re: [Orgmode] Org-mode screencasts

2010-11-05 Thread Russell Adams

On Thu, Sep 23, 2010 at 12:21:14PM -0400, Richard Moreland wrote:
> I've just installed and tested "recordmydesktop" (based on Russell's
> recommendation) on my Linux system and it seems to work great.  It
> produces .ogv video files, which will need to be run through ffmpeg or
> mencode first to be compatible with Vimeo.

To update this topic:

I've been recording a screencast for setting up a functional Org-mode
installation in Windows (I'll post about this separately), and wanted
to share the tools I'm using.

I did use recordmydesktop, and the Ogg Theora files it outputs had
some minor time synchronization issues. Nothing major, it "catches up"
frequently, but not real time keystroke capture. It runs in spurts.

I used Kdenlive to stitch together multiple segments, and found it to
be an excellent product, with terrible Ogg Theora support. To save
some time for the next person, here's what I did.

I took my .ogv's and transcoded them to .mov using ffmpeg, and split
the audio out to a separate wav file. Then Kdenlive used the .mov and
.wav in parallel tracks for rendering.

for X in *.ogv ; do ffmpeg -i $X -vn -acodec pcm_s16le -ar 22050 -ac 1
`basename $X .ogv`.wav ; done

for X in *.ogv ; do ffmpeg -i $X -an `basename $X .ogv`.mov ; done

After learning a bit on audio and video fades, Kden's rendering was
great. Always use at least a short audio fade in and out to prevent
clicks when changing tracks.

Next time I may use ffmpeg directly to record to avoid Theora, though
I think I'll continue to use my bluetooth headset with pulseaudio.

Thanks.

--
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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [patch] two bugs: one with comments and with exporting inline tasks

2010-11-05 Thread Eric S Fraga
Sébastien Vauban  writes:

> Hello Nicolas and Eric,
>
> Nicolas Goaziou wrote:
>>> Eric S Fraga wrote:
 In terms of what to actually do with inline tasks on export, what I
 would love to see would be to have an inline task converted to a
 footnote with a marginpar note, along the lines of:
>
> Any chance of bumping this thread?
>
> Email from Sébastien Vauban: {Bug?} Mark subtrees and inline tasks
> See http://mid.gmane.org/80vd4vq445.fsf%40mundaneum.com
>
> Best regards,
>   Seb

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.26.g4d02)

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


Re: [Orgmode] Re: [patch] two bugs: one with comments and with exporting inline tasks

2010-11-05 Thread Eric S Fraga
Nicolas Goaziou  writes:

> Hello,
>
>> Sébastien Vauban writes:
>
>> Eric S Fraga wrote:
>>> In terms of what to actually do with inline tasks on export, what I
>>> would love to see would be to have an inline task converted to a
>>> footnote with a marginpar note, along the lines of:
>>>
>>> #+begin_src latex
>>> \footnote{\textbf{<>}: <>> text>>}\marginpar{\fbox{\thefootnote}}
>>> #+end_src
>>>
>>> i.e. where <> would be replaced by "TODO figure out
>>> why this doesn't work" and <> by all the text between
>>> the ** lines. This is roughly the type of construct I use when
>>> I annotate latex documents directly. What do you think?
>
>> ... that we need this.
>
> What about creating a customizable alist, namely
> org-inlinetask-export-templates, containing exporters paired with
> format strings?
>
> For example, it could contain :
>
> '((html . "<@span class=\"%s %s\" %s@")
>   (latex . "\\footnote{\\textbf{%s %s}: 
> %s}\\marginpar{\\fbox{\\thefootnote}}"))
>
> where first %s is TODO, second %s is heading, and third one is
> content.
>
> Default values would be whatever is used right now.
>
> Any comments?
>
> Regards,
>
> -- Nicolas

This sounds perfect!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.26.g4d02)

___
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: Enhancing the Org/Gnus experience

2010-11-05 Thread Eric S Fraga
Tassilo Horn  writes:

> Eric S Fraga  writes:
>
> Hi Eric,
>
>>> if it is working, then the following code block should be fontified as
>>> if in an Org-mode buffer
>>>
>>> #+begin_src emacs-lisp
>>>   (message "is it working?")
>>> #+end_src
>>
>> Definitely not working then!  This comes out as simple text in gnus
>> and doesn't look at all like it would in an org buffer for me.
>
> Hm, for me it's shown the same as verbatim blocks or stuff like

Just to update you all.  I found the problem and it had nothing to do
with either gnus or org!  The problem was that I had the following in my
font-lock-mode-hook:

: (show-ws-highlight-trailing-whitespace)

This seemed to wipe out all other font locking information in gnus.
Whether this is a problem with the whitespace highlighting codes or
within gnus, I don't know but I can live without trailing spaces being
highlighted!

Apologies for all the noise and thanks to all that tried to help me!

Thanks,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.26.g4d02)

___
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] When opening email links, unseen messages marked as read!

2010-11-05 Thread Sébastien Vauban
Hello,

I just found out a particularly annoying feature of following email links.

Let's say I follow a link to an email stored in my INBOX.friends.

1. I do C-c C-o on the link.
2. It opens a summary buffer with that mail as only line in it
3. It displays its content below or on the left, depending on the window
   configuration.

That's working as expected.

Now, suppose I have 1 unseen (hence, unread as well) email that has been moved
into that same INBOX.friends folder (because of the splitting rules).

The above sequence becomes:

1. I do C-c C-o on the link.
2. It opens a summary buffer with that mail *and the unseen messages*.
3. It displays the content of the linked email below or on the left.

But... the unseen messages are marked as read, though I've not read them at
all... Hence, if I quit that article window without taking care, I've simply
almost "lost" emails: I will never read them, as they never will appear
anymore in my list of mails to read...

Any idea on what's causing this?

In my case, I read emails with Gnus 5.13. I don't know if this is related to
Gnus, or to the process of following email links: what about WL, for example?

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: TaskJuggler3, revisited

2010-11-05 Thread Anthony Lander

Hi John,

On 10-Nov-4, at 5:24 PM, John Hendy wrote:


Nice! I was able to do the following:

- grab your copy of org-taskjuggler.el and install it
- get the .org file here: http://orgmode.org/manual/TaskJuggler-export.html
- export to a .tjp


If you grabbed the code I wrote, you can export the file, and compile  
it directly with tj3 using C-c e J, saving a step.


- swap out the default export with the code below and run "tj3 tj3- 
test.tjp" and get a nice html report!
--- If you're looking for a default tj3 export... perhaps start with  
what's below?


Thanks for the pointer to the reports - I'll try to add them in to the  
example file.


Also, thank you for testing the code, and please post if you find  
bugs, or other problems,


Regards,

  -Anthony

___
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] german-postfix and speedkeys

2010-11-05 Thread Jean-Marie Gaillourdet
Hi Memnon, 

Memnon Anon  writes:

> If you use german-postfix, using the `u' speedkey command on stars will
> not work in orgmode files; I use this frequently, so being able to
> quickly toggle is essential.

I didn't notice that so far. Perhaps it is possible to make speedkeys
aware of input methods?


Regards,
  Jean-Marie

___
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: #+call ?

2010-11-05 Thread Sébastien Vauban
Hello,

Sébastien Vauban wrote:
> "Thomas S. Dye" wrote:
>>> There is a similar question, but no answer that I can find.  Did you see an
>>> answer there?
>>
>> I found Eric's reply.  Sorry for the noise.
>
> Could you put a link to that message, or the update code block? I also have
> problems finding it ;-)  Thanks.

Found it:

 [[http://mid.gmane.org/87hbg7fvzo.fsf%40gmail.com][Email from Eric Schulte: 
Re: org babel and alternative]]
 [2010-10-27 Wed 18:20]

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] Executing sh code within sessions

2010-11-05 Thread Sébastien Vauban
Hi Eric,

As requested, I'm here emphasizing the important part of this post:

When executing sh code block within a session, it never terminates, echoing...

: executing Sh code block...

in the minibuffer.

The =sva= shell buffer contains:

#+begin_src sh
echo In $(pwd):

/sebast...@mediacenter:...ples/Org-scraps 0$ In 
/cygdrive/c/home/sva/Examples/Org-scraps:
/sebast...@mediacenter:...ples/Org-scraps 0$ echo In $(pwd):
In /cygdrive/c/home/sva/Examples/Org-scraps:
/sebast...@mediacenter:...ples/Org-scraps 0$ ls *.org
Agenda-Sorting-Strategy.org
Clock-Report.org
org-beamer-fpu-rules.org
org-hist.org
/sebast...@mediacenter:...ples/Org-scraps 0$ echo 'org_babel_sh_eoe'
org_babel_sh_eoe
/sebast...@mediacenter:...ples/Org-scraps 0$
#+end_src

Does that ring a bell to you?

Details below, if needed.

Best regards,
  Seb

Sébastien Vauban wrote:
> #+TITLE: Executing sh-code within a session
> #+AUTHOR:Seb Vauban
> #+LANGUAGE:  en_US
>
> * Executing sh-code within a session
>
> ** Context
>
> - git pull done this morning (2010-11-04 Thu).
>
> - EmacsW32 + Cygwin bash as inferior shell
>
>   #+begin_src emacs-lisp
>   (setq shell-file-name "bash")
>   (setenv "SHELL" "bash")
>   (setq shell-command-switch "-c")
>   (setq w32-quote-process-args t)
>   (setq explicit-shell-file-name "bash")
>   #+end_src
>
> ** First time
>
> The first time I execute the following:
>
> #+begin_src sh :session sva
> echo In $(pwd):
> ls *.org
> #+end_src
>
> I get the following error:
>
> #+begin_src emacs-lisp
> Debugger entered--Lisp error: (error "Marker does not point anywhere")
>   ansi-color-apply-on-region(# #)
>   ansi-color-process-output("")
>   run-hook-with-args(ansi-color-process-output "")
>   comint-send-input(nil t)
>   (lambda (line) (insert line) (comint-send-input nil t) (sleep-for 
> 0.25))("echo In $(pwd):")
>   mapc((lambda (line) (insert line) (comint-send-input nil t) (sleep-for 
> 0.25)) ("echo In $(pwd):" "ls *.org" "echo 'org_babel_sh_eoe'"))
>   (progn (goto-char (process-mark ...)) (let (... ...) (setq dangling-text 
> ...) (delete-region start end)) (mapc (lambda ... ... ... ...) (append ... 
> ...)) (while (progn ... ...) (accept-process-output ...)) (goto-char 
> (process-mark ...)) (insert dangling-text))
>   (unwind-protect (progn (goto-char ...) (let ... ... ...) (mapc ... ...) 
> (while ... ...) (goto-char ...) (insert dangling-text)) (remove-hook (quote 
> comint-output-filter-functions) (quote my-filt)))
>   (progn (fset (quote my-filt) (function* ...)) (add-hook (quote 
> comint-output-filter-functions) (quote my-filt)) (unwind-protect (progn ... 
> ... ... ... ... ...) (remove-hook ... ...)))
>   (unwind-protect (progn (fset ... ...) (add-hook ... ...) (unwind-protect 
> ... ...)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound 
> ...)))
>   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect 
> (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
>   (letf ((... ...)) (add-hook (quote comint-output-filter-functions) (quote 
> my-filt)) (unwind-protect (progn ... ... ... ... ... ...) (remove-hook ... 
> ...)))
>   (letf* ((... ...)) (add-hook (quote comint-output-filter-functions) (quote 
> my-filt)) (unwind-protect (progn ... ... ... ... ... ...) (remove-hook ... 
> ...)))
>   (flet ((my-filt ... ...)) (add-hook (quote comint-output-filter-functions) 
> (quote my-filt)) (unwind-protect (progn ... ... ... ... ... ...) (remove-hook 
> ... ...)))
>   (let ((string-buffer "") dangling-text raw) (flet (...) (add-hook ... ...) 
> (unwind-protect ... ...)) (if (and t body ...) (setq raw ...)) (split-string 
> string-buffer comint-prompt-regexp))
>   (progn (unless (org-babel-comint-buffer-livep session) (error "buffer %s 
> doesn't exist or has no process" session)) (set-buffer session) (let (... 
> dangling-text raw) (flet ... ... ...) (if ... ...) (split-string 
> string-buffer comint-prompt-regexp)))
>   (unwind-protect (progn (unless ... ...) (set-buffer session) (let ... ... 
> ... ...)) (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 (unless (org-babel-comint-buffer-livep session) (error 
> "buffer %s doesn't exist or has no process" session)) (set-buffer session) 
> (let (... dangling-text raw) (flet ... ... ...) (if ... ...) (split-string 
> string-buffer comint-prompt-regexp)))
>   (save-excursion (save-match-data (unless ... ...) (set-buffer session) (let 
> ... ... ... ...)))
>   (org-babel-comint-in-buffer session (let (... dangling-text raw) (flet ... 
> ... ...) (if ... ...) (split-string string-buffer comint-prompt-regexp)))
>   (org-babel-comint-with-output (session org-babel-sh-eoe-output t body) 
> (mapc (lambda ... ... ... ...) (append ... ...)))
>   (butlast (org-babel-comint-with-output (session org-babel-sh-eoe-output t 
> body) (mapc ... ...)) 2)
>   (mapcar (function org-ba

[Orgmode] Re: Worg pull broken?

2010-11-05 Thread Sébastien Vauban
Hello David,

David Maus wrote:
> At Fri, 22 Oct 2010 17:55:28 +0200, Sébastien Vauban wrote:
>> Just wanted to update my local repo of Worg:
>> 
>> --8<---cut here---start->8---
>> [...@mediacenter] ~/src/Worg>git pull
>> error: Unable to find 9a6e35ee0276b7736f5a08dccba52a4374574892 under 
>> http://repo.or.cz/r/Worg.git
>> Cannot obtain needed blob 9a6e35ee0276b7736f5a08dccba52a4374574892
>> while processing commit f58d7c210e22c66d18dae80f45280e32c086b7c3.
>> error: Fetch failed.
>> --8<---cut here---end--->8---
>> 
>> Does that tell you something?
>
> Does this problem still occur

It still does, today[1], after having worked a couple of times.

--8<---cut here---start->8---
error: Unable to find c0e143bc0feb7275eb16f079ed70adafb6b74034 under 
http://repo.or.cz/r/Worg.git
Cannot obtain needed blob c0e143bc0feb7275eb16f079ed70adafb6b74034
while processing commit f50499d14f78caeb56208c3a6c392c6d5a5729b2.
error: Fetch failed.
--8<---cut here---end--->8---

> and what remote repository are you pulling from? (cat .git/config) There are
> postings on the web that mention this error when pulling via http: protocol.

--8<---cut here---start->8---
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = http://repo.or.cz/r/Worg.git
[branch "master"]
remote = origin
merge = refs/heads/master
--8<---cut here---end--->8---


> Pulling git+ssh://repo.or.cz/srv/git/Worg.git works fine here.

To do this, I need a password on repo.or.cz. Who do I have to ask for this?

Best regards,
  Seb

Footnotes:
[1] Proxy is correctly set up via =export http_proxy=myproxy:8080=.
-- 
Sébastien Vauban


___
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] publishing a drawer

2010-11-05 Thread Christian Moe

On 11/3/10 12:48 PM, Łukasz Stelmach wrote:

Hello.

Is it possible to publish drawer's content during export (both HTML and
LaTeX)? I am creating a presentation with S5 and I'd love to have
:LOGBOOK: (or :NOTES:) published as  (or
\note{} for Beamer).



The following ought to work, but doesn't for Latex. Code improvements 
welcome.


* Set option to include drawers in export

: #+OPTIONS: d:t

For some reason, this doesn't work for me with Latex export. I've 
filed a bug report.


* Customize drawer export

Make org-export-format-drawer-function point to a custom function, 
e.g. like this for your exact case (improvements welcome):


#+begin_src emacs-lisp
  (defun my-org-export-format-drawer (name content backend)
"Export :NOTES: and :LOGBOOK: drawers to HTML class
  or LaTeX command"
(cond
 ((string-match "NOTES\\|LOGBOOK" name)
  (cond
   ((eq backend 'html)
(format "@ %s @" content))
   ((eq backend 'latex)   ; FIXME: This doesn't work
(format "#+BEGIN_LATEX:\n\note{%s}\n#+END_LATEX " content))
   (t nil)))
 (t nil)))

  (setq org-export-format-drawer-function 'my-org-export-format-drawer)
#+end_src

* Style the HTML `notes' class as you want it

e.g. with

: #+STYLE: .notes {color: grey; margin-bottom: 1em} 
.notes:before {content: "Notes: "; font-weight: bold}


* Options

You can add more conditional clauses for other drawers you want styled 
a different way.


The function could be written more simply if you simply want all your 
drawers exported with the drawer name as HTML class/LaTeX command.


#+begin_src emacs-lisp
  (defun my-org-export-format-drawer (name content backend)
"Export drawers to HTML class or LaTeX command with same name"
(setq name (downcase name))
(cond
 ((eq backend 'html)
  (format "@ %s @" name content))
 ((eq backend 'latex)   ; FIXME: This doesn't work
  (format "#+BEGIN_LATEX:\n\%s{%s}\n#+END_LATEX " name content))
 (t nil)))
#+end_src

...and if you're using org-special-blocks, you can do the same simply 
with:


#+begin_src emacs-lisp
  (defun my-org-export-format-drawer (name content backend)
"Export drawers to HTML class or LaTeX command with same name"
(setq name (downcase name))
(format "#+BEGIN_%s\n%s\n#+END_%s" name content name))
#+end_src

Let me know how it turns out. It's an interesting alternative route to 
extensible block-level markup.


HTH,
Christian

___
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: [patch] two bugs: one with comments and with exporting inline tasks

Hello Nicolas and Eric,

Nicolas Goaziou wrote:
>> Eric S Fraga wrote:
>>> In terms of what to actually do with inline tasks on export, what I
>>> would love to see would be to have an inline task converted to a
>>> footnote with a marginpar note, along the lines of:

Any chance of bumping this thread?

Email from Sébastien Vauban: {Bug?} Mark subtrees and inline tasks
See http://mid.gmane.org/80vd4vq445.fsf%40mundaneum.com

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: #+call ?

Hi Thomas,

"Thomas S. Dye" wrote:
>> There is a similar question, but no answer that I can find.  Did you see an
>> answer there?
>
> Replying to his own message:
>
> I found Eric's reply.  Sorry for the noise.

Could you put a link to that message, or the update code block? I also have
problems finding it ;-)  Thanks.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] %20 in file://... URL

Vincent Belaïche  writes:

> Sorry to dwell on it: I am just wondering, is there any reason why %20
> and suchlikes are not supported with the file: protocole ? 
>
> I not, I can submit a patch to correct this and have the % constructs
> decoded.

Please, do! :-)

Giovanni

___
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: [patch] two bugs: one with comments and with exporting inline tasks

Hello Nicolas,

Nicolas Goaziou wrote:
>> Sébastien Vauban writes:
>> Eric S Fraga wrote:
>>> In terms of what to actually do with inline tasks on export, what I would
>>> love to see would be to have an inline task converted to a footnote with a
>>> marginpar note, along the lines of:
>>> 
>>> #+begin_src latex
>>> \footnote{\textbf{<>}: <>> text>>}\marginpar{\fbox{\thefootnote}}
>>> #+end_src
>>> 
>>> i.e. where <> would be replaced by "TODO figure out why
>>> this doesn't work" and <> by all the text between the **
>>> lines. This is roughly the type of construct I use when I annotate latex
>>> documents directly. What do you think?
>
>> ... that we need this.
>
> What about creating a customizable alist, namely
> org-inlinetask-export-templates, containing exporters paired with format
> strings?
>
> For example, it could contain :
>
> '((html . "<@span class=\"%s %s\" %s@")
>   (latex . "\\footnote{\\textbf{%s %s}: 
> %s}\\marginpar{\\fbox{\\thefootnote}}"))
>
> where first %s is TODO, second %s is heading, and third one is
> content.
>
> Default values would be whatever is used right now.
>
> Any comments?

This seems like a good approach -- if not the right! -- to me.

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] org-sparse-tree command name



diff --git a/doc/org.texi b/doc/org.texi
index 72053e9..2f4c225 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -1400,8 +1400,7 @@ commands can be accessed through a dispatcher:
 @table @asis
 @orgcmd{C-c /,org-sparse-tree}
 This prompts for an extra key to select a sparse-tree creating command.
-...@kindex C-c / r
-...@item C-c / r
+...@orgcmd{c-c / r,org-sparse-tree}
 @vindex org-remove-highlights-with-change
 Occur.  Prompts for a regexp and shows a sparse tree with all matches.  If
 the match is in a headline, the headline is made visible.  If the match is in
___
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] clock report shows link literally?

Hi,

After I upgrade orgmode to latest version, clock report shows link
text literally.

For example,

   [[file:/home/liang/gtd/todo.org::Task...

Unfortunately, in this way, I can not see what this task actually is.
I have to temporarily disable link in clock report.

Is this desired behavior or a bug?

Thanks,
Liang.



___
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