[O] Feature request: "Figure #:" in labels of listings

2016-08-12 Thread Clément Pit--Claudel
This org file:

#+CAPTION: Some C code
#+NAME: fig:c
#+BEGIN_SRC c
int main() { return 0; }
#+END_SRC

See figure [[fig:c]].

produces HTML similar to this:

…
Some C code
…



See figure 1.


The link says "Figure (1)", but the figure label doesn't include the figure 
number. It would be great to have an option to include it! (or even to always 
include it as is done for images, since it can be hidden from CSS).

Thanks!
Clément.

(PS: btw, does anyone have tips for stepping through org-mode sources? The 
`info` parameters are so large that they cause edebug to be very slow when 
stepping around).



signature.asc
Description: OpenPGP digital signature


Re: [O] Bug: [Feature request] ob-plantuml fails if there is not jar: can it check for the executable as well? [8.3.5 (8.3.5-elpaplus @ /home/andrea/.emacs.d/elpa/org-plus-contrib-20160808/)]

2016-08-12 Thread Nicolas Goaziou
Hello,

Andrea Giugliano  writes:

> I am using NixOS, and since this operating system does not use /usr/bin
> as standard folder for executables, plantuml.jar cannot find the
> graphviz dependency. NixOS provides a plantuml package, and so I can
> call the plantuml command from commandline. It would be nice if
> ob-plantuml tried to use the plantuml executable in the case
> a .jar is not provided (instead of just failing).

Instead of trying to being foolproof, could we simply change the default
value for `org-plantuml-jar-path' to "plantuml"?

WDYT?

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: [Feature request] ob-plantuml fails if there is not jar: can it check for the executable as well? [8.3.5 (8.3.5-elpaplus @ /home/andrea/.emacs.d/elpa/org-plus-contrib-20160808/)]

2016-08-12 Thread Kaushal Modi
On Fri, Aug 12, 2016 at 3:02 PM Andrea Giugliano  wrote:

> I am using NixOS, and since this operating system does not use /usr/bin
> as standard folder for executables, plantuml.jar cannot find the
> graphviz dependency. NixOS provides a plantuml package, and so I can
> call the plantuml command from commandline. It would be nice if
> ob-plantuml tried to use the plantuml executable in the case
> a .jar is not provided (instead of just failing).
> Thanks for Org mode: it is simply wonderful!
>

Looks like it has already found the plantuml.jar based on your provided log:

> org-plantuml-jar-path "/nix/store/2s91vgzv8ckhwq1hhx
rf666q99z0pnhi-plantuml-8012/lib/plantuml.jar"

I have not used plantuml, so I don't have anything more useful to comment
on.

P.S:
> Sorry if I am using the wrong medium for asking for a feature, but I do
> not know where else I should do it.
>

This is the right place to ask this question.
-- 

Kaushal Modi


[O] Bug: [Feature request] ob-plantuml fails if there is not jar: can it check for the executable as well? [8.3.5 (8.3.5-elpaplus @ /home/andrea/.emacs.d/elpa/org-plus-contrib-20160808/)]

2016-08-12 Thread Andrea Giugliano

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 am using NixOS, and since this operating system does not use /usr/bin
as standard folder for executables, plantuml.jar cannot find the
graphviz dependency. NixOS provides a plantuml package, and so I can
call the plantuml command from commandline. It would be nice if
ob-plantuml tried to use the plantuml executable in the case
a .jar is not provided (instead of just failing).
Thanks for Org mode: it is simply wonderful!

Andrea

P.S:
Sorry if I am using the wrong medium for asking for a feature, but I do
not know where else I should do it.

Emacs  : GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.29)
 of 2016-07-26 on localhost
Package: Org-mode version 8.3.5 (8.3.5-elpaplus @ 
/home/andrea/.emacs.d/elpa/org-plus-contrib-20160808/)

current state:
==
(setq
 org-pandoc-epub-rights "Copyright 2016 Andrea <>"
 org-tab-first-hook '(org-hide-block-toggle-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-src-tab-acts-natively t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-src-window-setup 'current-window
 org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-image-actual-width 550
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-pdf-process '("latexmk -pdf %f")
 org-highlight-latex-and-related '(latex script entities)
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file "/home/andrea/workspace/agenda/myTasks.org"
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-from-is-user-regexp "\\"
 org-loop-over-headlines-in-active-region 'start-level
 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 "\357" (quote 
org-mime-org-buffer-htmlize))) turn-on-flyspell
 #[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-eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-use-speed-commands t
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-plantuml-jar-path 
"/nix/store/2s91vgzv8ckhwq1hhxrf666q99z0pnhi-plantuml-8012/lib/plantuml.jar"
 org-babel-tangle-lang-exts '(("haskell" . "hs") ("ruby" . "rb") ("python" . 
"py") ("java" . "java") ("ocaml" . "ml")
  ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-structure-template-alist '(("p" "#+BEGIN_SRC plantuml :file uml.png 
\n?\n#+END_SRC") ("s" "#+BEGIN_SRC ?\n\n#+END_SRC")
("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE") ("q" 
"#+BEGIN_QUOTE\n?\n#+END_QUOTE")
("v" "#+BEGIN_VERSE\n?\n#+END_VERSE") ("V" 
"#+BEGIN_VERBATIM\n?\n#+END_VERBATIM")
("c" "#+BEGIN_CENTER\n?\n#+END_CENTER") ("l" 
"#+BEGIN_LaTeX\n?\n#+END_LaTeX") ("L" "#+LaTeX: ")
("h" "#+BEGIN_HTML\n?\n#+END_HTML") ("H" 
"#+HTML: ") ("a" "#+BEGIN_ASCII\n?\n#+END_ASCII")
("A" "#+ASCII: ") ("i" "#+INDEX: ?") ("I" 
"#+INCLUDE: %file ?"))
 org-babel-load-languages '((ocaml . t) (java . t) (sh . t) (python . t) (ruby 
. t) (haskell . t) (plantuml . t) (dot . t))
 org-src-preserve-indentation t
 org-html-format-inlinetask-function 
'org-html-format-inlinetask-default-function
 org-agenda-files '("/home/andrea/workspace/agenda/myTasks.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-confirm-babel-evaluate nil
 )



[O] Bug: orgtbl and ddskk [8.3.5 (8.3.5-elpaplus @ /Users/sugita/.emacs.d/elpa/org-plus-contrib-20160808/)]

2016-08-12 Thread 杉田敏典
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.


Hello, org-mode developpers.

I always use orgtbl-mode in markdown-mode.
And I use ddskk for Japanese input.

As probrem, I cannot input ,  and other special keys
to ddskk in orgtbl-mode enabled buffer.
Most simple case, following inputs normally

  a a 

shows

  あ
  ↓
  ああ
  ↓
  あ

but in new Fundamental + orgtbl-mode buffer and enables ddskk, then
types same keys shows

  あ
  ↓
  ああ
  ↓
  ああ

Cannot delete chars.
l can revert in disabling orgtbl-mode.

I hope to fix this. Thank you, and sorry my cheap English.

Emacs  : GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-04-11 on builder10-9.porkrind.org
Package: Org-mode version 8.3.5 (8.3.5-elpaplus @
/Users/sugita/.emacs.d/elpa/org-plus-contrib-20160808/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-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-confirm-shell-link-function 'yes-or-no-p
 org-fontify-emphasized-text nil
 org-todo-keyword-faces '(("TODO" . "red") ("DONE" . "#40c040")
("PENDING" . "orange") ("CHECK" . "#40c0c0"))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp "\\<杉田 敏典\\>"
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-tags-column 120
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-babel-show-result-all append local] 5]
org-babel-result-hide-spec
 org-babel-hide-all-hashes org-eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 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-show-empty-lines
org-optimize-window-after-visibility-change)
 org-latex-packages-alist '(("" "color" t) ("" "listings" t))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-table-default-size "3x2"
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 outline-minor-mode-prefix "  "
 )



杉田 敏典 / SUGITA, Toshinori
sugita.toshin...@hpsys.co.jp


本メールおよび添付ファイルは、受取人のための特別な秘密情報を含んでいます。
貴殿が発信者の意図した受取人ではない場合、お手数をおかけいたしますが
発信者にご連絡のうえ、内容をすべて破棄してくださいますようお願いいたします。
なお、ここに含まれる情報の複写・流布・転用の一切を禁止いたします。

This message is confidential. It may also be privileged or otherwise
protected by work product immunity or other legal rules.
If you have received it by mistake, please let us know by reply and
then delete it from your system; you must not copy the message or
disclose its contents to anyone.