Re: [O] Running org-mode (and emacs) inside the Web browser ?

2017-10-28 Thread Alan L Tyree

On 28/10/17 02:49, Olivier Berger wrote:

Hi.





I'm not exactly sure why that would be worth doing... but I can imagine
running that Emacs Web browser port over some kind of versioned file
system, and Emacs conf files (org + tangling, of course), so that you
have "your" org-mode at hand from anywhere using a URL and a browser
tab... of course, using a keyboard for browsing that tab would be better
than a touch screen, re keyboard shortcuts.

Chromebook would be one good reason.

Cheers,
Alan




--
Alan L Tyreehttp://www.austlii.edu.au/~alan




Re: [O] function for inserting a block

2017-10-28 Thread Eric Abrahamsen
Nicolas Goaziou  writes:

> Hello,
>
> Eric Abrahamsen  writes:
>
>> In that case, would you be more in favor of a keymap-plus-subkey system,
>> or a keymap-plus-prompt system?
>
> I have no strong opinion, but a keymap-plus-subkey system (subkeys
> matching current keys in `org-structure-template-alist') with an
> additional key (e.g. ) for "free" seems quite efficient.

This will get there eventually! Because there's likely to be more
tweaking, I haven't touched the manual or the tests yet, just reworked
the option and function:

#+BEGIN_SRC elisp
(defcustom org-structure-template-alist
  '((?s . "SRC")
(?e . "EXAMPLE")
(?E . "EXPORT")
(?q . "QUOTE")
(?v . "VERSE")
(?V . "VERBATIM")
(?c . "CENTER")
(?C . "COMMENT")
(?l . "EXPORT latex")
(?L . "#+LaTeX")
(?h . "EXPORT html")
(?H . "#+HTML")
(?a . "EXPORT ascii")
(?A . "#+ASCII")
(?i . "#+INDEX")
(?I . "#+INCLUDE"))
  "Structure completion elements.
This is an alist of characters and values.  When
`org-insert-structure-template' is called, an additional key is
read.  The key is first looked up in this alist, and the
corresponding structure is inserted.  Hitting  will prompt
for a structure.

Structure strings prefixed with a \"#+\" are inserted with no
further processing.  Strings without this prefix are used to
create a block structure, with \"#+BEGIN\" and \"#+END\" added
automatically.

WHAT TO DO ABOUT THIS PART?
There are two templates for each key, the first uses the original Org syntax,
the second uses Emacs Muse-like syntax tags.  These Muse-like tags become
the default when the /org-mtags.el/ module has been loaded.  See also the
variable `org-mtags-prefer-muse-templates'."
  :group 'org-completion
  :type '(repeat
  (cons
   (character :tag "Key")
   (string :tag "Template")))
  :version "26.1"
  :package-version '(Org . "8.3"))

(defun org-insert-structure-template (&optional type)
  "Insert a block structure of the type #+BEGIN_FOO/#+END_FOO.
This function first reads a character, which can be one of the
keys in `org-structure-template-alist'.  It can also be , in
which case the user is prompted for a string to use.  With an
active region, wrap the region in the block.  Otherwise, insert
an empty block."
  (interactive)
  (let* ((key (read-key "Key: "))
 (struct-string
  (or (cdr-safe (assq key org-structure-template-alist))
  (when (= key ?\t)
(read-string "Structure type: "))
  (error "'%c' has no structure definition" key
(if (string-prefix-p "#+" struct-string)
(progn
  (insert (format "%s: " struct-string))
  (when (string= "#+INCLUDE" struct-string)
(insert
 (format "\"%s\""
 (abbreviate-file-name
  (read-file-name "Include file: "))
  (let ((s (if (use-region-p)
   (region-beginning)
 (point)))
(e (copy-marker (if (use-region-p)
(region-end)
  (point))
t))
column)
(when (string-match-p
   (concat "\\`"
   (regexp-opt '("example" "export" "src")))
   struct-string)
  (org-escape-code-in-region s e))
(goto-char s)
(setq column (current-indentation))
(beginning-of-line)
(indent-to column)
(insert (format "#+BEGIN_%s\n" struct-string))
(goto-char e)
(if (bolp)
(progn
  (skip-chars-backward " \n\t")
  (forward-line))
  (end-of-line)
  (insert "\n"))
(indent-to column)
(insert (format "#+END_%s\n"
(car (split-string struct-string
(when (or (string-match-p "SRC\\|\\`EXPORT\\'" struct-string)
  (null (use-region-p)))
  (goto-char s)
  (end-of-line))
(set-marker e nil)
#+END_SRC




Re: [O] Running org-mode (and emacs) inside the Web browser ?

2017-10-28 Thread Adonay Felipe Nogueira
Personally, I don't think running it inside a browser would be a good
thing... both for keyboard shortcuts, and also for possible issues of
non-free JS (or not-machine-readable free JS information).

However, it's good to have interoperability with other collaborative
editing tools, such as Gobby for which there is already an Emacs Lisp
package for that, and also Etherpad (although I don't know if there is a
package that allows connecting to this one).

Olivier Berger  writes:

> Hi.
>
> I've had this crazy idea to try and "port" emacs to the Web browser
> (using some tools like [[https://browsix.org/][browsix]]), for the
> purpose of running org-mode inside a browser tab.
>
> Anyone having had the same idea yet ?
>
> Interestingly, porting a C program to browsix currently seem to rely on
> emscripten and LLVM... which might not be the best toolchain for
> building Gnu Emacs... but trolls aside, I'd be curious of the
> feasability.
>
> I'm not exactly sure why that would be worth doing... but I can imagine
> running that Emacs Web browser port over some kind of versioned file
> system, and Emacs conf files (org + tangling, of course), so that you
> have "your" org-mode at hand from anywhere using a URL and a browser
> tab... of course, using a keyboard for browsing that tab would be better
> than a touch screen, re keyboard shortcuts.
>
> Any clues ?
>
> I've already spotted http://www.ymacs.org/ which could be of use, for
> the terminal interface parts.
>
> Maybe browsix already provides everything else that's needed (LLVM,
> emscripten, ...).
>
> Another option could be some kind of use of WebAssembly port, for
> browser compatibility, maybe.
>
> Of course performance would be interesting to benchmark.
>
> Thanks for your feedback.
>
> Best regards,

-- 
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
  instantaneamente comigo no endereço abaixo.
- Contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
  Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
  GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
  (apenas sem DRM), PNG, TXT, WEBM.



Re: [O] Running org-mode (and emacs) inside the Web browser ?

2017-10-28 Thread Thibault Marin

Hi, org-mode in a browser would be great indeed.

With https://github.com/paradoxxxzero/butterfly, you can get a terminal
in the browser, then run emacs in terminal mode.  It is not ideal (some
keyboard shortcuts are intercepted by the browser), but it seems quite
interesting.

Olivier Berger writes:

> Hi.
>
> I've had this crazy idea to try and "port" emacs to the Web browser
> (using some tools like [[https://browsix.org/][browsix]]), for the
> purpose of running org-mode inside a browser tab.
>
> Anyone having had the same idea yet ?
>
> Interestingly, porting a C program to browsix currently seem to rely on
> emscripten and LLVM... which might not be the best toolchain for
> building Gnu Emacs... but trolls aside, I'd be curious of the
> feasability.
>
> I'm not exactly sure why that would be worth doing... but I can imagine
> running that Emacs Web browser port over some kind of versioned file
> system, and Emacs conf files (org + tangling, of course), so that you
> have "your" org-mode at hand from anywhere using a URL and a browser
> tab... of course, using a keyboard for browsing that tab would be better
> than a touch screen, re keyboard shortcuts.
>
> Any clues ?
>
> I've already spotted http://www.ymacs.org/ which could be of use, for
> the terminal interface parts.
>
> Maybe browsix already provides everything else that's needed (LLVM,
> emscripten, ...).
>
> Another option could be some kind of use of WebAssembly port, for
> browser compatibility, maybe.
>
> Of course performance would be interesting to benchmark.
>
> Thanks for your feedback.
>
> Best regards,



Re: [O] Error during org-export

2017-10-28 Thread Eric S Fraga
On Saturday, 28 Oct 2017 at 16:58, Gian-Maria Daffré wrote:

[...]

> If it helps, some additional information:
>
>
> Emacs  : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
>  of 2017-09-15, modified by Debian
> Package: Org mode version 9.1.2 (9.1.2-22-ga2a034-elpa @
> /home/giammi/.emacs.d/elpa/org-20171023/)

The point I was trying to make is that for Emacs to find that version of
org (version 9.1.2 from elpa), you must have some initialisation,
e.g. (package-initialize) or equivalent.  If your .emacs is empty, how
does Emacs find this version of org?  I don't think Emacs 25.1.1 comes
with org 9.1.2.  Does it?  What does "M-x org-version RET" give if you
do this with emacs -Q?

Also, maybe see what is in the directory ~/.emacs.d/ ?

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-117-g5b2b8f


signature.asc
Description: PGP signature


Re: [O] using org-global-properties in capture templates

2017-10-28 Thread Xebar Saram
thx so much

that works well. i tried to add another org-global-property entry (i assume
thats possible) but then i didnt get completion for the second one.
this is what i used

(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
Asian Chinese Israeli Italian American EastEuro Mexican French Persian
Austrian Greek Fusion")))
(add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))

i assume my syntax is wrong?

thx!

Z

On Sat, Oct 28, 2017 at 12:37 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Xebar Saram  writes:
>
> > ;; Effort and global properties
> > (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00 2:00
> > 3:00 4:00 6:00 8:00")))
> >
> >
> >
> > (add-to-list 'org-capture-templates
> > '("f" "Food"
> > entry
> > (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
> > "Inbox")
> > "* COOK %^{Recipe Name}
> > :PROPERTIES:
> > :ID: %(org-id-uuid)
> > :Effort_ALL: %^{Effort_ALL}p
> > :END:
> > "
> > "Capture Template for food recipe"
> > ))
>
> "XYZ_ALL" is a special property defining allowed values for "XYZ". In
> you case, you will get completion for "Effort" with:
>
>   :Effort: %^{Effort}p
>
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] table align error

2017-10-28 Thread thomas
OK, I found it - orgmode 9.1 seems to be incompatible with emacs 24.3. 
Switched to 25, that fixed it.


- thomas

On 28.10.2017 17:20, thomas wrote:

bisecting the repo I found

6d6a30d4cd682732ba40328bbeb96122a50f96ff is the first bad commit
commit 6d6a30d4cd682732ba40328bbeb96122a50f96ff
Author: Nicolas Goaziou 
Date:   Tue Jun 27 23:06:02 2017 +0200

    org-table: Implement shrunk columns

    * lisp/org-table.el (org-table-shrunk-column-indicator): New variable.
    (org-table-with-shrunk-columns): New macro.
    (org-table--shrunk-field):
    (org-table--list-shrunk-columns):
    (org-table--shrink-field):
    (org-table--read-column-selection):
    (org-table--expand-all-columns):
    (org-table-toggle-column-width): New functions.

    (org-table-align):
    (org-table-get-field):
    (org-table-insert-column):
    (org-table-delete-column):
    (org-table-move-column):
    (org-table-move-row):
    (org-table-insert-row):
    (org-table-insert-hline):
    (org-table-kill-row):
    (org-table-sort-lines): Use new functions.

    (org-table-overlay-coordinates):
    (org-table-toggle-coordinate-overlays): Tiny refactoring.

    * testing/lisp/test-org-table.el (test-org-table/toggle-column-width):
    (test-org-table/shrunk-columns): New tests.

:04 04 a75dcf8311b90361b2d99e315d8cbae4c9836c68 
2202d9db07c6bb02c03f6ba6b992542b82f0dafe M    lisp
:04 04 cd9214392a149e0b2bd695221c3d33e48ab21678 
93fd5cba6bb6814617f5d73d4f40f1bb12bc8295 M    testing




- thomas


On 28.10.2017 16:25, thomas wrote:

hm, I recompiled org mode and found this warning:

Compiling /home/thomas/dev/elisp/orgmode/org-mode/lisp/org-table.el...

In org-table-align:
org-table.el:812:24:Warning: split-string called with 4 arguments, 
but accepts

    only 1-3

this might be related to my error ... line 812 in org-table.el:

   (split-string (buffer-substring beg end) "\n" t "[ \t]")))

My Emacs version is 24.3.50.1

- thomas


On 28.10.2017 12:01, thomas wrote:


Hi!

org mode table align ( key) is broken on my installation.

I'm using the latest version from github:

 Org mode version 9.1.2 (release_9.1.2-154-g99dbca @ 
/home/thomas/dev/elisp/orgmode/org-mode/lisp/)


This is the message I get when pressing  on any table:

 org-table-align: Wrong number of arguments: #[(string &optional 
separators omit-nulls) "ƒ


This is the output from toggle-error-on-debug:

 Debugger entered--Lisp error: (wrong-number-of-arguments #[(string 
&optional separators omit-nulls) "\203


 [separators omit-nulls split-string-default-separators list 
notfirst start t 0 nil string-match rexp keep-nulls string] 5 
1652423] 4)
  split-string(#("| test\n" 0 6 (fontified nil face org-table) 6 7 
(fontified nil)) "\n" t "[     ]")

  org-table-align()
  org-table-next-field()
  call-interactively(org-table-next-field)
  org-cycle(nil)
  call-interactively(org-cycle nil nil)
  recursive-edit()
  debug()
  call-interactively(debug record nil)
  command-execute(debug record)
  execute-extended-command(nil "debug")
  call-interactively(execute-extended-command nil nil)*
*

I can't figure out what's wrong with my installation ... any 
suggestions would be very helpful!


thank you,

thomas




*
*









Re: [O] table align error

2017-10-28 Thread thomas

bisecting the repo I found

6d6a30d4cd682732ba40328bbeb96122a50f96ff is the first bad commit
commit 6d6a30d4cd682732ba40328bbeb96122a50f96ff
Author: Nicolas Goaziou 
Date:   Tue Jun 27 23:06:02 2017 +0200

    org-table: Implement shrunk columns

    * lisp/org-table.el (org-table-shrunk-column-indicator): New variable.
    (org-table-with-shrunk-columns): New macro.
    (org-table--shrunk-field):
    (org-table--list-shrunk-columns):
    (org-table--shrink-field):
    (org-table--read-column-selection):
    (org-table--expand-all-columns):
    (org-table-toggle-column-width): New functions.

    (org-table-align):
    (org-table-get-field):
    (org-table-insert-column):
    (org-table-delete-column):
    (org-table-move-column):
    (org-table-move-row):
    (org-table-insert-row):
    (org-table-insert-hline):
    (org-table-kill-row):
    (org-table-sort-lines): Use new functions.

    (org-table-overlay-coordinates):
    (org-table-toggle-coordinate-overlays): Tiny refactoring.

    * testing/lisp/test-org-table.el (test-org-table/toggle-column-width):
    (test-org-table/shrunk-columns): New tests.

:04 04 a75dcf8311b90361b2d99e315d8cbae4c9836c68 
2202d9db07c6bb02c03f6ba6b992542b82f0dafe M    lisp
:04 04 cd9214392a149e0b2bd695221c3d33e48ab21678 
93fd5cba6bb6814617f5d73d4f40f1bb12bc8295 M    testing




- thomas


On 28.10.2017 16:25, thomas wrote:

hm, I recompiled org mode and found this warning:

Compiling /home/thomas/dev/elisp/orgmode/org-mode/lisp/org-table.el...

In org-table-align:
org-table.el:812:24:Warning: split-string called with 4 arguments, but 
accepts

    only 1-3

this might be related to my error ... line 812 in org-table.el:

   (split-string (buffer-substring beg end) "\n" t "[ \t]")))

My Emacs version is 24.3.50.1

- thomas


On 28.10.2017 12:01, thomas wrote:


Hi!

org mode table align ( key) is broken on my installation.

I'm using the latest version from github:

 Org mode version 9.1.2 (release_9.1.2-154-g99dbca @ 
/home/thomas/dev/elisp/orgmode/org-mode/lisp/)


This is the message I get when pressing  on any table:

 org-table-align: Wrong number of arguments: #[(string &optional 
separators omit-nulls) "ƒ


This is the output from toggle-error-on-debug:

 Debugger entered--Lisp error: (wrong-number-of-arguments #[(string 
&optional separators omit-nulls) "\203


 [separators omit-nulls split-string-default-separators list notfirst 
start t 0 nil string-match rexp keep-nulls string] 5 1652423] 4)
  split-string(#("| test\n" 0 6 (fontified nil face org-table) 6 7 
(fontified nil)) "\n" t "[     ]")

  org-table-align()
  org-table-next-field()
  call-interactively(org-table-next-field)
  org-cycle(nil)
  call-interactively(org-cycle nil nil)
  recursive-edit()
  debug()
  call-interactively(debug record nil)
  command-execute(debug record)
  execute-extended-command(nil "debug")
  call-interactively(execute-extended-command nil nil)*
*

I can't figure out what's wrong with my installation ... any 
suggestions would be very helpful!


thank you,

thomas




*
*







Re: [O] Error during org-export

2017-10-28 Thread Gian-Maria Daffré
On Sat, 2017-10-28 at 14:08 +0100, Eric S Fraga wrote:
> On Saturday, 28 Oct 2017 at 12:39, Gian-Maria Daffré wrote:
> > If I use a completely empty .emacs file, then I get the error
> > message.
> 
> But if your .emacs is completely empty, how does emacs know how to
> get
> the ELPA version of org?  Do you have an init file in your .emacs.d
> directory?

On Sat, 2017-10-28 at 14:08 +0100, Eric S Fraga wrote:
> On Saturday, 28 Oct 2017 at 12:39, Gian-Maria Daffré wrote:
> > If I use a completely empty .emacs file, then I get the error
> > message.
> 
> But if your .emacs is completely empty, how does emacs know how to
> get
> the ELPA version of org?  

No idea...

> Do you have an init file in your .emacs.d
> directory?

Not that I know of - IIRC I have never created one in that directory.
Export was working perfect until yesterday. I did not change the init
file. I just upgraded several files through M-x list-packages.

If it helps, some additional information:


Emacs  : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2017-09-15, modified by Debian
Package: Org mode version 9.1.2 (9.1.2-22-ga2a034-elpa @
/home/giammi/.emacs.d/elpa/org-20171023/)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-
header-arg-expand)
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-
command-activate)
 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-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
org-eldoc-load)
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-archive-hook '(org-attach-archive-delete-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-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) ("rmail" :follow org-
rmail-open :store org-rmail-store-link)
   ("mhe" :follow org-mhe-open :store org-mhe-
store-link) ("irc" :follow org-irc-visit :store org-irc-store-link)
   ("info" :follow org-info-open :export org-info-
export :store org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-
store-link)
   ("docview" :follow org-docview-open :export org-
docview-export :store org-docview-store-link)
   ("bibtex" :follow org-bibtex-open :store org-
bibtex-store-link)
   ("bbdb" :follow org-bbdb-open :export org-bbdb-
export :complete org-bbdb-complete-link :store org-bbdb-store-link)
   ("w3m" :store org-w3m-store-link) ("file+sys")
("file+emacs") ("doi" :follow org--open-doi-link)
   ("elisp" :follow org--open-elisp-link) ("file"
:complete org-file-complete-link)
   ("ftp" :follow (lambda (path) (browse-url
(concat "ftp:" path ("help" :follow org--open-help-link)
   ("http" :follow (lambda (path) (browse-url
(concat "http:" path
   ("https" :follow (lambda (path) (browse-url
(concat "https:" path
   ("mailto" :follow (lambda (path) (browse-url
(concat "mailto:"; path
   ("news" :follow (lambda (path) (browse-url
(concat "news:"; path ("shell" :follow org--open-shell-link))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

As mentioned, entering emacs -Q in the command line works for export,
just emacs not.

Thanks,
Giammi




Re: [O] table align error

2017-10-28 Thread thomas

hm, I recompiled org mode and found this warning:

Compiling /home/thomas/dev/elisp/orgmode/org-mode/lisp/org-table.el...

In org-table-align:
org-table.el:812:24:Warning: split-string called with 4 arguments, but 
accepts

    only 1-3

this might be related to my error ... line 812 in org-table.el:

   (split-string (buffer-substring beg end) "\n" t "[ \t]")))

My Emacs version is 24.3.50.1

- thomas


On 28.10.2017 12:01, thomas wrote:


Hi!

org mode table align ( key) is broken on my installation.

I'm using the latest version from github:

 Org mode version 9.1.2 (release_9.1.2-154-g99dbca @ 
/home/thomas/dev/elisp/orgmode/org-mode/lisp/)


This is the message I get when pressing  on any table:

 org-table-align: Wrong number of arguments: #[(string &optional 
separators omit-nulls) "ƒ


This is the output from toggle-error-on-debug:

 Debugger entered--Lisp error: (wrong-number-of-arguments #[(string 
&optional separators omit-nulls) "\203


 [separators omit-nulls split-string-default-separators list notfirst 
start t 0 nil string-match rexp keep-nulls string] 5 1652423] 4)
  split-string(#("| test\n" 0 6 (fontified nil face org-table) 6 7 
(fontified nil)) "\n" t "[     ]")

  org-table-align()
  org-table-next-field()
  call-interactively(org-table-next-field)
  org-cycle(nil)
  call-interactively(org-cycle nil nil)
  recursive-edit()
  debug()
  call-interactively(debug record nil)
  command-execute(debug record)
  execute-extended-command(nil "debug")
  call-interactively(execute-extended-command nil nil)*
*

I can't figure out what's wrong with my installation ... any 
suggestions would be very helpful!


thank you,

thomas




*
*





Re: [O] Error during org-export

2017-10-28 Thread Eric S Fraga
On Saturday, 28 Oct 2017 at 12:39, Gian-Maria Daffré wrote:
> If I use a completely empty .emacs file, then I get the error message.

But if your .emacs is completely empty, how does emacs know how to get
the ELPA version of org?  Do you have an init file in your .emacs.d
directory?

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-117-g5b2b8f


signature.asc
Description: PGP signature


Re: [O] Error during org-export

2017-10-28 Thread Gian-Maria Daffré
Hello Nicolas,

On Sat, 2017-10-28 at 11:23 +0200, Nicolas Goaziou wrote:
> Hello,
> 
> Gian-Maria Daffré  writes:
> 
> > If I create a simple heading like
> > * Hello
> > Test
> > 
> > and then try to export as latex/pdf from org-mode (C-c C-e l o) I
> > get
> > the following error.
> > 
> > Debugger entered--Lisp error: (void-variable element-property)
> 
> FWIW, I cannot reproduce it. You may want to check your configuration
> file.

Thanks for your reply.

If I use a completely empty .emacs file, then I get the error message.

If I start with emacs -Q, then I can export the file without problem.




[O] table align error

2017-10-28 Thread thomas

Hi!

org mode table align ( key) is broken on my installation.

I'm using the latest version from github:

 Org mode version 9.1.2 (release_9.1.2-154-g99dbca @ 
/home/thomas/dev/elisp/orgmode/org-mode/lisp/)


This is the message I get when pressing  on any table:

 org-table-align: Wrong number of arguments: #[(string &optional 
separators omit-nulls) "ƒ


This is the output from toggle-error-on-debug:

 Debugger entered--Lisp error: (wrong-number-of-arguments #[(string 
&optional separators omit-nulls) "\203


 [separators omit-nulls split-string-default-separators list notfirst 
start t 0 nil string-match rexp keep-nulls string] 5 1652423] 4)
  split-string(#("| test\n" 0 6 (fontified nil face org-table) 6 7 
(fontified nil)) "\n" t "[     ]")

  org-table-align()
  org-table-next-field()
  call-interactively(org-table-next-field)
  org-cycle(nil)
  call-interactively(org-cycle nil nil)
  recursive-edit()
  debug()
  call-interactively(debug record nil)
  command-execute(debug record)
  execute-extended-command(nil "debug")
  call-interactively(execute-extended-command nil nil)*
*

I can't figure out what's wrong with my installation ... any suggestions 
would be very helpful!


thank you,

thomas




*
*



Re: [O] using org-global-properties in capture templates

2017-10-28 Thread Nicolas Goaziou
Hello,

Xebar Saram  writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00 2:00
> 3:00 4:00 6:00 8:00")))
>
>
>
> (add-to-list 'org-capture-templates
> '("f" "Food"
> entry
> (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
> "Inbox")
> "* COOK %^{Recipe Name}
> :PROPERTIES:
> :ID: %(org-id-uuid)
> :Effort_ALL: %^{Effort_ALL}p
> :END:
> "
> "Capture Template for food recipe"
> ))

"XYZ_ALL" is a special property defining allowed values for "XYZ". In
you case, you will get completion for "Effort" with:

  :Effort: %^{Effort}p


Regards,

-- 
Nicolas Goaziou



Re: [O] Error during org-export

2017-10-28 Thread Nicolas Goaziou
Hello,

Gian-Maria Daffré  writes:

> If I create a simple heading like
> * Hello
> Test
>
> and then try to export as latex/pdf from org-mode (C-c C-e l o) I get
> the following error.
>
> Debugger entered--Lisp error: (void-variable element-property)

FWIW, I cannot reproduce it. You may want to check your configuration
file.

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Missing agenda files file causes org to fail [9.1.2 (9.1.2-22-ga2a034-elpaplus)]

2017-10-28 Thread Nicolas Goaziou
Hello,

Allen Li  writes:

> If org-agenda-files is set to a file through customize.el and that
> file is missing, Org will fail to load at all.

I cannot reproduce it. Could you provide the error message and a recipe?

Regards,

-- 
Nicolas Goaziou