From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QPy+MXU7Cmf2KQAA62LTzQ:P1 (envelope-from ) for ; Sat, 12 Oct 2024 09:03:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QPy+MXU7Cmf2KQAA62LTzQ (envelope-from ) for ; Sat, 12 Oct 2024 11:03:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gautierponsinet.xyz header.s=ovhmo4576755-selector1 header.b="AlT/BXsi"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728723829; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vl/plsQgB/TOUSHQPdYcYjsjWn7H/KNgl289SWdFDg4=; b=iocDf8KuVihnInokq0325OUfFSAHx/L9eUEVuJBm/UUuRY/LRTFdn/7gaDFw+bgsYKFHH7 WtGlZNibPaq7flFxcZbkj5CP+GPb0LfZs5XpdZIT6DaAiv67+yjwBkT+lt1B5qb+AgEZdd 6kRiqUc0W6Vs3XUbBqFmjgPsFQPTTAzemF1S2XIkXxz9kAzjWDRqd2hrXWx3BXGD5R257Y X/BEnL2vQgzVSS8/frCoageC1iHuG3ucpr3Vf3WKOQJ4iQd8Mj9ej2RGDIBxeRo3frCRiG 89iFZrOka6tJ4d5XLAXMzdndzxYtOkYIfdErME2gO9keIwfoHDJZXuZW6lq3PQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728723829; a=rsa-sha256; cv=none; b=XzEn8mF5EZnCFmwax0AeHewTFX7Z0jBdhf0YRvVupjyl06qnGjCmbSELZi+mD2hWoNCW9J oSJ4RQlXRe++/SfuHbNFkPj07qN2e9ntFFmtI783T8Ja0CdNMaByKv7IC4KCyp+Bb62LNO e20rNB8LScaclRxhAg+uBXgHrUn9yOJQfqTiLzTq3KpirTFkyZqPoSUqWb2VDcSTliWmY6 XBulxrwIlvYBQS+eZUV5Trn+hQ52Uy88WdGwqzBMvNk/lj/gnseEubFgT44KM+kWzcifSZ f/2fwbyUGr/Fb8kpyPRfohHwUQaRPNde43/lD79mAaZ78bEM3my9EbznpLZmPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gautierponsinet.xyz header.s=ovhmo4576755-selector1 header.b="AlT/BXsi"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B8B383E09 for ; Sat, 12 Oct 2024 11:03:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szY1x-0003kZ-J4; Sat, 12 Oct 2024 05:03:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szY1t-0003kL-Jf for emacs-orgmode@gnu.org; Sat, 12 Oct 2024 05:03:18 -0400 Received: from 16.mo583.mail-out.ovh.net ([87.98.174.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szY1q-0004v1-7f for emacs-orgmode@gnu.org; Sat, 12 Oct 2024 05:03:17 -0400 Received: from director2.ghost.mail-out.ovh.net (unknown [10.108.17.89]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 4XQcw35cFXz1CfY for ; Sat, 12 Oct 2024 09:02:59 +0000 (UTC) Received: from ghost-submission-55b549bf7b-cbjqn (unknown [10.110.96.223]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 5BB441FDAB for ; Sat, 12 Oct 2024 09:02:58 +0000 (UTC) Received: from gautierponsinet.xyz ([37.59.142.109]) by ghost-submission-55b549bf7b-cbjqn with ESMTPSA id 4JfLNEI7CmdvsAQARib6jg (envelope-from ) for ; Sat, 12 Oct 2024 09:02:58 +0000 X-OVh-ClientIp: 79.130.79.219 From: Gautier Ponsinet To: emacs-orgmode@gnu.org Subject: Date prompt and parse-time variables Date: Sat, 12 Oct 2024 12:02:57 +0300 Message-ID: <87r08lk81q.fsf@gautierponsinet.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Ovh-Tracer-Id: 4270256871990224795 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 70 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeguddguddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpefhvffufffkgggtsehmtderredttddtnecuhfhrohhmpefirghuthhivghrucfrohhnshhinhgvthcuoehgrghuthhivghrsehgrghuthhivghrphhonhhsihhnvghtrdighiiiqeenucggtffrrghtthgvrhhnpedtudeuledvudehhfetleektefhtdejvdekieehfeejveeiueevteefkeffleejffenucfkphepuddvjedrtddrtddruddpjeelrddufedtrdejledrvdduledpfeejrdehledrudegvddruddtleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepghgruhhtihgvrhesghgruhhtihgvrhhpohhnshhinhgvthdrgiihiidpnhgspghrtghpthhtohepuddprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeefpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=vl/plsQgB/TOUSHQPdYcYjsjWn7H/KNgl289SWdFDg4=; c=relaxed/relaxed; d=gautierponsinet.xyz; h=From; s=ovhmo4576755-selector1; t=1728723779; v=1; b=AlT/BXsiak9WaxeCLLPdx4akldtIgqRkqE0+7OfrTfthXtY1GD0l4fKK90xkG+HzhMJg/Y7N gc+2PEc+njn+nGucSHRQQ+rnx27vXFwY4v01+OHQ3/0HMZklJFn7XtnxQMDWkfoT/F67V5et3kR qTKNTcfAWLHXWw7baSrwEvUblI6KA8BusCHKUdbOOHHEevEUdOz2Y2489iIeTyNrx+cTkXQYS6f bqjfI0jLQuRYwEV9pKhIrqxOV5EPbWQ9LDpATi93wfHLoyrFA9yk6YysAv2uAYT5FK9WIAFgCKl MFdhMCUZ8ZZCA+GvUJAbTAT65fg29YcjPRhNJJgzbB9lg== Received-SPF: pass client-ip=87.98.174.144; envelope-from=gautier@gautierponsinet.xyz; helo=16.mo583.mail-out.ovh.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.82 X-Spam-Score: -2.82 X-Migadu-Queue-Id: B8B383E09 X-Migadu-Scanner: mx13.migadu.com X-TUID: ewKJMOw4fZj0 --=-=-= Content-Type: text/plain Hello everyone, The org manual recommends to configure the variables parse-time-months and parse-time-weekdays in order to use another language than English in the time/date prompt. However, this can create conflict with other functionality. For instance, it conflicts with the elfeed news reader package. Maybe, the org manual could also recommand to limit the effect of the configuration of the parse-time variables by advising certain org functions for the date prompt? (Looking at the code it seems that is enough to advise the function org-read-date. Currently, I have the code attached to this mail in my init file which seems to do the trick.) Or, there could exist org specific variables org-parse-time-months and org-parse-time-weekdays. What do you all think? All the best, Gautier. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=org-parse-time.el (require 'parse-time) (defun parse-time-fr (f &rest args) "Call the function F with arguments ARGS with `parse-time-months' and `parse-time-weekdays' set to unaccented French." (let ((parse-time-months '(("jan" . 1) ("fev" . 2) ("mar" . 3) ("avr" . 4) ("mai" . 5) ("jun" . 6) ("jul" . 7) ("aou" . 8) ("sep" . 9) ("oct" . 10) ("nov" . 11) ("dec" . 12) ("janvier" . 1) ("fevrier" . 2) ("mars" . 3) ("avril" . 4) ("mai" . 5) ("juin" . 6) ("juillet" . 7) ("aout" . 8) ("septembre" . 9) ("octobre" . 10) ("novembre" . 11) ("decembre" . 12))) (parse-time-weekdays '(("dim" . 0) ("lun" . 1) ("mar" . 2) ("mer" . 3) ("jeu" . 4) ("ven" . 5) ("sam" . 6) ("dimanche" . 0) ("lundi" . 1) ("mardi" . 2) ("mercredi" . 3) ("jeudi" . 4) ("vendredi" . 5) ("samedi" . 6)))) (apply f args))) (advice-add 'org-read-date :around #'parse-time-fr) --=-=-=--