From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pingouin Newsgroups: gmane.emacs.help Subject: Re: calendar-date-style Date: Fri, 5 Mar 2010 07:27:24 -0800 (PST) Organization: http://groups.google.com Message-ID: <9fe285c5-8a00-4e94-8165-fc3f694f8943@z4g2000yqa.googlegroups.com> References: <87wrxr1v9r.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272989399 1679 80.91.229.12 (4 May 2010 16:09:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 16:09:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 18:09:56 2010 connect(): No such file or directory 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 1O9Kh1-0006uk-Gq for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:09:55 +0200 Original-Received: from localhost ([127.0.0.1]:36754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Kh0-0002m5-VZ for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 12:09:54 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!z4g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 100 Original-NNTP-Posting-Host: 206.47.217.67 Original-X-Trace: posting.google.com 1267802844 18333 127.0.0.1 (5 Mar 2010 15:27:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 5 Mar 2010 15:27:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z4g2000yqa.googlegroups.com; posting-host=206.47.217.67; posting-account=YyzWwwoAAADxY8GhdtoQdFsQ6CfHkTGX User-Agent: G2/1.0 X-HTTP-Via: 1.0 NTPROXYL01 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177366 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:72913 Archived-At: Thanks to both, Tim and Glen, your comments are invaluable and highly appreciated. I think there is a problem between "recentf-mode" and "calendar", maybe? Here is what I tried. 1.-- Renamed my .emacs so Emacs will start without any customization. 2.-- Re-started Emacs. 3.-- M-x load-library calendar 4.-- M-x customize-variable calendar-date-style 5.-- Changed the value from "american" to "iso", any value give the same result. 6.-- Pushed the "Save for future sessions" button. 7.-- Got the following error in the mini-buffer. Symbol's function definition is void: recentf-expand-file-name And, of course, nothing is written to .emacs file. 8.-- Now, in the same session I turned off "recentf-mode". 9.-- Did the customize-variable thing again. 10.-- This time Emacs creates a new .emacs file and writes the customization to it. I had been using "recentf-mode" for many versions of Emacs without problems, I had not changed my .emacs when upgrading to 23.1; something must have gotten broken somewhere? Now, I am going to turn to your advice Tim and try to start cleanly with the rewritten calendar. Thanks again to both, G=E9rald On Mar 4, 7:12=A0pm, Tim X wrote: > Pingouin writes: > > Hello, > > > I recently upgraded to Emacs-23.1.1. =A0I have an issue with calendar- > > date-style. =A0In calendar I always used "european" date style, all my > > appointments and meetings are set up with this style; I had the line > > (setq european-calendar-style t) in my .emacs, that did the trick but > > now Emacs-23 complains telling me this is an obsolete variable; it > > tells me to use "calendar-date-style" instead, but the doc says: > > > |______________ > > Setting this variable directly does not take effect (if the > > calendar package is already loaded). =A0Rather, use either > > M-x customize or the function `calendar-set-date-style'. > > |______________ > > > In .emacs I tried to use the function "calendar-set-date-style" every > > way I could think of but with no luck! =A0Please an example! > > > I also tried to set "calendar-date-style" through M-x customize, as > > suggested. =A0After setting it to "european", clicking the "Save for > > future sessions" button yielded the following error: > > > |-------------------------------- > > Debugger entered--Lisp error: (void-function recentf-expand-file-name) > > A few suggestions - > > 1. Have a look at the etc/NEWS file for the version of emacs your > running. You will find that a lot of the calendar subsystems have been > re-written. You will also find that you may not need to change the date > style anymore as calendar is now using ISO date formats by default, > eliminating the silly european/us date kformat confusion. The mode has > been extensively re-worked and I'd recommend starting from scratch - > throw away all your previous settings. > > 2. You could just set the variable directly via setq in your .emacs > file. It just has to be set before you 'require' any calendar functions > > 3.The error you get with customize is either a bug or it is due to > something configured locally. I'm only guessing, but it may be something > in your customize section that is from earlier customizations and is > breaking things now. The error is related to recentf mode, which I think > is an optional mode that needs to be loaded/configured by the user. My > bet is you have something screwed up in how this is configured. > > =A0I'd try temporarily moving your .emacs to the side, > creating a blank .emacs and trying again. If it works, you know its > something doddgy in your .emacs If it doesn't work, log a bug. > > You don't indicate how you have tried to call the > calendar-set-date-style function, but something like > > (calendar-set-date-style 'european) > > should work. > > Tin > > -- > tcross (at) rapttech dot com dot au- Hide quoted text - > > - Show quoted text -