Re: Second Ctl in keychord not detected

2022-01-19 Thread Anssi Saari
"Loris Bennett"  writes:

> installed.  I am using tmux and want to run
>
>   org-insert-structure-template
>
> which is bound to
>
>   C-c C-, 
>
> When I type that, however, the function
>
>   org-priority
>
> is executed instead, which is bound to 
>
>   C-c ,

> Does anyone know what is happening to the second Ctl and how the problem
> can be fixed?

Yes. I actually asked about this recently. The problem is that in a
terminal, C-, doesn't exist. Hitting C-, gets you just a comma. In other
words, there is no control character in existence that would be sent in
a terminal when the user hits C-,.

I asked for suggestions for remapping org-insert-structure-template to
some other keys and got a suggestion on how to find what key
combinations are free. Also a suggestion to use older way to get the
template (require 'org-tempo and use < s TAB).

Problem with that old way is that it doesn't wrap region in the
+BEGIN_SRC/+END_SRC tags, it just dumbly inserts them. I typically start
writing code in an ORG document and *then* realize it should be inside
those tags so C-c C-, would be perfect. Just not in a terminal.

It might be worth reporting this key binding as a bug since it doesn't
work in a terminal.

Other than mapping org-insert-structure-template to some other key
combination or using 

C-c C-, in a terminal?

2021-12-28 Thread Anssi Saari


Hi all, while it's not an ORG mode question exactly, I have a problem
with org-insert-structure-template and it's default shortcut, C-c C-, in
terminals.

As C-, isn't usually a control character in a terminal, terminals send
just the comma if I hit C-,. Some terminals (at least wsltty) do send
some kind of control sequence but I don't know if mapping other
terminals to do the same (Konsole and urxvt at least) and changing the
keys for Emacs makes sense. I'd have to do it for every terminal I ever
use.

Alternatively, any suggestions for a more terminal friendly key
combination for org-insert-structure-template in Emacs?




Re: mobile org

2019-11-18 Thread Anssi Saari
Charles Philip Chan  writes:

> I personally use Orgzly. I use a directory on my device as the
> repository and sync it with Foldersync.

Just curious but what do you sync to with Foldersync?

> However, I have been following Orgzly's development, Webdav and git
> sync have just been implemented.

I hadn't noticed git sync?




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Anssi Saari
Eric S Fraga <e.fr...@ucl.ac.uk> writes:

> On Friday, 13 Jan 2017 at 08:50, Anssi Saari wrote:
>> When I tried MobileOrg I think I used Dropbox. But since initiating
>> manual sync from Emacs seemed mandatory I just didn't get much use out
>> of MobileOrg.
>
> But automatic sync in Emacs should be quite straightforward and is
> independent of the mobile end.  You can use a timer, for instance:

I have a few computers and they don't run all the time (let alone run
Emacs all the time) and I didn't want to setup a timer on all of
them. The need to sync for me is usually typing something in on a PC and
then having it available in my pocket. So the corner case for the timer
is that it has to trigger between me saving a file and shutting down or
hibernating or whatever on the PC which can be a pretty short time.

Between Emacsen files saved in Dropbox works fine (although I'd rather
not use Dropbox for anything) but on mobile Dropbox doesn't sync as far
as I know.




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Anssi Saari
Sean Escriva  writes:

> Greetings fellow Org users,
>
> I'm the current maintainer for MobileOrg iOS[1] and am interested to
> get feedback from any org-mobile users. What do you use to sync org
> files across different machines, how could the current org-mobile
> workflow be improved (if at all)?

When I tried MobileOrg I think I used Dropbox. But since initiating
manual sync from Emacs seemed mandatory I just didn't get much use out
of MobileOrg.

So whatever you want to provide, make sure sync is automatic. And
preferably supporting private sync options too.




Re: [O] org-babel C math.h issue

2016-03-10 Thread Anssi Saari
Nick Dokos  writes:

> You can test that that's the case: put your program into a file, say foo.c, 
> and
> execute
>
>   gcc -o foo.out -lm foo.c
>
> Does that give you undefined references?

Does for me. gcc --version says
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4

So is it gcc that has changed then?





Re: [O] org-babel C math.h issue

2016-03-10 Thread Anssi Saari
Oz Ben-Ami  writes:

> A minimal working example, attached, includes the following snippet:
>
> #+BEGIN_SRC C :includes '( ) :flags -lm
> int i=9;
> printf("%d\n",(int)sqrt(i));
> #+END_SRC

I get the same problem, Ubuntu 14.04.3 LTS, GNU Emacs 24.3.1, Org-mode
version 8.2.10. So maybe it got fixed at some point since these versions
are about two years old?