Re: [O] Difference :header-args: and :header-args+:?

2014-09-05 Thread Rainer M Krug
Aaron Ecay aarone...@gmail.com writes:

 Hi Rainer,

 2014ko irailak 4an, Rainer M Krug-ek idatzi zuen:
 
 Hi
 
 I have a question concerning the property :header-args:. In addition
 to :header-args: there is also :header-args+:.
 
 
 1) If I set some properties globally and in a subtree I want to *add* a
 *new* header argument - do I have to use the + or not?
 
 2) If I set some properties globally and in a subtree I want to *change*
 a *single* header argument which *was set globally* - do I have to use
 the + or not?

 Are you aware that you can set individual header args as properties?
 Something like (at the file level):

 #+property: session *foo*

 or (at the subtree level):

 :PROPERTIES:
 :session: *foo*
 :END:

 This will likely be easier than trying to do surgery on the header-args
 property.

Absolutely - but this has been (unfortunately!!!) be deprecated:

Quoted from the manual [1] :

,
| [1] The deprecated syntax for default header argument properties, using
| the name of the header argument as a property name directly, evaluates
| the property as seen by the corresponding source block definition. This
| behavior has been kept for backwards compatibility.
`

I was using this deprecated behavior and I was *very* happy with it, but
I am trying to adjust to the new syntax.

So how can I use the new syntax?

Rainer

Footnotes: 
[1]  
http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html#Header-arguments-in-Org-mode-properties

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgplohVIvhXWD.pgp
Description: PGP signature


[O] Freemind export/import to/from org mode

2014-09-05 Thread Gonzalo Camarillo
Hi,

I use org-freemind-from-org-mode on the following org file:

---beginning of file---
* Root node
** Parent
This is the node's note

*** Child
---end of file---

It generates an mm file. I expected the contents of the entries in the
org file to be exported as notes of the nodes in the mind map. Instead,
they are exported as child nodes whose titles are the notes. As a
result, in this example Parent has two children (Child and a note) in
the mind map.

In fact, if I take the mm file and import it back to org using
org-freemind-to-org-mode, I get the following:


---beginning of file---
* Root node
** Parent
***
This is the node's note

*** Child
---end of file---


Is there a way to export the contents of an entry as notes in the mind map?

I face the same problem in the other direction. If I add a note to the
mind map and then export it to org, the note does not make it to the org
file.

I would appreciate any help with these issues.

Thanks,

Gonzalo



[O] Downloadable mailing list archive?

2014-09-05 Thread Rainer M Krug
Hi 

is there a downloadable mailing list archive in maildir format for
org-mode?

I know I can download the mbox from gmane, but I would prefer maildir
format.

Thanks,

Rainer

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpol1L_nCFNV.pgp
Description: PGP signature


[O] [PATCH] Add a support for linking against an attachment of current entry (was: easy way to link to file in attachment directory?)

2014-09-05 Thread Samuel Loury
Hi,
Darlan Cavalcante Moreira darc...@gmail.com writes:

 I have this
   #+LINK: attach elisp:(org-open-file (org-attach-expand %s))
 in all of my org-mode files. In fact, I have this line, among others, in
 an org-mode setup file which is included in all of my org-mode files
 using #+SETUPFILE:

 Then I can create a link to an attachment with
 [[attach:filename_without_any_path.extension][description]]

 Also, just after attaching a new file org will automatically store the
 link so that you can use C-c C-l to include the link.
I like your solution, but I was quite frustrated by the lack of
completion against the attached files,

Here, I propose a solution using `org-add-link-type' and adding
attach: kind of links.

I actually propose to patch org mode to add this feature. I realized
that the part about finding the attached file was already implemented
into `org-attach-open', so I first extracted the functionality into a
separated function, then I made use of it to implement the new attach:
link and the associated completion.

For that reason, I split the work into two commits that you'll find
attached to this mail.

From d4b87312d96d4d1ec44562df5b951aa4df1f7a16 Mon Sep 17 00:00:00 2001
From: Konubinix konubi...@gmail.com
Date: Fri, 5 Sep 2014 12:11:41 +0200
Subject: [PATCH 1/2] Get the part finding an attachment out of
 `org-attach-open'.

* lisp/org-attach.el (org-attach-find-file): Created
* lisp/org-attach.el (org-attach-open): Make use of `org-attach-open'

This will allow other functions to make use of the `org-attach-find-file'
feature.
---
 lisp/org-attach.el | 35 +++
 1 file changed, 27 insertions(+), 8 deletions(-)

diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index bcf7ba7..eb22b39 100644
--- a/lisp/org-attach.el
+++ b/lisp/org-attach.el
@@ -443,20 +443,39 @@ This will attempt to use an external program to show the directory.
   (let ((attach-dir (org-attach-dir t)))
 (dired attach-dir)))
 
+
+(defun org-attach-find-file (prompt)
+  Provides the name of a file available in the attachments of current
+heading.
+If there are more than one attachment, you will be prompted for the file name.
+  (let* ((attach-dir (org-attach-dir t))
+	 (files (org-attach-file-list attach-dir)))
+(and
+ ;; return nil if not files
+ files
+ (or
+  ;; return the only available file
+  (and
+   (= (length files) 1)
+   (car files)
+   )
+  ;; or return the result of the completion
+  (org-icompleting-read
+   prompt
+   (mapcar 'list files) nil t)
+
 (defun org-attach-open (optional in-emacs)
   Open an attachment of the current task.
-If there are more than one attachment, you will be prompted for the file name.
+Use `org-attach-complete-file' to find the desired file.
 This command will open the file using the settings in `org-file-apps'
 and in the system-specific variants of this variable.
 If IN-EMACS is non-nil, force opening in Emacs.
   (interactive P)
-  (let* ((attach-dir (org-attach-dir t))
-	 (files (org-attach-file-list attach-dir))
-	 (file (if (= (length files) 1)
-		   (car files)
-		 (org-icompleting-read Open attachment: 
-   (mapcar 'list files) nil t
-(org-open-file (expand-file-name file attach-dir) in-emacs)))
+  (let* ((file (org-attach-find-file Open attachment: ))
+	 (attach-dir (org-attach-dir t)))
+(if file
+	(org-open-file (expand-file-name file attach-dir) in-emacs)
+  (user-error Current heading has no attached file
 
 (defun org-attach-open-in-emacs ()
   Open attachment, force opening in Emacs.
-- 
2.1.0

From 916a86e8db6ce6b2dc02ea663d70d07f952bbc33 Mon Sep 17 00:00:00 2001
From: Konubinix konubi...@gmail.com
Date: Fri, 5 Sep 2014 12:19:12 +0200
Subject: [PATCH 2/2] Add a support for linking against an attachment of
 current entry.

* lisp/org-attach.el (org-attach-open-link, org-attach-complete-link): Created

Add a call to `org-add-link-type' to make use of the feature.
---
 lisp/org-attach.el | 13 +
 1 file changed, 13 insertions(+)

diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index eb22b39..3d6dc71 100644
--- a/lisp/org-attach.el
+++ b/lisp/org-attach.el
@@ -494,6 +494,19 @@ Basically, this adds the path to the attachment directory, and a \file:\
 prefix.
   (concat file: (org-attach-expand file)))
 
+(defun org-attach-open-link (file-name)
+  Open a link to a file attached to the current entry.
+  (let ((attach-dir (org-attach-dir t)))
+	(org-open-file (expand-file-name file-name attach-dir
+
+(defun org-attach-complete-link ()
+  Completion on the attachments when creating a link.
+  (let* ((file (org-attach-find-file Attached file:)))
+(format attach:%s file)))
+
+;; Install the link type
+(org-add-link-type attach 'org-attach-open-link)
+
 (provide 'org-attach)
 
 ;; Local variables:
-- 
2.1.0

Best regards,
--
Konubinix
GPG Key: 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A



[O] crypt and sync

2014-09-05 Thread Hannes Schulz
Dear list,

In my org-files I use org-crypt to encrypt subtrees via GPG. That seemed to
work fine for some time, but lastly (in connection with org-mobile or
org-caldav) the entries get a property drawer with a unique ID.  This seems
to lead org-crypt to think the entry is not encrypted.  Thus, when saving,
it encrypts the property drawer /and/ the encrypted text.  If I now want to
open the encrypted subtree, I have to decrypt quite a few times, each time
just removing the property drawer with the ID.

Did any of you observe this before?

Shouldn't org-crypt disregard property drawers?

cheers,

-Hannes


Re: [O] Downloadable mailing list archive?

2014-09-05 Thread Eric S Fraga
On Friday,  5 Sep 2014 at 11:15, Rainer M Krug wrote:
 Hi 

 is there a downloadable mailing list archive in maildir format for
 org-mode?


 I know I can download the mbox from gmane, but I would prefer maildir
 format.

No idea if a maildir archive exists but you could always convert the
mbox to a maildir format directory.  A simple web search brings up

http://batleth.sapienti-sat.org/projects/mb2md/

but I have never used this or anything else.

You could, of course, use gnus to read in the mbox and then copy all the
messages to a maildir mailbox.

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-310-g38d0eb



Re: [O] Babel more verbose?

2014-09-05 Thread Gary Oberbrunner
On Tue, Sep 2, 2014 at 11:01 AM, David Wagle david.wa...@gmail.com wrote:

 It sounds like perhaps the issue is code blocks with a long run-time that
 may or may not fail or hang in some way?

 If that's the case, the solution is probably simply breaking up your code
 blocks into smaller bits of code so that you more easily follow what's
 happening.

 If the code is emacs-lisp, it's easy enough to put (message ...) calls
 entering and leaving the code blocks.


The defadvice idea is great; I will try it and report back.  As for
breaking up my code blocks... I wish I could, but some of my SQL queries
are just very long running.  We have a lot of data.  I want to look into
indexing and other SQL optimizations -- but I need something in my org-mode
to at least show me which blocks are the long-running ones, so I can know
where to start!

Someone else mentioned that the message about Wrote sql input file
could be suppressed; just don't forget that we users need _something_ to
help debug our babel code.  If one of my sql queries goes wrong, I get
something like this in the messages buffer:

executing Sql code block (machines-by-week)...
mysql  ... -N   c:/tmp/babel-26204dNc/sql-in-26204uKN 
c:/tmp/babel-26204dNc/sql-out-262047UT
Wrote c:/tmp/babel-26204dNc/ob-input-26204IfZ
Babel evaluation exited with code 1

so in this case it'd be OK if the Wrote file went away, because the
entire mysql command is still there, so I can find that temp file (which
babel doesn't clean up, btw, and in my case that's a good thing!) and trace
it back to which code block it came from.

But it would be way better if mysql-mode would actually show the sql error!

-- 
Gary


[O] help debugging latex-overlays boxes

2014-09-05 Thread John Kitchin
Hi All,

I am using org-mode in a course this fall with 60 students.  All of them
are using org-mode from elpa. For about 10 of them, they are unable to
toggle the latex-overlays; instead of getting the equations, they get
empty gray boxes with an error that the png file was not created.  Oddly
enough, they can export to PDF just fine. I have also checked that they
have LaTeX (TeXLive) installed, and it appears it is. I am able to
convert tex files to dvi, and then use dvipng to make a png image. But
for some reason, the toggle-latex-overlay function does not work for
them.

I am at a loss to figure out what the issue is. These are Windows
laptops that were preconfigured by the department. Almost all of them
work fine, except for this small number I cannot figure out.

Any ideas? Thanks,


-- 
---
John Kitchin
http://kitchingroup.cheme.cmu.edu




Re: [O] Moving my init.el to Org

2014-09-05 Thread Marcin Borkowski
Hi,

and thanks for all the great replies!

I ended up using orgstruct mode, which is probably the simplest one,
and (AFAIU) it will enable me to switch easily to outshine if (when?)
orgstruct is not enough for me.

And now there's another problem: I'd like to have my init file
collapsed to only headlines on opening.  Since I visit my init file
through a custom command (which finds it and turns on orgstruct), I
don't need to use file local variables for that - I just need a
command to do it.  So:

how do I (programmatically, in elisp) collapse the view of
an orgstruct .el file?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] help debugging latex-overlays boxes

2014-09-05 Thread Nick Dokos
John Kitchin jkitc...@andrew.cmu.edu writes:

 Hi All,

 I am using org-mode in a course this fall with 60 students.  All of them
 are using org-mode from elpa. For about 10 of them, they are unable to
 toggle the latex-overlays; instead of getting the equations, they get
 empty gray boxes with an error that the png file was not created.  Oddly
 enough, they can export to PDF just fine. I have also checked that they
 have LaTeX (TeXLive) installed, and it appears it is. I am able to
 convert tex files to dvi, and then use dvipng to make a png image. But
 for some reason, the toggle-latex-overlay function does not work for
 them.

 I am at a loss to figure out what the issue is. These are Windows
 laptops that were preconfigured by the department. Almost all of them
 work fine, except for this small number I cannot figure out.

 Any ideas? Thanks,

I would edebug-defun the function org-create-formula-image and step
through it to make sure that it goes the way you want (are you sure you
are using the dvipng method on these machines? maybe you are using the
imagemagick method but the program has not been installed?  Check the
value of org-latex-create-formula-image-program).

While you are stepping you can also check the variables in the function
and see e.g. what the output file name is.

If that goes OK, then I would edebug-defun
org-create-formula-image-with-dvipng next and check the latex input file
it produces. Make sure that things like minted which require
--shell-escape are *not* included in that input file: it's processed by
a hard-wired call to latex (without --shell-escape) , so minted will
cause a failure. If that is the case, check org-latex-packages-alist and
make sure that minted's snippet-flag is nil.

HTH,
Nick




Re: [O] capture template, filename

2014-09-05 Thread Richard Lawrence
Hi Michael,

Michael Welle mwe012...@gmx.net writes:

 I have a capture template like this:

  (j Journal plain 
(file (capture-report-data-file  ~/org))
%^{Heading}\n#tags %^{Tags}\nmeta-creation_date: %(format-time-string 
 \%m/%d/%Y %H:%M:%S\)\n\n%?)

 In capture-report-data-file I want to calculate the filename for the org
 file. The filename should be constructed with information from the
 heading's value.

If I understand correctly, you are trying to choose the file in which to
save the captured data dynamically, at capture time, based on the value
of the headline...right?

I think you will not be able to do this by setting a target in
org-capture-templates, as you are trying to do.  The reason is that the
target for the capture is expanded and determined before any data is
captured.  (If you can calculate the filename without using the heading
value, you could use (function ...) or (file+function ...) rather than
(file ...) in org-capture-templates to set the target location.)

I think what you probably want to do is *refile* the captured entry to
the desired location after the template is filled out.  I think you can
do this from one of the org-capture-{prepare,before,after}-finalize
hooks -- probably org-capture-prepare-finalize-hook.  You could there
add something like

(lambda ()
  (org-back-to-heading)
  (let ((target (get-target-from-heading)))
(org-refile nil nil target))

where get-target-from-heading should return a refile location based on
the heading.  I'm not sure about all the arguments to org-refile
(particularly the second, `default-buffer').  Also if you have other
capture templates where you don't want to dynamically refile based on
the heading, you need to insert a test in there to only do the refile in
the cases you want.

I should say this is not tested and you may need to play around with
some things to get it to work for you.  Someone else may have better
advice.  But I hope that points you in the right direction!

Best,
Richard




Re: [O] help debugging latex-overlays boxes

2014-09-05 Thread John Kitchin
Nick Dokos ndo...@gmail.com writes:

Thanks for the tips. It is possible minted is the culprit. I will give
that a try, and the other ideas too. I am sure it is using dvipng, and
that it works. It will be a nice adventure in more sophisticated
debugging ;)

 John Kitchin jkitc...@andrew.cmu.edu writes:

 Hi All,

 I am using org-mode in a course this fall with 60 students.  All of them
 are using org-mode from elpa. For about 10 of them, they are unable to
 toggle the latex-overlays; instead of getting the equations, they get
 empty gray boxes with an error that the png file was not created.  Oddly
 enough, they can export to PDF just fine. I have also checked that they
 have LaTeX (TeXLive) installed, and it appears it is. I am able to
 convert tex files to dvi, and then use dvipng to make a png image. But
 for some reason, the toggle-latex-overlay function does not work for
 them.

 I am at a loss to figure out what the issue is. These are Windows
 laptops that were preconfigured by the department. Almost all of them
 work fine, except for this small number I cannot figure out.

 Any ideas? Thanks,

 I would edebug-defun the function org-create-formula-image and step
 through it to make sure that it goes the way you want (are you sure you
 are using the dvipng method on these machines? maybe you are using the
 imagemagick method but the program has not been installed?  Check the
 value of org-latex-create-formula-image-program).

 While you are stepping you can also check the variables in the function
 and see e.g. what the output file name is.

 If that goes OK, then I would edebug-defun
 org-create-formula-image-with-dvipng next and check the latex input file
 it produces. Make sure that things like minted which require
 --shell-escape are *not* included in that input file: it's processed by
 a hard-wired call to latex (without --shell-escape) , so minted will
 cause a failure. If that is the case, check org-latex-packages-alist and
 make sure that minted's snippet-flag is nil.

 HTH,
 Nick




-- 
---
John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



[O] Org Email Link Description Format: date nil

2014-09-05 Thread Uwe Brauer

Hello 

Using still org-7.803 (Xemacs 21.5.33)

I have the following setting 


Email %c: To: %t: Date: %d Subj: %.30s 
`org-email-link-description-format' is a variable declared in Lisp.
  -- loaded from org

Value: Email %c: To: %t: Date: %d Subj: %.30s 

But when the link is inserted, I obtain 

[Email from Uwe Brauer: To: Uwe Brauer: Date: nil Subj: test ]

Is this a bug?


smime.p7s
Description: S/MIME cryptographic signature


Re: [O] Bug: org-master (release_8.3beta-56-gdb0130) ascii exporter ignores org-export-preserve-breaks

2014-09-05 Thread Yijun Yuan
Miguel Ruiz rbenit68 at inbox.com writes:

 
 After more detailed review I have figure out that the problem more generic
and the opposite of the exposed in
 my previous message: 
 
 - org-maint ascii exporter takes org-export-preserve-breaks into account
(default is nil; it works as
 expected, both nil and t)
 
 - org-master ascii exporter doesn't take org-export-preserve-breaks into
account (default is nil, it
 always preserves breaks)
 

The commit b15a9c0c1 breaks my use case. In the document of option Org
Export Preserve Breaks, ASCII export is explicitly mentioned: In ASCII
export, line breaks will always be preserved, regardless of this variable.

Thanks!




[O] Bug: Incorrect folding of source blocks [8.2.7c (8.2.7c-51-g896fa6-elpa @ /Users/sean/Dropbox/.emacs.d/elpa/org-20140825/)]

2014-09-05 Thread Sean Allred

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Consider the following:

#+begin_src snippet :tangle .emacs.d/snippets/org-mode/emacs-lisp
# -*- mode: snippet; require-final-newline: nil -*-
# name: emacs-lisp
# key: el
# binding: direct-keybinding
# --
,#+begin_src emacs-lisp
$0
,#+end_src
test
#+end_src

Now, fold the section.  You will see

#+begin_src snippet :tangle .emacs.d/snippets/org-mode/emacs-lisp...
test
#+end_src

My guess is the folding function is going up to the first end_src it
sees and stopping there, not checking to see whether it is actually an
active line.

Emacs  : GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2013-03-13 on bob.porkrind.org
Package: Org-mode version 8.2.7c (8.2.7c-51-g896fa6-elpa @ 
/Users/sean/Dropbox/.emacs.d/elpa/org-20140825/)

current state:
==
(setq
 org-export-preprocess-final-hook '((lambda nil (replace-string  --\n  -- 
\n)))
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-log-done 'note
 org-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-id-link-to-org-use-id t
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file ~/Dropbox/org/notes.org
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-from-is-user-regexp \\Sean Allred\\
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-directory ~/Dropbox/org
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-babel-tangle-lang-exts '((perl . pl) (ruby . rb) (python . py)
  (emacs-lisp . el))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'ignore
 org-structure-template-alist '((nt
 #+name: ?\n#+begin_src emacs-lisp :tangle 
\\\n\n#+end_src)
(n #+name: ?\n#+begin_src \n\n#+end_src)
(es #+begin_src emacs-lisp\n?\n#+end_src)
(esf #+begin_src emacs-lisp :tangle 
%file\n?\n#+end_src)
(s #+BEGIN_SRC ?\n\n#+END_SRC src 
lang=\?\\n\n/src)
(e #+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE
 example\n?\n/example)
(q #+BEGIN_QUOTE\n?\n#+END_QUOTE 
quote\n?\n/quote)
(v #+BEGIN_VERSE\n?\n#+END_VERSE 
verse\n?\n/verse)
(V #+BEGIN_VERBATIM\n?\n#+END_VERBATIM
 verbatim\n?\n/verbatim)
(c #+BEGIN_CENTER\n?\n#+END_CENTER 
center\n?\n/center)
(l #+BEGIN_LaTeX\n?\n#+END_LaTeX
 literal style=\latex\\n?\n/literal)
(L #+LaTeX:  literal 
style=\latex\?/literal)
(h #+BEGIN_HTML\n?\n#+END_HTML
 literal style=\html\\n?\n/literal)
(H #+HTML:  literal 
style=\html\?/literal)
(a #+BEGIN_ASCII\n?\n#+END_ASCII ) (A 
#+ASCII:  )
(i #+INDEX: ? #+INDEX: ?)
(I #+INCLUDE: %file ? 

[O] org-mode and eww

2014-09-05 Thread prayner
I'm moving from using emacs-w3 to eww as my text-mode browser within
emacs. org-mode doesn't seem to integrate eww very well yet (e.g.
org-store-link). Most of the required changes seem within my elisp
capability so I'll try to add them ... provided noone else has done
it.  Please let me know if someone is working on this or if I've
missed a package to include.
Please reply directly as well as to the list (I'm way behind).
thanks in advance
Peter


-- 
Peter Rayner
room 343 
School of Earth Sciences, University of Melbourne, 3010, Vic, Australia
tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 
mobile +61 402 752 379, skype: petermorag 
mail-to: pray...@unimelb.edu.au
google scholar profile 
http://scholar.google.com.au/citations?user=H3up71wJhl=en



Re: [O] Difference :header-args: and :header-args+:?

2014-09-05 Thread Aaron Ecay
Hi Rainer,

2014ko irailak 5an, Rainer M Krug-ek idatzi zuen:
 
 Absolutely - but this has been (unfortunately!!!) be deprecated:
 
 Quoted from the manual [1] :
 
 ,
 | [1] The deprecated syntax for default header argument properties, using
 | the name of the header argument as a property name directly, evaluates
 | the property as seen by the corresponding source block definition. This
 | behavior has been kept for backwards compatibility.
 `
 
 I was using this deprecated behavior and I was *very* happy with it, but
 I am trying to adjust to the new syntax.
 
 So how can I use the new syntax?

Eric Schulte has said http://mid.gmane.org/87wqce0w9n@gmail.com
that the deprecation of this feature is “premature”.  I didn’t realize
at the time that the deprecation was also included in the manual rather
than just a code comment.  Possibly it should be un-deprecated.

Certainly I agree that the suggested replacement is less capable.  Sorry
I can’t help more.  Maybe Eric or Achim (who introduced the deprecation)
will comment.

-- 
Aaron Ecay



Re: [O] Moving my init.el to Org

2014-09-05 Thread Thorsten Jolitz
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 Hi,

 and thanks for all the great replies!

 I ended up using orgstruct mode, which is probably the simplest one,
 and (AFAIU) it will enable me to switch easily to outshine if (when?)
 orgstruct is not enough for me.

 And now there's another problem: I'd like to have my init file
 collapsed to only headlines on opening.  Since I visit my init file
 through a custom command (which finds it and turns on orgstruct), I
 don't need to use file local variables for that - I just need a
 command to do it.  So:

 how do I (programmatically, in elisp) collapse the view of
 an orgstruct .el file?

Try 'org-overview'. Both, 'org-overview' and 'show-all' work
with outshine too, so they should work with org-struct.

-- 
cheers,
Thorsten