Re: [O] Export results of code literal blocks (Jekyll directory structure) xpost emacs.stackexchange

2017-06-30 Thread Nicolas Goaziou
Hello,

Jeremy Reeve  writes:

>>   "We have a squeaker today, class. Isn't he cute?"
>
> That comment was totally inappropriate for a public mailing list.

Of course! Hence the double quotes and the indentation. 

It is actually a quote from the Whiplash movie. It illustrates how
unwelcoming can a given community be. This was obviously not addressed
to you. I'm sorry you thought otherwise.

> There seem to be many inconsistencies between the particular versions
> I am using and the public documentation and I appreciate that the code
> is probably evolving rapidly.  I note the difference in documentation
> between master in the code repository and what is currently on the
> public facing web site and that I ought to build the documentation
> specific to the version I am using.

You ought to read the documentation from within Emacs:

  (info "(org) Top")

It is adapted to the Org version you're using.


Regards,

-- 
Nicolas Goaziou



[O] Capture template 'C': nil

2017-06-30 Thread Alan Schmitt
Hello,

I'm having a problem with a capture template called from org-protocol,
both with old and new style links.

Here is the template

  ("C" "capture CWN through org protocol" item (file "next-cwn.org")
   "- %?%:description\n  %:link\n\n")

When I use it on a page, it directly adds the entry to the file, without
going through the capture interface, and it adds an extra %? in the
text. For instance, using it on http://orgmode.org/ I get

- %?Org mode for Emacs – Your Life in Plain Text
  http://orgmode.org/

In the *Messages* buffer I see this:

Greedy org-protocol handler.  Killing client.
No server editing buffers exist
Capture template ‘C’: nil

Is this a bug, or a misconfiguration on my side?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70


signature.asc
Description: PGP signature


Re: [O] keybindings again...

2017-06-30 Thread Jean-Christophe Helary

> On Jun 30, 2017, at 14:27, Nicolas Goaziou  wrote:

>> It would be nice if the org manual mentioned that too, and give
>> alternative keybindings for use in the terminal because that's
>> extremely confusing.
> 
> It does: (info "(org) TTY keys").

Thank you for the pointer. Although I don't think I ever used a teletypewriter 
in my life :) Maybe sometimes in the 21st century we'll have to think about a 
change in terminology...

I use the compact manual as a reference for my uses and I find it extremely 
useful for beginners. Would it be possible to insert a few line on that subject 
in there too? Something like "People who use org-mode in a tty terminal should 
refer to section 15.9 of the manual for alternative key bindings."

> See also `org-replace-disputed-keys'.

Thank you.

Jean-Christophe


Re: [O] keybindings again...

2017-06-30 Thread Jean-Christophe Helary
Eli and Yuri,

Thank you *so much* for the thorough explanations. Now I know.
After having finally understood how git was working I was going back to my list 
of things to do for/with emacs and got frustrated by that shortcut that kept 
not working...

Jean-Christophe 

> On Jun 30, 2017, at 15:17, Eli Zaretskii  wrote:
> 
>> From: Jean-Christophe Helary 
>> Do you mean that Shift is not recognized as a modified key by the terminal ?
> 
> No, that's not it.



Re: [O] keybindings again...

2017-06-30 Thread Jean-Christophe Helary

> On Jun 30, 2017, at 14:27, Nicolas Goaziou  wrote:
> 
>> It would be nice if the org manual mentioned that too, and give
>> alternative keybindings for use in the terminal because that's
>> extremely confusing.
> 
> It does: (info "(org) TTY keys").

The alternative to M-S-RET is C-c C-x M = C-c C-x S-m

Why set an alternative like this when ESC RET S- does exactly the 
same thing and is way shorter/more practical ?

> See also `org-replace-disputed-keys'.

After looking at the "big" manual, I found about speed keys which seem to be a 
much more pragmatic approach to sorting that gui/tty key issue in org-mode. But 
except for a small paragraph and a few items in the tty section I could not 
find any reference to them, and nothing at all in the compact manual.

So, I have a few suggestions to improve that part of the documentation:
1) add a list of preset keys in the manual
2) add a line about speed keys in the compact guide

That's something I could do if the idea is accepted.

Jean-Christophe 

ps: section C3 of the manual has this line about Sacha Chua: "Sacha Chua 
suggested copying some linking code from Planner, and helped make Org pupular 
through her blog." It should be "popular" not "pupular".


Re: [O] keybindings again...

2017-06-30 Thread Nicolas Goaziou
Jean-Christophe Helary  writes:

> The alternative to M-S-RET is C-c C-x M = C-c C-x S-m
>
> Why set an alternative like this when ESC RET S- does exactly 
> the same thing and is way shorter/more practical ?

"practical" is in the eye of the beholder. 

For example, I can type "C-c C-x M" without moving my hands out of the
home row. Both ESC and right arrow require me to quit that position.
I prefer the first one without an hesitation.

> After looking at the "big" manual, I found about speed keys which seem
> to be a much more pragmatic approach to sorting that gui/tty key issue
> in org-mode. But except for a small paragraph and a few items in the
> tty section I could not find any reference to them, and nothing at all
> in the compact manual.
>
> So, I have a few suggestions to improve that part of the documentation:
> 1) add a list of preset keys in the manual
> 2) add a line about speed keys in the compact guide
>
> That's something I could do if the idea is accepted.

Sure! Improvements to documentation are always welcome.

Thank you.

Regards,



Re: [O] Capture template 'C': nil

2017-06-30 Thread Mario Martelli
Hi,

> Here is the template
> 
>  ("C" "capture CWN through org protocol" item (file "next-cwn.org")
>   "- %?%:description\n  %:link\n\n")
> 
> When I use it on a page, it directly adds the entry to the file, without
> going through the capture interface, and it adds an extra %? in the
> text.

Try to use ‘entry’ instead of ‘item’

 ("C" "capture CWN through org protocol" entry (file "next-cwn.org")
  "- %?%:description\n  %:link\n\n")

“C” is usually bound to “Customise org-capture-templates”. Probably it’s better 
to choose another key.

In the next step you will probably get an error:  org-capture: Capture template 
‘i’: Template is not a valid Org entry or tree

To avoid that make the entry a tree:

 (“c" "capture CWN through org protocol" entry (file "next-cwn.org")
  “* %?%:description\n  %:link\n\n")

rgrds
Mario
— 




smime.p7s
Description: S/MIME cryptographic signature


Re: [O] keybindings again...

2017-06-30 Thread Jean-Christophe Helary

> On Jun 30, 2017, at 17:14, Nicolas Goaziou  wrote:

>> So, I have a few suggestions to improve that part of the documentation:
>> 1) add a list of preset keys in the manual
>> 2) add a line about speed keys in the compact guide
>> 
>> That's something I could do if the idea is accepted.
> 
> Sure! Improvements to documentation are always welcome.

Ok, I'll put that on my todo list now that I have solved that shortcut issue... 
:)

Jean-Christophe 


[O] capture templates and ^{prompt}

2017-06-30 Thread Jean-Christophe Helary
I'm looking for a way to use the string acquired by prompt in a second location 
in the template, like:

* TODO %^{prompt} [/] :sometag:\n** TODO (value of ^{prompt} comes here) 
:someothertag:\n

What's the best way to get that "value of ^{prompt}" ?

Jean-Christophe 


Re: [O] capture templates and ^{prompt}

2017-06-30 Thread numbch...@gmail.com
Check out the docstring of variable `org-capture-templates`.
There is a doc like this:
```
%\1 ... %\N Insert the text entered at the nth %^{prompt}, where N
  is a number, starting from 1.
```
Maybe this is what you want?

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Fri, Jun 30, 2017 at 5:14 PM, Jean-Christophe Helary <
jean.christophe.hel...@gmail.com> wrote:

> I'm looking for a way to use the string acquired by prompt in a second
> location in the template, like:
>
> * TODO %^{prompt} [/] :sometag:\n** TODO (value of ^{prompt} comes here)
> :someothertag:\n
>
> What's the best way to get that "value of ^{prompt}" ?
>
> Jean-Christophe
>


Re: [O] capture templates and ^{prompt}

2017-06-30 Thread Jean-Christophe Helary
Ooops, yes, that was totally under my nose :)
Thank you very much.

Jean-Christophe 

> On Jun 30, 2017, at 18:18, numbch...@gmail.com wrote:
> 
> Check out the docstring of variable `org-capture-templates`.
> There is a doc like this:
> ```
> %\1 ... %\N Insert the text entered at the nth %^{prompt}, where N
>   is a number, starting from 1.


Re: [O] Capture template 'C': nil

2017-06-30 Thread Alan Schmitt
"MM" == Mario Martelli  writes:

MM> Try to use ‘entry’ instead of ‘item’

Unfortunately I need an item. It used to work, unfortunately it no
longer does.

MM> “C” is usually bound to “Customise org-capture-templates”. Probably
MM> it’s better to choose another key.

Thank you for the suggestion. I changed it and it did not fix it.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70


signature.asc
Description: PGP signature


Re: [O] capture templates and ^{prompt}

2017-06-30 Thread Jean-Christophe Helary
* TODO %^{prompt} [/]\n** TODO %\1 %^{prompt} %^t\n

gives

* TODO stuff [/]

** TODO %^A stuff 

Why is that ?

Jean-Christophe 
   


> On Jun 30, 2017, at 18:21, Jean-Christophe Helary 
>  wrote:
> 
> Ooops, yes, that was totally under my nose :)
> Thank you very much.
> 
> Jean-Christophe 
> 
>> On Jun 30, 2017, at 18:18, numbch...@gmail.com wrote:
>> 
>> Check out the docstring of variable `org-capture-templates`.
>> There is a doc like this:
>> ```
>> %\1 ... %\N Insert the text entered at the nth %^{prompt}, where N
>>   is a number, starting from 1.




Re: [O] capture templates and ^{prompt}

2017-06-30 Thread Nicolas Goaziou
Jean-Christophe Helary  writes:

> * TODO %^{prompt} [/]\n** TODO %\1 %^{prompt} %^t\n
>
> gives
>
> * TODO stuff [/]  
>   
> ** TODO %^A stuff 
>
> Why is that ?

In a string, backslash needs to be escaped: %\\1

Regards,



Re: [O] keybindings again...

2017-06-30 Thread Michael Ax

Also $ xmodmap  .. if you should see an empty row in the output,
and a whole bunch of things clustered on the last line, then ..

write an ~/.Xmodmap to free up caps-lock and to have it act as the 
Hyper_L key.
two more lines move that modifier into the free row and you get an easy 
to hit

 on activation via $ xmodmap ~/.Xmodmap

With a US keyboard you might need to create that file, otherwise just add:

clear Lock
keycode 66 = Hyper_L
remove mod4 = Hyper_L
add mod3 = Hyper_L

I never worked out how to do this in the terminal as emacs is unusable 
in the
terminal on my debians (since i can remember; i use zile there 
instead).  one

could maybe make Hyper work outside X via /etc/console-setup/ [remap.inc]

p.s. C-x h  is your friend. you can not bind H-S-n, but you can bind H-N 
(for example)

$ xev  also shows the limits of what you can and can't bind.

iac, Caps-lock Enter is refreshingly easy to hit.   hope this helps!

Sure! Improvements to documentation are always welcome.


Ok, I'll put that on my todo list now that I have solved that shortcut issue... 
:)

Jean-Christophe




[O] Android sync client

2017-06-30 Thread Gour
Hello,

I've tried for some time to use Taskwarrior due to potentially working
Android client, but recently it stopped working and, moreover,
orgmode's recurring capabilities are simple superior in comparison
with Taskwarrior's, so I'm back to orgmode...

Now, I wonder which syncing client can you recommend for Android
phones?

I see there is mobile/sync-org as well as Orgzly...the client does not
have to have all the bells and whistles, but just being able to
reliable sync with my desktop (Fedora) without using Dropbox (for my
clients/contacts I use Baikal).


Sincerely,
Gour

-- 
One who works in devotion, who is a pure soul, and who controls
his mind and senses is dear to everyone, and everyone is dear to
him. Though always working, such a man is never entangled.





Re: [O] Capture template stopped working: nil

2017-06-30 Thread Florian Lindner
Hey Nicolas, hey Bastien,

might you give a hint why

 ("j" "Journal" item
  (file+datetree "journal.org")
  "%?\n%i" :kill-buffer t)

which still gives the same error: org-capture: Capture template ‘j’: nil

Thanks a lot,
Florian

Am 25.06.2017 um 21:23 schrieb Florian Lindner:
> Am 25.06.2017 um 21:09 schrieb Nicolas Goaziou:
>> Hello,
>>
>> Florian Lindner  writes:
>>
>>
>>> since recently, one of my capture templates stopped working. Message is:
>>>
>>> Template key:
>>> org-capture: Capture template ‘j’: nil
>>>
>>> and:
>>>
>>> - %?
>>>
>>> is added to journal.org. I have also tried some other template text like 
>>> "foo" (without any keys), but the message is the same.
>>>
>>> value of org-capture-templates is:
>>
>>>  ("j" "Journal" item
>>>   (file+datetree
>>>(concat org-directory "/journal.org"))
>>
>> It should be (lambda () (concat org-directory "/journal.org")).
>>
>> See ORG-NEWS.
> 
> Hey,
> 
> ok, found it there.
> 
> However, it seems that I don't need it anyways, since "When an absolute path 
> is not specified for a target, it is taken as relative to ‘org-directory’."
> 
> So, I changed it to:
> 
>  ("j" "Journal" item
>   (file+datetree "journal.org")
>   "%?\n%i" :kill-buffer t)
> 
> which still gives the same error.
> 
> Sorry... what is still wrong there?
> 
> Best,
> Florian
> 



Re: [O] Android sync client

2017-06-30 Thread Michael Ax

git-annex!

On 06/30/2017 12:15 PM, Gour wrote:

Hello,

I've tried for some time to use Taskwarrior due to potentially working
Android client, but recently it stopped working and, moreover,
orgmode's recurring capabilities are simple superior in comparison
with Taskwarrior's, so I'm back to orgmode...

Now, I wonder which syncing client can you recommend for Android
phones?

I see there is mobile/sync-org as well as Orgzly...the client does not
have to have all the bells and whistles, but just being able to
reliable sync with my desktop (Fedora) without using Dropbox (for my
clients/contacts I use Baikal).


Sincerely,
Gour





Re: [O] Capture template 'C': nil

2017-06-30 Thread Mario Martelli

> MM> Try to use ‘entry’ instead of ‘item’
> 
> Unfortunately I need an item. It used to work, unfortunately it no
> longer does.

I was probably to quick by changing ‘item’ to ‘entry’.

I tried your template once again. And it turned out that the file must be 
existent.

("c" "capture CWN through org protocol" item (file 
"~/org/notes.org")
"- %?%:description\n  %:link\n\n")

Does work for me. So giving a path to file might help.

> Greedy org-protocol handler.  Killing client.
> No server editing buffers exist
> Capture template ‘C’: nil

That was caused by using “C”, wasn’t it?

Kind regards
Mario
— 



[O] Info info info

2017-06-30 Thread Michael Ax

$ cat /usr/share/info/dir|grep "\*"|wc -l   = 309

I got past the cruel joke that was the garbled mess called the info dir 
on debian.
I integrated the non-free files and those for userland and kernel things 
from places I don't even remember.
I appreciate the steam-powered look and hackishness involved in 
maintaining info dir pages.


And I want to read my org files like the way i can read info files.
I want to see a screen-full of headings and material at a ][ time
and drop to org when i press enter on a line.

Following via The Agenda is great. But for many many things I would much 
prefer a colorful info-like view,
where zooming/drilling down happens as part of navigation and we ignore 
indices and bibs.


Is there a solution?




Re: [O] capture templates and ^{prompt}

2017-06-30 Thread Jean-Christophe Helary

> On Jun 30, 2017, at 18:47, Nicolas Goaziou  wrote:
> 
> Jean-Christophe Helary  writes:
> 
>> * TODO %^{prompt} [/]\n** TODO %\1 %^{prompt} %^t\n
>> 
>> gives
>> 
>> * TODO stuff [/] 
>>
>> ** TODO %^A stuff 
>> 
>> Why is that ?
> 
> In a string, backslash needs to be escaped: %\\1

That's certainly something to add to the documentation:

%\1 ... %\N Insert the text entered at the Nth %^{prompt}, where N is a 
number, starting from 1.

Are there cases where %\1 ... %\N would be used *outside* of a string in a 
template?

Jean-Christophe



Re: [O] Capture template stopped working: nil

2017-06-30 Thread Alan Schmitt
Hello,

"FL" == Florian Lindner  writes:

FL> Hey Nicolas, hey Bastien,
FL> might you give a hint why

FL>  ("j" "Journal" item
FL>   (file+datetree "journal.org")
FL>   "%?\n%i" :kill-buffer t)

FL> which still gives the same error: org-capture: Capture template ‘j’: nil

I'm having the same problem (see the thread "Capture template 'C':
nil"), also with an "item" template. I suspect there is a bug in that
specific case (since "entry" template works fine) where one must
specify the full path of the file.

The really surprising thing is that org actually finds the file (there
is text appended to it).

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70


signature.asc
Description: PGP signature


Re: [O] Capture template 'C': nil

2017-06-30 Thread Alan Schmitt
"MM" == Mario Martelli  writes:

MM> I tried your template once again. And it turned out that the file must be 
existent.

MM> ("c" "capture CWN through org protocol" item (file 
"~/org/notes.org")
MM> "- %?%:description\n  %:link\n\n")

MM> Does work for me. So giving a path to file might help.

Thank you for testing. There is another thread where someone has the
same problem. It seems that for item templates one has to give the full
path.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70


signature.asc
Description: PGP signature


Re: [O] org-protocol documentation

2017-06-30 Thread Mario Martelli
Hi,

> I’ll start with a fresh approach and try to bring up a short manual in 
> org.texi.

I created a pretty short documentation of org-protocol. It’s still mainly 
copied from the old documentation. But distilled :)

It might be an idea to link to the old documentation at worg. 

I know that it is far away of an ideal documentation but better than what we 
have at the moment ;)

Any comments?



org.texi.diff
Description: Binary data


Kind regards 
Mario
— 



Re: [O] Capture template stopped working: nil

2017-06-30 Thread Bastien
Hi Nicolas,

Nicolas Goaziou  writes:

> Bastien Guerry  writes:
>
>> May I ask you why `eval' in the code base is problematic?
>
> Because 1. it is hideous, 2. it doesn't cope well with lexical
> binding.

Can you provide with an example on how `eval' can lead to trouble
due to lexical binding for the org-capture configuration?

I'm trying to understand.

> Using `eval' should be made with extreme parcimony and for very
> consensual reasons.

Yes, but unless we fix a realistic bug, not bothering the user with
backward-incompatible changes should take over IMHO.

Thanks for further details!

-- 
 Bastien



Re: [O] Capture template stopped working: nil

2017-06-30 Thread Nicolas Goaziou
Hello,

Florian Lindner  writes:

> might you give a hint why
>
>  ("j" "Journal" item
>   (file+datetree "journal.org")
>   "%?\n%i" :kill-buffer t)
>
> which still gives the same error: org-capture: Capture template ‘j’:
> nil

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] BUG: ox-latex export pdf options issue

2017-06-30 Thread Robert Klein
Hi,

The Latex \hypersetup options like to be on their own line and hate
when the closing } intrudes on them.

Patch which puts the closing brace in its place below.

Best regards
Robert




diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index ec4b49585f8..474f9b6e9c4 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -596,7 +596,7 @@ the toc:nil option, not to those generated with
#+TOC keyword." 
 (defcustom org-latex-hyperref-template
   "\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},
- pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}}\n"
+ pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}\n}\n"
   "Template for hyperref package options.
 
 This format string may contain these elements:



[O] org-copy-visible not working?

2017-06-30 Thread Loris Bennett
Hi,

with Org mode version 9.0.8 (9.0.8-elpaplus @
/home/loris/.emacs.d/elpa/org-plus-contrib-20170606/) and GNU Emacs
25.1.1, org-copy-visible does not work as I expect.

Given

* Org copy visible
** Bits
and bobs

if I fold to 

* Org copy visible
** Bits...

mark the visible two lines, do org-copy-visible, yank into another
buffer, I get 

* Org copy visible
** Bits
and bobs

in the second buffer instead of just the two headlines.

Is that a bug or am I doing/expecting the wrong thing?

Cheers,

Loris

-- 
This signature is currently under construction.




Re: [O] Using org-mode via vSSH on iPad

2017-06-30 Thread Peter Davis

Ok, now I'm having a worse problem. Trying to get HTML output in a buffer on my 
Mac, I'm getting this error:

apply: Wrong type argument: listp, #("The Age of Wonder, Part II" 0 26 (:parent 
(#0)))

Any guesses what might cause this? It seems to be dying on this line:

#+title: The Age of Wonder, Part II

but I don't know why. I even tried changing the "," to " -", but no joy. The 
whole header looks like this:

#+STARTUP: showeverything logdone
#+options: num:nil toc:nil
#+author: Peter Davis
#+title: The Age of Wonder, Part II



Thanks,
-pd



Peter Davis  writes:

> I've been trying to find a way to use org-mode from my iPad (other than 
> MobileOrg, which seems really unwieldy), and the closest I've come is to us 
> the vSSH app to connect to my desktop Mac and run emacs there.
>
> Unfortunately, I'm running into some limitations and I'm not aware of the 
> workarounds, if any. I'm hoping someone here might know.
>
> The most obvious is that after editing my org document, I want to export to 
> an HTML buffer from which I could copy and paste to Blogger (in a browser). 
> My normal key sequence
>
> C-c C-e C-b h H
>
> doesn't work, as the C-b seems to be treated as an ordinary 'b'. I don't get 
> a window showing me the HTML export. Anyone familiar with this or how to get 
> around it?
>
> Then, does anyone know a way to copy the contents of the vSSH app display to 
> the iPad clipboard so I can paste into another app? I don't mind having to 
> edit out some amount of cruft that goes with it, as long as I can get the 
> basic HTML.
>
> Thanks very much!
>
> -pd
>
> P.S. - I've also tried using the Editorial app with md format, but I really 
> miss org's ability to format tables and lists on the fly. Editorial doesn't 
> seem to do that.
>
> --
> Peter Davis
> www.techcurmudgeon.com



[O] Is doc/org-version.tex generation broken?

2017-06-30 Thread Dale
Hi!

a8d007db15 starts generating doc/org-version.{tex,inc}, but on my OS X
system this ends up creating broken files with (I believe) vertical tab
characters in them.  On HEAD this morning:

$ make card
[...]
PDFLATEX=pdftex texi2pdf --batch --clean --expand orgcard.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded
format=pdftex)
 restricted \write18 enabled.
entering extended mode

(../../.././orgcard.tex
(/Users/dale/repositories/org-mode/doc/org-version.tex
/Users/dale/repositories/org-mode/doc/org-version.tex:3: Missing control
sequen
ce inserted.

\inaccessible



l.3 \def
 ersionyear{2017}
[...]
/opt/local/bin/texi2dvi: pdftex exited with bad status, quitting.
make[1]: *** [orgcard.pdf] Error 1
make: *** [card] Error 2

$ cat doc/org-version.tex
% automatically generated, do not edit
\def\orgversionnumber{9.0.9}
\def
ersionyear{2017}
\def\year{2017}

I have no idea how that \v is getting turned into a vertical tab.  Is make
processing these?

$ gmake --version
GNU Make 4.2.1
Built for x86_64-apple-darwin15.6.0
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ cat /tmp/test-makefile
single:
echo "single: 123\v456"

double:
echo "double: 123\\v456"

quad:
echo "quad: 123v456"
$ gmake -f /tmp/test-makefile single double quad
echo "single: 123\v456"
single: 123
   456
echo "double: 123\\v456"
double: 123
   456
echo "quad: 123v456"
quad: 123\v456

Is this something screwed up in my environment or are others seeing this as
well?

Thanks,
Dale


Re: [O] Is doc/org-version.tex generation broken?

2017-06-30 Thread Michael Ax
\v is the text-mode equivalent of 'vee' or \check{o}. file a 
question/bug at gmake's home?

 http://github.com/renozao/pkgmaker/issues
||
Is this something screwed up in my environment or are others seeing 
this as well?






Re: [O] Using org-mode via vSSH on iPad

2017-06-30 Thread Michael Ax
> apply: Wrong type argument: listp, #("The Age of Wonder, Part II" 0 
26 (:parent (#0)))

another set of parens perhaps?

>Then, does anyone know a way to copy the contents of the vSSH app 
display to the iPad clipboard

does (setq mouse-drag-copy-region t) work?


Re: [O] Is doc/org-version.tex generation broken?

2017-06-30 Thread Kyle Meyer
Dale  writes:

> a8d007db15 starts generating doc/org-version.{tex,inc},

Unimportant to the rest of this issue, but that commit only started
generating doc/org-version.tex.  The generation of doc/org-version.inc
wasn't modified.

> but on my OS X system this ends up creating broken files with (I
> believe) vertical tab characters in them.  On HEAD this morning:
>
> $ make card

[...]

> $ cat doc/org-version.tex
> % automatically generated, do not edit
> \def\orgversionnumber{9.0.9}
> \def
> ersionyear{2017}
> \def\year{2017}
>
> I have no idea how that \v is getting turned into a vertical tab.  Is make
> processing these?

Ehh, that's coming through fine on my end as

% automatically generated, do not edit
\def\orgversionnumber{9.0.9}
\def\versionyear{2017}
\def\year{2017}

> $ gmake --version
> GNU Make 4.2.1
> Built for x86_64-apple-darwin15.6.0

$ make --version
GNU Make 4.2.1
Built for x86_64-unknown-linux-gnu

> $ gmake -f /tmp/test-makefile single double quad
> echo "single: 123\v456"
> single: 123
>456

echo "single: 123\v456"
single: 123\v456

> echo "double: 123\\v456"
> double: 123
>456

echo "double: 123\\v456"
double: 123\v456

> echo "quad: 123v456"
> quad: 123\v456

echo "quad: 123v456"
quad: 123\\v456

> Is this something screwed up in my environment or are others seeing this as
> well?

I'm guessing that I should rewrite the command in a more portable way.
Not sure what that is offhand.

-- 
Kyle



[O] causing work by pasting links

2017-06-30 Thread Michael Ax

*   before i paste a link i type [[
* [[|]]   this leaves the point right there.

then i paste and now i want to press [ to write my notes. when i do,
* [[http://link[|]]] i get a completely unexpected reaction.

you know what i mean, yes?

* [[http://link][|]] is what i'd like to see.  any tips to fix or fixes 
would be much appreciated.







[O] making work by pasting code and examples

2017-06-30 Thread Michael Ax
when i paste blog content mixing text & code i usually want to wrap bits 
of the paste in an org-structure-template.


i do it by
- mark a region
- cut the region
- type i would like it to check the lossage and be smart about wrapping itself 
around the stuff i mean.





Re: [O] Android sync client

2017-06-30 Thread Eric S Fraga
On Friday, 30 Jun 2017 at 10:15, Gour wrote:
> Now, I wonder which syncing client can you recommend for Android
> phones?

What type of information do you specifically want to sync?
-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-551-g92e8c8


signature.asc
Description: PGP signature


Re: [O] Android sync client

2017-06-30 Thread Gour
On Fri, 30 Jun 2017 16:03:01 +0100
Eric S Fraga  wrote:

> What type of information do you specifically want to sync?

Mostly/only tasks (TODO/NEXT items) appearing in my Agenda view…I’ll try
to make org-caldav working for calendar entries…


Sincerely,
Gour

-- 
The senses are so strong and impetuous, O Arjuna,
that they forcibly carry away the mind even of a man
of discrimination who is endeavoring to control them.





[O] org-tags-column 'portability'

2017-06-30 Thread Michael Ax

org-tags-column usually does the right thing.

i have it set to -65 and that works great in portrait mode.
i'd like it be sticky (sometimes), that is, to chop of and dominate 
headlines and never get moved.
i'd like it to be width rather than position based so that it works with 
chinese and proportional fonts also.
and i'd like to specify its position from the rh instead of the left 
hand side so it'll just work on ssh/tablet or landscape/notebook.


the more generic problem is of course that i'd like to code in 
http://input.fontbureau.com/info/
and that my favorite editor does not support width based tabs or keeping 
same line comments vertically aligned.


its a bit overwhelming for me to do, does anyone have a tip/snippet/link
or a fix on how to teach the tags these tricks?  is this in fact a bug??

thanks for pondering! m




Re: [O] BUG: ox-latex export pdf options issue

2017-06-30 Thread Robert Klein
Please disregard this.  \hypersetup works as it is.

I had a +text+ title which put a \sout{} in the pdftitle.  That caused a
error message about too many }'s from the pdflatex.  This I mistook to
mean the closing brace of \hypersetup.

Sorry about the fuss.

Best regards,
Robert


On Thu, 29 Jun 2017 14:28:26 +0200
Robert Klein  wrote:

> Hi,
> 
> The Latex \hypersetup options like to be on their own line and hate
> when the closing } intrudes on them.
> 
> Patch which puts the closing brace in its place below.
> 
> Best regards
> Robert
> 
> 
> 
> 
> diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
> index ec4b49585f8..474f9b6e9c4 100644
> --- a/lisp/ox-latex.el
> +++ b/lisp/ox-latex.el
> @@ -596,7 +596,7 @@ the toc:nil option, not to those generated with
> #+TOC keyword." 
>  (defcustom org-latex-hyperref-template
>"\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n
> pdfkeywords={%k},
> - pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}}\n"
> + pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}\n}\n"
>"Template for hyperref package options.
>  
>  This format string may contain these elements:
> 




[O] advising org-open

2017-06-30 Thread Michael Ax

0:50am monday i get a new weekly org template linked to the prior week.
my org-link-frame-setup contains 'open-file' and that allows me to click 
through the past.


sometimes i want open-file-in-other-window, sometimes in another frame.
neither the prefix argument nor modifier keys seem to carry forward to 
other openers


i'm wondering how to properly extend org so that the file and other 
openers could be made choose-able
or if there is such functionality packaged and out there already. thanks 
for your pointers!  -m




Re: [O] Using org-mode via vSSH on iPad

2017-06-30 Thread Peter Davis

Thanks, Michael. Replies below ...

On Fri, Jun 30, 2017, at 10:16 AM, Michael Ax wrote:
> > apply: Wrong type argument: listp, #("The Age of Wonder, Part II" 0
> > 26 (:parent (#0)))>  another set of parens perhaps?
> 

I just copied what was in the *Messages* buffer. I tried the sequence

C-c C-e C-b h H

to get HTML, but I got that error.

Interestingly, this worked with the same file on a desktop Mac I have. I
thought perhaps the state of emacs had somehow gotten changed, but
exiting emacs and re-starting did not help.
>  >Then, does anyone know a way to copy the contents of the vSSH app
>  >display to the iPad clipboard>  does (setq mouse-drag-copy-region t) work?


I can copy in emacs. I guess this is more of a vSSH question ... how can
I copy to the iPad clipboard so I can paste into another app.
Thanks!
-pd


--
  Peter Davis
  www.techcurmudgeon.com



[O] [Chris Kauffman] Re: include org-table-move-single-cell.el in org mode

2017-06-30 Thread Uwe Brauer


Hi

I found swapping of cells very useful and came across some code written
by Chris Kauffman, which proved to be very helpful and considerably
shorted by workflow. 

https://cs.gmu.edu/~kauffman/software/org-table-move-single-cell.el


Chris agreed that his code could be included in the orgmode repo,  I
have attached his mail.

I recommend strongly to do that .

Regards

Uwe Brauer 
 Start of forwarded message 
Delivered-To: o...@mat.ucm.es
Received: by 10.25.160.142 with SMTP id j136csp1096169lfe;
Fri, 30 Jun 2017 09:23:09 -0700 (PDT)
X-Received: by 10.28.125.3 with SMTP id y3mr6319921wmc.9.1498839788932;
Fri, 30 Jun 2017 09:23:08 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1498839788; cv=none;
d=google.com; s=arc-20160816;
b=Z8qJFtXrWWPyf1IGVleEnJnn1tOm6H0bjP4RQAoHyBo4TQ2dOB6+Jy3UagvBQ7dbzl
 iYCrqmzTrOLL1btvCnCXUrie8y759csXoSnPeD2SEZJX7t2ADD2d5QY4Pwq4aJnguuBq
 ioqv4hJqYkortUVIJTXb1OIkzPrmGxCwlRc+p8V921zERgbEQYhhdit1lr4fL3249z1M
 THWAGhYU0Fa/D4q6eFgbCMhPIvFqPl6sNHx2mk7/GkDD4+z/aRiO4+H0CsWa6HZrrQ7W
 r64rzlDaAPHHoZClLT3gCLZ6BEXk5ZAoJRjTzqOoizf5V4oY6DFJ/8Vsr13PUvlEzo/R
 oDfQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; 
s=arc-20160816;
h=to:subject:message-id:date:from:references:in-reply-to:sender
 :mime-version:dkim-signature:arc-authentication-results;
bh=fMYW2rJJdww11gql3Di1z0JSsKn7dlYFjYgtjzoacyU=;
b=XixnZBqohcNtDtBei4AlZsavZ32cnVxHAIRfDeGIOz+GyIJJrXzu6sdR6IZoN8+Hcf
 PdGVX3FwtpaU/JC4yB0AfH/Ds8n5Hiyw6gwvmt+bVvVMVS4ezY7O9YfPkGPcx8RfNxah
 0oQXLpXCKXUxfCY7E13DyKitprLkwdpqxJHOWTOqn790A7cYGGcJZZu4ph7FkQvL/q5L
 fNOdezRXW23iHZk8M98UnWnirqX+8PaVljdWA7L1+7TDPVRH2sp+pwjEpAwdO/6VSkEp
 fGpSN24jGJ+SpzB0ulmuQhEvNuEggH4AOy0d8LmROsm2msPG27Utf7Rm7HSkMYMHLluW
 YvHA==
ARC-Authentication-Results: i=1; mx.google.com;
   dkim=pass header.i=@gmail.com header.b=mT6BuhVE;
   spf=pass (google.com: domain of kauffma...@gmail.com designates 
2a00:1450:400c:c09::230 as permitted sender) smtp.mailfrom=kauffma...@gmail.com
Return-Path: 
Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com. 
[2a00:1450:400c:c09::230])
by mx.google.com with ESMTPS id 71si5959957wrl.88.2017.06.30.09.23.08
for 
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Fri, 30 Jun 2017 09:23:08 -0700 (PDT)
Received-SPF: pass (google.com: domain of kauffma...@gmail.com designates 
2a00:1450:400c:c09::230 as permitted sender) client-ip=2a00:1450:400c:c09::230;
Authentication-Results: mx.google.com;
   dkim=pass header.i=@gmail.com header.b=mT6BuhVE;
   spf=pass (google.com: domain of kauffma...@gmail.com designates 
2a00:1450:400c:c09::230 as permitted sender) smtp.mailfrom=kauffma...@gmail.com
Received: by mail-wm0-x230.google.com with SMTP id b184so51165364wme.1
for ; Fri, 30 Jun 2017 09:23:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:sender:in-reply-to:references:from:date:message-id
 :subject:to;
bh=fMYW2rJJdww11gql3Di1z0JSsKn7dlYFjYgtjzoacyU=;
b=mT6BuhVEjqoe0X0AD/CE0pxSoyiW5DJlRN1z/qBp7Z3pwyCH8Yl75zqU8/dT9nLSJN
 tsS5EIIV5e0pQ4Zf+Uy07sR1nqsAMaAwewOKNkLO3GolqHxwicybsV/eniTD416ubqcP
 Hr9n3XoxPKjzvQZNpwEFUzGaszfEPREne5TCv2D2bWO1iVmebYR6+3smZ6OxI0kt1v/P
 q1bTNEX3pN6fltOOCFIFTtnZoEB9y4eeYGu5dpLifaHYHPjsWxX7i3frwEBT0xQTosQE
 so51K28IBwhI/zdxat/QcWTDcDWlVAqDeZv9j743ayWk1jqUqIQGtoLk/stAJuRdGJqL
 GZPA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
 :date:message-id:subject:to;
bh=fMYW2rJJdww11gql3Di1z0JSsKn7dlYFjYgtjzoacyU=;
b=WAXmi1lBTBA1pSbWLU0wUMPSIj61+O1LIlxuipCeCQQRy/6nTLT2cdcW0T7Sy5PvuJ
 roTAhvhcQRjH0xR2LPIN+zDXLBpNHUGzPKUnzqkayxNRgQl/Z0K+6ojwQKq1LG5m0zxl
 tejLVJQOS5LqzP3PoVTNl5EZNCuqxFjMVCSLT9EQDsoDrOISDgLoYeXaxrAHJLJ9q1i7
 5rAen1W6hsBD2fNYNZBDyL/OaHrloeea7EJjGC/N7lt6wM8zST+dnYC5Oudjfec7xE6y
 WG1IjdfpUErQZS+EZezVZ6wLmN6J3pOiLPzA36l73DwoRkdphg72LBmiKbueiGgUpsBo
 /I+w==
X-Gm-Message-State: AKS2vOy7EEnwSNUR3aVEvEfvOZ6h1cvusVNSfl4Tdl5nibp07qyf9TDo
eFMXeYprvB7iL3sVqTvxT9RsYWDVrG+8xKU=
X-Received: by 10.28.10.194 with SMTP id 185mr16658585wmk.119.1498839788220;
 Fri, 30 Jun 2017 09:23:08 -0700 (PDT)
Sender: kauffma...@gmail.com
Received: by 10.28.52.7 with HTTP; Fri, 30 Jun 2017 09:22:47 -0700 (PDT)
In-Reply-To: <8737ahzcux@mat.ucm.es>
References: <8737ahzcux@mat.ucm.es>
From: Chris Kauffman 
Date: Fri, 30 Jun 2017 12:22:47 -0400
X-Google-Sender-Auth: 1AWckdikAR-hsGQgHwxw9VHYfaU
Message-ID: 
Subject: Re: include org-table-move-single-cell.el in org mode
To: Uwe Brauer 

Hi Uwe,

Sure thing, include away.  It would be an honor t

Re: [O] Is doc/org-version.tex generation broken?

2017-06-30 Thread Kyle Meyer
Kyle Meyer  writes:

> Dale  writes:

[...]

>> Is this something screwed up in my environment or are others seeing this as
>> well?
>
> I'm guessing that I should rewrite the command in a more portable way.
> Not sure what that is offhand.

Can you verify that the below change works on your system?

Thanks.

-- >8 --
Subject: [PATCH] doc/Makefile: Use printf to generate org-version.tex

* doc/Makefile (org-version.tex): Use printf instead of echo to
increase portability.

By default GNU coreutil's echo disables the interpretation of
backslash escapes (-E option), but this isn't the case for some echo
variants.

Reported-by: Dale 

---
 doc/Makefile | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/Makefile b/doc/Makefile
index 87f8c2781..e17d4415b 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -34,11 +34,11 @@ org-version.inc:org.texi
@echo "@set DATE $(DATE)" >> org-version.inc
 
 org-version.tex:   orgcard.tex
-   @echo "org-version: $(ORGVERSION) ($(GITVERSION))"
-   @echo "% automatically generated, do not edit"  > org-version.tex
-   @echo "\def\orgversionnumber{$(ORGVERSION)}" >> org-version.tex
-   @echo "\def\versionyear{$(YEAR)}" >> org-version.tex
-   @echo "\def\year{$(YEAR)}" >> org-version.tex
+   @printf "org-version: $(ORGVERSION) ($(GITVERSION))\n"
+   @printf "%% automatically generated, do not edit\n" > org-version.tex
+   @printf "\def\orgversionnumber{$(ORGVERSION)}\n" >> org-version.tex
+   @printf "\defversionyear{$(YEAR)}\n" >> org-version.tex
+   @printf "\def\year{$(YEAR)}\n" >> org-version.tex
 
 install:   org
if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); 
else true; fi ;
-- 
2.13.2





Re: [O] org-copy-visible not working?

2017-06-30 Thread Kyle Meyer
Loris Bennett  writes:

> with Org mode version 9.0.8 (9.0.8-elpaplus @
> /home/loris/.emacs.d/elpa/org-plus-contrib-20170606/) and GNU Emacs
> 25.1.1, org-copy-visible does not work as I expect.

[...]

> * Org copy visible
> ** Bits...
>
> mark the visible two lines, do org-copy-visible, yank into another
> buffer, I get 
>
> * Org copy visible
> ** Bits
> and bobs
>
> in the second buffer instead of just the two headlines.

FWIW I haven't had any luck reproducing this.  I've tried using Org's
release_9.0.8 tag, the maint branch, and the master branch (all with
Emacs 25.2).  Just the visible parts are copied in all cases.

Perhaps stepping through org-copy-visible would help you see what's
happening.

-- 
Kyle



[O] Org now failing on HTML export

2017-06-30 Thread Peter Davis


I've been using org 9.0.7/GNU Emacs 25.1.1 on Mac OS X for a while, and 
successfully exporting HTML to copy and paste into my blog.
However, in the last day or so, this started failing. I'm unaware of having 
changed anything in my configuration.

The error is ...

Here's the entire file I'm using ...

+
Does this work at all?
+

Here's the debug traceback ...

+
Debugger entered--Lisp error: (wrong-type-argument listp #("org test" 0 8 
(:parent (#1
  org-element-set-contents(#("org test" 0 8 (:parent (#0
  apply(org-element-set-contents #("org test" 0 8 (:parent (#0))) nil)
  #[257 
"\211\305\306\307#\310\311\211:\204\312\202\"\n@9\203!\nAA\202\"\n)\"\210\313\314
\211:\2043\312\202@\n@9\203?\nAA\202@\n)#\210\315\211 
\n;\203V\316\317\n#\202\\\320\nA@\"*\211;\203n\321\n\312\f$\202z\nA\322\nA@\f#\240\210\n+\210
 AA@\240\210@\240*\207" [new old element property value 
replace-regexp-in-string "\n" " " mapc #[(blob) "\305 
\211;\203\306\f\307\n$\202 \fA\310\fA@\n#\240\210\f+\207" [blob old value 
property element :parent org-add-props nil plist-put] 6] nil apply 
org-element-set-contents :parent get-text-property 0 plist-get org-add-props 
plist-put] 7 "\n\n(fn S)"](#("org test" 0 8 (:parent (#0
  #[257 
"\211\211:\204\211;\205\311\262\202\211@9\205\211@\262?\206\251\301\203-\312\301\313\">\206\251\211\2049\314\310\242\"\202\251\211\315=\203]\314\310\242\211:\204N\316\262\202Y\211@9\203Y\211AA\262\"\202\251\211\304>\203~\300!\211\203}\302\203v\317\320\"\210\202}\307\307\242B\240\210\210\306\321=\203\271;\204\271\211\236A\211\203\270\211@\310\242\211;\203\247\322\323#\266\202\202\257\312A@\"\266\202!\210A\266\202\202\216\210\303\203Q\306\321=\203Q\324!\325=\203Q\211\203P\211@\211@A\211;\203\347\322\323#\266\202\202\357\312A@\"\266\202\211\203G\235\2030\235\203!\326!\211\203\211@\310\242A!\210\310\242@!\210A\266\202\202\210\202G\310\242A!\210\310\242@!\210\202G\235\203B\314\310\242\326!\"\210\202G\310\242!\210\266A\266\202\202\315\210\211\305>\206\251\211:\204c\316\262\202n\211@9\203n\211AA\262?\206\251\306\327=\203\200\211>?\206\251\306\330=\203\216\324!\331=\206\251\314\310\242\211:\204\235\316\262\202\250\211@9\203\250\211AA\262\"\207"
 [#[257 
"\211\305\306\307#\310\311\211:\204\312\202\"\n@9\203!\nAA\202\"\n)\"\210\313\314
   \211:\2043\312\202@\n@9\203?\nAA\202@\n)#\210\315\211 
\n;\203V\316\317\n#\202\\\320\nA@\"*\211;\203n\321\n\312\f$\202z\nA\322\nA@\f#\240\210\n+\210
 AA@\240\210@\240*\207" [new old element property value 
replace-regexp-in-string "\n" " " mapc #[(blob) "\305 
\211;\203\306\f\307\n$\202 \fA\310\fA@\n#\240\210\f+\207" [blob old value 
property element :parent org-add-props nil plist-put] 6] nil apply 
org-element-set-contents :parent get-text-property 0 plist-get org-add-props 
plist-put] 7 "\n\n(fn S)"] nil nil nil (plain-text) nil objects (nil) (#0) 
plain-text plist-get :ignore-list mapc org-data nil throw :--map-first-match 
objects get-text-property 0 org-element-class element reverse greater-elements 
elements object org-element-secondary-value-alist 
org-element--parsed-properties-alist org-element-dual-keywords 
org-element-multiple-keywords org-element-greater-elements] 11 "\n\n(fn 
--DATA)"](#("org test" 0 8 (:parent (#0
  mapc(#[257 
"\211\211:\204\211;\205\311\262\202\211@9\205\211@\262?\206\251\301\203-\312\301\313\">\206\251\211\2049\314\310\242\"\202\251\211\315=\203]\314\310\242\211:\204N\316\262\202Y\211@9\203Y\211AA\262\"\202\251\211\304>\203~\300!\211\203}\302\203v\317\320\"\210\202}\307\307\242B\240\210\210\306\321=\203\271;\204\271\211\236A\211\203\270\211@\310\242\211;\203\247\322\323#\266\202\202\257\312A@\"\266\202!\210A\266\202\202\216\210\303\203Q\306\321=\203Q\324!\325=\203Q\211\203P\211@\211@A\211;\203\347\322\323#\266\202\202\357\312A@\"\266\202\211\203G\235\2030\235\203!\326!\211\203\211@\310\242A!\210\310\242@!\210A\266\202\202\210\202G\310\242A!\210\310\242@!\210\202G\235\203B\314\310\242\326!\"\210\202G\310\242!\210\266A\266\202\202\315\210\211\305>\206\251\211:\204c\316\262\202n\211@9\203n\211AA\262?\206\251\306\327=\203\200\211>?\206\251\306\330=\203\216\324!\331=\206\251\314\310\242\211:\204\235\316\262\202\250\211@9\203\250\211AA\262\"\207"
 [#[257 
"\211\305\306\307#\310\311\211:\204\312\202\"\n@9\203!\nAA\202\"\n)\"\210\313\314
  \211:\2043\312\202@\n@9\203?\nAA\202@\n)#\210\315\211 
\n;\203V\316\317\n#\202\\\320\nA@\"*\211;\203n\321\n\312\f$\202z\nA\322\nA@\f#\240\210\n+\210
 AA@\240\210@\240*\207" [new old element property value 
replace-regexp-in-string "\n" " " mapc #[(blob) "\305 
\211;\203\306\f\307\n$\202 \fA\310\fA@\n#\240\210\f+\207" [blob old value 
property element :parent org-add-props nil plist-put] 6] nil apply 
org-element-set-contents :parent get-text-property 0 plist-get org-add-props 
plist-put] 7 "\n\n(fn S)"] nil nil nil (plain-text

Re: [O] making work by pasting code and examples

2017-06-30 Thread Kaushal Modi
On Fri, Jun 30, 2017 at 10:59 AM Michael Ax  wrote:

> when i paste blog content mixing text & code i usually want to wrap bits
> of the paste in an org-structure-template.
>
> i do it by
> - mark a region
> - cut the region
> - type  - paste the region
>
> i would like to not cut and paste.
>
> any tips on advising or an advise for the org-structure-template expander?
> i would like it to check the lossage and be smart about wrapping itself
> around the stuff i mean.
>

I have been using this[1] for the last year and a half and it works pretty
awesome. You would need to install the hydra package. The examples in the
comments pretty much describes your use case.

How to use the below:

1. Install the hydra package.
2. Evaluate the below code.
3. In an org buffer, select some text.
4. Press " (point) (mark))
(exchange-point-and-mark))
  ;; Insert a newline if `beg' is *not* at beginning of the line.
  ;; Example: You have ^abc$ where ^ is bol and $ is eol.
  ;;  "bc" is selected and https://github.com/kaushalmodi/.emacs.d/blob/4495b6126ddeb20959d438dbe2ad9de50e5ed336/setup-files/setup-org.el#L684-L1229
-- 

Kaushal Modi


Re: [O] making work by pasting code and examples

2017-06-30 Thread Kaushal Modi
On Fri, Jun 30, 2017 at 2:28 PM Kaushal Modi  wrote:

Here's a working link:
https://github.com/kaushalmodi/.emacs.d/blob/5acb3a4db737df85d1cd7d70c56232ec8a40e8b4/setup-files/setup-org.el#L1121-L1229

(pasted link to an unpublished commit by mistake earlier)
-- 

Kaushal Modi


Re: [O] Org now failing on HTML export

2017-06-30 Thread Kaushal Modi
On Fri, Jun 30, 2017 at 2:07 PM Peter Davis  wrote:

>
> I've been using org 9.0.7/GNU Emacs 25.1.1 on Mac OS X for a while, and
> successfully exporting HTML to copy and paste into my blog.
> However, in the last day or so, this started failing. I'm unaware of
> having changed anything in my configuration.
>
> The error is ...
>
> Here's the entire file I'm using ...
>
> +
> Does this work at all?
> +
>
> Here's the debug traceback ...
>
> +
> Debugger entered--Lisp error: (wrong-type-argument listp #("org test" 0 8
> (:parent (#1
>

You have the classic case of mixed Org installations, would be my guess.

I haven't seen this issue myself but it's a well-known issue with mixed Org
installations.

Best way that I have seen to work is to delete (M)Elpa installed Org
completely and install it again, but in an emacs -Q session, or do C-u M-x
org-reload, and then delete->reinstall Org.

Reference[1]

[1]:https://lists.gnu.org/archive/html/emacs-orgmode/2015-08/msg00318.html

More references: [2]. [3], [4], [5]

[2]: https://emacs.stackexchange.com/a/16616/115
[3]:
https://www.reddit.com/r/emacs/comments/6jeu74/getting_error_exporting_org_doc_because_it_has/
[4]: https://github.com/syl20bnr/spacemacs/issues/3246
[5]: https://github.com/yjwen/org-reveal/issues/148
-- 

Kaushal Modi


Re: [O] Org now failing on HTML export

2017-06-30 Thread Peter Davis
Kaushal Modi  writes:

> On Fri, Jun 30, 2017 at 2:07 PM Peter Davis  wrote:
>
>  I've been using org 9.0.7/GNU Emacs 25.1.1 on Mac OS X for a while, and 
> successfully exporting HTML to copy and paste into my blog.
>  However, in the last day or so, this started failing. I'm unaware of having 
> changed anything in my configuration.
>
>  The error is ...
>
>  Here's the entire file I'm using ...
>
>  +
>  Does this work at all?
>  +
>
>  Here's the debug traceback ...
>
>  +
>  Debugger entered--Lisp error: (wrong-type-argument listp #("org test" 0 8 
> (:parent (#1
>
> You have the classic case of mixed Org installations, would be my guess.
>
> I haven't seen this issue myself but it's a well-known issue with mixed Org 
> installations.
>
> Best way that I have seen to work is to delete (M)Elpa installed Org 
> completely and install it again, but in an emacs -Q session, or do C-u M-x 
> org-reload, and then delete->reinstall Org.

Aha! I think you've hit the nail on the head.

I'm not sure how this happened, but org-reload does seem to correct the problem.

Thank you, Kaushal!

-pd



Re: [O] causing work by pasting links

2017-06-30 Thread Kaushal Modi
On Fri, Jun 30, 2017 at 10:46 AM Michael Ax  wrote:

> *   before i paste a link i type [[
> * [[|]]   this leaves the point right there.
>
That's not the default behavior. You probably have some
auto-bracket-closing minor mode enabled.

> then i paste and now i want to press [ to write my notes. when i do,
> * [[http://link[|]]] i get a completely unexpected reaction.
>
That also does not happen by default.

> you know what i mean, yes?
>
Yup.

It looks like this in emacs -Q: http://i.imgur.com/VEBhMEP.gifv

-- 

Kaushal Modi


Re: [O] causing work by pasting links

2017-06-30 Thread Michael Ax
you're right of course.  now i'm debating if i'm sorry to have taken 
your time or just awed by the screengrab!
maybe a bit of both.  thanks for the reminder to get that thing under 
control! m



On 06/30/2017 09:01 PM, Kaushal Modi wrote:
On Fri, Jun 30, 2017 at 10:46 AM Michael Ax > wrote:


*   before i paste a link i type [[
* [[|]]   this leaves the point right there.

That's not the default behavior. You probably have some 
auto-bracket-closing minor mode enabled.


Re: [O] causing work by pasting links

2017-06-30 Thread Kaushal Modi
On Fri, Jun 30, 2017 at 3:44 PM Michael Ax  wrote:

> you're right of course.  now i'm debating if i'm sorry to have taken your
> time or just awed by the screengrab!
> maybe a bit of both.  thanks for the reminder to get that thing under
> control!  m
>
Well, no need to be sorry :) I'm glad I could help.
-- 

Kaushal Modi


Re: [O] Org now failing on HTML export

2017-06-30 Thread Michael Ax

>> You have the classic case of mixed Org installations, would be my guess.
> Aha! I think you've hit the nail on the head.

Aha.. ran into this last night also, discovering then that i had both 
(require 'org) AND (require 'org-plus-contrib) in use, breaking capture.
(rewriting my init to use-package while zapping elpa a few times really 
helped get some kinks out which sped up loading too)


maybe one day either package could recognize when the other is loaded 
and complain?



I'm not sure how this happened, but org-reload does seem to correct the problem.

Thank you, Kaushal!

-pd






Re: [O] making work by pasting code and examples

2017-06-30 Thread Michael Ax

definitely awed now. will investigate - ty m

On 06/30/2017 08:33 PM, Kaushal Modi wrote:
On Fri, Jun 30, 2017 at 2:28 PM Kaushal Modi > wrote:


Here's a working link: 
https://github.com/kaushalmodi/.emacs.d/blob/5acb3a4db737df85d1cd7d70c56232ec8a40e8b4/setup-files/setup-org.el#L1121-L1229




Re: [O] keybindings again...

2017-06-30 Thread Emanuel Berg
Jean-Christophe Helary wrote:

> Thank you for the pointer. Although I don't
> think I ever used a teletypewriter in my life
> :) Maybe sometimes in the 21st century we'll
> have to think about a change in
> terminology...

In computers, but also in just any brand of
engineering (and other areas as well), there
are tons of cases when terminology is either
outdated or just plain wrong. When there is
a correct term, as in "chainwheel" or
"sprocket" as opposed to "cog" (which is
incorrect, as it isn't a cod), it is good to
know about the correct terms and use them
whenever, but it is equally necessary to know
about the incorrect term. You will find
respectable books when they refer to a sprocket
as a "cog" without blinking! And know what,
that book is healthy for you to
read nonetheless!

So in most cases it is better to use the
correct term in parallel and if the technically
incorrect one dies, good, if it survives, so
be it.

Another example: There were once a newsreader
called GNUS. When a new newsreader came, and
they thought of calling it "ding" as in "ding
is not GNUS". Clever, but it didn't take.
So now it is Gnus who isn't GNUS. But it is -
only better :)

As for the ttys they are also called "the
console" or "the Linux virtual terminals" (the
Linux VTs). All those are designations are fine
and at least "tty" and "console" are also part
of technology by now: e.g., I just mentioned
the file /etc/console-setup/remap.inc in
another post; as for "tty", do

$ ls /dev/ | grep tty

> I use the compact manual [...]

Bigger always better :)

-- 
underground experts united
http://user.it.uu.se/~embe8573




[O] org babel, ess, R

2017-06-30 Thread Vikas Rawal
When I press C-c' in an R code block to open an edit buffer with ess, on my
computer, it splits the screen into two side-by-side windows, with the new
window on the right showing the edit buffer, and the window on the left
showing the original file.

I would like to change this behaviour in two ways.

1. I would like the window that continues to show the original file to
instead show the R session in which lines from the edit buffer can be
evaluated. I can manually change the buffer in this window to show me the R
session but I was wondering if this can be the default behaviour.

2. Split the screen horizontally rather than vertically, so that the new
window (with edit buffer) is on the top and the second window is below. I
could live with the edit buffer being at the bottom also but would
certainly prefer seeing it above so that I have the R session in the window
below to which I send the evaluated lines one by one.

Does anyone know if it may already be possible to achieve this? Or am I
making a feature request?

Vikas


Re: [O] org babel, ess, R

2017-06-30 Thread Vikas Rawal

> 
> When I press C-c' in an R code block to open an edit buffer with ess, on my 
> computer, it splits the screen into two side-by-side windows, with the new 
> window on the right showing the edit buffer, and the window on the left 
> showing the original file.
> 
> I would like to change this behaviour in two ways.
> 
> 1. I would like the window that continues to show the original file to 
> instead show the R session in which lines from the edit buffer can be 
> evaluated. I can manually change the buffer in this window to show me the R 
> session but I was wondering if this can be the default behaviour.
> 
> 2. Split the screen horizontally rather than vertically, so that the new 
> window (with edit buffer) is on the top and the second window is below. I 
> could live with the edit buffer being at the bottom also but would certainly 
> prefer seeing it above so that I have the R session in the window below to 
> which I send the evaluated lines one by one.
> 

I can change the direction of split by adjusting split-width-threshold

So, item 2 is more or less resolved (the edit buffer is at the bottom, but that 
is okay).

Vikas


Re: [O] Is doc/org-version.tex generation broken?

2017-06-30 Thread Dale
On Fri, Jun 30, 2017 at 12:29 PM, Kyle Meyer  wrote:

> Kyle Meyer  writes:
>
[...]

> Can you verify that the below change works on your system?
>
> Thanks.
>
> -- >8 --
> Subject: [PATCH] doc/Makefile: Use printf to generate org-version.tex
>
> * doc/Makefile (org-version.tex): Use printf instead of echo to
> increase portability.
>
[...]

Confirmed, I can now "make card" successfully.  Thanks!

Dale