From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: function to wrap a string for calendar-modify-diary-entry-string Date: Thu, 05 Oct 2006 15:56:06 -0400 Message-ID: <45256356.30505@speakeasy.net> References: <452502D0.8080000@speakeasy.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1160078320 32275 80.91.229.2 (5 Oct 2006 19:58:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2006 19:58:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 05 21:58:34 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GVZL4-000461-LL for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Oct 2006 21:57:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVZL4-0001mM-6u for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Oct 2006 15:57:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVZKo-0001hG-8H for help-gnu-emacs@gnu.org; Thu, 05 Oct 2006 15:56:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVZKm-0001cO-JZ for help-gnu-emacs@gnu.org; Thu, 05 Oct 2006 15:56:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVZKm-0001bp-Dp for help-gnu-emacs@gnu.org; Thu, 05 Oct 2006 15:56:44 -0400 Original-Received: from [69.17.117.6] (helo=mail4.sea5.speakeasy.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GVZRU-00039I-Uz for help-gnu-emacs@gnu.org; Thu, 05 Oct 2006 16:03:41 -0400 Original-Received: (qmail 3513 invoked from network); 5 Oct 2006 19:56:42 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.27]) (gebser@[66.93.11.17]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Oct 2006 19:56:42 -0000 User-Agent: Thunderbird 1.5.0.7 (X11/20060911) Original-To: help-gnu-emacs@gnu.org In-Reply-To: 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:37829 Archived-At: Kevin Rodgers wrote: > ken wrote: >> .... > > ;; ~/emacs.d/calendar-display-alter.el: > (defun calendar-modify-diary-entry-string (entry-string) > "Prepend \"TAB *\" and append \". SPC LFD\" to ENTRY-STRING." > (concat "\t* " entry-string ". \n")) > > ;; ~/.emacs: > (autoload 'calendar-modify-diary-entry-string > "~/emacs.d/calendar-display-alter") ; or just "calendar-display-alter" > ; if "~/emacs.d" is in load-path > (setq diary-modify-entry-list-string-function > 'calendar-modify-diary-entry-string) > Thanks much... even for the criticism... wish I understood it. But that's okay. It's easier to learn from observing the ways that work than from the ways that don't. And your code works. Thanks again. -- In a time of universal deceit, telling the truth becomes an act of rebellion. --George Orwell