Re: [O] S-TAB cycling opening archive subtrees

2012-12-17 Thread Vincent Beffara
Argh, I can't reproduce it either actually. Probably a consequence of updating 
org-mode and not restarting emacs (so still a bug but a very minor one ...)

Sorry for the noise!

/v 

-- 
Vincent Beffara


On Saturday, December 15, 2012 at 09:32 , Bastien wrote:

 Hi Vincent,
 
 Vincent Beffara vbeffara...@gmail.com (mailto:vbeffara...@gmail.com) writes:
 
  When cycling visibility of a subtree using TAB, subtrees with the :ARCHIVE:
  tag are not opened, and that is a very good thing. But when I cycle a
  buffer globally using S-TAB, their contents are shown, which feels like the
  wrong thing to do ...
 
 
 
 I cannot reproduce this.
 
 With this file and emacs -Q:
 
 * Heading 1
 Test1
 * Heading 2
 Test2
 * Heading (archived) :ARCHIVE:
 Is it shown
 
 S-TAB first folds all headings then it does not reopen the last one.
 
 Is there a way I can reproduce this problem?
 
 Thanks,
 
 -- 
 Bastien






Re: [O] PDF docs from Org-mode: not valid PDF?

2012-12-17 Thread Radhakrishnan CV
Dear Bastien,

Sorry for the late reply.

On Sat, Dec 15, 2012 at 1:55 PM, Bastien b...@altern.org wrote:

 Hi Radhakrishnan,

 thanks for the information.  Am I correctly assuming you're one of
 the authors of the pdfx.sty package?


You are right, Bastien.


 Radhakrishnan CV c...@river-valley.org writes:

  I think, orgmode can even help to create a small XMP meta file (for
  Dublin Core metadata compliance) needed by pdfx package while
  creating standards compliant PDF's which at the moment is created by
  pdfTeX in an unsatisfactory fashion.

 I don't know enough about this to be of real help, but if Org and
 Orgers can help, don't hesitate let us know precisely how!


I can help with LaTeX part of the stuff when needed.

Best regards

Radhakrishnan
http://maps.google.com/maps?q=8.494174%2c76.963313


[O] Bibtex export

2012-12-17 Thread mohamed
Hi,

Is there any way to use something like :

* Section a

...

* Bibliography  [with some specific tag]
\clearpage
\bibliographystyle{acm}
\bibliography{biblio.bib}



My point is to avoid deleting the bibliography lines when deleting the previous
section (section a).

Thanks,










[O] bad text pointer cursor: BadValue (integer parameter out of range for operation)

2012-12-17 Thread Micah Anderson

Hi,

I'm trying to make an org-capture frame so I can call it conveniently
with a keystroke and emacsclient will launch and bring up
org-capture. This works, and it is very convenient for my
workflow. Basically I do the following in my awesome window manager
configuration:

awful.key({ modkey }, q, function () awful.util.spawn(emacsclient --eval 
'(make-capture-frame)') end),

That allows me to hit Super-q and then it will spawn:

 emacsclient --eval '(make-capture-frame)'

which I have defined in my .emacs.d/my-org.el as follows:

(defun make-capture-frame ()
  Create a new frame and run org-capture.
  (interactive)
  (make-frame '((name . capture) (width . 80 ) (height . 10)))
  (select-frame-by-name capture)
  (org-capture)
  (delete-other-windows)
  )

Everything works great, except... at some point, something happens and I
can no longer open a capture frame. When I hit the key nothing happens,
so I execute the emacsclient line in a shell and what I get is:

*ERROR*: bad text pointer cursor: BadValue (integer parameter out of range for 
operation)

I have no idea what this means, or how to debug it. I can still run M-x
org-capture, so that seems to still work, but otherwise I'm puzzled...So
I turn to you wizards for some help and guidance!

thanks for any ideas or suggestions for improvement,
micah

-- 





Re: [O] org-mode moves point in other window

2012-12-17 Thread Thomas Koch
Bastien:
 Thomas Koch tho...@koch.ro writes:
  I've got a large org-mode (7.9.2, emacs 24.2.1) table and two windows,
  top and bottom. I shrink the upper window to only show the headline of
  my table and work in the lower window.
  
  When I move with tab in the lower window or recalculate the formula, the
  upper window moves its point to the formula.
  
  How can I make the upper window to remain as it is?
 
 Instead of splitting the window, you can create an indirect buffer.
 
 It will visually be equivalent, and the point in the upper window
 will not move when C-cC-c'ing on the formulas.

Hi Bastien,

thank you. First I tried to narrow the indirect buffer only to the headline of 
the table but then the point still jumped to the end of the table and enlarged 
the narrowing to the full table when the column width changed.

Now I left the narrowing to include the full table and the point seem to 
remain where it is even on column resizes.

Regards,

Thomas Koch, http://www.koch.ro



[O] Bugs in org-cycle-internal-local?

2012-12-17 Thread Rémi Vanicat
Hello,

I've tried to use visibility cycling in outline minor mode[1] with ruby,
and I've a problem with when hiding some subtree: when the next subtree
on the same level begin with space char, its heading is put on the same
line than the current one:

Something like:

  def get(info, attr, default=nil)

  end

  def initialize

become

  def get(info, attr, default=nil)... def initialize

when I expect
  def get(info, attr, default=nil)...
  def initialize

The problem seem to come from the org-cycle-internal-local function that
wrongly put the end of the subtree in the middle of a line, if the
beginning of this line is all white character.






Here is the code I use to setup ruby-mode for interesting integration
with outline-minor-mode and org cycling facilities:

#+begin_src emacs-lisp
  (defvar my-ruby-outline-regexp ### \\| *def| *module| *class\\)

  (defun my-ruby-outline-level ()
compute the level of a outline for ruby
(save-match-data
 (cond
   ((looking-at ###) 1)
   ((looking-at \\( *\\))
(+ 2 (length (match-string 1)))

  (defun define-ruby-outline ()
(make-local-variable 'outline-regexp)
(setq outline-regexp my-ruby-outline-regexp)
(make-local-variable 'outline-level)
(setq outline-level #'my-ruby-outline-level)
(outline-minor-mode))

  (add-hook 'ruby-mode-hook 'define-ruby-outline)

  (eval-after-load 'outline
'(progn
  (define-key outline-minor-mode-map [(control tab)] 'org-cycle)
  (define-key outline-minor-mode-map [(backtab)] 'org-global-cycle)))
#+end_src



[1]:http://orgmode.org/worg/org-faq.html#use-visibility-cycling-in-outline-mode

-- 
Rémi Vanicat




[O] indentation across multiple source blocks

2012-12-17 Thread Tony Day

Is there an easy way to preserve indentation for a source block taking
into account previous blocks?  For (a silly) example:


* foo
:PROPERTIES:
:tangle:   yes
:END:
#+begin_src emacs-lisp
  (defun foo ()
#+end_src

#+begin_src emacs-lisp
(bar)
#+end_src

#+begin_src emacs-lisp
  )
#+end_src

Any help much appreciated.

Tony



Re: [O] remote execution in heterogeneous environment

2012-12-17 Thread Michael Albinus
[Cc emacs-orgmode@gnu.org]

George Jones elu...@gmail.com writes:

Hi George,

 Did you ever get resolution on these?  I think I'm hitting the same
 exact problems.

In my last message, I gave some hints what to do in org's code. Since I
don't use org myself (yet), I haven't followed that.

Looks, like nobody did take the ball :-(

Maybe I'll check it again over XMas days, and maybe I can propose a
concrete patch then.

 Thanks,
 ---George Jones

Best regards, Michael.