help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: elisp how to insert text at end of each line


From: Thorsten Jolitz
Subject: Re: elisp how to insert text at end of each line
Date: Thu, 11 Apr 2013 13:32:41 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

acomber <deedexy@gmail.com> writes:

> (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?

Yes, sorry, I used it with (setq text "hello world") in the scratch
buffer and forgot to account for user input.

-- 
cheers,
Thorsten




reply via email to

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