all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Lowercase keywords in 9.2?
@ 2019-02-12 13:19 Carlos Pita
  2019-02-12 14:49 ` Carlos Pita
  0 siblings, 1 reply; 12+ messages in thread
From: Carlos Pita @ 2019-02-12 13:19 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I noticed that the default expansions for org-tempo in 9.2 are
lowercase. I think they followed the uppercase informal convention
before, didn't they? Is this implying that now lowercase is preferred?

Regards
--
Carlos

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 13:19 Lowercase keywords in 9.2? Carlos Pita
@ 2019-02-12 14:49 ` Carlos Pita
  2019-02-12 15:23   ` Martin Alsinet
  0 siblings, 1 reply; 12+ messages in thread
From: Carlos Pita @ 2019-02-12 14:49 UTC (permalink / raw)
  To: emacs-orgmode

> before, didn't they? Is this implying that now lowercase is preferred?

I dug this up from the repo:

   org-element: Prefer lower case letters for blocks and keywords

   https://code.orgmode.org/bzg/org-mode/commit/13424336a6f30c50952d291e7a82906c1210daf0

So the answer is yes. Also the begin/end pairs are lowercase hardcoded
in org-tempo.el.

This is a problem for available (ya)snippet databases. I've reported
it in https://github.com/AndreaCrotti/yasnippet-snippets/issues/303,
requesting an update. But I guess people will prefer uppercase for a
time so I'm now sure how should they should cope with the transition.

Best regards
--
Carlos

>
> Regards
> --
> Carlos

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 14:49 ` Carlos Pita
@ 2019-02-12 15:23   ` Martin Alsinet
  2019-02-12 15:30     ` Carlos Pita
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Alsinet @ 2019-02-12 15:23 UTC (permalink / raw)
  To: Carlos Pita; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

Carlos

Here are two previous threads about the subject:

   - Last month:
   http://lists.gnu.org/archive/html/emacs-orgmode/2019-01/msg00349.html
   - A year ago:
   http://lists.gnu.org/archive/html/emacs-orgmode/2018-01/msg00425.html

Regards

On Tue, Feb 12, 2019 at 9:51 AM Carlos Pita <carlosjosepita@gmail.com>
wrote:

> > before, didn't they? Is this implying that now lowercase is preferred?
>
> I dug this up from the repo:
>
>    org-element: Prefer lower case letters for blocks and keywords
>
>
> https://code.orgmode.org/bzg/org-mode/commit/13424336a6f30c50952d291e7a82906c1210daf0
>
> So the answer is yes. Also the begin/end pairs are lowercase hardcoded
> in org-tempo.el.
>
> This is a problem for available (ya)snippet databases. I've reported
> it in https://github.com/AndreaCrotti/yasnippet-snippets/issues/303,
> requesting an update. But I guess people will prefer uppercase for a
> time so I'm now sure how should they should cope with the transition.
>
> Best regards
> --
> Carlos
>
> >
> > Regards
> > --
> > Carlos
>
>

[-- Attachment #2: Type: text/html, Size: 2011 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 15:23   ` Martin Alsinet
@ 2019-02-12 15:30     ` Carlos Pita
  2019-02-12 15:56       ` Martin Alsinet
  0 siblings, 1 reply; 12+ messages in thread
From: Carlos Pita @ 2019-02-12 15:30 UTC (permalink / raw)
  To: Martin Alsinet; +Cc: emacs-orgmode

> Here are two previous threads about the subject:
>
> Last month: http://lists.gnu.org/archive/html/emacs-orgmode/2019-01/msg00349.html
> A year ago: http://lists.gnu.org/archive/html/emacs-orgmode/2018-01/msg00425.html

Interesting, thanks! Although the issue of mostly uppercase external
snippet collections was not raised there. For now I'm disabling yas in
org mode and using org-tempo exclusively.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 15:30     ` Carlos Pita
@ 2019-02-12 15:56       ` Martin Alsinet
  2019-02-12 16:09         ` Carlos Pita
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Alsinet @ 2019-02-12 15:56 UTC (permalink / raw)
  To: Carlos Pita; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 950 bytes --]

Carlos,

I recently updated to 9.2 and was also confronted with the org-tempo
change.
At first I didn't like the lowercase tags for the blocks, but I got used to
them after a couple of days.

Someone suggested adding a defcustom option to org-tempo to let the user
choose between lower and upper case tags.
It seems a simple enough feature for a first contribution. Maybe we could
add it? I have never done it before, but I am willing to try.


On Tue, Feb 12, 2019 at 10:30 AM Carlos Pita <carlosjosepita@gmail.com>
wrote:

> > Here are two previous threads about the subject:
> >
> > Last month:
> http://lists.gnu.org/archive/html/emacs-orgmode/2019-01/msg00349.html
> > A year ago:
> http://lists.gnu.org/archive/html/emacs-orgmode/2018-01/msg00425.html
>
> Interesting, thanks! Although the issue of mostly uppercase external
> snippet collections was not raised there. For now I'm disabling yas in
> org mode and using org-tempo exclusively.
>

[-- Attachment #2: Type: text/html, Size: 1633 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 15:56       ` Martin Alsinet
@ 2019-02-12 16:09         ` Carlos Pita
  2019-02-12 20:50           ` Martin Alsinet
  0 siblings, 1 reply; 12+ messages in thread
From: Carlos Pita @ 2019-02-12 16:09 UTC (permalink / raw)
  To: Martin Alsinet; +Cc: emacs-orgmode

> At first I didn't like the lowercase tags for the blocks, but I got used to them after a couple of days.

I prefer the lowercase convention hands down. The problem I pointed
out is with the uppercase legacy.

> Someone suggested adding a defcustom option to org-tempo to let the user choose between lower and upper case tags.
> It seems a simple enough feature for a first contribution. Maybe we could add it? I have never done it before, but I am willing to try.

I wouldn't mind (helping you) doing it as far as there is agreement
whether this is a desired option or not.

I guess it would be enough to patch the sites affected by
https://code.orgmode.org/bzg/org-mode/commit/13424336a6f30c50952d291e7a82906c1210daf0
and also the templates definition in org-tempo.

Regards
--
Carlos

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 16:09         ` Carlos Pita
@ 2019-02-12 20:50           ` Martin Alsinet
  2019-02-12 20:57             ` Carlos Pita
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Alsinet @ 2019-02-12 20:50 UTC (permalink / raw)
  To: Carlos Pita; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1525 bytes --]

What do you mean with the "uppercase legacy"? You mean all the current
documents we already have?
In my case, those will remain with the upper case tags until I need to edit
them.

I guess it would be enough to patch the sites affected by
>
> https://code.orgmode.org/bzg/org-mode/commit/13424336a6f30c50952d291e7a82906c1210daf0
> and also the templates definition in org-tempo.


Looking at that diff, the changes are not so simple as I initially thought,
I was just thinking about patching org-tempo, but I guess they should cover
all the uppercase tags.
Now I don't feel so confident about doing it :-(

Regards

On Tue, Feb 12, 2019 at 11:10 AM Carlos Pita <carlosjosepita@gmail.com>
wrote:

> > At first I didn't like the lowercase tags for the blocks, but I got used
> to them after a couple of days.
>
> I prefer the lowercase convention hands down. The problem I pointed
> out is with the uppercase legacy.
>
> > Someone suggested adding a defcustom option to org-tempo to let the user
> choose between lower and upper case tags.
> > It seems a simple enough feature for a first contribution. Maybe we
> could add it? I have never done it before, but I am willing to try.
>
> I wouldn't mind (helping you) doing it as far as there is agreement
> whether this is a desired option or not.
>
> I guess it would be enough to patch the sites affected by
>
> https://code.orgmode.org/bzg/org-mode/commit/13424336a6f30c50952d291e7a82906c1210daf0
> and also the templates definition in org-tempo.
>
> Regards
> --
> Carlos
>

[-- Attachment #2: Type: text/html, Size: 2478 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 20:50           ` Martin Alsinet
@ 2019-02-12 20:57             ` Carlos Pita
  2019-02-12 21:42               ` Kaushal Modi
  0 siblings, 1 reply; 12+ messages in thread
From: Carlos Pita @ 2019-02-12 20:57 UTC (permalink / raw)
  To: Martin Alsinet; +Cc: emacs-orgmode

> What do you mean with the "uppercase legacy"? You mean all the current documents we already have?

Specifically what motivated this post: collections of snippets that
have been written with the historical convention in mind. It's easy to
convert them but it's not that easy to convert users :).

Anyway I was just asking for opinions about what should be done,
although I guess the answer is to not procrastinate conversion to the
new convention.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 20:57             ` Carlos Pita
@ 2019-02-12 21:42               ` Kaushal Modi
  2019-02-28 13:37                 ` Carlos Pita
  0 siblings, 1 reply; 12+ messages in thread
From: Kaushal Modi @ 2019-02-12 21:42 UTC (permalink / raw)
  To: Carlos Pita; +Cc: emacs-orgmode, Martin Alsinet

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

On Tue, Feb 12, 2019 at 3:59 PM Carlos Pita <carlosjosepita@gmail.com>
wrote:

> > What do you mean with the "uppercase legacy"? You mean all the current
> documents we already have?
>
> Specifically what motivated this post: collections of snippets that
> have been written with the historical convention in mind. It's easy to
> convert them but it's not that easy to convert users :).
>

I am one of those who prefer the lower-case keywords :)

I started converting my Org documents to use the new convention around the
time it landed in the Org mode master branch little more than a year back:
https://scripter.co/org-keywords-lower-case/.

[-- Attachment #2: Type: text/html, Size: 1148 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-12 21:42               ` Kaushal Modi
@ 2019-02-28 13:37                 ` Carlos Pita
  2019-02-28 19:02                   ` Nicolas Goaziou
  0 siblings, 1 reply; 12+ messages in thread
From: Carlos Pita @ 2019-02-28 13:37 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: emacs-orgmode, Martin Alsinet

Today I noticed the export templates inserted by org are still uppercase:

#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS:
#+LATEX_HEADER:
#+LATEX_HEADER_EXTRA:
#+DESCRIPTION:
#+KEYWORDS:
#+SUBTITLE:
#+LATEX_COMPILER: pdflatex
#+DATE: \today

Is this intentional, is the lowercase convention intended for blocks only?

Best regards
--
Carlos

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-28 13:37                 ` Carlos Pita
@ 2019-02-28 19:02                   ` Nicolas Goaziou
  2019-02-28 19:20                     ` Carlos Pita
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2019-02-28 19:02 UTC (permalink / raw)
  To: Carlos Pita; +Cc: emacs-orgmode, Martin Alsinet, Kaushal Modi

Hello,

Carlos Pita <carlosjosepita@gmail.com> writes:

> Today I noticed the export templates inserted by org are still uppercase:
>
> #+LATEX_CLASS: article
> #+LATEX_CLASS_OPTIONS:
> #+LATEX_HEADER:
> #+LATEX_HEADER_EXTRA:
> #+DESCRIPTION:
> #+KEYWORDS:
> #+SUBTITLE:
> #+LATEX_COMPILER: pdflatex
>
> #+DATE: \today
>
> Is this intentional, is the lowercase convention intended for blocks
> only?

I fixed it. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lowercase keywords in 9.2?
  2019-02-28 19:02                   ` Nicolas Goaziou
@ 2019-02-28 19:20                     ` Carlos Pita
  0 siblings, 0 replies; 12+ messages in thread
From: Carlos Pita @ 2019-02-28 19:20 UTC (permalink / raw)
  To: Carlos Pita, Kaushal Modi, emacs-orgmode, Martin Alsinet

Great, thanks!

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-02-28 19:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-12 13:19 Lowercase keywords in 9.2? Carlos Pita
2019-02-12 14:49 ` Carlos Pita
2019-02-12 15:23   ` Martin Alsinet
2019-02-12 15:30     ` Carlos Pita
2019-02-12 15:56       ` Martin Alsinet
2019-02-12 16:09         ` Carlos Pita
2019-02-12 20:50           ` Martin Alsinet
2019-02-12 20:57             ` Carlos Pita
2019-02-12 21:42               ` Kaushal Modi
2019-02-28 13:37                 ` Carlos Pita
2019-02-28 19:02                   ` Nicolas Goaziou
2019-02-28 19:20                     ` Carlos Pita

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.