all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: calendar-date-style
Date: Fri, 05 Mar 2010 11:12:32 +1100	[thread overview]
Message-ID: <87wrxr1v9r.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: b0a1c86f-7e78-4974-980b-871761a202bf@g10g2000yqh.googlegroups.com

Pingouin <gerald.jean@dgag.ca> writes:

> Hello,
>
> I recently upgraded to Emacs-23.1.1.  I have an issue with calendar-
> date-style.  In 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).  Rather, 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!  Please an example!
>
> I also tried to set "calendar-date-style" through M-x customize, as
> suggested.  After 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.

 I'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


  parent reply	other threads:[~2010-03-05  0:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-04 17:46 calendar-date-style Pingouin
2010-03-04 21:44 ` calendar-date-style Glenn Morris
2010-03-05  0:12 ` Tim X [this message]
2010-03-05 15:27   ` calendar-date-style Pingouin
2010-03-06  3:01     ` calendar-date-style Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrxr1v9r.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.