all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rx or trouble
@ 2008-06-10 21:44 Lennart Borgman (gmail)
  2008-06-10 22:11 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-10 21:44 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

I thought this should match "ESC" or "C-d" for example. It only matches 
"ESC". Can someone see why?

     (rx space
         (or
          (1+
           (or "C-" "M-" "S-"))
          (any "+a-zA-Z0-9~<>!;,:.'\"%/?(){}$^0|-")
          "ESC")
         space)

This on the other hand matches "C-d":

     (rx space
         (1+
          (or "C-" "M-" "S-"))
         (any "+a-zA-Z0-9~<>!;,:.'\"%/?(){}$^0|-")
         space)




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

* Re: rx or trouble
  2008-06-10 21:44 rx or trouble Lennart Borgman (gmail)
@ 2008-06-10 22:11 ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-10 22:11 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Lennart Borgman (gmail) wrote:
> I thought this should match "ESC" or "C-d" for example. It only matches 
> "ESC". Can someone see why?
> 
>     (rx space
>         (or
>          (1+
>           (or "C-" "M-" "S-"))
>          (any "+a-zA-Z0-9~<>!;,:.'\"%/?(){}$^0|-")
>          "ESC")
>         space)
> 
> This on the other hand matches "C-d":
> 
>     (rx space
>         (1+
>          (or "C-" "M-" "S-"))
>         (any "+a-zA-Z0-9~<>!;,:.'\"%/?(){}$^0|-")
>         space)

Sorry for the noise. I found it - I forgot to group the part that should 
match "C-d".




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

end of thread, other threads:[~2008-06-10 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 21:44 rx or trouble Lennart Borgman (gmail)
2008-06-10 22:11 ` Lennart Borgman (gmail)

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.