|
From: | Kevin Rodgers |
Subject: | Re: ncr (numeric character reference) to unicode |
Date: | Wed, 15 Apr 2009 22:20:40 -0600 |
User-agent: | Thunderbird 2.0.0.21 (Macintosh/20090302) |
B. T. Raven wrote:
(defalias 'xhc 'expand-html-encoded-chars) and then tried to do the same with this function: (defun reverse-string (beg end) (interactive "r") (setq str (buffer-substring beg end)) (apply #'string (nreverse (string-to-list str))))but it doesn't seem to work, although it doesn't produce errors in a traceback buffer. What am I missing?
Miles' expand-html-encoded-chars function modifies the buffer, with replace-match. Your reverse-string function generates a value, but
does not modify the buffer. -- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |