Re: [O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
Aaaag! I have every confidence that someday I'll stop making a fool of
myself to you good people. . . .

On Thu, Feb 23, 2017 at 2:55 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Lawrence Bottorff  writes:
>
> > I set `debug-on-error` to `t` and went through creating a log entry:
> >
> > Debugger entered--Lisp error: (error "Before first headline at position
> > 1151 in buffer test3.org")
> >   signal(error ("Before first headline at position 1151 in buffer
> test3.org
> > "))
> >   error("Before first headline at position %d in buffer %s" 1151 # > test3.org>)
> >   org-back-to-heading(t)
> >   org-end-of-meta-data(nil)
> >   org-log-beginning(t)
> >   org-store-log-note()
> >   org-ctrl-c-ctrl-c(nil)
> >   funcall-interactively(org-ctrl-c-ctrl-c nil)
> >   #(org-ctrl-c-ctrl-c nil nil)
> >   ad-Advice-call-interactively(#
> org-ctrl-c-ctrl-c
> > nil nil)
> >   apply(ad-Advice-call-interactively #
> > (org-ctrl-c-ctrl-c nil nil))
> >   call-interactively(org-ctrl-c-ctrl-c nil nil)
> >   command-execute(org-ctrl-c-ctrl-c)
> >
> > Here's ECM, which only contains all my (kudgy, inefficient, wrong?)
> header
> > stuff:
> >
> > #+TITLE: \zwnj^{147}Pm
> > #+AUTHOR: 147Pm
> >
> > #+EMAIL: borg...@sdf.org
> > #+DATE: 2017-02-08T14:26:12
> >
> > #+Filetags: :CompleteReWrite:
> > #+LANGUAGE:  en
> >
> > # #+INFOJS_OPT: view:showall ltoc:t mouse:underline path:
> > http://orgmode.org/org-info.js
> > #+HTML_HEAD:  > type="text/css">
> > #+EXPORT_SELECT_TAGS: export
> > #+EXPORT_EXCLUDE_TAGS: noexport
> >
> > #+OPTIONS: H:15 num:15 toc:nil \n:nil @:t ::t |:t _:{} *:t ^:{} prop:t
> > #+OPTIONS: prop:t
> >
> > # This makes MathJax not work
> > # #+OPTIONS: tex:imagemagick
> > # this makes MathJax work
> >
> > #+OPTIONS: tex:t
> > #+LATEX_CLASS: article
> >
> > #+LATEX_CLASS_OPTIONS: [american]
> > # Setup tikz package for both LaTeX and HTML export:
> > #+LATEX_HEADER: \usepackage{tikz}
> > #+LATEX_HEADER: \usepackage{commath}
> > #+LaTeX_HEADER: \usepackage{pgfplots}
> > #+LaTeX_HEADER: \usepackage{sansmath}
> > #+LaTeX_HEADER: \usepackage{mathtools}
> > # #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler
> >
> > #+PROPERTY: header-args:latex+ :packages '(("" "tikz"))
> > #
> >
> > #+PROPERTY: header-args:latex+ :exports results :fit yes
> > #
> >
> > #+STARTUP: showall
> > #+STARTUP: align
> >
> > #+STARTUP: indent
> > #+STARTUP: entitiespretty
> >
> > #+STARTUP: logdrawer
> >
> > * Test
> >
> > -
>
> Is point at "* Test" or below when you use C-c C-z ? Position 1151 seems
> to be above. You can only attach notes to headlines.
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Strings converted to numbers in Org table?

2017-02-23 Thread Vicente Vera
Hello. I'm trying to get an Org table from an R data frame but data is
lost in the process.

Here is a MWE. Note that:

- In R every value is a string. "var2" contains no numbers (is a
  character vector).

- Upon conversion to a table Org removes the zero from "var2" last
  value.

--

#+BEGIN_SRC R :session *mwe* :results value table :colnames yes
  tst <- data.frame(var1 = c("a", "b", "c", "d", "e", "f", "g"),
var2 = c("150", "210", "140", "150", "192", "497",
"3.350"),
stringsAsFactors = FALSE)
  tst
#+END_SRC

#+RESULTS:
| var1 | var2 |
|--+--|
| a|  150 |
| b|  210 |
| c|  140 |
| d|  150 |
| e|  192 |
| f|  497 |
| g| 3.35 |

--

Here's the output as seen in R:

: > tst
:   var1  var2
: 1a   150
: 2b   210
: 3c   140
: 4d   150
: 5e   192
: 6f   497
: 7g 3.350

Details on the data frame:

: > str(tst)
: 'data.frame':7 obs. of  2 variables:
:  $ var1: chr  "a" "b" "c" "d" ...
:  $ var2: chr  "150" "210" "140" "150" ...

It seems Org knows that the values on column "var2" are numbers and
converts the strings to numbers, applying some obscure trimming on the
digits. The "3.350" value needs to be left as is.


Re: [O] Logbook not working?

2017-02-23 Thread Nicolas Goaziou
Hello,

Lawrence Bottorff  writes:

> I set `debug-on-error` to `t` and went through creating a log entry:
>
> Debugger entered--Lisp error: (error "Before first headline at position
> 1151 in buffer test3.org")
>   signal(error ("Before first headline at position 1151 in buffer test3.org
> "))
>   error("Before first headline at position %d in buffer %s" 1151 # test3.org>)
>   org-back-to-heading(t)
>   org-end-of-meta-data(nil)
>   org-log-beginning(t)
>   org-store-log-note()
>   org-ctrl-c-ctrl-c(nil)
>   funcall-interactively(org-ctrl-c-ctrl-c nil)
>   #(org-ctrl-c-ctrl-c nil nil)
>   ad-Advice-call-interactively(# org-ctrl-c-ctrl-c
> nil nil)
>   apply(ad-Advice-call-interactively #
> (org-ctrl-c-ctrl-c nil nil))
>   call-interactively(org-ctrl-c-ctrl-c nil nil)
>   command-execute(org-ctrl-c-ctrl-c)
>
> Here's ECM, which only contains all my (kudgy, inefficient, wrong?) header
> stuff:
>
> #+TITLE: \zwnj^{147}Pm
> #+AUTHOR: 147Pm
>
> #+EMAIL: borg...@sdf.org
> #+DATE: 2017-02-08T14:26:12
>
> #+Filetags: :CompleteReWrite:
> #+LANGUAGE:  en
>
> # #+INFOJS_OPT: view:showall ltoc:t mouse:underline path:
> http://orgmode.org/org-info.js
> #+HTML_HEAD:  type="text/css">
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
>
> #+OPTIONS: H:15 num:15 toc:nil \n:nil @:t ::t |:t _:{} *:t ^:{} prop:t
> #+OPTIONS: prop:t
>
> # This makes MathJax not work
> # #+OPTIONS: tex:imagemagick
> # this makes MathJax work
>
> #+OPTIONS: tex:t
> #+LATEX_CLASS: article
>
> #+LATEX_CLASS_OPTIONS: [american]
> # Setup tikz package for both LaTeX and HTML export:
> #+LATEX_HEADER: \usepackage{tikz}
> #+LATEX_HEADER: \usepackage{commath}
> #+LaTeX_HEADER: \usepackage{pgfplots}
> #+LaTeX_HEADER: \usepackage{sansmath}
> #+LaTeX_HEADER: \usepackage{mathtools}
> # #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler
>
> #+PROPERTY: header-args:latex+ :packages '(("" "tikz"))
> #
>
> #+PROPERTY: header-args:latex+ :exports results :fit yes
> #
>
> #+STARTUP: showall
> #+STARTUP: align
>
> #+STARTUP: indent
> #+STARTUP: entitiespretty
>
> #+STARTUP: logdrawer
>
> * Test
>
> -

Is point at "* Test" or below when you use C-c C-z ? Position 1151 seems
to be above. You can only attach notes to headlines.

Regards,

-- 
Nicolas Goaziou



Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-23 Thread Nicolas Goaziou
Rainer Hansen  writes:

> However, I have still problems. I have adapted the example,
> http://orgmode.org/manual/noweb_002dref.html#noweb_002dref,

I fixed it.

> in the
> Orgmode handbook to the changed Babel header properties. However, the
> generated file contained only "#!/bin/sh". I have activated property
> inheritance for "noweb-ref" and moving the cursor on the #+BEGIN_SRC sh
> lines shows that they have ":noweb-ref: fullest-disk" as header
> argument.
>
> org-use-property-inheritance is '("noweb-ref")

This is useless. "noweb-ref" is not a property, and header-args are
always inherited IIRC.

> Here is the changed code from the Org mode manual:
>
> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
>   <>
> #+END_SRC
>
> * the mount point of the fullest disk
>   :PROPERTIES:
>   :header-args: :noweb-ref: fullest-disk

It should be

  :header-args: :noweb-ref fullest-disk

Regards,



Re: [O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
I set `debug-on-error` to `t` and went through creating a log entry:

Debugger entered--Lisp error: (error "Before first headline at position
1151 in buffer test3.org")
  signal(error ("Before first headline at position 1151 in buffer test3.org
"))
  error("Before first headline at position %d in buffer %s" 1151 #)
  org-back-to-heading(t)
  org-end-of-meta-data(nil)
  org-log-beginning(t)
  org-store-log-note()
  org-ctrl-c-ctrl-c(nil)
  funcall-interactively(org-ctrl-c-ctrl-c nil)
  #(org-ctrl-c-ctrl-c nil nil)
  ad-Advice-call-interactively(# org-ctrl-c-ctrl-c
nil nil)
  apply(ad-Advice-call-interactively #
(org-ctrl-c-ctrl-c nil nil))
  call-interactively(org-ctrl-c-ctrl-c nil nil)
  command-execute(org-ctrl-c-ctrl-c)

Here's ECM, which only contains all my (kudgy, inefficient, wrong?) header
stuff:

#+TITLE: \zwnj^{147}Pm
#+AUTHOR: 147Pm
#+EMAIL: borg...@sdf.org
#+DATE: 2017-02-08T14:26:12
#+Filetags: :CompleteReWrite:
#+LANGUAGE:  en
# #+INFOJS_OPT: view:showall ltoc:t mouse:underline path:
http://orgmode.org/org-info.js
#+HTML_HEAD: 
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+OPTIONS: H:15 num:15 toc:nil \n:nil @:t ::t |:t _:{} *:t ^:{} prop:t
#+OPTIONS: prop:t
# This makes MathJax not work
# #+OPTIONS: tex:imagemagick
# this makes MathJax work
#+OPTIONS: tex:t
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [american]
# Setup tikz package for both LaTeX and HTML export:
#+LATEX_HEADER: \usepackage{tikz}
#+LATEX_HEADER: \usepackage{commath}
#+LaTeX_HEADER: \usepackage{pgfplots}
#+LaTeX_HEADER: \usepackage{sansmath}
#+LaTeX_HEADER: \usepackage{mathtools}
# #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler
#+PROPERTY: header-args:latex+ :packages '(("" "tikz"))
#
#+PROPERTY: header-args:latex+ :exports results :fit yes
#
#+STARTUP: showall
#+STARTUP: align
#+STARTUP: indent
#+STARTUP: entitiespretty
#+STARTUP: logdrawer

* Test

-

I'm on Emacs 25.1.1 and Org mode version 9.0.5 (9.0.5-elpaplus @
.../.emacs.d/elpa/org-plus-contrib-20170210/)




On Thu, Feb 23, 2017 at 11:50 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Lawrence Bottorff  writes:
>
> > I'm trying to create Logbook entries with C-c C-z -- which has worked
> fine
> > in the past. But now whenever I try I get
> >
> > org-back-to-heading: Before first headline at position 1151 in buffer
> > current.org
> >
> > . . . i.e., my entry doesn't show up anywhere. What have I inadvertently
> > messed up?
>
> Could you paste a full backtrace, or, better, an ECM?
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-23 Thread Rainer Hansen
Hi Nicolas,

Nicolas Goaziou  writes:

> Hello,
>
> Rainer Hansen  writes:
>
>> I have tried the following example of using noweb-ref:
>>
>> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
>> <>
>> #+END_SRC
>>
>> * the mount point of the fullest disk
>>
>> ** query all mounted disks
>>
>> #+HEADER: :noweb-ref fullest-disk
>> #+BEGIN_SRC sh
>> df \
>> #+END_SRC
>>
>>
>> ** strip the header row
>>   :PROPERTIES:
>>   :noweb-ref: fullest-disk
>>   :END:
>>
>> #+BEGIN_SRC sh :noweb yes
>> |sed '1d' \
>> #+END_SRC
>>
>>
>>
>> It was mentioned more than 5 years ago as creating problems:
>> https://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00825.html
>>
>> Now I got the same problem as mentioned in the post of that time - the
>> created file contains only
>>
>> #!/bin/sh df \
>>
>> Missing is the second block.
>>
>> Any ideas why?
>
> See "Incompatible changes > Old Babel header properties are no longer
> supported" in ORG-NEWS.
>
> Regards,

thanks for the quick answer.

However, I have still problems. I have adapted the example,
http://orgmode.org/manual/noweb_002dref.html#noweb_002dref, in the
Orgmode handbook to the changed Babel header properties. However, the
generated file contained only "#!/bin/sh". I have activated property
inheritance for "noweb-ref" and moving the cursor on the #+BEGIN_SRC sh
lines shows that they have ":noweb-ref: fullest-disk" as header
argument.

org-use-property-inheritance is '("noweb-ref")

Here is the changed code from the Org mode manual:

--8<---cut here---start->8---
#+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
  <>
#+END_SRC

* the mount point of the fullest disk
  :PROPERTIES:
  :header-args: :noweb-ref: fullest-disk
  :END:

** query all mounted disks

#+BEGIN_SRC sh
  df \
#+END_SRC

** strip the header row
#+BEGIN_SRC sh
  |sed '1d' \
#+END_SRC

** sort by the percent full
#+BEGIN_SRC sh
  |awk '{print $5 " " $6}'|sort -n |tail -1 \
#+END_SRC

** extract the mount point
#+BEGIN_SRC sh
  |awk '{print $2}'
#+END_SRC
--8<---cut here---end--->8---

Any ideas why it is still not working.

Regards,
Rainer





Re: [O] Logbook not working?

2017-02-23 Thread Nicolas Goaziou
Hello,

Lawrence Bottorff  writes:

> I'm trying to create Logbook entries with C-c C-z -- which has worked fine
> in the past. But now whenever I try I get
>
> org-back-to-heading: Before first headline at position 1151 in buffer
> current.org
>
> . . . i.e., my entry doesn't show up anywhere. What have I inadvertently
> messed up?

Could you paste a full backtrace, or, better, an ECM?

Regards,

-- 
Nicolas Goaziou



[O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
I'm trying to create Logbook entries with C-c C-z -- which has worked fine
in the past. But now whenever I try I get

org-back-to-heading: Before first headline at position 1151 in buffer
current.org

. . . i.e., my entry doesn't show up anywhere. What have I inadvertently
messed up?

LB


Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-23 Thread Nicolas Goaziou
Hello,

Rainer Hansen  writes:

> I have tried the following example of using noweb-ref:
>
> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
> <>
> #+END_SRC
>
> * the mount point of the fullest disk
>
> ** query all mounted disks
>
> #+HEADER: :noweb-ref fullest-disk
> #+BEGIN_SRC sh
> df \
> #+END_SRC
>
>
> ** strip the header row
>   :PROPERTIES:
>   :noweb-ref: fullest-disk
>   :END:
>
> #+BEGIN_SRC sh :noweb yes
> |sed '1d' \
> #+END_SRC
>
>
>
> It was mentioned more than 5 years ago as creating problems:
> https://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00825.html
>
> Now I got the same problem as mentioned in the post of that time - the
> created file contains only
>
> #!/bin/sh df \
>
> Missing is the second block.
>
> Any ideas why?

See "Incompatible changes > Old Babel header properties are no longer
supported" in ORG-NEWS.

Regards,

-- 
Nicolas Goaziou



[O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-23 Thread Rainer Hansen
Hi,

I have tried the following example of using noweb-ref:

--8<---cut here---start->8---
#+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
<>
#+END_SRC

* the mount point of the fullest disk

** query all mounted disks

#+HEADER: :noweb-ref fullest-disk
#+BEGIN_SRC sh
df \
#+END_SRC


** strip the header row
  :PROPERTIES:
  :noweb-ref: fullest-disk
  :END:

#+BEGIN_SRC sh :noweb yes
|sed '1d' \
#+END_SRC
--8<---cut here---end--->8---


It was mentioned more than 5 years ago as creating problems:
https://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00825.html

Now I got the same problem as mentioned in the post of that time - the
created file contains only

--8<---cut here---start->8---
#!/bin/sh
df \
--8<---cut here---end--->8---

Missing is the second block.

Any ideas why?

Regards,
Rainer



Emacs  : GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
 of 2016-10-26
Package: Org mode version 9.0.5 (9.0.5-elpaplus @ 
/home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)

current state:
==
(setq
 org-protocol-default-template-key "l"
 org-export-backends '(ascii beamer html icalendar latex odt freemind)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-calc-default-modes '(calc-internal-prec 12 calc-float-format (fix 2) 
calc-angle-mode deg calc-prefer-frac nil
  calc-symbolic-mode nil calc-date-format ( "-" MM 
"-" DD " " Www (" " hh ":" mm))
  calc-display-working-message t)
 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-log-done 'time
 org-confirm-shell-link-function 'yes-or-no-p
 org-use-sub-superscripts '{}
 org-default-notes-file "~/orgfiles/notes.org"
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 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 '(#[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 org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes 
turn-on-font-lock org-eldoc-load)
 org-refile-targets '((org-agenda-files :maxlevel . 5) (nil :maxlevel . 5))
 org-format-latex-header 
"\\documentclass[a4paper]{scrartcl}\n\\usepackage[usenames]{color}\n\\usepackage{amsmath}\n\\usepackage[mathscr]{eucal}\n\\pagestyle{empty}
 % do not remove\n[PACKAGES]\n[DEFAULT-PACKAGES]\n% The settings 
below are copied from fullpage.sty\n% \\setlength{\\textwidth}{\\paperwidth}\n% 
\\addtolength{\\textwidth}{-3cm}\n% 
\\setlength{\\oddsidemargin}{1.5cm}\n%\\addtolength{\\oddsidemargin}{-2.54cm}\n%
 \\setlength{\\evensidemargin}{\\oddsidemargin}\n% 
\\setlength{\\textheight}{\\paperheight}\n%  
\\addtolength{\\textheight}{-\\headheight}\n% 
\\addtolength{\\textheight}{-\\headsep}\n% 
\\addtolength{\\textheight}{-\\footskip}\n% 
\\addtolength{\\textheight}{-3cm}\n% \\setlength{\\topmargin}{1.5cm}\n% 
\\addtolength{\\topmargin}{-2.54cm}"
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-use-speed-commands t
 org-clock-persist t
 org-refile-use-outline-path 'file
 org-directory "~/orgfiles/"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-use-property-inheritance '("noweb-ref")
 org-refile-allow-creating-parent-nodes 'confirm
 org-todo-keywords '((sequence "TODO(t)" "DONE") (sequence "PLANNING(p)" 
"DEFERRED" "|" "DONE" "CANCELLED"))
 org-modules '(org-bbdb org-bibtex org-gnus org-info org-protocol org-git-link 
org-irc org-wl org-w3m)
 org-babel-tangle-lang-exts '(("python" . "py") ("awk" . "awk") ("emacs-lisp" . 
"el") ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("id" :follow org-id-open) ("w3m" :store 
org-w3m-store-link)
   ("wl" :follow org-wl-open :store org-wl-store-link)
   ("irc" :follow org-irc-visit :store org-irc-store-link)
   ("git" :follow org-git-open :store org-git-store-link) 
("gitbare" :follow org-gitbare-open)
   ("info" :follow org-info-open :export org-info-export 
:store org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-store-link)
   ("bibtex" :follow org-bibtex-open :store 

Re: [O] inheritance of mutually exclusive tags

2017-02-23 Thread Nicolas Goaziou
Hello,

yanmcbe  writes:

> Org-mode allows marking a set of tags as mutually exclusive. It also allows
> the inheritance of tags.
>
> (from now on I am talking only about these mutually exclusive tags)
>
> When a tag is set in a parent, but also in a child, what I expect to happen
> is that the child is not included in searches/selections with the parent
> tag.
>
> In the example [0], a search for black (e.g. C-/ m black ) should not
> match poodle, because it is white.
>
> Now I realize that the mutually exclusive tag concept is probably only a
> convenience for adding tags with C-c. And it doesn't seem to have any other
> implications, but it would be nice to have. Do you think this is a
> possibility or that I could get this behaviour some other way?

I'm late to the party, but it sounds like a good idea. It would need to
be properly documented however, as it could be surprising.

Would you want to provide a patch for that?

Regards,

-- 
Nicolas Goaziou



Re: [O] org.texi edits, patch attached

2017-02-23 Thread Nicolas Goaziou
Nicolas Goaziou  writes:

> Lambda Coder  writes:
>
>> See attached patch for Exporting chapter against maint. 
>
> Thank you. 
>
> Unfortunately, I cannot apply it. Could you send create it with
> format-patch against maint's tip, without gzipping it?

Out of curiosity, did you make any progress on it? 

I still cannot merge your work and I wouldn't want it to be lost.

Thank you.



Re: [O] [PATCH 1/1] org.el: Make faces org-quote and org-verse be appended

2017-02-23 Thread Nicolas Goaziou
Hello,

Anders Johansson  writes:

> This means fontification of emphasis, links etc. is kept in quote and
> verse blocks even with org-fontify-quote-and-verse-blocks non-nil.

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] avoiding "First item of list cannot move without its subtree"

2017-02-23 Thread Nicolas Goaziou
Hello,

"Max Rydahl Andersen"  writes:

> Here is a screencast of me trying before and after evaluating buffer
> with the function in it.
>
> https://v.usetapes.com/COVDzfByN0

Odd. I definitely see TRT in my case. 

What is the value of `org-shiftmetaleft-hook' ? Could you try in
a minimal environment to check if nothing interferes with the function
(e.g., `org-autolist')? 

If that fails, could you debug `my-shiftmetaleft' and see if it is
called at all?

Regards,

-- 
Nicolas Goaziou



Re: [O] avoiding "First item of list cannot move without its subtree"

2017-02-23 Thread Max Rydahl Andersen

On 23 Feb 2017, at 12:41, Nicolas Goaziou wrote:


Hello,

"Max Rydahl Andersen"  writes:


Fixed the typo - but still nothing happens :/


"Nothing happens" is a bit vague. M-S-Left should demote an item. When
it reaches top-level, it should be turned into a headline. What 
happens

instead?


The same as before, i.e. I observe no difference.

Here is a screencast of me trying before and after evaluating buffer 
with the function in it.


https://v.usetapes.com/COVDzfByN0

/max
http://about.me/maxandersen



Re: [O] Bug: Agenda clockcheck: org-duration-to-minutes: Wrong type argument: stringp [9.0.5 (release_9.0.5-318-gb1353c @ /tmp/emacs/org-mode/lisp\ /)]

2017-02-23 Thread Nicolas Goaziou
Hello,

Dale  writes:

> Hi!  I think org-mode from master currently has a bug in agenda's
> clockcheck mode.  Steps to reproduce:
>
> 1. Start emacs -Q and load org-mode master (b1353cb6f83)
>
> 2. Open a empty org-mode buffer, e.g.: C-x C-f test.org RET
>
> 3. M-x org-agenda RET
>
> 4. Hit "a" for "Agenda for current day or week"
>
> 5. Hit "v" then "c" to switch to clockcheck view
>
> Expected results: clockcheck view is engaged (albeit empty given the
> empty org-mode file)
>
> Observed results: I receive the following error:
>
> org-duration-to-minutes: Wrong type argument: stringp, 0
>
> Due to this error, clockcheck mode does not seem to activate.
>
> Emacs  : GNU Emacs 25.1.1 (x86_64-apple-darwin15.6.0)
>  of 2017-01-30
> Package: Org mode version 9.0.5 (release_9.0.5-318-gb1353c @
> /tmp/emacs/org-mode/lisp/)
>
> Other information:
>
> I suspect this is happening as of the recent switch to using the
> org-duration library (7e8cf5f4c20), which replaced some/all uses of
> org-hh:mm-string-to-minutes with org-duration-to-minutes.
> org-hh:mm-string-to-minutes accepted an integer as its argument
> (despite its name):
>
> (cond
>  ((integerp s) s)
>  ...
>
> In contrast, org-duration-to-minutes only expects a string as its
> argument.  The "Wrong type argument" seems to be coming from its first
> string-match-p call.
>
> org-agenda-show-clocking-issues will potentially call
> org-duration-to-minutes with the integer 0 as its argument:
>
> (mintime (org-duration-to-minutes
>   (or (plist-get pl :min-duration) 0)))
>
> The default value for org-agenda-clock-consistency-checks also
> specifies :min-duration 0; that is, an integer rather than a string.
>
> I cannot say whether org-duration-string should accept a number, as
> org-hh:mm-string-to-minutes did, or instead whether org-agenda.el
> should be changed to always pass it a string.

I did the former. This is now fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] avoiding "First item of list cannot move without its subtree"

2017-02-23 Thread Nicolas Goaziou
Hello,

"Max Rydahl Andersen"  writes:

> Fixed the typo - but still nothing happens :/

"Nothing happens" is a bit vague. M-S-Left should demote an item. When
it reaches top-level, it should be turned into a headline. What happens
instead?

Regards,

-- 
Nicolas Goaziou