all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm+news@stanford.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: calendar-date-style
Date: Thu, 04 Mar 2010 13:44:05 -0800	[thread overview]
Message-ID: <0uvddbvk2i.fsf@xoc2.stanford.edu> (raw)
In-Reply-To: b0a1c86f-7e78-4974-980b-871761a202bf@g10g2000yqh.googlegroups.com

Pingouin wrote:

> (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).

The doc for european-calendar-style said exactly the same thing.
Therefore, you can simply replace

(setq european-calendar-style t)

with

(setq calendar-date-style 'european)

and if the former worked (ie, was evaluated before you load the
calendar), the latter will too. (The former will still work as well.)

By the way, if "Emacs-23 complains telling me this is an obsolete
variable" means that you are byte-compiling your .emacs file, it usually
isn't worth the trouble.

> 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!

(require 'calendar)
(calendar-set-date-style 'european)

> I also tried to set "calendar-date-style" through M-x customize, as
> suggested.

Works fine for me.

>  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)
>   recentf-expand-file-name("c:/EMACS/.emacs")

I guess you have somehow set `recentf-mode' non-nil without actually
activating recentf-mode. Do you have any settings related to recentf in
your .emacs? The right way to activate recentf is

(recentf-mode 1)

not

(setq recentf-mode t)


  reply	other threads:[~2010-03-04 21:44 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 ` Glenn Morris [this message]
2010-03-05  0:12 ` calendar-date-style Tim X
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=0uvddbvk2i.fsf@xoc2.stanford.edu \
    --to=rgm+news@stanford.edu \
    --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.