[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
   

[O] does :eval no works with org-babel-load-file?

2016-04-02 Thread Jérémie Juste
Hello,

I use my  an org-mode file as my init.el and use  org-babel-load-file to
launch the
the file emacs-init.org.

i was trying to debug the emacs-init.org and wanted to prevent some part
from being written to the file emacs-init.el but didn't succeed.

in emacs-init.org

#+begin_src emacs-lisp :eval no
(message "you should not appear")
#+end_src

in emacs-init.el

(message "you should not appear")

Preventing part of the init.el file to be read would be awesome for
debugging.
Do you have a way around it?

Best
-- 
Jeremie Juste


Re: [O] agenda column view and CLOCKSUM

2016-04-02 Thread Makmiller Pedroso
Hello,

I am using Org-mode version 8.3beta (release_8.3beta-422-gb54ad3).

I tried to create a minimal example in which the CLOCKSUMs do not get
updated. It seems that the CLOCKSUM_T is the one that is not getting
updated (unless if I run the column view in the agenda file before I run
the agenda dispatcher). I'm not sure if this is expected behavior.

Here is the example I used. I ran

emacs -q -l /tmp/example.el

where "example.el" contains

--
(setq org-columns-default-format "%1PRIORITY %5TODO %20ITEM(Task)
%10SCHEDULED %10Effort(Effort){:} %10CLOCKSUM_T %10CLOCKSUM %TAGS")

(setq org-agenda-custom-commands
  '(("h" "Things to do today"
((tags "@Today")
 (agenda "" ((org-agenda-ndays 1)
 (org-agenda-show-all-dates nil)))

(setq org-agenda-files (list "/tmp/agenda.org"))
-

and the agenda.org contains

---
** TODO Eat cookies :@Today:
   :LOGBOOK:
   CLOCK: [2016-04-02 Sat 07:26]--[2016-04-02 Sat 09:26] =>  2:00
   :END:

** TODO Eat more cookies :@Today:
   :LOGBOOK:
   CLOCK: [2016-04-02 Sat 07:26]--[2016-04-02 Sat 11:26] =>  4:00
   :END:



If I first run the column view after using the agenda dispatcher (i.e., M-x
"org-agenda" "h" "C-c C-x C-c"), the CLOCKSUM_T does not get updated.
However, if I run the column view on agenda.org before I run the
dispatcher, CLOCKSUM_T gets updated.

Cheers,
Mak

On Sat, Apr 2, 2016 at 4:51 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Makmiller Pedroso  writes:
>
> > The agenda column view only updates the value of CLOCKSUM after I run
> > column view in each one of my agenda files individually. Is this the
> > expected behavior? If it is, do you have any suggestions of how I can
> > update the value of CLOCKSUM when using the agenda column view without
> > having to visit each agenda file individually?
> >
> > My column view uses the following format:
> >
> > (setq org-columns-default-format "%1PRIORITY %5TODO %20ITEM(Task)
> > %10SCHEDULED %10CLOCKSUM_T %10CLOCKSUM %10Effort(Effort) %TAGS")
> >
> > My agenda view uses a custom dispatcher:
> >
> > (setq org-agenda-custom-commands
> >   '(("h" "Things to do today"
> > ((tags "@Today")
> >  (agenda "" ((org-agenda-ndays 1)
> >  (org-agenda-show-all-dates nil)))
>
> What Org version are you using? If it isn't the latest, could you report
> if this one has the same issue?
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] first #+LATEX_HEADER: in SETUPFILE not correctly exported and causes Missing \begin{document} error

2016-04-02 Thread Nicolas Goaziou
Hello,

Charles Millar  writes:

> I have a #+SETUPFILE which starts as follows
>
> #+LATEX_HEADER: \usepackage{lastpage}

[...]

> "mysetup" class is
>
> (add-to-list 'org-latex-classes
>   '("mysetup"
> "\\documentclass[fontsize=11pt,letterpaper,twoside=false]{scrartcl}

[...]

> \\newcommand\\foo{bar}
>[NO-DEFAULT-PACKAGES]
>[NO-PACKAGES]
>[EXTRA]"

[...]

> \newcommand\foo{bar}
>  \usepackage{lastpage}

Your template includes indentation before "[EXTRA]". This indentation
appears in the output, in this case, before the first LATEX_HEADER
directive.

Regards,

-- 
Nicolas Goaziou



Re: [O] Patch for ox-confluence.el

2016-04-02 Thread Nicolas Goaziou
Hello,

Paul Schorfheide  writes:

> Thanks for the feedback, Nicolas. I wasn't familiar with defcustom. I made
> the two edits and attached an updated patch. I would be happy to maintain
> the file in org-mode for now and look into moving it into ELPA.

I applied (eventually!) your patch.

Please let me know when you move the file into ELPA, so I can remove it
from contrib/

Regards,

-- 
Nicolas Goaziou



Re: [O] agenda column view and CLOCKSUM

2016-04-02 Thread Nicolas Goaziou
Hello,

Makmiller Pedroso  writes:

> The agenda column view only updates the value of CLOCKSUM after I run
> column view in each one of my agenda files individually. Is this the
> expected behavior? If it is, do you have any suggestions of how I can
> update the value of CLOCKSUM when using the agenda column view without
> having to visit each agenda file individually?
>
> My column view uses the following format:
>
> (setq org-columns-default-format "%1PRIORITY %5TODO %20ITEM(Task)
> %10SCHEDULED %10CLOCKSUM_T %10CLOCKSUM %10Effort(Effort) %TAGS")
>
> My agenda view uses a custom dispatcher:
>
> (setq org-agenda-custom-commands
>   '(("h" "Things to do today"
> ((tags "@Today")
>  (agenda "" ((org-agenda-ndays 1)
>  (org-agenda-show-all-dates nil)))

What Org version are you using? If it isn't the latest, could you report
if this one has the same issue?

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH 1/3] add id attribute to example-block on html export.

2016-04-02 Thread Nicolas Goaziou
Hello,

John Kitchin  writes:

> I am not sure what those should look like or where they go. How about:
>
> * New html id attributes on special, example and quote blocks
>  If the block has a #+name: attribute assigned, then the html element
>  will have an id attribute with that name in the html export. This
>  enables one to create links to these elements in other places,
>  e.g. text

I added this into ORG-NEWS file, in "New features" section.

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] My fault: actually the foodnote continues on page 39 Re: Error in docu, page 38, 4.3 foodnote 3 is cut prematurly

2016-04-02 Thread Nicolas Goaziou
Hello,

luz...@gmx.net writes:

> exact headline will be matched. If the value is 'query-to-create,
> then an exact headline will be searched; if it is not found, then the user
> will be queried to create it.
>
> so everything is just fine?

Looks like so.

Regards,

-- 
Nicolas Goaziou