help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: naming and/or directly addressing particular windows?


From: Jambunathan K
Subject: Re: naming and/or directly addressing particular windows?
Date: Tue, 04 Dec 2012 02:28:19 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Matt Price <moptop99@gmail.com> writes:

> with a regular expression that will match, say,
>
> (concat (buffer-name) "-" [:digit:])

M-x ielm RET

,----
| *** Welcome to IELM ***  Type (describe-mode) for help.
| ELISP> (rx-to-string `(and ,(buffer-name) (zero-or-more digit)))
| "\\(?:\\*ielm\\*[[:digit:]]*\\)"
| ELISP> *ielm*1
`----

M-x re-builder RET

Copy, paste the string returned by `rx-to-string' in the resulting
re-builder buffer.  You will see that it matches the second line.

C-f rx RET

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]