From mboxrd@z Thu Jan 1 00:00:00 1970 From: "briangpowell ." Subject: Re: * [[shell:cat ~/tmp | grep "asdf :: "]] does not work. Date: Wed, 24 Feb 2016 20:38:18 -0500 Message-ID: References: <145604945296.31794.17323403181543491797.reportbug@garlic.spices> <20160222085952.GA32746@garlic> <878u2a57r2.fsf@nicolasgoaziou.fr> <87k2lu8021.fsf@alphaville.usersys.redhat.com> <87vb5d51yf.fsf@nicolasgoaziou.fr> <87ziup7um5.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136988ca905da052c8e3cff Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYksn-0002kU-37 for emacs-orgmode@gnu.org; Wed, 24 Feb 2016 20:38:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYksl-00062s-HF for emacs-orgmode@gnu.org; Wed, 24 Feb 2016 20:38:21 -0500 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:34991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYksl-00062M-9R for emacs-orgmode@gnu.org; Wed, 24 Feb 2016 20:38:19 -0500 Received: by mail-ob0-x235.google.com with SMTP id dm2so35460341obb.2 for ; Wed, 24 Feb 2016 17:38:18 -0800 (PST) In-Reply-To: <87ziup7um5.fsf@alphaville.usersys.redhat.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode --001a1136988ca905da052c8e3cff Content-Type: text/plain; charset=UTF-8 * 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 wrote: > Nicolas Goaziou 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 > > > > --001a1136988ca905da052c8e3cff Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* Since your situation, =C2=A0is one like this: "This= is not a bug. - .... :: *is* description list syntax"--i.e. you are g= rep-ing for what Emacs Org-Mode is seeing as a "description list"= ; and, this is "by design"=C2=A0

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

** In such a case: I reiter= ate 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 yo= u do it this way instead: Use "POSIX character classes" like=C2= =A0[:blank:] whenever possible--so in this case you could try to do somethi= ng like this (you'd have to test it yourself--if you're still inter= ested--again my environment throws no error exceptions):

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

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

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

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

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

export PIPE=3D"|"

<= div>* [[shell:cat ~/tmp $PIPE grep "asdf ::"]]

=
---I mean, does anyone know how to use some other character or w= hatever 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 O= rgMode

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


On Wed, F= eb 24, 2016 at 2:53 PM, Nick Dokos <ndokos@gmail.com> wrote:<= br>
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes= :

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

Ahhhh (light dawns...)

Thanks!

--
Nick




--001a1136988ca905da052c8e3cff--