From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: acomber Newsgroups: gmane.emacs.help Subject: Re: elisp how to insert text at end of each line Date: Thu, 11 Apr 2013 03:23:29 -0700 (PDT) Message-ID: <1365675809309-283460.post@n5.nabble.com> References: <1365614909301-283410.post@n5.nabble.com> <87obdmxnhd.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365675828 16454 80.91.229.3 (11 Apr 2013 10:23:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 10:23:48 +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 12:23:52 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 1UQEfY-0004GN-Gy for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 12:23:52 +0200 Original-Received: from localhost ([::1]:39533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQEfX-0003ye-1r for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 06:23:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQEfH-0003xw-1J for Help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 06:23:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQEfC-0000dm-BE for Help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 06:23:34 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:43903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQEfC-0000dg-6C for Help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 06:23:30 -0400 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UQEfB-0007ar-AB for Help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 03:23:29 -0700 In-Reply-To: <87obdmxnhd.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.139.236.26 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:90081 Archived-At: That works, thanks. I implemented as a function which inserted literal text. But I like the idea of being able to pass parameters to the function. so I tried this: (defun insert-at-end-of-line (text) "convert word tbl to html tbl" (interactive) (goto-char (point-min)) (while (not (eobp)) (end-of-line) (insert text) (next-line) ) ) But then in emacs how do I pass the text parameter? I keep getting: call-interactively: Wrong number of arguments: (lambda (text) "convert word tbl to html tbl" (interactive) (goto-char (point-min)) (while (not (eobp)) (end-of-line) (insert text) (next-line))), 0 Do I have to specify somewhere that function takes parameters??? -- View this message in context: http://emacs.1067599.n5.nabble.com/elisp-how-to-insert-text-at-end-of-each-line-tp283410p283460.html Sent from the Emacs - Help mailing list archive at Nabble.com.