Re: [O] Small bug in example code

2018-01-12 Thread Reuben Thomas
On 12 January 2018 at 08:42, Eric S Fraga <esfli...@gmail.com> wrote:

> On Thursday, 11 Jan 2018 at 20:13, Reuben Thomas wrote:
> > Hi,
> >
> > I just tried to update my worg repo clone for the first time in a while,
> > and my key no longer seems to work. The key hasn't changed, but I see
> from
> > ssh output that the host for the repo has. I attach my public key in case
> > it needs to be re-installed.
>
> Specifically, Bastien said:
>
> For Org and Worg COMMITTERS
> 
>
> You will need to create a new user on https://code.orgmode.org in
> order to push commits to org-mode.git or worg.git:
>
> 1. Create a user on https://code.orgmode.org
> 2. Add your ssh public key
> 3. Send me an email to be added as a collaborator on Org/Worg


​Thanks very much, Eric.​ Did I overlook these instructions online, or if
they're not there, could they be posted on the web site?

-- 
https://rrt.sc3d.org


Re: [O] Small bug in example code

2018-01-11 Thread Reuben Thomas
Hi,

I just tried to update my worg repo clone for the first time in a while,
and my key no longer seems to work. The key hasn't changed, but I see from
ssh output that the host for the repo has. I attach my public key in case
it needs to be re-installed.

On 19 March 2014 at 23:25, Bastien <b...@altern.org> wrote:

> Reuben Thomas <r...@sc3d.org> writes:
>
> > OK, I have commits ready to push as soon as you install my SSH key!
>
> Done,
>
> --
>  Bastien
>



-- 
https://rrt.sc3d.org


id_rsa.pub
Description: application/vnd.ms-publisher


Re: [O] Recent regression in Org master with parsing of verbatim code with spaces

2017-10-10 Thread Reuben Thomas
On 10 October 2017 at 18:29, Kaushal Modi  wrote:

> On Tue, Oct 10, 2017 at 1:08 PM Kaushal Modi 
> wrote:
>
>> I scanned through recent commits, but haven't yet figured out which
>> commit affected this. Before I end up with git bisect, does anyone know a
>> master branch commit that could have caused this?
>>
>
> Hello,
>
> I found the commit causing this change:
>
> http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=
> 8383f7e08b964e129b175ef1c0297b1f4a8ed235
>

​I haven't seen the rest of this thread, but at a guess is the problem to
do with [:space:] matching vertical space such as newline and vertical tab?
Fixing that is a bit painful, since as far as I know there's no regex for
"horizontal space"; I guess it would be a matter of enumerating a suitable
range of code points.​

-- 
https://rrt.sc3d.org


[O] Bug: Please make org-emphasis-regexp-components respect all whitespace [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)]

2017-09-14 Thread Reuben Thomas


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 mailing list.


I tried writing:

  ~get~/~set~ methods

Fair enough, this renders as all verbatim, according to the parsing rules.

So, I tried adding zero-width spaces around the slash. Same result.

org-emphasis-regexp-components indeed does not consider all whitespace,
just some. So, I tried adding [:space:] to the PRE and POST patterns,
and now it works.

I currently have in my Emacs init:

(setq org-emphasis-regexp-components ;; define before loading org
  '("[:space:]('\"{" "-[:space:].,:!?;'\")}\\[" "[:space:]\r\n" "." 1))

In other words, I added [:space:] to the BORDER pattern too.

It would seem reasonable to have something like this be the default. In
particular, worg/dev/org-syntax.org already talks about “whitespace”,
not specifically “spaces, tabs etc.”.

But, I wonder, is it a problem that [:space:] contains vertical
whitespace characters too? (I left “\r\n” in the BORDER pattern as a
reminder that they are there on purpose, whereas PRE and POST previously
contained only space and tab, i.e. horizontal whitespace.) On the other
hand, since PRE and POST are anchored to the start and end of a line,
and the number of newlines is by default limited to 1, perhaps it’s not
a problem?

In any case, it would be nice to have a natural solution to the problem
of emphasis delimiters in this sort of situation. Simply taking
advantage of Unicode characters such as zero-width space seems simpler
than complicating the parser (and it’s also increasingly obvious to
users as they get used to the power of Unicode, and is the sort of trick
that works with lots of different systems, not just Org).

Emacs  : GNU Emacs 25.2.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-09-12
Package: Org mode version 9.0.10 (9.0.10-5-g1654a5-elpa @ 
/home/rrt/.emacs.d/elpa/org-20170904/)
-- 
https://rrt.sc3d.org/



[O] Bug: Confusing example in "Advanced configuration" [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)]

2017-09-14 Thread Reuben Thomas


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 mailing list.


The page http://orgmode.org/manual/Advanced-configuration.html has the 
following example:

Here is an example filter that replaces non-breaking spaces ~ in the Org buffer 
with _ for the LaTeX back-end.

 (defun my-latex-filter-nobreaks (text backend info)
   "Ensure \"_\" are properly handled in LaTeX export."
   (when (org-export-derived-backend-p backend 'latex)
 (replace-regexp-in-string "_" "~" text)))
 
 (add-to-list 'org-export-filter-plain-text-functions
  'my-latex-filter-nobreaks)

This is confusing in several ways. First, the replacement is made the
other way around (that is, _ is replaced by ~). Secondly, “_” does not
denote a non-breaking space in org-mode, as far as I can see. Does the
text mean “LaTeX non-breaking spaces”? Finally, underscore has a
particular meaning in Org, namely, subscript.

Is this an example that used to make sense but doesn’t any longer?

Emacs  : GNU Emacs 25.2.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-09-12
Package: Org mode version 9.0.10 (9.0.10-5-g1654a5-elpa @ 
/home/rrt/.emacs.d/elpa/org-20170904/)
-- 
https://rrt.sc3d.org/



Re: [O] Bug: Fix for org-make-link-description-function use in org-insert-link [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)]

2017-09-07 Thread Reuben Thomas
On 5 September 2017 at 23:02, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Reuben Thomas <r...@sc3d.org> writes:
>
> > ​If you (or someone) can confirm your interpretation above, I would be
> > happy to update my patch to implement the two behaviours required,
> namely,
> > that org-make-link-description-function is only called if the
> > default-description argument to org-insert-link is nil
>
> Ack.
>
> > and that if that function returns nil, then the link location is used.
> > I would also clarify the docstring regarding the second behaviour.
>
> It may not be a terribly useful behaviour anyway. You can always use
> (lambda (link description) link) as
> `org-make-link-description-function'.
>
> Perhaps we can simply remove "When nil, the link location will be used"
> from the docstring. Your call.
>

​I've removed it.​

​Attached, a revised patch.

-- 
https://rrt.sc3d.org
From df6e155c0e14bae6cebb2e8ac904405163c32b7d Mon Sep 17 00:00:00 2001
From: Reuben Thomas <r...@sc3d.org>
Date: Tue, 5 Sep 2017 17:00:25 +0100
Subject: [PATCH] Fix logic of calling org-make-link-desciption-function

* lisp/org.el (org-insert-link): Simplify so that description is only
prompted for once, if auto-desc is not set, and takes as its default
value, in order, default-description, the return value of
org-make-link-description-function (if the variable is non-nil), and
the current desc. Update the docstring to reflect that
default-description takes precedence over
org-make-link-description-function.
(org-make-link-description-function): Remove from docstring the
statement that if the variable is nil, then the link will be used as
the default description. This is undesirable, and was not in any case
implemented.
---
 lisp/org.el | 41 -
 1 file changed, 20 insertions(+), 21 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 889987c..4347111 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1939,10 +1939,10 @@ in the Org buffer so that the change takes effect."
 
 (defcustom org-make-link-description-function nil
   "Function to use for generating link descriptions from links.
-When nil, the link location will be used.  This function must take
-two parameters: the first one is the link, the second one is the
-description generated by `org-insert-link'.  The function should
-return the description to use."
+This function must take two parameters: the first one is the
+link, the second one is the description generated by
+`org-insert-link'.  The function should return the description to
+use."
   :group 'org-link
   :type '(choice (const nil) (function)))
 
@@ -10152,15 +10152,14 @@ the current directory or below.
 A `\\[universal-argument] \\[universal-argument] \\[universal-argument]' \
 prefix negates `org-keep-stored-link-after-insertion'.
 
-If `org-make-link-description-function' is non-nil, this function will be
-called with the link target, and the result will be the default
-link description.
-
 If the LINK-LOCATION parameter is non-nil, this value will be used as
 the link location instead of reading one interactively.
 
-If the DEFAULT-DESCRIPTION parameter is non-nil, this value will be used
-as the default description."
+If the DEFAULT-DESCRIPTION parameter is non-nil, this value will
+be used as the default description.  Otherwise, if
+`org-make-link-description-function' is non-nil, this function
+will be called with the link target, and the result will be the
+default link description."
   (interactive "P")
   (let* ((wcf (current-window-configuration))
 	 (origbuf (current-buffer))
@@ -10294,17 +10293,17 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
 	  (when (equal desc origpath)
 	(setq desc path)
 
-(if org-make-link-description-function
-	(setq desc
-	  (or (condition-case nil
-		  (funcall org-make-link-description-function link desc)
-		(error (progn (message "Can't get link description from `%s'"
-	   (symbol-name org-make-link-description-function))
-  (sit-for 2) nil)))
-		  (read-string "Description: " default-description)))
-  (if default-description (setq desc default-description)
-	(setq desc (or (and auto-desc desc)
-		   (read-string "Description: " desc)
+(unless auto-desc
+  (setq desc (read-string "Description: "
+			  (or default-description
+  (when org-make-link-description-function
+(condition-case nil
+	(funcall org-make-link-description-function link desc)
+  (error (progn (message "Can't get link description from `%s'"
+			 (symbol-name org-make-link-description-function))
+		(sit-for 2) nil
+  
+  desc
 
 (unless (string-match "\\S-" desc) (setq desc nil))
 (when remove (apply 'delete-region remove))
-- 
2.7.4



Re: [O] Bug: Fix for org-make-link-description-function use in org-insert-link [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)]

2017-09-05 Thread Reuben Thomas
On 5 September 2017 at 21:49, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>

​Hi, thanks for looking at this.​


> Reuben Thomas <r...@sc3d.org> writes:
>
> > This seems to be incorrect behaviour, as the docstring for
> > org-insert-link says:
> >
> >   If `org-make-link-description-function' is non-nil, this function
> will be
> >   called with the link target, and the result will be the default
> >   link description.
> >
> > The implication is that the value returned is used as the default, not
> > that it overrides the prompt.
>
> I agree.
>
> > First, org-make-link-description-function is called if it is non-nil,
> > and used to set default-description.
>
> I think the optional parameter from the function call should still
> prevail. I.e., shouldn't this function be called when
> DEFAULT-DESCRIPTION is nil (e.g., called interatively)?
>

​This question occurred to me too, but I didn't form an opinion. However, I
am inclined to agree with you on thinking about it some more.​


> > Then (unless auto-desc is non-nil) the description is prompted for with
> > default-description as the default value (unless
> > org-make-link-description-function returned nil, in which case the
> > current value of desc, if any, is used).
> >
> > There is one further matter that my patch does not address: the
> > docstring for org-make-link-description-function says:
> >
> > “When [org-make-link-description-function is] nil, the link location
> > will be used.”
> >
> > This does not happen (it’s precisely the behaviour I’ve been trying to
> > obtain!), and my patch does not make it happen. Indeed, it’s not clear
> > that it’s desirable (if one is using numbered sections, for example).
>
> Obviously, it would not be desirable.
>
> However, I think it should read "When
> `org-make-link-description-function' _returns_ nil, the link location is
> used". This is not what is implemented either, tho.
>

​If you (or someone) can confirm your interpretation above, I would be
happy to update my patch to implement the two behaviours required, namely,
that org-make-link-description-function is only called if the
default-description argument to org-insert-link is nil, and that if that
function returns nil, then the link location is used. I would also clarify
the docstring regarding the second behaviour.

-- 
https://rrt.sc3d.org <http://rrt.sc3d.org>


[O] Bug: Fix for org-make-link-description-function use in org-insert-link [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)]

2017-09-05 Thread Reuben Thomas


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 mailing list.


I was trying to make link descriptions default to the link. This is
useful so that, for example, in LaTeX export, links without a
description do not turn into empty text if one has unnumbered sections.
Also, it’s useful if one is primarily using PDF output, with hyperlinks.

I used the following code:

(defun org-make-link-description (link desc)
  (or desc link))
(setq org-make-link-description-function #'org-make-link-description)

This works; however, no description is prompted for (the description is
*always* the default).

This seems to be incorrect behaviour, as the docstring for
org-insert-link says:

  If `org-make-link-description-function' is non-nil, this function will be
  called with the link target, and the result will be the default
  link description.

The implication is that the value returned is used as the default, not
that it overrides the prompt.

The current logic dates from commit d9e5aed2, which aims to fix a
previous bug where the prompt was not offered if
org-make-link-description-function failed. The commit message implies
that the prompt should not be offered if
org-make-link-description-function succeeds, but I believe that is
wrong.

Below is a patch which both corrects the behaviour and simplifies the
logic.

First, org-make-link-description-function is called if it is non-nil,
and used to set default-description.

Then (unless auto-desc is non-nil) the description is prompted for with
default-description as the default value (unless
org-make-link-description-function returned nil, in which case the
current value of desc, if any, is used).

There is one further matter that my patch does not address: the
docstring for org-make-link-description-function says:

“When [org-make-link-description-function is] nil, the link location
will be used.”

This does not happen (it’s precisely the behaviour I’ve been trying to
obtain!), and my patch does not make it happen. Indeed, it’s not clear
that it’s desirable (if one is using numbered sections, for example).

Patch follows:


Subject: [PATCH] Fix logic of calling org-make-link-desciption-function

* lisp/org.el (org-insert-link): Simplify so that description is only
prompted for once, and org-make-link-description-function obviously
sets the default description, as per the docstring. Then, always
prompt for the description, even if the default is set.
---
 lisp/org.el | 19 +--
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 2680cee..0731cf7 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10286,16 +10286,15 @@ Use TAB to complete link prefixes, then RET for 
type-specific completion support
(setq desc path)
 
 (if org-make-link-description-function
-   (setq desc
- (or (condition-case nil
- (funcall org-make-link-description-function link desc)
-   (error (progn (message "Can't get link description from 
`%s'"
-  (symbol-name 
org-make-link-description-function))
- (sit-for 2) nil)))
- (read-string "Description: " default-description)))
-  (if default-description (setq desc default-description)
-   (setq desc (or (and auto-desc desc)
-  (read-string "Description: " desc)
+   (setq default-description
+ (condition-case nil
+  (funcall org-make-link-description-function link desc)
+(error (progn (message "Can't get link description from `%s'"
+   (symbol-name 
org-make-link-description-function))
+  (sit-for 2) nil)
+
+(setq desc (or (and auto-desc desc)
+   (read-string "Description: " (or default-description 
desc
 
 (unless (string-match "\\S-" desc) (setq desc nil))
 (when remove (apply 'delete-region remove))
-- 
2.7.4


Emacs  : GNU Emacs 25.2.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-04-29
Package: Org mode version 9.0.10 (9.0.10-5-g1654a5-elpa @ 
/home/rrt/.emacs.d/elpa/org-20170904/)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-latex-classes '(("article" "\\documentclass[11pt]{article}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("report" "\\documentclass[11pt]{report}" 

Re: [O] Remove Org from Emacs repository?

2016-12-19 Thread Reuben Thomas
On 19 December 2016 at 15:32, Phillip Lord 
wrote:

>
> This kind of idea is, indeed, being actively considered on
> emacs-devel.


​That's good to hear!​

In fact, I managed to get a simple version of this working
> using package.el during the build process. The idea would be that
> packages in ELPA format could be made available to Emacs during the
> build and then be packaged with the tarball as now.
>

​That would be great, it would certainly do what I'm after.​

-- 
http://rrt.sc3d.org


Re: [O] Remove Org from Emacs repository?

2016-12-18 Thread Reuben Thomas
On 18 December 2016 at 19:21, Samuel Wales  wrote:

> auto-mode-alist has more than 200 entries.  we're gonna remove .org?
>

​Org is nearly 90kLOC, or about 6.5% of the total ELisp code currently in
Emacs. It's bigger than CEDET, smaller than GNUS.

It's a project of its own with its own release cadence. It would be good to
make Emacs less of a monolithic entity, which needs lengthy debugging
cycles between releases, and has to choose between being out of date with
various upstreams, or delaying to test integration of big packages.

Now that package.el is mature, there's no need for Emacs to include all
this stuff in its source releases.

What emacs -Q does is a different matter: there's plenty of scope to ship a
variety of packages "out of the box". Various customised Emacs
"distributions" already do this.

"you must install org to view this format" is a bit too minimal for my
> taste.  :)  sounds like adobe flash.  :)
>

​I'm sure plenty of Emacs users never open an Org-mode file. Why​ should
they have to install it?

surely this topic was raised to have a bit of fun seeing all the
> responses?  :)
>

​No, I was just testing the waters to see if a more modern approach to
development and distribution might be popular. Apparently the answer is, at
least, not yet!

-- 
http://rrt.sc3d.org


Re: [O] Remove Org from Emacs repository?

2016-12-18 Thread Reuben Thomas
On 18 December 2016 at 13:20, Carsten Dominik  wrote:

> Dear all,
>
> I'd hate to see Org removed from Emacs.  It took a lot of work to get it
> in, and I believe that the vast majority of Emacs users does not install
> packages.  For a newbie to get to Emacs and to be able to open a .org file
> is a big plus.  So my vote goes toward keeping it in.
>

​Since you're responsible for org-mode, and I guess you're happy with the
coordination between (your) upstream and Emacs, then ​I agree it should
continue to be distributed out of the box.

However, your comments raise a couple of thoughts:

1. Is there something hard about packages that could be made easier? For
example, Atom seems to get along fine without many built-in packages, so
that most users expect to install some.

2. Is there any possibility to make org-mode a build-time dependency of
Emacs, like the C libraries that it requires, or is that a silly idea? That
could permit it to be shipped as built-in, without having its source
duplicated in Emacs's repository.


[O] Remove Org from Emacs repository?

2016-12-17 Thread Reuben Thomas
Now that Emacs has had package.el for some years, and Org is installable
directly from GNU ELPA, would it be a good idea to remove Org from Emacs's
source repository?

The current situation is left over from before Emacs had package.el, and I
see no compelling reason to keep it. Org is too big and distinct to be
swallowed by Emacs; it doesn't make much sense to keep its current half-in,
half-out state; so logically it seems sensible to take it out.

I am asking this question from an Org point of view; I will ask the Emacs
maintainers separately for their perspective.

I think it would benefit Emacs too, as there would be less code to maintain
(even though Org is quasi-external at present, it still has to build
successfully as part of an Emacs build), and the Emacs distribution would
be slimmer for non-Org users.

Of course, Emacs "distributions" would still be able to include Org
out-of-the box if they wished.

-- 
http://rrt.sc3d.org


Re: [O] Bug: Errors when installing from package.el [9.0.1 (9.0.1-elpa @ /home/rrt/.emacs.d/elpa/org-20161118/)]

2016-11-28 Thread Reuben Thomas
On 28 November 2016 at 22:50, Reuben Thomas <r...@sc3d.org> wrote:

>
>
> Invalid function async-start
>

​Apologies, this is nothing to do with org-mode. Please ignore this report!​


[O] Bug: Errors when installing from package.el [9.0.1 (9.0.1-elpa @ /home/rrt/.emacs.d/elpa/org-20161118/)]

2016-11-28 Thread Reuben Thomas


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 mailing list.


When I install org-mode from ELPA using package.el, I get an error after
almost every package install or upgrade:

Invalid function async-start

This does not seem to be a serious problem, as when I press X again the
next package installs, and eventually the process completes.

Emacs  : GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-11-08
Package: Org mode version 9.0.1 (9.0.1-elpa @ 
/home/rrt/.emacs.d/elpa/org-20161118/)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-latex-classes '(("article" "\\documentclass[11pt]{article}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . 
"\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . 
"\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . 
"\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . 
"\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("scrartcl" "\\documentclass{scrartcl}" ("\\section{%s}" . 
"\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 )
 org-latex-default-packages-alist '(("postscript" "ucs" nil) ("" "pifont" nil) 
("utf8x" "inputenc" t) ("T1" "fontenc" t)
("" "fixltx2e" nil) ("" "graphicx" t) ("" 
"longtable" nil) ("" "float" nil)
("" "wrapfig" nil) ("" "rotating" nil) 
("normalem" "ulem" t) ("" "amsmath" t)
("" "textcomp" t) ("" "marvosym" t) ("" 
"wasysym" t) ("" "amssymb" t)
("" "hyperref" nil) "\\tolerance=1000" ("" 
"palatino" nil))
 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 #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-startup-folded nil
 org-export-with-section-numbers nil
 org-file-apps '((t . "xdg-open %s") (system . "xdg-open %s"))
 org-export-with-toc nil
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file "~/Notes/Notes.org"
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-from-is-user-regexp "\\"
 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 '((closure
  (org-inlinetask-min-level org-struct-menu org-last-state 
org-id-track-globally org-clock-start-time
   texmathp-why remember-data-file 
org-agenda-tags-todo-honor-ignore-options iswitchb-temp-buflist
   calc-embedded-open-mode calc-embedded-open-formula 
calc-embedded-close-formula align-mode-rules-list t)
  nil (add-hook (quote change-major-mode-hook) (quote 
org-show-block-all) (quote append) (quote local)))
 (closure (*this* org-babel-confirm-evaluate-answer-no t) nil
  (add-hook (quote change-major-mode-hook) (quote 
org-babel-show-result-all) (quote append) (quote local)))
 (lambda nil (local-set-key "\351" (quote 
org-toggle-iimage-in-org))) window-margin-mode
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-show-block-all append local] 5]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook 

Re: [O] Bug: Please supply stable releases on ELPA or MELPA Stable [8.3.4 (8.3.4-dist @ /usr/local/share/emacs/25.1.50/site-lisp/org-mode/)]

2016-11-01 Thread Reuben Thomas
On 1 November 2016 at 17:01, Bastien Guerry  wrote:

>
> Let me know if the current page is at least 90% "good enough" :)
>

​You can have your 90% rating now!

Thanks very much for engaging with my criticism to improve things!

-- 
http://rrt.sc3d.org


Re: [O] Bug: Please supply stable releases on ELPA or MELPA Stable [8.3.4 (8.3.4-dist @ /usr/local/share/emacs/25.1.50/site-lisp/org-mode/)]

2016-11-01 Thread Reuben Thomas
On 1 November 2016 at 10:32, Bastien Guerry  wrote:

> Hi,
>
> I changed the order of presentation for installation methods on the
> website, promoting Org ELPA method.
>

​That's much better, thanks.

However, I still find the first section of the main page rather confusing.

I think there are two main problems:

1. The top heading is "Download and install", but the second half of the
section is a list of links that look like they belong in a different
section (List of features, Manuals and tutorials…).

2. The various types of download are still too mixed up. For normal users,
there is no need to offer anything other than the ELPA method (unless you
think some users still use pre-package.el Emacs?)

Suggested solution:

I suggest that you move these items to the "Documentation and literature"
section: Manuals and tutorials, Worg, History & acknowledgements, Talks,
GSoC.

Remove the heading "Download and install", but instead make the entire list
heading-sized text. The top-most item in the list should be something like:

"Install Org mode from [GNU ELPA]: M-x package-install RET org RET (for the
[bleeding edge], use [Org ELPA]!)"

The bits in square brackets are links, respectively, to GNU ELPA, the
bleeding edge Worg page, and the Org ELPA page.

The rest of the list is then:

Mailing list and goodies
Org tools (outside Emacs)
How to contribute to Org [no question mark!]

The development version info should move to "How to contribute to Org?".

​The link to "More on installing Org mode" can be moved to the developer
documentation.

I think this would make the page much easier to parse, and hence attract
more casual users, as well as saving more experienced users time.

-- 
http://rrt.sc3d.org


Re: [O] Bug: Please supply stable releases on ELPA or MELPA Stable [8.3.4 (8.3.4-dist @ /usr/local/share/emacs/25.1.50/site-lisp/org-mode/)]

2016-10-31 Thread Reuben Thomas
On 31 October 2016 at 14:56, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Hello,
>
> Reuben Thomas <r...@sc3d.org> writes:
>
> > ​That's great! However, is a cut of the release branch as good as an
> actual
> > release?
>
> It is better, since it contains more bugfixes than last release without
> adding new features.
>

​That's good to know.​

> Thought experiment: if it is good enough, surely the web site should
> > point users to this installation method for the stable version?
>
> Isn't it the case already? From the first page I see
>
>   M-x list-packages RET (see Org ELPA)
>
>   Daily snapshots: tar.gz or zip
>

​The web page is quite clear. Under "Download and install" you can get
"Stable version" (only from source), or "Development version" (cgit or M_x
list-packages RET), or "Daily snapshots".​

In other words, it looks as though the Org ELPA version is a development
version. The linked page does nothing to counter this impression.

I suggest that the "M-x list-packages RET" part be moved up the page to
"Stable version"; it should say something like:

"Stable version: M-x list-packages RET (see Org ELPA; includes fixes since
last release), or tar.gz or zip (release notes).

Ideally there would be up-to-date release notes for the ELPA version, so
that users can see which bugs are fixed. This should be easy if there is a
partially-completed release notes file in preparation for the next release.

In other words, the ELPA method should be highlighted as the preferred
method of installation, and it should be made obvious that it's stable
(this is why I think it's important to change the version of the ELPA
package to contain the version number; by the way, considering it as a
semver version number, it already is monotonic).

Being able to install org-mode stable from ELPA is something I've wanted
for years without realising it is already available! I bet I'm not the only
one…

-- 
http://rrt.sc3d.org


Re: [O] Bug: Please supply stable releases on ELPA or MELPA Stable [8.3.4 (8.3.4-dist @ /usr/local/share/emacs/25.1.50/site-lisp/org-mode/)]

2016-10-31 Thread Reuben Thomas
On 30 October 2016 at 23:57, Josiah Schwab  wrote:

> Hi Reuben,
>
> > It would be great if it were possible to install stable org-mode
> > versions from GNU ELPA or MELPA Stable. At present, one has to choose
> > between installing bleeding-edge versions simply, or stable versions
> > built by hand.
> >
> > (I am a bit surprised I can’t find anything about this in the mailing
> > list archives, so do forgive me if I’ve overlooked previous discussion.)
>
> The version on GNU ELPA (http://elpa.gnu.org/packages/org.html), which
> is labeled org-20161024, is org-git-version 8.3.6-7-g4d7d52-elpa.
>
> I believe that indicates that it is the latest version from the stable
> maint branch, not a version from the unstable master branch (which is at
> 8.3.6-1264-g21932c right now).
>

​That's great! However, is a cut of the release branch as good as an actual
release?

Thought experiment: if it is good enough, surely the web site should
point users to this installation method for the stable version? I can't
imagine there are many users who would prefer to compile from source rather
than just use package-install!
​ Also, the version should be the git tag (so that the version number is
clearly visible), rather than the current "MMDD" format, which looks
like a development snapshot.

​If the org-mode maintainers do *not* consider these release branch
snapshots to be as good as actual releases, then I would repeat my request
for stable releases to be available on GNU ELPA or MELPA Stable.

-- 
http://rrt.sc3d.org


[O] Bug: Please supply stable releases on ELPA or MELPA Stable [8.3.4 (8.3.4-dist @ /usr/local/share/emacs/25.1.50/site-lisp/org-mode/)]

2016-10-30 Thread Reuben Thomas


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.


It would be great if it were possible to install stable org-mode
versions from GNU ELPA or MELPA Stable. At present, one has to choose
between installing bleeding-edge versions simply, or stable versions
built by hand.

(I am a bit surprised I can’t find anything about this in the mailing
list archives, so do forgive me if I’ve overlooked previous discussion.)

Emacs  : GNU Emacs 25.1.50.9 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-10-15
Package: Org-mode version 8.3.4 (8.3.4-dist @ 
/usr/local/share/emacs/25.1.50/site-lisp/org-mode/)
-- 
http://rrt.sc3d.org/



Re: [O] Bug: URL with spaces in is incorrectly rendered in LaTeX export [8.3.3 (8.3.3-dist @ /usr/share/emacs24/site-lisp/org-mode/)]

2016-04-06 Thread Reuben Thomas
I'm sorry, I only just understood, from looking at git, that you added the
ability to use angular links inside link descriptions in response to my
query.

Thanks very much for this quick fix! I look forward to the next release.

On 6 April 2016 at 10:43, Reuben Thomas <r...@sc3d.org> wrote:

> On 6 April 2016 at 10:44, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:
>
>> Reuben Thomas <r...@sc3d.org> writes:
>>
>> > ​So the feature is not in 8.3.4?
>>
>> No it isn't. New feature are added to development branch (master, which
>> will become Org 9.0 when ready), not stable branch.
>>
>
> ​Thanks again.
>
> --
> http://rrt.sc3d.org
>



-- 
http://rrt.sc3d.org


Re: [O] Bug: URL with spaces in is incorrectly rendered in LaTeX export [8.3.3 (8.3.3-dist @ /usr/share/emacs24/site-lisp/org-mode/)]

2016-04-06 Thread Reuben Thomas
On 6 April 2016 at 10:44, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Reuben Thomas <r...@sc3d.org> writes:
>
> > ​So the feature is not in 8.3.4?
>
> No it isn't. New feature are added to development branch (master, which
> will become Org 9.0 when ready), not stable branch.
>

​Thanks again.

-- 
http://rrt.sc3d.org


Re: [O] Bug: URL with spaces in is incorrectly rendered in LaTeX export [8.3.3 (8.3.3-dist @ /usr/share/emacs24/site-lisp/org-mode/)]

2016-04-06 Thread Reuben Thomas
On 6 April 2016 at 10:35, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Reuben Thomas <r...@sc3d.org> writes:
>
> > When you say "latest Org", which version is that?
>
> The tip of master branch, a.k.a. development version. At the moment, is
> it "release_8.3.4-705-g716e33".
>

​So the feature is not in 8.3.4?

thanks again,

Reuben

-- 
http://rrt.sc3d.org


Re: [O] Bug: URL with spaces in is incorrectly rendered in LaTeX export [8.3.3 (8.3.3-dist @ /usr/share/emacs24/site-lisp/org-mode/)]

2016-04-06 Thread Reuben Thomas
On 6 April 2016 at 10:13, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Hello,
>
> Reuben Thomas <r...@sc3d.org> writes:
>
> > \href{Starting\%20Workshop\%20Notes.org}{\url{Starting Workshop
> Notes.org}}
> >
> > But maybe the space ends the URL?
>
> Indeed. For obvious reasons, "plain links" do not accept spaces since
> those are used as a delimiter. However, angular links could be used in
> this case, since they are morally equivalent to plain links.
>
> Hence, it is possible to write the following in latest Org
>
>  [[file:Starting%20Workshop%20Notes.org][ Notes.org>]]
>

​Thanks, apologies for misreporting.

When you say "latest Org", which version is that?

-- 
http://rrt.sc3d.org


Re: [O] Bug: URL with spaces in is incorrectly rendered in LaTeX export [8.3.3 (8.3.3-dist @ /usr/share/emacs24/site-lisp/org-mode/)]

2016-04-06 Thread Reuben Thomas
On 5 April 2016 at 23:01, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Hello,
>
> Reuben Thomas <r...@sc3d.org> writes:
>
> > The output for
> >
> >   [[file:Starting%20Workshop%20Notes.org][file:Starting Workshop
> Notes.org]]
> >
> > is:
> >
> >
> ​​
> \href{Starting\%20Workshop\%20Notes.org}{\url{Starting} Workshop Notes.org}
> >
> > despite the fact that in the org-mode buffer the URL is correctly
> > displayed as a whole, and mousing over it shows the whole thing is
> > active.
>
> What output did you expect?
>

​
​​
\href{Starting\%20Workshop\%20Notes.org}{\url{Starting Workshop Notes.org}}

But maybe the space ends the URL?

-- 
http://rrt.sc3d.org


[O] Bug: URL with spaces in is incorrectly rendered in LaTeX export [8.3.3 (8.3.3-dist @ /usr/share/emacs24/site-lisp/org-mode/)]

2016-04-02 Thread Reuben Thomas


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.


The output for

  [[file:Starting%20Workshop%20Notes.org][file:Starting Workshop Notes.org]]

is:

  \href{Starting\%20Workshop\%20Notes.org}{\url{Starting} Workshop Notes.org}

despite the fact that in the org-mode buffer the URL is correctly
displayed as a whole, and mousing over it shows the whole thing is
active.

Emacs  : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
 of 2014-11-21 on skwd, modified by Debian
Package: Org-mode version 8.3.3 (8.3.3-dist @ 
/usr/share/emacs24/site-lisp/org-mode/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex odt)
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-latex-classes '(("article" "\\documentclass[11pt]{article}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . 
"\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . 
"\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . 
"\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . 
"\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("scrartcl" "\\documentclass{scrartcl}" ("\\section{%s}" . 
"\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 )
 org-latex-default-packages-alist '(("postscript" "ucs" nil) ("" "pifont" nil) 
("utf8x" "inputenc" t)
("T1" "fontenc" t) ("" "fixltx2e" nil) ("" 
"graphicx" t) ("" "longtable" nil)
("" "float" nil) ("" "wrapfig" nil) ("" 
"rotating" nil) ("normalem" "ulem" t)
("" "amsmath" t) ("" "textcomp" t) ("" 
"marvosym" t) ("" "wasysym" t)
("" "amssymb" t) ("" "hyperref" nil) 
"\\tolerance=1000" ("" "palatino" nil))
 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-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-export-with-section-numbers nil
 org-file-apps '((t . "xdg-open %s") (system . "xdg-open %s"))
 org-export-with-toc nil
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file "~/Notes/Notes.org"
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-from-is-user-regexp "\\"
 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 '((lambda nil (local-set-key "\351" (quote 
org-toggle-iimage-in-org))) window-margin-mode
 #[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 
turn-on-eldoc-mode)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-directory "~/Notes"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
   

Re: [O] Bug: Asychronous export fails [8.3.2 (8.3.2-52-g6d0af5-elpa @ /home/rrt/.emacs.d/elpa/org-20151228/)]

2016-01-12 Thread Reuben Thomas
On 12 January 2016 at 20:13, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Hello,
>
> Reuben Thomas <r...@sc3d.org> writes:
>
> > ​The value of that variable is nil.
>
> It means `user-init-file' is used. Check if (require 'ox) there helps.
>

​That works, many thanks. Did I miss something in the manual?

-- 
http://rrt.sc3d.org


Re: [O] Bug: Asychronous export fails [8.3.2 (8.3.2-52-g6d0af5-elpa @ /home/rrt/.emacs.d/elpa/org-20151228/)]

2016-01-12 Thread Reuben Thomas
On 12 January 2016 at 17:10, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Hello,
>
> Reuben Thomas <r...@sc3d.org> writes:
>
> > Warning (server): Unable to start the Emacs server.
> > There is an existing Emacs server, named "server".
> > To start the server in this Emacs process, stop the existing
> > server or call `M-x server-force-delete' to forcibly disconnect it.
>
> There might be something to investigate there. Is the asynchronous
> process starting an older Org mode revision ?
>

​No: when I was testing with 8.2.10 (where I can still reproduce the
identical problem), that was the only version I had installed (it came with
Emacs 24.4).​


> Also, you may want to put (require 'ox) somewhere in the file defined in
> `org-export-async-init-file'.
>

​The value of that variable is nil.

-- 
http://rrt.sc3d.org


Re: [O] Bug: Asychronous export fails [8.3.2 (8.3.2-52-g6d0af5-elpa @ /home/rrt/.emacs.d/elpa/org-20151228/)]

2016-01-06 Thread Reuben Thomas
Thanks for the instructions.

The process buffer, apart from some obviously irrelevant cleaning up of the
recentf list, says:

Warning (server): Unable to start the Emacs server.
There is an existing Emacs server, named "server".
To start the server in this Emacs process, stop the existing
server or call `M-x server-force-delete' to forcibly disconnect it.
Symbol's value as variable is void: org-export-async-debug
Starting new Ispell process hunspell with default dictionary...
Saving file /home/rrt/.emacs.d/recentf...
Wrote /home/rrt/.emacs.d/recentf
Wrote /home/rrt/.emacs.d/ac-comphist.dat

Sorry, that's pretty much just what I already said…

On 5 January 2016 at 22:39, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Reuben Thomas <r...@sc3d.org> writes:
>
> > I don't get an Emacs error in my Emacs, just "Process
> `org-export-process'
> > exited abnormally"; the error is in the child Emacs process. How do I
> get a
> > backtrace from that? (I checked the Org Manual, but it doesn't seem to
> > cover this case.)
>
> In an Org buffer C-u C-u C-c C-e will pop up the async export stack. You
> can select the topmost line to enter the buffer, which should be called
> *Org Export Process*.
>
> Regards,
>



-- 
http://rrt.sc3d.org


Re: [O] Bug: Asychronous export fails [8.3.2 (8.3.2-52-g6d0af5-elpa @ /home/rrt/.emacs.d/elpa/org-20151228/)]

2016-01-04 Thread Reuben Thomas
Hi,

I don't get an Emacs error in my Emacs, just "Process `org-export-process'
exited abnormally"; the error is in the child Emacs process. How do I get a
backtrace from that? (I checked the Org Manual, but it doesn't seem to
cover this case.)

On 3 January 2016 at 19:53, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Hello,
>
> Reuben Thomas <r...@sc3d.org> writes:
>
> > 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.
> > 
> >
> > With either 8.2.10 (as shipped with Emacs 24.4/5) or 20151228 (as
> > installed from ELPA), asychronous export to PDF via LaTeX fails unless I
> > have
> >
> > (setq org-export-async-debug nil)
> >
> > in my .emacs.
>
> Could you provide a backtrace of the error you're encountering? Also, if
> `org-export-async-debug' is non-nil, Org should leave an informative
> buffer somewhere with any error encountered on the other process.
>
> Regards,
>
> --
> Nicolas Goaziou
>



-- 
http://rrt.sc3d.org


[O] Bug: Asychronous export fails [8.3.2 (8.3.2-52-g6d0af5-elpa @ /home/rrt/.emacs.d/elpa/org-20151228/)]

2016-01-02 Thread Reuben Thomas


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.


With either 8.2.10 (as shipped with Emacs 24.4/5) or 20151228 (as
installed from ELPA), asychronous export to PDF via LaTeX fails unless I
have

(setq org-export-async-debug nil)

in my .emacs.

Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
 of 2016-01-02 on ecls, modified by Debian
Package: Org-mode version 8.3.2 (8.3.2-52-g6d0af5-elpa @ 
/home/rrt/.emacs.d/elpa/org-20151228/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex odt)
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-latex-classes '(("article" "\\documentclass[11pt]{article}"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . 
"\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . 
"\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("scrartcl" "\\documentclass{scrartcl}"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 )
 org-latex-default-packages-alist '(("postscript" "ucs" nil) ("" "pifont" nil)
("utf8x" "inputenc" t) ("T1" "fontenc" t)
("" "fixltx2e" nil) ("" "graphicx" t)
("" "longtable" nil) ("" "float" nil) ("" 
"wrapfig" nil)
("" "rotating" nil) ("normalem" "ulem" t)
("" "amsmath" t) ("" "textcomp" t) ("" 
"marvosym" t)
("" "wasysym" t) ("" "amssymb" t) ("" 
"hyperref" nil)
"\\tolerance=1000" ("" "palatino" nil))
 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-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-export-with-section-numbers nil
 org-file-apps '((t . "xdg-open %s") (system . "xdg-open %s"))
 org-export-with-toc nil
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file "~/Notes/Notes.org"
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-from-is-user-regexp "\\"
 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 '((lambda nil (local-set-key "\351" (quote 
org-toggle-iimage-in-org)))
 window-margin-mode
 #[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 
turn-on-eldoc-mode)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 

Re: [O] Bug: It's not obvious how to keep LocalWords (spelling exceptions) conveniently [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)]

2015-06-30 Thread Reuben Thomas
On 30 June 2015 at 14:35, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:

 Hello,


​Hi, and thanks for your help with this.​


 Disclaimer: I don't know what are LocalWords and I could find
 a reference either in the Emacs or Elisp manual.


I'm sorry, I assumed it would be documented. By LocalWords it turns out
that I mean the value of ispell-words-keyword.

Put them at the beginning of the file, i.e., before the first headline,
 and comment them.


​This is a distracting place to put them, and requires action on the part
of the user: ispell's non-configurable behaviour is to look for
ispell-words-keyword, and, if it doesn't find it, start adding words at the
end of the buffer. Hence it would be better if org-mode could work like
other modes.

The current behaviour, where org-insert-heading-respect-content skips not
only blank lines but also comments, does seem a bit odd in any case: I'd
expect the next heading to be inserted before any comments following point…


  However, it would be good if this worked out of the box, i.e. if if
  org-mode instrumented ispell suitably so that when LocalWords entries
  are added, they are a) by default not included in the export,

 It will not happen if you comment them.


Sorry, I was mixing up the LocalWords entries, which are automatically
commented by ispell, and my heading. Ignore this!

-- 
http://rrt.sc3d.org


[O] Bug: It's not obvious how to keep LocalWords (spelling exceptions) conveniently [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)]

2015-06-30 Thread Reuben Thomas


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.


I use flyspell/ispell, and add words to my org files’ LocalWords
stanzas. I keep these at the bottom of my document (as is typical for
other file types), but I don’t insist on that if there’s a better way.

The problem is that when I press Ctrl+Return near the bottom of the
buffer, just above the LocalWords stanza, point skips past the commented
LocalWords and makes a new entry underneath.

I searched to see if I could find a standard way to do this. I couldn’t:
I found an example document in worg which puts the LocalWords stanza
elsewhere in the document, with its own heading.

For now, I have added a heading just before the spelling list, and
tagged it :noexport:.

However, it would be good if this worked out of the box, i.e. if if
org-mode instrumented ispell suitably so that when LocalWords entries
are added, they are a) by default not included in the export, and b) by
default in their own suitable document node (I leave the language vague
on purpose: I’d imagine a top-level node, but maybe that’s not optimal.)

Emacs : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of
 2014-11-21 on skwd, modified by Debian Package: Org-mode version 8.2.10
 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex odt)
 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-latex-classes '((article \\documentclass[11pt]{article} 
(\\section{%s} . \\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s})
  (\\paragraph{%s} . \\paragraph*{%s}) 
(\\subparagraph{%s} . \\subparagraph*{%s}))
 (report \\documentclass[11pt]{report} (\\part{%s} . 
\\part*{%s})
  (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . 
\\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s}))
 (book \\documentclass[11pt]{book} (\\part{%s} . 
\\part*{%s})
  (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . 
\\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s}))
 (scrartcl \\documentclass{scrartcl} (\\section{%s} . 
\\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s})
  (\\paragraph{%s} . \\paragraph*{%s}) 
(\\subparagraph{%s} . \\subparagraph*{%s}))
 )
 org-latex-default-packages-alist '((postscript ucs nil) ( pifont nil) 
(utf8x inputenc t)
(T1 fontenc t) ( fixltx2e nil) ( 
graphicx t) ( longtable nil)
( float nil) ( wrapfig nil) ( 
rotating nil) (normalem ulem t)
( amsmath t) ( textcomp t) ( 
marvosym t) ( wasysym t)
( amssymb t) ( hyperref nil) 
\\tolerance=1000 ( palatino nil))
 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-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-export-with-section-numbers nil
 org-file-apps '((t . xdg-open %s) (system . xdg-open %s))
 org-export-with-toc nil
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file ~/Notes/Notes.org
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-odt-format-headline-function 'ignore
 org-from-is-user-regexp \\Reuben Thomas\\
 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 '((lambda nil (local-set-key \351 (quote 
org-toggle-iimage-in-org))) window-margin-mode
 #[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

[O] Bug: org-mode breaks flyspell [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)]

2015-06-26 Thread Reuben Thomas


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.


Tested using “emacs -Q”, so you can ignore the details of my setup:

Start up Emacs, M-x flyspell-mode datSPACE

The mis-spelled (I’m using English, not Latin as my default language)
“dat” is underwiggled.

Type Backspace a SPACE

The word is now “data”, and (in English or Latin!) is now correct, so not 
underwiggled.

M-x org-mode and repeat the exercise: the underwiggle on the letters of
“dat” remains after I have typed the “a”.

Emacs  : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
 of 2014-11-21 on skwd, modified by Debian
Package: Org-mode version 8.2.10 (release_8.2.10 @ 
/usr/share/emacs/24.4/lisp/org/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex odt)
 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-latex-classes '((article \\documentclass[11pt]{article} 
(\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s})
  (\\subsubsection{%s} . \\subsubsection*{%s}) 
(\\paragraph{%s} . \\paragraph*{%s})
  (\\subparagraph{%s} . \\subparagraph*{%s}))
 (report \\documentclass[11pt]{report} (\\part{%s} . 
\\part*{%s}) (\\chapter{%s} . \\chapter*{%s})
  (\\section{%s} . \\section*{%s}) (\\subsection{%s} 
. \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}))
 (book \\documentclass[11pt]{book} (\\part{%s} . 
\\part*{%s}) (\\chapter{%s} . \\chapter*{%s})
  (\\section{%s} . \\section*{%s}) (\\subsection{%s} 
. \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}))
 (scrartcl \\documentclass{scrartcl} (\\section{%s} . 
\\section*{%s}) (\\subsection{%s} . \\subsection*{%s})
  (\\subsubsection{%s} . \\subsubsection*{%s}) 
(\\paragraph{%s} . \\paragraph*{%s})
  (\\subparagraph{%s} . \\subparagraph*{%s}))
 )
 org-latex-default-packages-alist '((postscript ucs nil) ( pifont nil) 
(utf8x inputenc t) (T1 fontenc t) ( fixltx2e nil)
( graphicx t) ( longtable nil) ( 
float nil) ( wrapfig nil) ( rotating nil) (normalem ulem t)
( amsmath t) ( textcomp t) ( 
marvosym t) ( wasysym t) ( amssymb t) ( hyperref nil)
\\tolerance=1000 ( palatino nil))
 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-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-export-with-section-numbers nil
 org-file-apps '((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . 
default) (\\.pdf\\' . default) (t . xdg-open %s)
 (system . xdg-open %s))
 org-export-with-toc nil
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file ~/Notes/Notes.org
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-odt-format-headline-function 'ignore
 org-from-is-user-regexp \\Reuben Thomas\\
 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 '((lambda nil (local-set-key \351 (quote 
org-toggle-iimage-in-org))) window-margin-mode
 #[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 
turn-on-eldoc-mode)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-odt-format-inlinetask-function 'ignore
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-directory ~/Notes
 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-footnote-define-inline t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session

Re: [O] Bug: org-mode breaks flyspell [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)]

2015-06-26 Thread Reuben Thomas
On 26 June 2015 at 13:05, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:

 Hello,

 Reuben Thomas r...@sc3d.org writes:

  Tested using “emacs -Q”, so you can ignore the details of my setup:
 
  Start up Emacs, M-x flyspell-mode datSPACE
 
  The mis-spelled (I’m using English, not Latin as my default language)
  “dat” is underwiggled.
 
  Type Backspace a SPACE
 
  The word is now “data”, and (in English or Latin!) is now correct, so
 not underwiggled.
 
  M-x org-mode and repeat the exercise: the underwiggle on the letters of
  “dat” remains after I have typed the “a”.

 Thank you.

 Apparently, this issue cannot be reproduced on latest development
 version of Org. You may want to switch to development version of Org or
 wait for 8.3 to be released.


​Thanks, it's good to know the bug's been fixed.

-- 
http://rrt.sc3d.org


Re: [O] Why don't datetrees use timestamps?

2015-03-16 Thread Reuben Thomas
On 16 March 2015 at 16:52, Subhan Michael Tindall subh...@familycareinc.org
 wrote:

  You can use a custom capture template and have timestamps of various
 sorts inserted.

 For example, I have one datetree I use that inserts a date/time stamp
 using %T (%t gives only date, not time)

 See the documentation for capture (hit C-c C C  to get into the customize
 interface then scroll down)


​ My question was about the datetree entry headings of the form 2015-03-16
Monday. These aren't controlled by the template. I was interested to know
why these headings look very much like timestamps (and effectively are
timestamps, though at the top level they mention just a year and at the
second level just a year and a month), but aren't actual timestamps.

Eric Fraga said I don't think it would make sense for the headlines in the
date-tree to have time stamps; but my question is not why they don't have
time stamps, but why they ARE not time stamps (purely in the formal sense:
the information they contain is already effectively a time stamp, as far as
I can see).

I was hoping to discover the rationale for the design from a developer :)


Re: [O] Why don't datetrees use timestamps?

2015-03-16 Thread Reuben Thomas
​​
On 16 March 2015 at 16:52, Subhan Michael Tindall subh...@familycareinc.org
 wrote:

  You can use a custom capture template and have timestamps of various
 sorts inserted.

 For example, I have one datetree I use that inserts a date/time stamp
 using %T (%t gives only date, not time)

 See the documentation for capture (hit C-c C C  to get into the customize
 interface then scroll down)


​My question was about the datetree entry headings of the form 2015-03-16
Monday. These aren't controlled by the template. I was interested to know
why these headings look very much like timestamps (and effectively are
timestamps, though at the top level they mention just a year and at the
second level just a year and a month), but aren't actual timestamps.

I was hoping to discover the rationale for the design from a developer.


[O] Why don't datetrees use timestamps?

2015-03-15 Thread Reuben Thomas
I'm using orgmode 8.2.10. When I use capture, the year/month/day headers
inserted aren't timestamps; why not? Is there a way to make them
timestamps? (I can't find anything about this in the manual.)

-- 
http://rrt.sc3d.org


[O] Bug: Typo in manual [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)]

2015-03-14 Thread Reuben Thomas


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.


The section “@LaTeX{} and PDF export” says:

The
default @LaTeX{} output is designed for processing with @code{pdftex} or
@LaTeX{}

The last “@LaTeX{}” should presumably be “@code{latex}”.

Emacs  : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
 of 2014-11-21 on skwd, modified by Debian
Package: Org-mode version 8.2.10 (release_8.2.10 @ 
/usr/share/emacs/24.4/lisp/org/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex odt)
 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-latex-classes '((article \\documentclass[11pt]{article} 
(\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s})
  (\\subsubsection{%s} . \\subsubsection*{%s}) 
(\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . 
\\subparagraph*{%s}))
 (report \\documentclass[11pt]{report} (\\part{%s} . 
\\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . 
\\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s}))
 (book \\documentclass[11pt]{book} (\\part{%s} . 
\\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . 
\\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s}))
 (scrartcl \\documentclass{scrartcl} (\\section{%s} . 
\\section*{%s}) (\\subsection{%s} . \\subsection*{%s})
  (\\subsubsection{%s} . \\subsubsection*{%s}) 
(\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . 
\\subparagraph*{%s}))
 )
 org-latex-default-packages-alist '((utf8x inputenc t) (T1 fontenc t) 
( fixltx2e nil) ( graphicx t) ( longtable nil) ( float nil) ( 
wrapfig nil)
( rotating nil) (normalem ulem t) 
( amsmath t) ( textcomp t) ( marvosym t) ( wasysym t) ( 
amssymb t)
( hyperref nil) \\tolerance=1000 ( 
palatino nil))
 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-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-export-with-section-numbers nil
 org-file-apps '((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . 
default) (\\.pdf\\' . default) (t . xdg-open %s) (system . xdg-open %s))
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file ~/Notes/Notes.org
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-odt-format-headline-function 'ignore
 org-from-is-user-regexp \\Reuben Thomas\\
 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 '((lambda nil (local-set-key \351 (quote 
org-toggle-iimage-in-org))) window-margin-mode
 #[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 turn-on-eldoc-mode)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-odt-format-inlinetask-function 'ignore
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-directory ~/Notes
 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-footnote-define-inline t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-odt-format-drawer-function '(lambda (name contents) contents)
 org-latex-default-class scrartcl
 org-html-format-headline-function 'ignore
 org-footnote-auto-label nil
 org-html-format-inlinetask-function 'ignore
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-latex-inputenc-alist '((utf8 . utf8x))
 )
-- 
http://rrt.sc3d.org/



Re: [O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-04-27 Thread Reuben Thomas
On 23 April 2014 16:04, Bastien b...@gnu.org wrote:

 Okay, see those two bits of `org-file-apps' docstring:

 `auto-mode'Matches files that are matched by any entry in
 `auto-mode-alist',
so all files Emacs knows how to handle.  Using this with
command `emacs' will open most files in Emacs.  Beware that
 this
will also open html files inside Emacs, unless you add
(html . default) to the list as well.

 So (auto-mode . emacs) says to open .pdf files in emacs... but
 (\\.pdf\\' . default) says to open .pdf files using the default
 application:

  `default' Use the default application for this file type, which is the
association for t in the list

 Since you have (t . xdg-open %s), xdg-open is used.

 Yep, it's all a bit tricky...


Thanks for explaining more. The reason I was (and remain!) still confused
is that you said earlier that because auto-mode comes first, it is not
overridden by changing the default value later. So the implication is that
changing the default value does not override other values, but changing the
system value does. Am I correct?

-- 
http://rrt.sc3d.org


Re: [O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-04-23 Thread Reuben Thomas
On 21 April 2014 20:00, Bastien b...@gnu.org wrote:

 Hi Reuben,

 Reuben Thomas r...@sc3d.org writes:

  1. I customize org-file-apps's system command to be xdg-open %s,
  then customize the default command to be the system command.

 Please share the value of `org-file-apps' (C-h v org-file-apps RET).


Value: ((auto-mode . emacs)
 (\\.mm\\' . default)
 (\\.x?html?\\' . default)
 (\\.pdf\\' . default)
 (t . xdg-open %s)
 (system . xdg-open %s))


 What I've found is that, since .pdf documents can be opened in Emacs
 and since org-file-apps contains (auto-mode . emacs) as its first
 element, then changing the system's value to xdg-open after that will
 fail because (auto-mode . emacs) is applied first.


That's interesting, but I'm no less confused. With the value above, PDF
files *are* opened with xdg-open.


 Sure, the docstring needs a bit of simplification, thought.


That would be a good start: if I can understand what is supposed to happen,
I have some chance to tell whether the actual behaviour is correct or not!

Thanks for your continued attention to this issue.

-- 
http://rrt.sc3d.org


[O] Obsolete information in worg

2014-03-19 Thread Reuben Thomas
In this section:

http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2_2

the information about yasnippet is out of date; more up-to-date information
is available in the manual:

http://orgmode.org/org.html#Interaction

Hence, I suggest removing the references to yasnippet from the worg page.

-- 
http://rrt.sc3d.org


Re: [O] Small bug in example code

2014-03-19 Thread Reuben Thomas
OK, I have commits ready to push as soon as you install my SSH key!


On 19 March 2014 22:52, Bastien b...@gnu.org wrote:

 Reuben Thomas r...@sc3d.org writes:

  In the function org-toggle-iimage-in-org in the page
 
  http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2_2
 
  the call (iimage-mode) needs to be (iimage-mode 'toggle), otherwise
  iimage-mode is only ever switched on. (iimage-mode does toggle when
  used as a command, but not when called from Lisp.)

 (Same suggestion for this one.)

 Thanks!

 --
  Bastien




-- 
http://rrt.sc3d.org


Re: [O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-03-17 Thread Reuben Thomas
On 17 March 2014 12:37, Bastien b...@gnu.org wrote:

 Reuben Thomas r...@sc3d.org writes:

  I don't know, because I don't know whether it's the behavior or
  documentation that is wrong.

 If the behavior is wrong, what is wrong?

 If the documentation is wrong, what is wrong?


I shall assume it's a bug in the code.

0. The docstring for org-file-apps for the system command says:

  This command is specified by the entry whose car is
`system'.
  Most likely, the system-specific version of this variable
  does define this command, but you can overrule/replace it
  here.

1. I customize org-file-apps's system command to be xdg-open %s, then
customize the default command to be the system command.

2. Now I try opening a file type which uses the default command.

Expected result: xdg-open should be used.

Actual result: the file is opened in Emacs (it's a PDF file, xdg-open would
open it in evince).

If I explicitly customize the default command also to be xdg-open, then I
get the expected result.

-- 
http://rrt.sc3d.org


[O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-03-15 Thread Reuben Thomas


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.


If I customize org-file-apps's system command to be xdg-open %s, then
customize the default command to be the system command, xdg-open is not
used as the default command, which is confusing; I have to duplicate the
configuration as shown below in order to get the desired behavior, which
seems to contradict the documentation, which says:

  This command is specified by the entry whose car is `system'.
  Most likely, the system-specific version of this variable
  does define this command, but you can overrule/replace it
  here.

There is a possible ambiguity: maybe for the default command, the value
system means the system default, not the setting for the system
command? (That would seem unfortunate and confusing were it the case.)

Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2)
 of 2013-07-27 on roseapple, modified by Debian
Package: Org-mode version 8.2.5h (release_8.2.5h-620-g7fd183 @ 
/home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex odt)
 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-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-file-apps '((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . 
default) (\\.pdf\\' . default) (t . xdg-open %s) (system . xdg-open %s))
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file ~/org/Notes.org
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-odt-format-headline-function 'ignore
 org-from-is-user-regexp \\Reuben Thomas\\
 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 '(window-margin-mode #[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 turn-on-eldoc-mode)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-odt-format-inlinetask-function 'ignore
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 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-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-odt-format-drawer-function '(lambda (name contents) contents)
 org-html-format-headline-function 'ignore
 org-html-format-inlinetask-function 'ignore
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )
-- 
http://rrt.sc3d.org/