Dan Davison | 1 Nov 2009 02:36
Picon
Picon
Favicon
Gravatar

Re: Exporting blocks without removing indentation

Carsten Dominik <carsten.dominik <at> gmail.com> writes:

> Hi Dan,
>
> maybe the easiest way to implement this would be a -i (or whatever)
> switch a the src block.

Thanks, I have gone ahead with your suggestion. As you suggest, I've
added a -i switch that prevents the indentation of a block from being
removed during export. If the variable org-src-preserve-indentation[1]
is non-nil, then that is equivalent to having a -i switch on every
source block.

Then the issue remained that an org-exp-block plugin is unable to return
a block with the original indentation if the indentation is removed
before it receives it. So I have made that indentation removal
contingent on the same criteria (non-nil variable or -i switch).

Those 2 commits are in branch ded-indent at
git://repo.or.cz/org-mode/babel.git, and also pasted below.

Dan

Footnotes:

[1] org-src-preserve-indentation also acts in org-src-mode, where it
prevents indentation from being removed when switching between org and
language mode buffers.

(Continue reading)

Thomas S. Dye | 1 Nov 2009 05:09

[babel] noweb expansion in latex source blocks

Aloha all,

Noweb expansion in latex source blocks inserts spaces that can  
introduce unwanted paragraph breaks in LaTeX.

The outer-block in this org file looks like something that should be  
set as one paragraph in LaTeX.

* noweb expansion

#+srcname: outer-block
#+begin_src latex :tangle noweb_exp.tex
This is an observation.
<<inner-block>>
This is a conclusion.
#+end_src

#+srcname: inner-block
#+begin_src latex
This is an analysis.
#+end_src

But it tangles a LaTeX snippet with three paragraphs.

% generated by org-babel-tangle

% [[file:~/Public/projects/903_adzes/org-babel/noweb- 
expansion.org::*noweb%20expansion][outer-block]]
This is an observation.

(Continue reading)

Carsten Dominik | 1 Nov 2009 08:53
Picon

Re: Exporting blocks without removing indentation

Hi Dan,

this looks really good.  I have applied the patch and again
made the necessary entries in lisp/ChangeLog - it would be nice if
you could make them next time.  You know how that works?  Just press
C-c x 4 in each top level form you have changed and write a short
commentary in the ChangeLog file.  I recommend to do this in the very  
end,
to minimize merge conflicts - unfortunately ChamgeLog almost always  
creates
a simple conflict because changes are always written to the top of the  
file.
Usually I create a git diff in Emacs (if you use magit, press "D" and  
then
for example "origin/master" as base.  In the dif buffer, you can press  
RET
at each change to get to the source buffer, and then C-x 4 a to create  
the
ChangeLog entry.

I know this is annoying because git of course does record its changes so
nicely - but such are the rules for code in Emacs.

Also I have changed the indentation in the docstring that it complied to
Emacs rules: First line indented like TAB does it, but the second and
following lines not indented so that, when the docstring is displayed,
you do not get those lines with initial whitespace.

Thanks!

(Continue reading)

Tassilo Horn | 1 Nov 2009 11:03
Picon
Gravatar

Cannot clone Worg

Hi all,

I'd like to create a people page on Worg, but unfortunately, I cannot
clone it.  I already have a user at repo.or.cz.  Here's the error
message:

--8<---------------cut here---------------start------------->8---
% git clone git+ssh://tsdh <at> repo.or.cz/srv/git/Worg.git
Initialized empty Git repository in /home/horn/repos/Worg/.git/
remote: fatal: exec pack-objects failed.
error: git-upload-pack: git-pack-objects died with error.
fatal: git-upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
--8<---------------cut here---------------end--------------->8---

Any ideas?

Bye,
Tassilo

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

Matt Lundin | 1 Nov 2009 12:38

Re: Cannot clone Worg

Tassilo Horn <tassilo <at> member.fsf.org> writes:

> Hi all,
>
> I'd like to create a people page on Worg, but unfortunately, I cannot
> clone it.  I already have a user at repo.or.cz.  Here's the error
> message:
>
> % git clone git+ssh://tsdh <at> repo.or.cz/srv/git/Worg.git
> Initialized empty Git repository in /home/horn/repos/Worg/.git/
> remote: fatal: exec pack-objects failed.
> error: git-upload-pack: git-pack-objects died with error.
> fatal: git-upload-pack: aborting due to possible repository corruption on the remote side.
> remote: aborting due to possible repository corruption on the remote side.
> fatal: early EOF
> fatal: index-pack failed

I'm getting the same error message when I try to pull recent changes
from Worg.

- Matt

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

Dan Davison | 1 Nov 2009 15:44
Picon
Picon
Favicon
Gravatar

Re: Exporting blocks without removing indentation

Carsten Dominik <carsten.dominik <at> gmail.com> writes:

> Hi Dan,
>
> this looks really good.  I have applied the patch and again
> made the necessary entries in lisp/ChangeLog -  it would be nice if
> you could make them next time.  

Thanks, I think I will remember next time!

<...>
> I recommend to do this in the very
> end,
> to minimize merge conflicts - unfortunately ChamgeLog almost always
> creates
> a simple conflict because changes are always written to the top of the
> file.
> Usually I create a git diff in Emacs (if you use magit, press "D" and
> then
> for example "origin/master" as base.  In the dif buffer, you can press
> RET
> at each change to get to the source buffer, and then C-x 4 a to create
> the
> ChangeLog entry.

Thanks, that's really useful. I didn 't know any of that.

Dan

>
(Continue reading)

Favicon
Gravatar

Re: integration between Org, remember, and Mutt

Hi!

I use something similar, but I wasn't aware that adding link types to
org is that simple. Thanks! ;)

My scripts and snippets won't be very interesting I guess, since I've
resorted to store all my Emails in one single +Archive Folder (as
recommended by Merlin Mann), so it doesn't do any smart things like
guessing the right folders.

Stefano Zacchiroli schrieb:
> Those mails are indexed by mu (http://code.google.com/p/mu0/), an
> alternative to mairix and nmzmail that I find more convenient. Just in
> case you wonder, mail indexes are updated regularly with the following
> cron entry (which takes just a few seconds, usually):

This is off-topic, but mu strikes as quite similar to mairix. What do
you find more convenient about it?

--

-- 
        Friedrich Delgado Friedrichs <friedel <at> nomaden.org>
                             TauPan on Ircnet and Freenode ;)
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
(Continue reading)

Carsten Dominik | 1 Nov 2009 17:11
Picon

Re: Re: Cannot clone Worg


On Nov 1, 2009, at 12:38 PM, Matt Lundin wrote:

> Tassilo Horn <tassilo <at> member.fsf.org> writes:
>
>> Hi all,
>>
>> I'd like to create a people page on Worg, but unfortunately, I cannot
>> clone it.  I already have a user at repo.or.cz.  Here's the error
>> message:
>>
>> % git clone git+ssh://tsdh <at> repo.or.cz/srv/git/Worg.git
>> Initialized empty Git repository in /home/horn/repos/Worg/.git/
>> remote: fatal: exec pack-objects failed.
>> error: git-upload-pack: git-pack-objects died with error.
>> fatal: git-upload-pack: aborting due to possible repository  
>> corruption on the remote side.
>> remote: aborting due to possible repository corruption on the  
>> remote side.
>> fatal: early EOF
>> fatal: index-pack failed
>
> I'm getting the same error message when I try to pull recent changes
> from Worg.

This must be a problem at repo.or.cz,  maybe a buggy git version.   
Let's hope
they'll be able to fix it soon - pushing still works...

- Carsten
(Continue reading)

Stefano Zacchiroli | 1 Nov 2009 17:14
Gravatar

Re: integration between Org, remember, and Mutt

On Sun, Nov 01, 2009 at 04:23:35PM +0100, Friedrich Delgado Friedrichs wrote:
> I use something similar, but I wasn't aware that adding link types to
> org is that simple. Thanks! ;)

You're more than welcome.
Since we are at least 2 needing this kind of stuff :-) , if you have any
suggestion about where to document this let me know. I'll blog about it
in the next few days, but having it somewhere Org-mode-related (maybe
Word?) would be probably better.

> Stefano Zacchiroli schrieb:
> > Those mails are indexed by mu (http://code.google.com/p/mu0/), an
> > alternative to mairix and nmzmail that I find more convenient. Just in
> > case you wonder, mail indexes are updated regularly with the following
> > cron entry (which takes just a few seconds, usually):
> 
> This is off-topic, but mu strikes as quite similar to mairix. What do
> you find more convenient about it?

Given that would be off-topic, I'll just give you a pointer to a blog
post of mine where I've recently explained my choice (considering
nmzmail as well):
http://upsilon.cc/~zack/blog/posts/2009/10/mail_indexing_for_mutt/

Cheers.

--

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc  <at>  Univ. Paris 7
zack <at> {upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'รจ ..|  .  |. Et ne m'en veux pas si je te tutoie
(Continue reading)

Doug Hellmann | 1 Nov 2009 17:15
Picon
Gravatar

org-mac-iCal.el uses hard-coded diary file name


org-mac-iCal.el doesn't use the diary-file variable to save the diary  
it generates, so if the variable isn't set to the same path as the  
hard-coded value in the library the diary entries don't show up in  
your agenda view.

I think the patch below fixes the problem.

Thanks,
Doug

diff --git a/contrib/lisp/org-mac-iCal.el b/contrib/lisp/org-mac-iCal.el
index 056d73d..fa4e763 100644
--- a/contrib/lisp/org-mac-iCal.el
+++ b/contrib/lisp/org-mac-iCal.el
 <at>  <at>  -202,7 +202,8  <at>  <at>  date range so that Emacs calendar view doesn't  
grind to a ha
      (goto-line 1)
      (write-region (point-min) (point-max) string))

-  (icalendar-import-file string (expand-file-name "~/.emacs.d/diary")))
+  (icalendar-import-file string diary-file))
+;;  (icalendar-import-file string (expand-file-name "~/.emacs.d/ 
diary")))

  (defun omi-kill-diary-buffer (list)
    (mapc

_______________________________________________
Emacs-orgmode mailing list
(Continue reading)


Gmane