emacs-devel
[Top][All Lists]
Advanced

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

Re: replace-regexp-in-string, using the dyn scoped variable STR


From: Juri Linkov
Subject: Re: replace-regexp-in-string, using the dyn scoped variable STR
Date: Thu, 12 Nov 2009 11:59:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu)

>     (setq org-str (replace-regexp-in-string
>                    "&#x\\([a-f0-9]\\{2,4\\}\\);"
>                    (lambda (m)
>                      (char-to-string
>                       ;; Note: str is scoped dynamically from
>                       ;; `replace-regexp-in-string'.
>                       (+ (string-to-number (match-string 1 str) 16)

`str' has the same value as `m'.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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