emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-tempo violating org-mode conventions since 9.2
@ 2019-01-25 14:05 Gabriele Lana
  2019-01-25 16:04 ` Amin Bandali
  2019-01-25 17:01 ` Nicolas Goaziou
  0 siblings, 2 replies; 9+ messages in thread
From: Gabriele Lana @ 2019-01-25 14:05 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

  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?

Is there a clean way to put them back in uppercase? I mean alse the ~BEGIN~
and ~END~ part of the blocks

Thanks

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

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

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

* Re: org-tempo violating org-mode conventions since 9.2
  2019-01-25 14:05 org-tempo violating org-mode conventions since 9.2 Gabriele Lana
@ 2019-01-25 16:04 ` Amin Bandali
  2019-01-26  8:11   ` Michael Welle
  2019-01-27 16:24   ` Gabriele Lana
  2019-01-25 17:01 ` Nicolas Goaziou
  1 sibling, 2 replies; 9+ messages in thread
From: Amin Bandali @ 2019-01-25 16:04 UTC (permalink / raw)
  To: Gabriele Lana; +Cc: emacs-orgmode

On 2019-01-25  3:05 PM, Gabriele Lana wrote:
> Hi,
>
>   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?
>
> Is there a clean way to put them back in uppercase? I mean alse the ~BEGIN~
> and ~END~ part of the blocks
>

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.

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

Best,
amin

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

* Re: org-tempo violating org-mode conventions since 9.2
  2019-01-25 14:05 org-tempo violating org-mode conventions since 9.2 Gabriele Lana
  2019-01-25 16:04 ` Amin Bandali
@ 2019-01-25 17:01 ` Nicolas Goaziou
  2019-01-27 15:50   ` Gabriele Lana
  1 sibling, 1 reply; 9+ messages in thread
From: Nicolas Goaziou @ 2019-01-25 17:01 UTC (permalink / raw)
  To: Gabriele Lana; +Cc: emacs-orgmode

Hello,

Gabriele Lana <gabriele.lana@gmail.com> writes:

>   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.

Regards,

-- 
Nicolas Goaziou

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

* Re: org-tempo violating org-mode conventions since 9.2
  2019-01-25 16:04 ` Amin Bandali
@ 2019-01-26  8:11   ` Michael Welle
  2019-01-26  8:58     ` Tim Cross
  2019-01-27 16:24   ` Gabriele Lana
  1 sibling, 1 reply; 9+ messages in thread
From: Michael Welle @ 2019-01-26  8:11 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Amin Bandali <bandali@gnu.org> writes:
[...]
> I think it would be nice to provide a defcusom to allow choosing between
> upper vs. lowercase.
that would make the exchange of Org files with colleagues and other Org
aficionados complicated, wouldn't it? As Nicolas said, blocks are
case-insensitive, meaning one could write them down according to one's
liking ;). 

Regards
hmw

-- 
FrOSCon? Free and Open Source Software Conference
10th + 11th August 2019, Sankt Augustin, Bonn Area/Germany
https://www.froscon.de/en/

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

* Re: org-tempo violating org-mode conventions since 9.2
  2019-01-26  8:11   ` Michael Welle
@ 2019-01-26  8:58     ` Tim Cross
  2019-01-26  9:47       ` Michael Welle
  2019-01-27  2:56       ` stardiviner
  0 siblings, 2 replies; 9+ messages in thread
From: Tim Cross @ 2019-01-26  8:58 UTC (permalink / raw)
  To: emacs-orgmode


I totally agree that block delimiters should be case
insensitive. However, I think the ability for a user to set their
preference for either upper case or lower case is reasonable. It does
not need to affect the syntactic interpretation, just whether the
template system does it in upper case or lower case. I have no idea how
much more complex this would make the tempo definitions though.

Tim

Michael Welle <mwe012008@gmx.net> writes:

> Hello,
>
> Amin Bandali <bandali@gnu.org> writes:
> [...]
>> I think it would be nice to provide a defcusom to allow choosing between
>> upper vs. lowercase.
> that would make the exchange of Org files with colleagues and other Org
> aficionados complicated, wouldn't it? As Nicolas said, blocks are
> case-insensitive, meaning one could write them down according to one's
> liking ;). 
>
> Regards
> hmw


-- 
Tim Cross

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

* Re: org-tempo violating org-mode conventions since 9.2
  2019-01-26  8:58     ` Tim Cross
@ 2019-01-26  9:47       ` Michael Welle
  2019-01-27  2:56       ` stardiviner
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Welle @ 2019-01-26  9:47 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Tim Cross <theophilusx@gmail.com> writes:

> I totally agree that block delimiters should be case
> insensitive. However, I think the ability for a user to set their
> preference for either upper case or lower case is reasonable. It does
> not need to affect the syntactic interpretation, just whether the
> template system does it in upper case or lower case. I have no idea how
> much more complex this would make the tempo definitions though.
ah, I understand. I had the generating part as well as the parsing part
in mind when I wrote my last posting. But you are right, making
customisable how the blocks are generated wouldn't hurt anyone, I think.
Maybe it is enough to change org-create-dblock, maybe there are more
places to look at.

Regards
hmw

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

* Re: org-tempo violating org-mode conventions since 9.2
  2019-01-26  8:58     ` Tim Cross
  2019-01-26  9:47       ` Michael Welle
@ 2019-01-27  2:56       ` stardiviner
  1 sibling, 0 replies; 9+ messages in thread
From: stardiviner @ 2019-01-27  2:56 UTC (permalink / raw)
  To: emacs-orgmode


Tim Cross <theophilusx@gmail.com> writes:

> I totally agree that block delimiters should be case
> insensitive. However, I think the ability for a user to set their
> preference for either upper case or lower case is reasonable. It does
> not need to affect the syntactic interpretation, just whether the
> template system does it in upper case or lower case. I have no idea how
> much more complex this would make the tempo definitions though.
>
> Tim
>
> Michael Welle <mwe012008@gmx.net> writes:
>
>> Hello,
>>
>> Amin Bandali <bandali@gnu.org> writes:
>> [...]
>>> I think it would be nice to provide a defcusom to allow choosing between
>>> upper vs. lowercase.
>> that would make the exchange of Org files with colleagues and other Org
>> aficionados complicated, wouldn't it? As Nicolas said, blocks are
>> case-insensitive, meaning one could write them down according to one's
>> liking ;). 
>>
>> Regards
>> hmw

I agree. I upvote an option for this option. I remember there is an
option before, but someday it's gone. Now still has a similar option
`org-babel-uppercase-example-markers'. They can be merged if someone
want to add a patch.

-- 
[ stardiviner ]
       I try to make every word tell the meaning what I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      

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

* Re: org-tempo violating org-mode conventions since 9.2
  2019-01-25 17:01 ` Nicolas Goaziou
@ 2019-01-27 15:50   ` Gabriele Lana
  0 siblings, 0 replies; 9+ messages in thread
From: Gabriele Lana @ 2019-01-27 15:50 UTC (permalink / raw)
  To: emacs-orgmode

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

On Fri, 25 Jan 2019 at 18:01, Nicolas Goaziou <mail@nicolasgoaziou.fr>
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

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

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

* Re: org-tempo violating org-mode conventions since 9.2
  2019-01-25 16:04 ` Amin Bandali
  2019-01-26  8:11   ` Michael Welle
@ 2019-01-27 16:24   ` Gabriele Lana
  1 sibling, 0 replies; 9+ messages in thread
From: Gabriele Lana @ 2019-01-27 16:24 UTC (permalink / raw)
  To: emacs-orgmode

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

On Fri, 25 Jan 2019 at 17:04, Amin Bandali <bandali@gnu.org> 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

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

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

end of thread, other threads:[~2019-01-27 16:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-25 14:05 org-tempo violating org-mode conventions since 9.2 Gabriele Lana
2019-01-25 16:04 ` Amin Bandali
2019-01-26  8:11   ` Michael Welle
2019-01-26  8:58     ` Tim Cross
2019-01-26  9:47       ` Michael Welle
2019-01-27  2:56       ` stardiviner
2019-01-27 16:24   ` Gabriele Lana
2019-01-25 17:01 ` Nicolas Goaziou
2019-01-27 15:50   ` Gabriele Lana

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).