emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
       [not found] <145604945296.31794.17323403181543491797.reportbug@garlic.spices>
@ 2016-02-22  8:59 ` Josef Atmin
  2016-02-23 21:11   ` briangpowell .
  2016-02-24 17:38   ` Nicolas Goaziou
  0 siblings, 2 replies; 11+ messages in thread
From: Josef Atmin @ 2016-02-22  8:59 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

the maintainer of the Debian org-mode package referred me to this list for my bug report.

Best regards, Josef. 

On Sun, Feb 21, 2016 at 11:10:52AM +0100, Josef Atmin wrote:
> Package: org-mode
> Version: 8.3.3-3
> Severity: normal
> 
> Dear Maintainer,
> 
> when a shell command in an unnumbered list includes '::', it is not recognized as a shell
> command anymore.
> 
> To reproduce the bug, paste the following two lines in file 'tmp'
> 
>   asdf :: asdf
>   asdf :: qwer
> 
> and add the following shell commands to an org file
> 
>    * [[shell:cat ~/tmp | grep "asdf :"]]
>    * [[shell:cat ~/tmp | grep "asdf ::"]]
>    * [[shell:cat ~/tmp | grep "asdf :: "]]
> 
> If you klick on them you will probably find that the first two work while the last one
> does not, presumably because it is interpreted as a description list entry.
> Interestingly, if you use a numbered list
> 
>    1. [[shell:cat ~/tmp | grep "asdf :"]]
>    2. [[shell:cat ~/tmp | grep "asdf ::"]]
>    3. [[shell:cat ~/tmp | grep "asdf :: "]]
> 
> then all three work.
> 
> Thanks for this great piece of software, I use it all the time.
> 
> Best wishes,
> 
> Josef.
> 
> 
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages org-mode depends on:
> ii  emacs24         24.5+1-6+b1
> ii  emacsen-common  2.0.8
> 
> Versions of packages org-mode recommends:
> ii  texlive-generic-recommended  2015.20160215-1
> ii  texlive-latex-recommended    2015.20160215-1
> 
> Versions of packages org-mode suggests:
> pn  ditaa                      <none>
> ii  texlive-fonts-recommended  2015.20160215-1
> ii  texlive-latex-extra        2015.20160117-1
> 
> -- no debconf information

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-22  8:59 ` * [[shell:cat ~/tmp | grep "asdf :: "]] does not work Josef Atmin
@ 2016-02-23 21:11   ` briangpowell .
  2016-02-23 21:31     ` briangpowell .
  2016-02-24 17:38   ` Nicolas Goaziou
  1 sibling, 1 reply; 11+ messages in thread
From: briangpowell . @ 2016-02-23 21:11 UTC (permalink / raw)
  To: Josef Atmin; +Cc: emacs-orgmode

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

* Nah, tried it, all 3 have same output:

    * [[shell:cat ~/tmp | grep "asdf :"]]
    * [[shell:cat ~/tmp | grep "asdf ::"]]
    * [[shell:cat ~/tmp | grep "asdf :: "]]

=>

Executing cat ~/tmp | grep "asdf :"
asdf :: asdf
asdf :: qwer
Executing cat ~/tmp | grep "asdf ::"
asdf :: asdf
asdf :: qwer
Executing cat ~/tmp | grep "asdf :: "
asdf :: asdf
asdf :: qwer


On Mon, Feb 22, 2016 at 3:59 AM, Josef Atmin <jatmin@web.de> wrote:

> Hi,
>
> the maintainer of the Debian org-mode package referred me to this list for
> my bug report.
>
> Best regards, Josef.
>
> On Sun, Feb 21, 2016 at 11:10:52AM +0100, Josef Atmin wrote:
> > Package: org-mode
> > Version: 8.3.3-3
> > Severity: normal
> >
> > Dear Maintainer,
> >
> > when a shell command in an unnumbered list includes '::', it is not
> recognized as a shell
> > command anymore.
> >
> > To reproduce the bug, paste the following two lines in file 'tmp'
> >
> >   asdf :: asdf
> >   asdf :: qwer
> >
> > and add the following shell commands to an org file
> >
> >    * [[shell:cat ~/tmp | grep "asdf :"]]
> >    * [[shell:cat ~/tmp | grep "asdf ::"]]
> >    * [[shell:cat ~/tmp | grep "asdf :: "]]
> >
> > If you klick on them you will probably find that the first two work
> while the last one
> > does not, presumably because it is interpreted as a description list
> entry.
> > Interestingly, if you use a numbered list
> >
> >    1. [[shell:cat ~/tmp | grep "asdf :"]]
> >    2. [[shell:cat ~/tmp | grep "asdf ::"]]
> >    3. [[shell:cat ~/tmp | grep "asdf :: "]]
> >
> > then all three work.
> >
> > Thanks for this great piece of software, I use it all the time.
> >
> > Best wishes,
> >
> > Josef.
> >
> >
> > -- System Information:
> > Debian Release: stretch/sid
> >   APT prefers unstable
> >   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
> > Architecture: amd64 (x86_64)
> > Foreign Architectures: i386
> >
> > Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> > Init: systemd (via /run/systemd/system)
> >
> > Versions of packages org-mode depends on:
> > ii  emacs24         24.5+1-6+b1
> > ii  emacsen-common  2.0.8
> >
> > Versions of packages org-mode recommends:
> > ii  texlive-generic-recommended  2015.20160215-1
> > ii  texlive-latex-recommended    2015.20160215-1
> >
> > Versions of packages org-mode suggests:
> > pn  ditaa                      <none>
> > ii  texlive-fonts-recommended  2015.20160215-1
> > ii  texlive-latex-extra        2015.20160117-1
> >
> > -- no debconf information
>
>

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

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-23 21:11   ` briangpowell .
@ 2016-02-23 21:31     ` briangpowell .
  2016-02-23 21:52       ` Josef Atmin
  0 siblings, 1 reply; 11+ messages in thread
From: briangpowell . @ 2016-02-23 21:31 UTC (permalink / raw)
  To: Josef Atmin; +Cc: emacs-orgmode

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

* Only way I can explain why the "3rd output is different from the 1st and
2nd":

You unwittingly placed a <Tab> character after the "::" on the 3rd row--and
you look at it and you believe its a <Space> character.

* Suggest you open it up in VI and do ":set list"--is there a "^I"
character there?

** Better yet, open the file up and use whitespace-mode in Emacs.

** Also suggest you use the POSIX compliant form for regular expressions
whenever possible--i.e. use [:blank:] when you mean " " and "[:space:]"
when you mean whitespace--that way its harder to fool yourself, and others
that read your code.






On Tue, Feb 23, 2016 at 4:11 PM, briangpowell . <briangpowellms@gmail.com>
wrote:

> * Nah, tried it, all 3 have same output:
>
>     * [[shell:cat ~/tmp | grep "asdf :"]]
>     * [[shell:cat ~/tmp | grep "asdf ::"]]
>     * [[shell:cat ~/tmp | grep "asdf :: "]]
>
> =>
>
> Executing cat ~/tmp | grep "asdf :"
> asdf :: asdf
> asdf :: qwer
> Executing cat ~/tmp | grep "asdf ::"
> asdf :: asdf
> asdf :: qwer
> Executing cat ~/tmp | grep "asdf :: "
> asdf :: asdf
> asdf :: qwer
>
>
> On Mon, Feb 22, 2016 at 3:59 AM, Josef Atmin <jatmin@web.de> wrote:
>
>> Hi,
>>
>> the maintainer of the Debian org-mode package referred me to this list
>> for my bug report.
>>
>> Best regards, Josef.
>>
>> On Sun, Feb 21, 2016 at 11:10:52AM +0100, Josef Atmin wrote:
>> > Package: org-mode
>> > Version: 8.3.3-3
>> > Severity: normal
>> >
>> > Dear Maintainer,
>> >
>> > when a shell command in an unnumbered list includes '::', it is not
>> recognized as a shell
>> > command anymore.
>> >
>> > To reproduce the bug, paste the following two lines in file 'tmp'
>> >
>> >   asdf :: asdf
>> >   asdf :: qwer
>> >
>> > and add the following shell commands to an org file
>> >
>> >    * [[shell:cat ~/tmp | grep "asdf :"]]
>> >    * [[shell:cat ~/tmp | grep "asdf ::"]]
>> >    * [[shell:cat ~/tmp | grep "asdf :: "]]
>> >
>> > If you klick on them you will probably find that the first two work
>> while the last one
>> > does not, presumably because it is interpreted as a description list
>> entry.
>> > Interestingly, if you use a numbered list
>> >
>> >    1. [[shell:cat ~/tmp | grep "asdf :"]]
>> >    2. [[shell:cat ~/tmp | grep "asdf ::"]]
>> >    3. [[shell:cat ~/tmp | grep "asdf :: "]]
>> >
>> > then all three work.
>> >
>> > Thanks for this great piece of software, I use it all the time.
>> >
>> > Best wishes,
>> >
>> > Josef.
>> >
>> >
>> > -- System Information:
>> > Debian Release: stretch/sid
>> >   APT prefers unstable
>> >   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
>> > Architecture: amd64 (x86_64)
>> > Foreign Architectures: i386
>> >
>> > Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
>> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
>> > Shell: /bin/sh linked to /bin/dash
>> > Init: systemd (via /run/systemd/system)
>> >
>> > Versions of packages org-mode depends on:
>> > ii  emacs24         24.5+1-6+b1
>> > ii  emacsen-common  2.0.8
>> >
>> > Versions of packages org-mode recommends:
>> > ii  texlive-generic-recommended  2015.20160215-1
>> > ii  texlive-latex-recommended    2015.20160215-1
>> >
>> > Versions of packages org-mode suggests:
>> > pn  ditaa                      <none>
>> > ii  texlive-fonts-recommended  2015.20160215-1
>> > ii  texlive-latex-extra        2015.20160117-1
>> >
>> > -- no debconf information
>>
>>
>

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

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-23 21:31     ` briangpowell .
@ 2016-02-23 21:52       ` Josef Atmin
  0 siblings, 0 replies; 11+ messages in thread
From: Josef Atmin @ 2016-02-23 21:52 UTC (permalink / raw)
  To: briangpowell .; +Cc: emacs-orgmode

Dear briangpowell,

there is definitely a space in the third line.

Also, it does not simply produce no output, it says "No link found".

Plus, when I change it to a numbered list starting with 1., 2., 3. .... it works.

I have also run this with my .emacs file disabled, so it cannot be my
option settings.

Are you sure you use the same emacs and org-mode version as I do?
I use
  emacs    46.1
  emacs24  24.5+1-6+b1
  org-mode 8.3.3-3
  
What else could it be that makes our systems behave differently?

Best regards,

Josef.

On Tue, Feb 23, 2016 at 04:31:23PM -0500, briangpowell . wrote:
> * Only way I can explain why the "3rd output is different from the 1st and
> 2nd":
> 
> You unwittingly placed a <Tab> character after the "::" on the 3rd row--and
> you look at it and you believe its a <Space> character.
> 
> * Suggest you open it up in VI and do ":set list"--is there a "^I"
> character there?
> 
> ** Better yet, open the file up and use whitespace-mode in Emacs.
> 
> ** Also suggest you use the POSIX compliant form for regular expressions
> whenever possible--i.e. use [:blank:] when you mean " " and "[:space:]"
> when you mean whitespace--that way its harder to fool yourself, and others
> that read your code.
> 
> 
> 
> 
> 
> 
> On Tue, Feb 23, 2016 at 4:11 PM, briangpowell . <briangpowellms@gmail.com>
> wrote:
> 
> > * Nah, tried it, all 3 have same output:
> >
> >     * [[shell:cat ~/tmp | grep "asdf :"]]
> >     * [[shell:cat ~/tmp | grep "asdf ::"]]
> >     * [[shell:cat ~/tmp | grep "asdf :: "]]
> >
> > =>
> >
> > Executing cat ~/tmp | grep "asdf :"
> > asdf :: asdf
> > asdf :: qwer
> > Executing cat ~/tmp | grep "asdf ::"
> > asdf :: asdf
> > asdf :: qwer
> > Executing cat ~/tmp | grep "asdf :: "
> > asdf :: asdf
> > asdf :: qwer
> >
> >
> > On Mon, Feb 22, 2016 at 3:59 AM, Josef Atmin <jatmin@web.de> wrote:
> >
> >> Hi,
> >>
> >> the maintainer of the Debian org-mode package referred me to this list
> >> for my bug report.
> >>
> >> Best regards, Josef.
> >>
> >> On Sun, Feb 21, 2016 at 11:10:52AM +0100, Josef Atmin wrote:
> >> > Package: org-mode
> >> > Version: 8.3.3-3
> >> > Severity: normal
> >> >
> >> > Dear Maintainer,
> >> >
> >> > when a shell command in an unnumbered list includes '::', it is not
> >> recognized as a shell
> >> > command anymore.
> >> >
> >> > To reproduce the bug, paste the following two lines in file 'tmp'
> >> >
> >> >   asdf :: asdf
> >> >   asdf :: qwer
> >> >
> >> > and add the following shell commands to an org file
> >> >
> >> >    * [[shell:cat ~/tmp | grep "asdf :"]]
> >> >    * [[shell:cat ~/tmp | grep "asdf ::"]]
> >> >    * [[shell:cat ~/tmp | grep "asdf :: "]]
> >> >
> >> > If you klick on them you will probably find that the first two work
> >> while the last one
> >> > does not, presumably because it is interpreted as a description list
> >> entry.
> >> > Interestingly, if you use a numbered list
> >> >
> >> >    1. [[shell:cat ~/tmp | grep "asdf :"]]
> >> >    2. [[shell:cat ~/tmp | grep "asdf ::"]]
> >> >    3. [[shell:cat ~/tmp | grep "asdf :: "]]
> >> >
> >> > then all three work.
> >> >
> >> > Thanks for this great piece of software, I use it all the time.
> >> >
> >> > Best wishes,
> >> >
> >> > Josef.
> >> >
> >> >
> >> > -- System Information:
> >> > Debian Release: stretch/sid
> >> >   APT prefers unstable
> >> >   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
> >> > Architecture: amd64 (x86_64)
> >> > Foreign Architectures: i386
> >> >
> >> > Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
> >> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> >> > Shell: /bin/sh linked to /bin/dash
> >> > Init: systemd (via /run/systemd/system)
> >> >
> >> > Versions of packages org-mode depends on:
> >> > ii  emacs24         24.5+1-6+b1
> >> > ii  emacsen-common  2.0.8
> >> >
> >> > Versions of packages org-mode recommends:
> >> > ii  texlive-generic-recommended  2015.20160215-1
> >> > ii  texlive-latex-recommended    2015.20160215-1
> >> >
> >> > Versions of packages org-mode suggests:
> >> > pn  ditaa                      <none>
> >> > ii  texlive-fonts-recommended  2015.20160215-1
> >> > ii  texlive-latex-extra        2015.20160117-1
> >> >
> >> > -- no debconf information
> >>
> >>
> >

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-22  8:59 ` * [[shell:cat ~/tmp | grep "asdf :: "]] does not work Josef Atmin
  2016-02-23 21:11   ` briangpowell .
@ 2016-02-24 17:38   ` Nicolas Goaziou
  2016-02-24 17:56     ` Nick Dokos
  2016-02-27 10:16     ` Josef Atmin
  1 sibling, 2 replies; 11+ messages in thread
From: Nicolas Goaziou @ 2016-02-24 17:38 UTC (permalink / raw)
  To: Josef Atmin; +Cc: emacs-orgmode

Hello,

Josef Atmin <jatmin@web.de> writes:

>> when a shell command in an unnumbered list includes '::', it is not recognized as a shell
>> command anymore.
>> 
>> To reproduce the bug, paste the following two lines in file 'tmp'
>> 
>>   asdf :: asdf
>>   asdf :: qwer
>> 
>> and add the following shell commands to an org file
>> 
>>    * [[shell:cat ~/tmp | grep "asdf :"]]
>>    * [[shell:cat ~/tmp | grep "asdf ::"]]
>>    * [[shell:cat ~/tmp | grep "asdf :: "]]
>> 
>> If you klick on them you will probably find that the first two work while the last one
>> does not, presumably because it is interpreted as a description list entry.
>> Interestingly, if you use a numbered list
>> 
>>    1. [[shell:cat ~/tmp | grep "asdf :"]]
>>    2. [[shell:cat ~/tmp | grep "asdf ::"]]
>>    3. [[shell:cat ~/tmp | grep "asdf :: "]]
>> 
>> then all three work.

This is not a bug. - .... :: *is* description list syntax, no matter how
you look at it. You can easily work around this, e.g., by starting the
link on the next line.

Regards,

-- 
Nicolas Goaziou

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-24 17:38   ` Nicolas Goaziou
@ 2016-02-24 17:56     ` Nick Dokos
  2016-02-24 19:43       ` Nicolas Goaziou
  2016-02-27 10:16     ` Josef Atmin
  1 sibling, 1 reply; 11+ messages in thread
From: Nick Dokos @ 2016-02-24 17:56 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Josef Atmin <jatmin@web.de> writes:
>
>>> when a shell command in an unnumbered list includes '::', it is not recognized as a shell
>>> command anymore.
>>> 
>>> To reproduce the bug, paste the following two lines in file 'tmp'
>>> 
>>>   asdf :: asdf
>>>   asdf :: qwer
>>> 
>>> and add the following shell commands to an org file
>>> 
>>>    * [[shell:cat ~/tmp | grep "asdf :"]]
>>>    * [[shell:cat ~/tmp | grep "asdf ::"]]
>>>    * [[shell:cat ~/tmp | grep "asdf :: "]]
>>> 
>>> If you klick on them you will probably find that the first two work while the last one
>>> does not, presumably because it is interpreted as a description list entry.
>>> Interestingly, if you use a numbered list
>>> 
>>>    1. [[shell:cat ~/tmp | grep "asdf :"]]
>>>    2. [[shell:cat ~/tmp | grep "asdf ::"]]
>>>    3. [[shell:cat ~/tmp | grep "asdf :: "]]
>>> 
>>> then all three work.
>
> This is not a bug. - .... :: *is* description list syntax, no matter how
> you look at it. You can easily work around this, e.g., by starting the
> link on the next line.
>

Count me confused - although the OP is talking about unnumbered lists,
his example only has headlines and numbered lists. Is the link broken
when in the headline or only when it's an unnumbered list item?

--
nick

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-24 17:56     ` Nick Dokos
@ 2016-02-24 19:43       ` Nicolas Goaziou
  2016-02-24 19:53         ` Nick Dokos
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas Goaziou @ 2016-02-24 19:43 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

Hello,

Nick Dokos <ndokos@gmail.com> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> Josef Atmin <jatmin@web.de> writes:
>>
>>>> when a shell command in an unnumbered list includes '::', it is not recognized as a shell
>>>> command anymore.
>>>> 
>>>> To reproduce the bug, paste the following two lines in file 'tmp'
>>>> 
>>>>   asdf :: asdf
>>>>   asdf :: qwer
>>>> 
>>>> and add the following shell commands to an org file
>>>> 
>>>>    * [[shell:cat ~/tmp | grep "asdf :"]]
>>>>    * [[shell:cat ~/tmp | grep "asdf ::"]]
>>>>    * [[shell:cat ~/tmp | grep "asdf :: "]]
>>>> 
>>>> If you klick on them you will probably find that the first two work while the last one
>>>> does not, presumably because it is interpreted as a description list entry.
>>>> Interestingly, if you use a numbered list
>>>> 
>>>>    1. [[shell:cat ~/tmp | grep "asdf :"]]
>>>>    2. [[shell:cat ~/tmp | grep "asdf ::"]]
>>>>    3. [[shell:cat ~/tmp | grep "asdf :: "]]
>>>> 
>>>> then all three work.
>>
>> This is not a bug. - .... :: *is* description list syntax, no matter how
>> you look at it. You can easily work around this, e.g., by starting the
>> link on the next line.
>>
>
> Count me confused - although the OP is talking about unnumbered lists,
> his example only has headlines and numbered lists. Is the link broken
> when in the headline or only when it's an unnumbered list item?

IIUC, the OP is using unnumbered lists with an asterisk bullet.  Hence,
the problem is probably limited to unnumbered lists, not headlines.

Regards,

-- 
Nicolas Goaziou

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-24 19:43       ` Nicolas Goaziou
@ 2016-02-24 19:53         ` Nick Dokos
  2016-02-25  1:38           ` briangpowell .
  0 siblings, 1 reply; 11+ messages in thread
From: Nick Dokos @ 2016-02-24 19:53 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

>> Count me confused - although the OP is talking about unnumbered lists,
>> his example only has headlines and numbered lists. Is the link broken
>> when in the headline or only when it's an unnumbered list item?
>
> IIUC, the OP is using unnumbered lists with an asterisk bullet.  Hence,
> the problem is probably limited to unnumbered lists, not headlines.
>

Ahhhh (light dawns...)

Thanks!

--
Nick

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-24 19:53         ` Nick Dokos
@ 2016-02-25  1:38           ` briangpowell .
  0 siblings, 0 replies; 11+ messages in thread
From: briangpowell . @ 2016-02-25  1:38 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

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

* Since your situation,  is one like this: "This is not a bug. - .... ::
*is* description list syntax"--i.e. you are grep-ing for what Emacs
Org-Mode is seeing as a "description list"; and, this is "by design"

e.g.:

* Lord of the Rings
- Elijah Wood :: He plays Frodo
- Sean Astin :: He plays Sam, Frodo's friend.  I still remember
  him very well from his role as Mikey Walsh in The Goonies.

** In such a case: I reiterate my earlier suggestion--and my opinion is one
should always strive to do it this way too--its POSIX compliant--its easier
to read and you won't run into inconsistencies in your code:

Suggest you do it this way instead: Use "POSIX character classes"
like [:blank:] whenever possible--so in this case you could try to do
something like this (you'd have to test it yourself--if you're still
interested--again my environment throws no error exceptions):

** In your shell:
export BLANK="[[:blank:]]"

** Then load your Emacs OrgMode buffer as you did before; and, try
something like this instead:

* [[shell:cat ~/tmp | grep "asdf :"]]
* [[shell:cat ~/tmp | grep "asdf ::"]]
* [[shell:cat ~/tmp | grep "asdf$BLANK::$BLANK]]

--again, this all worked for me--but they all worked for me before too
while yours failed

** Say, anyone no how to do something like this:

export PIPE="|"

* [[shell:cat ~/tmp $PIPE grep "asdf ::"]]

---I mean, does anyone know how to use some other character or whatever
instead of "|" within the "[[...]]"?---I often find myself wanting to
insert a pipe in there and then put the whole thing in an OrgTable
cell--but we all know "|" is the cell divider in OrgMode

** Or does anyone know how to easily change the OrgTable cell barrier to a
key other than "|"?  (then I could freely use the "|" in an OrgTable cell)


On Wed, Feb 24, 2016 at 2:53 PM, Nick Dokos <ndokos@gmail.com> wrote:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
> >> Count me confused - although the OP is talking about unnumbered lists,
> >> his example only has headlines and numbered lists. Is the link broken
> >> when in the headline or only when it's an unnumbered list item?
> >
> > IIUC, the OP is using unnumbered lists with an asterisk bullet.  Hence,
> > the problem is probably limited to unnumbered lists, not headlines.
> >
>
> Ahhhh (light dawns...)
>
> Thanks!
>
> --
> Nick
>
>
>
>

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

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-24 17:38   ` Nicolas Goaziou
  2016-02-24 17:56     ` Nick Dokos
@ 2016-02-27 10:16     ` Josef Atmin
  2016-02-27 23:03       ` Nicolas Goaziou
  1 sibling, 1 reply; 11+ messages in thread
From: Josef Atmin @ 2016-02-27 10:16 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Dear Nicolas!

On Wed, Feb 24, 2016 at 06:38:09PM +0100, Nicolas Goaziou wrote:
> Hello,
> 
> Josef Atmin <jatmin@web.de> writes:
> 
> >> when a shell command in an unnumbered list includes '::', it is not recognized as a shell
> >> command anymore.
> >> 
> >> To reproduce the bug, paste the following two lines in file 'tmp'
> >> 
> >>   asdf :: asdf
> >>   asdf :: qwer
> >> 
> >> and add the following shell commands to an org file
> >> 
> >>    * [[shell:cat ~/tmp | grep "asdf :"]]
> >>    * [[shell:cat ~/tmp | grep "asdf ::"]]
> >>    * [[shell:cat ~/tmp | grep "asdf :: "]]
> >> 
> >> If you klick on them you will probably find that the first two work while the last one
> >> does not, presumably because it is interpreted as a description list entry.
> >> Interestingly, if you use a numbered list
> >> 
> >>    1. [[shell:cat ~/tmp | grep "asdf :"]]
> >>    2. [[shell:cat ~/tmp | grep "asdf ::"]]
> >>    3. [[shell:cat ~/tmp | grep "asdf :: "]]
> >> 
> >> then all three work.
> 
> This is not a bug. - .... :: *is* description list syntax, no matter how
> you look at it. You can easily work around this, e.g., by starting the
> link on the next line.

Well, one could also say [[shell:cat ~/tmp | grep "asdf :: "]] is link
syntax, no matter how you look at it.  It is a question of precedence.
I think it is more obvious to interpret

   * [[ ... :: ... ]] ....

as a link syntax rather than a descrition list entry.

But even if the * .... :: syntax takes precedence, then the folowing
should work, I think, but it does not.

   * test :: [[shell:cat ~/tmp | grep "asdf :: "]]

If I klick on the link, I still get the errror message "No link found".

Best regards,

Josef.

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

* Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
  2016-02-27 10:16     ` Josef Atmin
@ 2016-02-27 23:03       ` Nicolas Goaziou
  0 siblings, 0 replies; 11+ messages in thread
From: Nicolas Goaziou @ 2016-02-27 23:03 UTC (permalink / raw)
  To: Josef Atmin; +Cc: emacs-orgmode

Hello,

Josef Atmin <jatmin@web.de> writes:

> Well, one could also say [[shell:cat ~/tmp | grep "asdf :: "]] is link
> syntax, no matter how you look at it.  It is a question of precedence.

Of course. I'm just telling you how Org sees it.

> I think it is more obvious to interpret
>
>    * [[ ... :: ... ]] ....
>
> as a link syntax rather than a descrition list entry.

It's less interesting because it implies backtracking. Anyway, as said
previously, just put your link on the line below, and the problem is
solved.

> But even if the * .... :: syntax takes precedence, then the folowing
> should work, I think, but it does not.
>
>    * test :: [[shell:cat ~/tmp | grep "asdf :: "]]
>
> If I klick on the link, I still get the errror message "No link
> found".

This is because tag matches to the last "::" in the line. Without that,
you cannot have "::" in a tag.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2016-02-27 23:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <145604945296.31794.17323403181543491797.reportbug@garlic.spices>
2016-02-22  8:59 ` * [[shell:cat ~/tmp | grep "asdf :: "]] does not work Josef Atmin
2016-02-23 21:11   ` briangpowell .
2016-02-23 21:31     ` briangpowell .
2016-02-23 21:52       ` Josef Atmin
2016-02-24 17:38   ` Nicolas Goaziou
2016-02-24 17:56     ` Nick Dokos
2016-02-24 19:43       ` Nicolas Goaziou
2016-02-24 19:53         ` Nick Dokos
2016-02-25  1:38           ` briangpowell .
2016-02-27 10:16     ` Josef Atmin
2016-02-27 23:03       ` Nicolas Goaziou

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