From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: add a list item and automatically insert an incative timestamp without being asked to confirm "now" Date: Wed, 25 Mar 2009 14:30:50 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmTCR-0002lB-0Q for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 09:31:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmTCL-0002ju-Ga for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 09:31:17 -0400 Received: from [199.232.76.173] (port=52281 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmTCL-0002jq-9o for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 09:31:13 -0400 Received: from main.gmane.org ([80.91.229.2]:36733 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LmTCK-0000Va-W7 for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 09:31:13 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LmTCC-0006ZB-SW for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 13:31:04 +0000 Received: from 212.34.176.74 ([212.34.176.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Mar 2009 13:31:04 +0000 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Mar 2009 13:31:04 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, I want to write a function to create a new item in an item list and immediately insert an inactive timestamp. How could I possibly do this? I can write a keyboard macro, yes. But can somebody show me how to write a function which I can global-set-key to? Must be something like ... (org-meta-return) (org-time-stamp-inactive t) ... Problem is I then get asked to confirm the current timestamp. In this case I always want to use the current timestamp without being asked. Thanks, Rainer