Re: [O] Easy templates broken with 9.2

2019-01-27 Thread Thomas S. Dye

Aloha Chuck,

That is helpful.  Thanks.

All the best,
Tom


Re: [O] Bind pcomplete to C-M-i

2019-01-27 Thread Johannes Altmanninger
Hi Nicolas,

On Sun, Jan 27, 2019 at 10:01 PM Nicolas Goaziou  wrote:
>
> Hello,
>
> Johannes Altmanninger  writes:
>
> > However, I want to use org-plus-contrib from the Org ELPA repository.
> > which uses a slightly different definition:
> >
> > (org-defkey org-mode-map (kbd "M-") #'pcomplete)
> > (org-defkey org-mode-map (kbd "ESC ") #'pcomplete)
>
> Would (kbd "M-TAB") and (kbd "ESC TAB") work?

Yes, either of them works!
They appear to behave the same as (kbd "\M-\t").

Regards,
Johannes

>
> Regards,
>
> --
> Nicolas Goaziou



Re: [O] [PATCH] Add feature to org-drill to auto pronounce word

2019-01-27 Thread Nicolas Goaziou
Hello,

stardiviner  writes:

> Nicolas Goaziou  writes:
>
>> Hello,
>>
>> stardiviner  writes:
>>
>>> A gentle ping..
>>
>> I'm not sure "org-drill.el" is still actively maintained. I'm Cc'ing
>> Paul Sexton. In the long run, I think this package could be packaged
>> through ELPA instead.
>
> It is indeed not actively maintained. But still has some user are using
> it. I found some recently used in Org Mode ML mentioned it.
>
> I will ping the author Paul Sexton, I would like to particited in
> maintain it. If he agree to publish it to MELPA, I could help.

Did you forget to add the new patch? Or is it intentional?


Regards,

-- 
Nicolas Goaziou



Re: [O] please read: bug when marking tasks done

2019-01-27 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> commented repeater cookies does not have any of the above drawbacks.
> it might require a 3rd party tool to update its re if that tool uses
> repeaters.  this is not unprecedented.  the inactive repeater feature
> might already require a 3rd party tool to update its re.
>
> so upon reflection i think i'd go for commentable repeater cookies.
> it has a bonus too: whenever you turn off a repeater, it can be
> annoying that it zeroes out the interval.  commenting would fix that.
>
> perhaps there is a better, unmentioned solution?

I think commented repeaters add unnecessary overhead to the already
loaded timestamp syntax. This is, IMO, not a common enough need to
warrant even a minor syntax change.

However, we still need to move forward. So, I suggest to revert the
change about inactive timestamps. Inactive timestamps cannot be
repeated. This is less disruptive than the current situation. 

However, I also suggest to add a new hook, run after repeating
timestamps. With this hook, and a proper, user-specific, markup, it
should be possible to pick inactive timestamps in the section and
"repeat" them manually, i.e., on a case-by-case basis.

WDYT?

Regards,

-- 
Nicolas Goaziou



Re: [O] Bind pcomplete to C-M-i

2019-01-27 Thread Nicolas Goaziou
Hello,

Johannes Altmanninger  writes:

> However, I want to use org-plus-contrib from the Org ELPA repository.
> which uses a slightly different definition:
>
> (org-defkey org-mode-map (kbd "M-") #'pcomplete)
> (org-defkey org-mode-map (kbd "ESC ") #'pcomplete)

Would (kbd "M-TAB") and (kbd "ESC TAB") work?

Regards,

-- 
Nicolas Goaziou



Re: [O] Mark vacation days

2019-01-27 Thread JRSS
What if you set the category in the function? So the function has something 
like cond (( or (org-category vacation) (org-category f_event)
(background: red))

I obviously don't know how to write it, but the idea is that the categories are 
already set in the function. I won't have many, three tops, and I won't change 
them often -- no need to be fully dynamic.

Sent from ProtonMail mobile

 Original Message 
On Jan 27, 2019, 15:35, Ken Mankoff wrote:

> Hi,
>
> On 2019-01-27 at 12:20 -0800, JRSS  wrote...
>> This is a bit over my head still. I'm trying to wrap my head around it.
>>
>> I see what it does (colors day-of-the-week 1 and day-of-the-week-3,
>> which are Monday and Wednesday, red) but not sure how to tie it to a
>> category (so say, category "vacation" would be red).
>>
>> Once I have the function do that, I can go in and change it so that
>> different categories will be different colors.
>
> It's a bit over my head for this use case too. Sorry. When I saw it I thought 
> the use case was a list of holidays, which is easier to implement. You could 
> maintain this list in an easy-to-access format as a variable near where you 
> implement this function. A dynamic list based on tagged Org items is 
> certainly more complicated.
>
> -k.

Re: [O] Mark vacation days

2019-01-27 Thread Ken Mankoff
Hi,

On 2019-01-27 at 12:20 -0800, JRSS  wrote...
> This is a bit over my head still. I'm trying to wrap my head around it.
>
> I see what it does (colors day-of-the-week 1 and day-of-the-week-3,
> which are Monday and Wednesday, red) but not sure how to tie it to a
> category (so say, category "vacation" would be red).
>
> Once I have the function do that, I can go in and change it so that
> different categories will be different colors.

It's a bit over my head for this use case too. Sorry. When I saw it I thought 
the use case was a list of holidays, which is easier to implement. You could 
maintain this list in an easy-to-access format as a variable near where you 
implement this function. A dynamic list based on tagged Org items is certainly 
more complicated.

  -k.



Re: [O] Mark vacation days

2019-01-27 Thread JRSS
Thanks Ken,

This is a bit over my head still. I'm trying to wrap my head around it.

I see what it does (colors day-of-the-week 1 and day-of-the-week-3, which are 
Monday and Wednesday, red) but not sure how to tie it to a category (so say, 
category "vacation" would be red).

Once I have the function do that, I can go in and change it so that different 
categories will be different colors.

BTW - can (background: ) take hex-color values?

Sent with ProtonMail Secure Email.

‐‐‐ Original Message ‐‐‐
On Sunday, January 27, 2019 2:27 PM, Ken Mankoff  wrote:

> Hi,
>
> On 2019-01-27 at 07:20 -0800, JRSS ja...@protonmail.com wrote...
>
> > Does anyone know where I start getting something like this working?
> > Programming is not my strong suit, but I can slowly wrap my head
> > around some bits of code.
>
> It looks like this function might be a good place to start:
>
> https://emacs.stackexchange.com/questions/28905/color-specific-days-in-different-background-in-org-agenda
>
> -k.





Re: [O] Mark vacation days

2019-01-27 Thread Ken Mankoff
Hi,

On 2019-01-27 at 07:20 -0800, JRSS  wrote...
> Does anyone know where I start getting something like this working?
> Programming is not my strong suit, but I can slowly wrap my head
> around some bits of code.

It looks like this function might be a good place to start:

https://emacs.stackexchange.com/questions/28905/color-specific-days-in-different-background-in-org-agenda

  -k.



Re: [O] Bind pcomplete to C-M-i

2019-01-27 Thread Gustavo Barros

Hi all,
Hi Johannes,

for the record, there has been a question regarding this in Emacs.SX as 
of recent:

https://emacs.stackexchange.com/q/47239/18951

Best,
Gustavo.


On 27/01/2019 15:51, Johannes Altmanninger wrote:

Hi,

My installation of Emacs bundles Org mode 9.1.9
and it defines keyboard mapping for completion like this:

(org-defkey org-mode-map "\M-\t" #'pcomplete)
(org-defkey org-mode-map [?\e (tab)] #'pcomplete)

Here I can also use C-M-i to call pcomplete.
(Both in windowed and terminal mode).


However, I want to use org-plus-contrib from the Org ELPA repository.
which uses a slightly different definition:

(org-defkey org-mode-map (kbd "M-") #'pcomplete)
(org-defkey org-mode-map (kbd "ESC ") #'pcomplete)

This does not bind C-M-i which I'd like to use.
Is there any reason for this discrepancy?

Thank you
Johannes





[O] Mark vacation days

2019-01-27 Thread JRSS
I tried to post to stackoverflow but I'm not sure it took, so I'm trying here 
as well:

I'm looking for a way to mark vacation days in my agenda view in different 
color. This would probably be triggered best by category (so when a header is 
marked as a vacation).

I found [this post](https://julien.danjou.info/org-mode-and-holidays/) which is 
getting quite old, and he says it has been implemented into Emacs but I can't 
see it anywhere. It's based on Orgs ability to mark weekends in different color.

Ideally, I'd like to have different colors for day headers in the agenda 
correspond to different categories. Vacation is just the one prime example for 
that.

Does anyone know where I start getting something like this working? Programming 
is not my strong suit, but I can slowly wrap my head around some bits of code.

Thanks!

[O] Bind pcomplete to C-M-i

2019-01-27 Thread Johannes Altmanninger
Hi,

My installation of Emacs bundles Org mode 9.1.9
and it defines keyboard mapping for completion like this:

(org-defkey org-mode-map "\M-\t" #'pcomplete)
(org-defkey org-mode-map [?\e (tab)] #'pcomplete)

Here I can also use C-M-i to call pcomplete.
(Both in windowed and terminal mode).


However, I want to use org-plus-contrib from the Org ELPA repository.
which uses a slightly different definition:

(org-defkey org-mode-map (kbd "M-") #'pcomplete)
(org-defkey org-mode-map (kbd "ESC ") #'pcomplete)

This does not bind C-M-i which I'd like to use.
Is there any reason for this discrepancy?

Thank you
Johannes



Re: [O] Easy templates broken with 9.2

2019-01-27 Thread Berry, Charles



> On Jan 27, 2019, at 9:17 AM, Thomas S. Dye  wrote:
> 
> Aloha LB,
> 
> I'm working my way through this change, too, hunting down all the places I've 
> modified org-structure-template-alist.  You'll need to get rid of the 
> templates you've added to this list.  The new function won't run if it finds 
> an old-style template on the list. 
> 
> Once the list is clean, the new function offers the possibility of selecting 
> some text, then hitting C-c C-, and choosing a structure that encloses the 
> selected text.  This is quite handy.
> 
> I had a number of one-line templates that I haven't figured out how to 
> replace yet.  Any suggestions are welcome.
> 


I like the ability to wrap a region using `C-c C-,' but my fingers still want 
` n p
  n "\\end{eqnarray}" >)
 " n p
  n "\\end{equation}" >)
 "

[O] Easy templates broken with 9.2

2019-01-27 Thread Thomas S. Dye

Aloha LB,

I'm working my way through this change, too, hunting down all the 
places I've modified org-structure-template-alist.  You'll need to get 
rid of the templates you've added to this list.  The new function won't 
run if it finds an old-style template on the list.


Once the list is clean, the new function offers the possibility of 
selecting some text, then hitting C-c C-, and choosing a structure that 
encloses the selected text.  This is quite handy.


I had a number of one-line templates that I haven't figured out how to 
replace yet.  Any suggestions are welcome.


hth,
Tom


Re: [O] org-tempo violating org-mode conventions since 9.2

2019-01-27 Thread Gabriele Lana
On Fri, 25 Jan 2019 at 17:04, Amin Bandali  wrote:

> Just to throw in my 2¢, I personally strongly prefer the less-obnoxious
> all-lowercase variant for all ‘#+’ keywords, though I do sometimes use
> uppercase for things like #+TITLE or #+AUTHOR every now and again.
>
> I think it would be nice to provide a defcusom to allow choosing between
> upper vs. lowercase.  As of now, you should be able to get all uppercase
> by customizing the `org-tempo-keywords-alist' list and by redefining
> `org-tempo-add-block' (for the “begin” and “end” parts) in org-tempo.el.
>

+1 for the ~defcustom~ :-)

-- 
Gabriele Lana
https://github.com/gabrielelana
https://twitter.com/gabrielelana


Re: [O] org-tempo violating org-mode conventions since 9.2

2019-01-27 Thread Gabriele Lana
On Fri, 25 Jan 2019 at 18:01, Nicolas Goaziou 
wrote:


> >   following the conventions (https://orgmode.org/manual/Conventions.html
> )
> > "Keywords and blocks are written in uppercase to enhance their
> readability"
> > but since 9.2 all blocks inserted are lowercase, why?
>
> To make it clear, this convention is for the /manual/ only, not for Org
> syntax. Blocks are case insensitive.
>

Thanks for the clarification, still, it seems odd that the manual uses a
convention that Org (since 9.2) kind of force you to break

Ex. if I want to wrap a result from a source block evaluation the ~begin_~
and ~end_~ tags will be lowercase unless I start to advice functions

I'm quite puzzled because it seems an arbitrary choice forced to the user
with no clear reasons

-- 
Gabriele Lana
https://github.com/gabrielelana
https://twitter.com/gabrielelana


[O] A section in file 2 being referenced in file 1, then exported to latex and built into a PDF?

2019-01-27 Thread Sharon Kimble

How can I, in org-mode, reference another heading in a different file in the 
same directory please?

For example -

--8<---cut here---start->8---
* Testing
** Testing number one
:mydrawer:
See \uline{Testing number one} on page 
\pageref{fu2:2c2a0555-27a4-4ac1-b124-ffb60ee2af00}
:END:
\label{2c2a0555-27a4-4ac1-b124-ffb60ee2af00}
--8<---cut here---end--->8---

Is in /home/boudiccas/research/writing/fu/fu2.org

and I want the reference to appear in the org-mode file in 
'/home/boudiccas/research/writing/fu/fu.org'

And show as -

--8<---cut here---start->8---
* Testing
** testing one

# See \uline{Testing number one} on page 
\pageref{{fu2.org}:{2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

# See \uline{Testing number one} on page 
\pageref{{fu2.org}:2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

# See \uline{Testing number one} on page 
\pageref{fu2.org:2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

# See \uline{Testing number one} on page 
\pageref{fu2:2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

# See \uline{Testing number one} on page 
\pageref{2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

--8<---cut here---end--->8---

Both files are exported to latex and built into a pdf file.

In the second example I have tried various things, including

--8<---cut here---start->8---
# #+latex_header: \include{/home/boudiccas/research/writing/fu/fu2}

# #+latex_header: \input{/home/boudiccas/research/writing/fu/fu2.org}
--8<---cut here---end--->8---

but none were successful.

So everything that I have tried, and fails, is commented out.

So how can I do it please? Is it actually possible to do it?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.5, fluxbox 1.3.7, emacs 26.1.91, org 9.2


signature.asc
Description: PGP signature