Re: [O] Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]

2016-03-13 Thread Nicolas Goaziou
Hello,

Achim Gratz  writes:

> *"test"*

Did you tweak `org-emphasis-regexp-components'? Does it also happen with
non-interactively?

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]

2016-03-13 Thread Achim Gratz
Nicolas Goaziou writes:
> Unfortunately, I cannot reproduce the failure. Neither can our buildbot.
> Could you investigate a bit more about it?  For example, how is the
> document below exported to ASCII?
>
>   #+options: ':t
>   #+language: en
>
>   *"test"*

--8<---cut here---start->8---
Table of Contents   

   
_   

   


   


   


   


   
*"test"*

   


   
Org-mode version 8.3.4 (release_8.3.4-15-gdd9be3 @  

   
/usr/share/emacs/site-lisp/org/)

   
--8<---cut here---end--->8---


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]

2016-03-13 Thread Nicolas Goaziou
Hello,

Achim Gratz  writes:

> This might have fixed the functionality, but the test you introduced
> fails on Emacs 24.4 on Raspbian/Jessie:

Unfortunately, I cannot reproduce the failure. Neither can our buildbot.
Could you investigate a bit more about it?  For example, how is the
document below exported to ASCII?

  #+options: ':t
  #+language: en
  *"test"*

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]

2016-03-13 Thread Achim Gratz
Nicolas Goaziou writes:
> Fixed. Thank you.

This might have fixed the functionality, but the test you introduced
fails on Emacs 24.4 on Raspbian/Jessie:

--8<---cut here---start->8---
Test test-org-export/activate-smart-quotes backtrace:
  (if (unwind-protect (setq value-99840 (apply fn-99838 args-99839)) (
  (let (form-description-99842) (if (unwind-protect (setq value-99840 
  (let ((value-99840 (quote ert-form-evaluation-aborted-99841))) (let 
  (let ((fn-99838 (function equal)) (args-99839 (list (quote ("
  (lambda nil (let ((fn-99763 (function equal)) (args-99764 (list (quo
  #[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\317\320%DC
  funcall(#[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\31
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  #[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\316%DC\2
  funcall(#[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\
  ert-run-test([cl-struct-ert-test test-org-export/activate-smart-quot
  ert-run-or-rerun-test([cl-struct-ert--stats "\\(org\\|ob\\)" [[cl-st
  ert-run-tests("\\(org\\|ob\\)" #[385 "\306\307\"\203D\211\211G\310
  ert-run-tests-batch("\\(org\\|ob\\)")
  ert-run-tests-batch-and-exit("\\(org\\|ob\\)")
  (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
  org-test-run-batch-tests("\\(org\\|ob\\)")
  eval((org-test-run-batch-tests org-test-select-re))
  command-line-1(("--eval" "(setq vc-handled-backends nil org-startup-
  command-line()
  normal-top-level()
Test test-org-export/activate-smart-quotes condition:
(ert-test-failed
 ((should
   (equal '...
(let ... ...)))
  :form
  (equal
   ("foo")
   (#("*foo*" 0 1 ... 8 11 ... 18 19 ...)))
  :value nil :explanation
  (list-elt 0
(arrays-of-different-length 17 19 "foo"
#("*foo*" 0 1 ... 8 
11 ... 18 19 ...)
first-mismatch-at 0
--8<---cut here---end--->8---


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]

2016-03-10 Thread Nicolas Goaziou
Hello,

Philipp Middendorf  writes:

> I noticed that when exporting to LaTeX using smart quotes, the smart
> quotes will be inserted in normal paragraphs but not inside tables. A
> minimal example is as follows:
>
>   #+LANGUAGE: de
>   #+OPTIONS: ':t
>   #+LATEX_HEADER: \usepackage[german]{babel}
>
>   foo "bar"
>
>   | foo | bar   |
>   | bar | foo "qux" bar |
>
> This will be exported as follows (relevant snippet):
>
>   foo "`bar"'
>
>   \begin{center}
>   \begin{tabular}{ll}
>   foo & bar\\
>   bar & foo "qux" bar\\
>   \end{tabular}

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] Bug: Smart quotes for LaTeX export broken in tables [8.3.4 (8.3.4-9-gfda14f-elpa @ elpa/org-20160307/)]

2016-03-08 Thread Philipp Middendorf


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 noticed that when exporting to LaTeX using smart quotes, the smart
quotes will be inserted in normal paragraphs but not inside tables. A
minimal example is as follows:

  #+LANGUAGE: de
  #+OPTIONS: ':t
  #+LATEX_HEADER: \usepackage[german]{babel}

  foo "bar"

  | foo | bar   |
  | bar | foo "qux" bar |

This will be exported as follows (relevant snippet):

  foo "`bar"'

  \begin{center}
  \begin{tabular}{ll}
  foo & bar\\
  bar & foo "qux" bar\\
  \end{tabular}

If this is intentional, what's the purpose?

  Regards
Philipp Middendorf

Emacs  : GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2015-10-15 on pmi-ThinkCentre-M92p
Package: Org-mode version 8.3.4 (8.3.4-9-gfda14f-elpa @ 
/home/pmi/.emacs.d/elpa/org-20160307/)

current state:
==
(setq
 org-export-backends '(ascii beamer html icalendar latex)
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-latex-classes '(("haconarticle" 
"\\documentclass[11pt,a4paper]{haconarticle}"
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}") 
("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("beamer" "\\documentclass[presentation]{beamer}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("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}"))
 )
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-ellipsis "⤵"
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-icalendar-include-todo t
 org-agenda-start-on-weekday nil
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-log-done 'time
 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-latex-format-headline-function 'org-latex-format-headline-default-function
 org-todo-keyword-faces '(("WAIT" . "yellow"))
 org-clock-heading-function '(lambda nil
  (let ((str (nth 4 (org-heading-components))) 
(lenlimit 20))
   (if (> (length str) lenlimit)
(substring (replace-regexp-in-string 
"\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1" str) 0
 lenlimit)
)
   )
  )
 org-icalendar-use-scheduled '(event-if-not-todo event-if-todo todo-start)
 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 "\\"
 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 (org-bullets-mode 1)) org-clock-load (lambda nil 
(org-indent-mode 1))
 #[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-extend-today-until 3
 org-archive-hook '(org-attach-archive-delete-maybe)