From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: elisp search-forward problem - function stops on search failed error Date: Thu, 11 Apr 2013 14:35:02 +0200 Message-ID: <87li8pb5zd.fsf@thinkpad.tsdh.de> References: <1365679474576-283469.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365683774 6643 80.91.229.3 (11 Apr 2013 12:36:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 12:36:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 14:36:18 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQGjh-00084y-EK for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 14:36:17 +0200 Original-Received: from localhost ([::1]:59693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQGjh-0007l9-1m for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 08:36:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQGif-0006hp-Tz for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 08:35:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQGie-00031o-PV for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 08:35:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQGie-00031f-JE for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 08:35:12 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UQGib-0006Ow-Jy for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 14:35:09 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Apr 2013 14:35:09 +0200 Original-Received: from tsdh by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Apr 2013 14:35:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:29skz13Rm3B2lbTiQzc2rZw7sEg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90087 Archived-At: acomber writes: > (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: " " It doesn't replace, it adds something before (or after) the tabs. > (while (search-forward "\t", nil, t) > > But this function does nothing, get error: > > Symbol's value as variable is void: \, You don't write commas to separate arguments in funcalls (or items in lists in general). Bye, Tassilo