From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: function to wrap a string for calendar-modify-diary-entry-string Date: Thu, 05 Oct 2006 09:04:16 -0400 Message-ID: <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 1160053534 29982 80.91.229.2 (5 Oct 2006 13:05:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2006 13:05:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 05 15:05:32 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 1GVSuT-0005V5-2B for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Oct 2006 15:05:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVSuS-00061v-Na for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Oct 2006 09:05:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVSuG-00061e-AI for help-gnu-emacs@gnu.org; Thu, 05 Oct 2006 09:04:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVSuC-00061E-Hy for help-gnu-emacs@gnu.org; Thu, 05 Oct 2006 09:04:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVSuC-000615-FF for help-gnu-emacs@gnu.org; Thu, 05 Oct 2006 09:04:52 -0400 Original-Received: from [69.17.117.4] (helo=mail2.sea5.speakeasy.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GVT0r-0008IV-2B for help-gnu-emacs@gnu.org; Thu, 05 Oct 2006 09:11:45 -0400 Original-Received: (qmail 31306 invoked from network); 5 Oct 2006 13:04:49 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.27]) (gebser@[66.93.11.17]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Oct 2006 13:04:49 -0000 User-Agent: Thunderbird 1.5.0.7 (X11/20060911) Original-To: GNU Emacs List 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:37818 Archived-At: I found (defvar diary-modify-entry-list-string-function nil "Function applied to entry string before putting it into the entries list. Can be used by programs integrating a diary list into other buffers (e.g. org.el and planner.el) to modify the string or add properties to it. The function takes a string argument and must return a string.") So created this ~/emacs.d/calendar-display-alter.el: (defun calendar-modify-diary-entry-string (instring outstring) "Function to wrap ``\t* '' and ``. \n'' around a diary entry." (defvar outstring (concat "\t* " instring ". \n")) ) Then put this in my ~/.emacs and eval'd it: (defvar diary-modify-entry-list-string-function calendar-display-alter.el) Ran M-x diary, but no difference in the output. Frankly, I was doubtful it would work because there's nothing telling anything that the variable "outstring" is what should be output. What would accomplish that. (Also, of course, if there's anything else goofy about the function above, please let me know.) Thanks. -- In a time of universal deceit, telling the truth becomes an act of rebellion. --George Orwell