Re: [O] org-mode in French

2017-11-13 Thread Rasmus
gmx  writes:

> Hello,
> I've been using Org-mode for several months now, with pleasure.
> However, I would like the .tex files use some packages (babel,
> french...), a particular koma-script class (scrartcl), etc., which
> allow me to release a. pdf file with French typographical standards.
>
> How to do this?

For language support, you could do something like

(setq org-latex-packages-alist
'(("AUTO" "babel" nil ("pdflatex"))
  ("AUTO" "polyglossia" nil ("xelatex" "lualatex"

And use the "#+language: fr" keyword to set the document to French.

Rasmus

-- 
Hooray!




Re: [O] wish: global C-u org-agenda-refile

2017-11-13 Thread Kyle Meyer
Gregor Zattler  writes:

> Thanks, that was easy.  But why does this work with point on an
> agenda date line, whilst C-u C-c C-w does not?

org-agenda-refile raises a user-error before calling org-refile if it
cannot determine a marker for the current line:

(or (org-get-at-bol 'org-hd-marker)
(org-agenda-error))

-- 
Kyle



[O] Beginner installing org-mode 9.1.2 from git fails on homebrew emacs-mac

2017-11-13 Thread Umbromancer
Hi all,

This is my first post on the list, and an definitively an emacs/org-mode newbe.

I've just upgraded to emacs 25.3.1 via homebrew (emacs-mac) and the
included org-version is 8.2.10. I'm trying to setup the git stable
release_9.1.2 as per suggestion on the worg faq. I've cloned the git
repo and duplicated default.mk into local.mk and edited it so as to
point to the homebrew Emacs location.

I've upgraded org-mode on my previous Emacs 24 install using the
"same" method. The only difference being previously I used the
org-mode stable download from org-mode.org instead of the git sources.

After editing local.mk and issuing the make commands, I get:
$ make cleanall
...
$ make install
Miguels-MBP:org-mode me$ make install
/Library/Developer/CommandLineTools/usr/bin/make -C doc install
org-version: 9.1.2 (release_9.1.2)
makeinfo --no-split org.texi -o org
/Users/me/elisp/org-mode/doc//docstyle.texi:3: warning: unrecognized
encoding name `UTF-8'.
if [ ! -d /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/info/emacs
]; then install -m 755 -d
/usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/info/emacs; else
true; fi ;
install -m 644 -p org
/usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/info/emacs
install-info 
--infodir=/usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/info/emacs
org
/Library/Developer/CommandLineTools/usr/bin/make -C etc install
for dir in styles schema ; do \
  if [ ! -d
/usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/emacs/25.3/etc/org/${dir}
] ; then \
install -m 755 -d
/usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/emacs/25.3/etc/org/${dir}
; \
  fi ; \
  install -m 644 -p ${dir}/*
/usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/share/emacs/25.3/etc/org/${dir}
; \
done ;
/Library/Developer/CommandLineTools/usr/bin/make -C lisp install
rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc
org-install.elc
org-version: 9.1.2 (release_9.1.2)
Loading /Users/me/elisp/org-mode/lisp/org-compat.el (source)...
Cannot open load file: cl-lib
make[1]: *** [org-version.el] Error 255
make: *** [install-lisp] Error 2
Miguels-MBP:org-mode me$

cl-lib is of course available when I run Emacs.
I'm mostly likely missing something which fails to be obvious for me...

Thanks in advance for all the help,
Miguel



Re: [O] ob-haskell evaluation needs inf-haskell but it does not exist

2017-11-13 Thread Nick Dokos
stardiviner  writes:

> When I execute the following Haskell src block:
>
> ```
>
> #+BEGIN_SRC haskell :session :tangle "Data/Code/hello_world.hs"
> main :: IO ()
> main = do
>   putStrLn "Hello, World!"
> #+END_SRC
>
> ```
>
> It reports error:
>
> ```
>
> Debugger entered--Lisp error: (file-missing "Cannot open load file" "No
> such file or directory" "inf-haskell")
>   require(inf-haskell)

See my answer to this SO question:

  
https://stackoverflow.com/questions/42081379/how-to-set-up-org-babel-for-haskell-with-stack

for some details on setting up the environment.

-- 
Nick




[O] mentioning EXPORT_LATEX_HEADER in the latex header info node

2017-11-13 Thread Alan Schmitt
Hello,

The LaTeX header and sectioning structure info node talks about
LATEX_HEADER and LATEX_HEADER_EXTRA. Maybe it could mention the EXPORT
version as well, as is done for the LATEX_CLASS_OPTION.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-10: 403.64, 2016-10: 401.57


signature.asc
Description: PGP signature


Re: [O] wish: global C-u org-agenda-refile

2017-11-13 Thread Kyle Meyer
Gregor Zattler  writes:

> Dear org-mode users and developers, I frequently use C-u C-c C-w
> in order to jump to a heading in one of my org agenda files
> (using helm as a selection framework).
>
> Alas this only works when invoked from org-mode buffers or from
> the agenda if point is on an org agenda item (as opposed e.g. to
> a line containing the date, or empty time grid lines).
>
> I wish for C-u org-refile functionality (call it org-jump or
> whatever) which would not depend on context, in order for me
> being able to bind it to a key in the global key map.
>
> Is this already doable?  Otherwise I wish for this
> functionality. 

You could define a simple command in your init like

(defun my/org-goto-agenda-heading ()
  (interactive)
  (org-refile '(4)))

and bind that to whatever you'd like.

-- 
Kyle



Re: [O] erroneously extracting a timestamps from a TODO subject - SOLVED

2017-11-13 Thread Rainer Stengele

Am 13.11.2017 um 15:07 schrieb Eric S Fraga:

On Monday, 13 Nov 2017 at 13:12, Rainer Stengele wrote:

Hi,

I have this TODO in my Org file:

*** TODO Chapter 7:21-23 - text 
:@HOME:
 SCHEDULED: <2017-11-13 Mo>

my related agenda shows this:

Montag 13 November 2017 W46
   Privat:   7:21..Scheduled:  TODO Chapter -23 - text

It seems that the agenda in a strange way extracts the timestamp
"7:21" from "7:21-23 -text" but leaves "-23 -test" as the TODO
subject.  Could this be a bug?


If you don't want org to search for times in the headline, check out
org-agenda-search-headline-for-time.

It is probably very difficult to define a pattern that excludes examples
like yours from being parsed for a time when it shouldn't...


Hi Eric,

thanks, that solved it.
I was searching all variable names including "org" and "agenda" and "timestamp" 
(thanks to helm-apropos) so missed that one.

Regards,
Rainer



[O] wish: global C-u org-agenda-refile

2017-11-13 Thread Gregor Zattler
Dear org-mode users and developers, I frequently use C-u C-c C-w
in order to jump to a heading in one of my org agenda files
(using helm as a selection framework).

Alas this only works when invoked from org-mode buffers or from
the agenda if point is on an org agenda item (as opposed e.g. to
a line containing the date, or empty time grid lines).

I wish for C-u org-refile functionality (call it org-jump or
whatever) which would not depend on context, in order for me
being able to bind it to a key in the global key map.

Is this already doable?  Otherwise I wish for this
functionality. 

(org-jump works only within an org-mode buffer;
helm-org-agenda-files-headings is an external package and it's
slower than C-u org-refile from cache).


Ciao; Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-




Re: [O] erroneously extracting a timestamps from a TODO subject

2017-11-13 Thread Eric S Fraga
On Monday, 13 Nov 2017 at 13:12, Rainer Stengele wrote:
> Hi,
>
> I have this TODO in my Org file:
>
> *** TODO Chapter 7:21-23 - text   
>   :@HOME:
> SCHEDULED: <2017-11-13 Mo>
>
> my related agenda shows this:
>
> Montag 13 November 2017 W46
>   Privat:   7:21..Scheduled:  TODO Chapter -23 - text
>
> It seems that the agenda in a strange way extracts the timestamp
> "7:21" from "7:21-23 -text" but leaves "-23 -test" as the TODO
> subject.  Could this be a bug?

If you don't want org to search for times in the headline, check out
org-agenda-search-headline-for-time.

It is probably very difficult to define a pattern that excludes examples
like yours from being parsed for a time when it shouldn't...

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-155-gf474c7


signature.asc
Description: PGP signature


[O] erroneously extracting a timestamps from a TODO subject

2017-11-13 Thread Rainer Stengele

Hi,

I have this TODO in my Org file:

*** TODO Chapter 7:21-23 - text 
:@HOME:
SCHEDULED: <2017-11-13 Mo>

my related agenda shows this:

Montag 13 November 2017 W46
  Privat:   7:21..Scheduled:  TODO Chapter -23 - text

It seems that the agenda in a strange way extracts the timestamp "7:21" from "7:21-23 - 
text" but leaves "-23 - test" as the TODO subject.
Could this be a bug?

The agenda I use is this one as an excerpt from my org-agenda-custom-commands:

..
("p1" "PRIVATE agenda -  7 days - prio A,B todos - sorted prio up" ;;
 (
  (agenda "prio ABC agenda"
  (
   (org-agenda-start-with-log-mode t)
   (org-agenda-skip-scheduled-if-done nil)
   (org-agenda-skip-deadline-if-done nil)
   (org-agenda-overriding-header "Today's Agenda  + Prio A+B todos 
")))

  (alltodo "todos Prio A"
   ((org-agenda-skip-function
 (lambda nil
   (or (org-agenda-skip-entry-if (quote notregexp) 
"\\=.*\\[#A\\]")
   (org-agenda-skip-entry-if 'scheduled 'deadline 
(org-agenda-overriding-header "!!! TODOs Prio A: !!!")))

  (alltodo "rest of todos"
   ((org-agenda-skip-function
 (lambda nil
   (or (org-agenda-skip-entry-if (quote regexp) 
"\\=.*\\[#A\\]")
   (org-agenda-skip-entry-if 'scheduled 'deadline 
(org-agenda-overriding-header "TODOs ohne Prio A: ")
)))
 ((org-agenda-files privat-org-agenda-files)
  (org-agenda-include-inactive-timestamps nil)
  (org-agenda-span 7)
  (org-agenda-start-on-weekday nil)
  (org-agenda-sorting-strategy '(time-up priority-down todo-state-up
..

Thank you.
Regards, Rainer




Re: [O] Applescript help

2017-11-13 Thread Jean-Christophe Helary


> On Nov 13, 2017, at 17:39, Alan Schmitt  
> wrote:
> 
> On 2017-11-11 20:06, Jay Iyer  writes:
> 
>> Hi, in my Org workflow, I am trying to use the do-applescript function to
>> hide an active Emacs session.  Can you tell me what I am doing wrong with
>> the following that I think should work but is not?  Thanks. -jay
>> 
>> (do-applescript "tell application \"Finder\" set visible of application
>> process \"Emacs\" to false")
> 
> Don't you need an "end tell"?

"end tell" if it's a block "to" if it's a line:

>> (do-applescript "tell application \"Finder\" to set visible of application 
>> process \"Emacs\" to false")



Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.com




Re: [O] Fwd: Org mode latex export with "Letter" Class

2017-11-13 Thread Eric S Fraga
On Sunday, 12 Nov 2017 at 14:34, Mohamed Zaki wrote:
> Hi
>
> I am trying to export an org file to latex using the org-mode version
> 9.1.2. The input file structure is:

You could try:

#+LaTeX_CLASS: LTR
#+options: toc:nil
#+attr_latex: :options {To somebody \\ Somewhere \\ Planet Earth}
#+begin_letter 
\opening{Dear Sir/Madam,}
Some text
\closing{Thank you,}

#+end_letter

but note that the entry you have defined for the LTR org latex class is
incorrect as it is not intended for defining blocks.  So long as you
don't use any headings, the above will work (or does for me).

In any case, I would recommend using ox-koma-letter instead...

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-155-gf474c7


signature.asc
Description: PGP signature


Re: [O] Applescript help

2017-11-13 Thread Alan Schmitt
On 2017-11-11 20:06, Jay Iyer  writes:

> Hi, in my Org workflow, I am trying to use the do-applescript function to
> hide an active Emacs session.  Can you tell me what I am doing wrong with
> the following that I think should work but is not?  Thanks. -jay
>
> (do-applescript "tell application \"Finder\" set visible of application
> process \"Emacs\" to false")

Don't you need an "end tell"?

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-10: 403.64, 2016-10: 401.57


signature.asc
Description: PGP signature