[O] Bug: Org agenda category max length raise error [9.2.5 (9.2.5-1-gff6508-elpaplus @ /home/edo/.emacs.d/elpa/org-plus-contrib-20190805/)]

2019-08-11 Thread Héctor Enríquez Ramón
--text follows this line--

Hi.


* Issue:

1. Use max length format %., example

(setq org-agenda-prefix-format
  '((agenda . " %i %-4.4 c%?-12t% s")  ;; (agenda . " %i %-12:c%?-12t%
s")
(timeline . "  % s")
(todo . " %i %-4.4 c%?-12t% s");; (todo . " %i %-12:c")
(tags . " %i %-4.4 c") ;; (tags . " %i %-12:c")
(search . " %i %-4.4 c"))  ;; (search . " %i %-12:c"))

2. Open an org file.

3. Typing C-c a a (for example) raise:

   org-compile-prefix-format: Args out of range: "-4.4", 4, 11


* How to fix it:

org-agenda.el: (see comments ;; + line added, ;; - line removed)

  (when (eq var 'category)
(setq org-prefix-category-length
  (floor (abs (string-to-number (match-string 2 s)
(setq org-prefix-category-max-length
  (let ((x (match-string 2 s)))
(save-match-data
   ;; +
  (when (string-match "\\.[0-9]+" x)
(string-to-number (substring (match-string 0 x)
1)))  ;; +
;; (when (string-match-p "\\.[0-9]+" x)
  ;; -
;;   (string-to-number (substring (match-string 0 x)
1))  ;; -
  (if (eq var 'eval)
  (setq varform `(format ,f (org-eval ,(read (match-string 4
s)



Best regards. Hector

Emacs  : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw
scroll bars)
 of 2019-04-13
Package: Org mode version 9.2.5 (9.2.5-1-gff6508-elpaplus @
/home/edo/.emacs.d/elpa/org-plus-contrib-20190805/)


[O] Bug: ox-beamer add label when option 'allowframebreaks' setted in org-beamer-frame-default-options [9.1.14 (9.1.14-7-g01c419-elpaplus @ .emacs.d/elpa/org-plus-contrib-20181015/)]

2018-10-19 Thread Héctor Enríquez Ramón
Latex beamer not allow 'label=' when 'allowframebreaks' setted in frame.

In file ox-beamer.el function org-beamer--format-frame search
'allowframebreaks' option inside beamer-opt but not inside variable
org-beamer-frame-default-options. Then insert 'label=..' with
'allowframebreaks' and latex hide continuation's frames.

Best regards. Héctor

Emacs  : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw
scroll bars)
 of 2018-05-30
Package: Org mode version 9.1.14 (9.1.14-7-g01c419-elpaplus @
/home/edo/.emacs.d/elpa/org-plus-contrib-20181015/)