From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus Jantzen Newsgroups: gmane.emacs.help Subject: Command in a function Date: Wed, 24 Mar 2010 22:50:17 +0100 Message-ID: <4BAA8919.8000502@t-online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269468691 29118 80.91.229.12 (24 Mar 2010 22:11:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 22:11:31 +0000 (UTC) To: emacs-list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 24 23:11:15 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuYio-0001jW-DT for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Mar 2010 23:11:14 +0100 Original-Received: from localhost ([127.0.0.1]:52040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuYia-0001Ao-QV for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Mar 2010 18:06:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuYTG-0006An-5L for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 17:50:38 -0400 Original-Received: from [140.186.70.92] (port=36945 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuYTC-0006AB-UK for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 17:50:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuYTA-0001QG-Po for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 17:50:34 -0400 Original-Received: from mailout04.t-online.de ([194.25.134.18]:57896) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuYTA-0001PH-Ke for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 17:50:32 -0400 Original-Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de ) by mailout04.t-online.de with smtp id 1NuYT7-0006zH-TD; Wed, 24 Mar 2010 22:50:29 +0100 Original-Received: from [192.168.2.100] (ES19LuZLohuX0RT-V+XcjCovSLJX1HeXeeGXSa8UTZoB+wbQLh2vZzroEZzIsiWg+w@[87.144.116.217]) by fwd05.aul.t-online.de with esmtp id 1NuYT6-2FF4Rk0; Wed, 24 Mar 2010 22:50:28 +0100 User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) X-ID: ES19LuZLohuX0RT-V+XcjCovSLJX1HeXeeGXSa8UTZoB+wbQLh2vZzroEZzIsiWg+w X-TOI-MSGID: b721cd44-9401-41a1-83a1-9899c52e0fc3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 24 Mar 2010 18:06:06 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72478 Archived-At: Hello, I am writing a function that inserts some text into a buffer. At some point the cursor (point?) should go to the end of a line. For that I found the command "end-of-line". How do I code the execution of this command in a function? I tried it with (command-execute end-of-line) but that resulted in an error message. Thanks for any help. -- K.D.J.