From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: calendar-date-style Date: Thu, 04 Mar 2010 13:44:05 -0800 Organization: None Message-ID: <0uvddbvk2i.fsf@xoc2.stanford.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272989028 32349 80.91.229.12 (4 May 2010 16:03:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 16:03:48 +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:03:47 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 1O9Kb5-0003a3-0G for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:03:47 +0200 Original-Received: from localhost ([127.0.0.1]:44668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Kb4-0007dm-7X for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 12:03:46 -0400 Original-Path: usenet.stanford.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: xoc2.stanford.edu Original-X-Trace: usenet.stanford.edu 1267739045 2469 171.64.109.31 (4 Mar 2010 21:44:05 GMT) Original-X-Complaints-To: action@cs.stanford.edu X-Spook: defcon kill George Bush Islamic Lakshar-e-Taiba colonel X-Ran: 'i>iP)>L:8`1G"c"UQ5S6K:'j"`%#=-R*U@%d,HRP_d:hOuV&?5{rw:O|{rJmQzd6FGCJV X-Hue: black X-Attribution: GM Mail-Copies-To: nobody User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cancel-Lock: sha1:kLQlFEyqBdrkMBewXX1Z/RIgRWc= Original-Xref: usenet.stanford.edu gnu.emacs.help:177356 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:72907 Archived-At: 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)