|
From: | Andreas Röhler |
Subject: | Re: elisp search-forward problem - function stops on search failed error |
Date: | Thu, 11 Apr 2013 14:48:35 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
Am 11.04.2013 13:24, schrieb acomber:
I wrote a function to replace tab characters with a string as in: (defun do-cols () "convert tab char to html td delim" (interactive) (goto-char (point-min)) (while (search-forward "\t") (insert " ") ) ) which works fine but on finishing I see in the command window: Search failed: " "
... (defun do-cols () "convert tab char to WHATEVER" (interactive "*") (goto-char (point-min)) (while (search-forward "\t" nil t) (replace-match "BlahBlub")))
[Prev in Thread] | Current Thread | [Next in Thread] |