From unknown Sun Jun 22 11:33:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13396 <13396@debbugs.gnu.org> To: bug#13396 <13396@debbugs.gnu.org> Subject: Status: 24.2; org-agenda-include-diary doesn't work while using diary-file-name-prefix and diary-file-name-prefix-function elsewhere / FIX included Reply-To: bug#13396 <13396@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:33:22 +0000 retitle 13396 24.2; org-agenda-include-diary doesn't work while using diary= -file-name-prefix and diary-file-name-prefix-function elsewhere / FIX inclu= ded reassign 13396 emacs,org-mode submitter 13396 Andreas Merziger severity 13396 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 09 11:50:59 2013 Received: (at submit) by debbugs.gnu.org; 9 Jan 2013 16:50:59 +0000 Received: from localhost ([127.0.0.1]:59022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tsyri-00050H-Dg for submit@debbugs.gnu.org; Wed, 09 Jan 2013 11:50:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43708) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tssio-0002vn-P7 for submit@debbugs.gnu.org; Wed, 09 Jan 2013 05:17:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TssiY-0001lX-29 for submit@debbugs.gnu.org; Wed, 09 Jan 2013 05:17:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TssiX-0001lR-Va for submit@debbugs.gnu.org; Wed, 09 Jan 2013 05:17:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TssiV-0002AK-2H for bug-gnu-emacs@gnu.org; Wed, 09 Jan 2013 05:17:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TssiR-0001kp-L2 for bug-gnu-emacs@gnu.org; Wed, 09 Jan 2013 05:17:02 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:65205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TssiR-0001kV-8r for bug-gnu-emacs@gnu.org; Wed, 09 Jan 2013 05:16:59 -0500 Received: from localhost (koln-5d81b214.pool.mediaWays.net [93.129.178.20]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LlItW-1TJGz03pzC-00bBw1; Wed, 09 Jan 2013 11:16:57 +0100 From: Andreas Merziger To: bug-gnu-emacs@gnu.org Subject: 24.2; org-agenda-include-diary doesn't work while using diary-file-name-prefix and diary-file-name-prefix-function elsewhere / FIX included MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 09 Jan 2013 11:17:31 +0100 Message-ID: <87wqvmvex0.fsf@filista.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Provags-ID: V02:K0:Z5cVP3cEUuhStIjn35wwCMvUAXdsoKMfE3JFjJUzUZo OKWQE+M1lT03pmDh70vfDSZkim0/kgOksPKSUpA8MD37Tc0J9G YCIAi9lR5CXE1rjovXbSACZa1/64no0Z+FbrPywwrg7YtahY/I tLyRKTPCWHL9+mkk0fESrHJLSjucEo31P4gFK0WinGlL3YeJcf ycfq+5WmQuE+IAqvAPArzUStM92Z00SZtJUcR435CMaO8ToNg3 fy+8Lpi0uTcxIRcuBi/kZ+pZ7LW3TOqKseMoR4vn/rv721MLFi cq1ERENshDBAODt+E5f7CzdGskKAnGOXJVqfDapCoubsstwHgU GdpSBSKBjk6o2VEV48BM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 09 Jan 2013 11:50:57 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) To reproduce the bug: Start with: emacs -Q. The contents of my "~/diary" is the single line: */*/* Dummy-Entry In *scratch* - buffer evalute: (setq org-agenda-include-diary t) (setq diary-file-name-prefix t) (setq diary-file-name-prefix-function (lambda (strng) (format "%1.1s" (capitalize (file-name-nondirectory strng))))) (org-agenda) Now hit the key 'a'. This SHOULD have resulted in the display of the agenda-buffer with matching diary-entries included. INSTEAD I get the following error-message in the minibuffer: Symbol's function definition is void: nil And the *Messages* - buffer says: Preparing diary... diary-add-to-list: Symbol's function definition is void: nil --- END of Bug-Description --- I found the following FIX of this unexpected behaviour: In function `org-get-entries-from-diary' of file `PATH_TO_EMACS/lisp/org/org-agenda.el' replace the line (diary-file-name-prefix-function nil) ; turn this feature off by the line (diary-file-name-prefix nil) ; turn this feature off After this change (and recompilation-of course) I could not observe the unexpected behaviour anymore. COMMENT: (setq diary-file-name-prefix t) is not used by org-mode by its own, but it's needed if one wants to use a diary-file-name-prefix-function in the stand-alone version of the diary file when used by calendar. In my opinion the bug is caused by the fact, that the function `diary-add-to-list' checks the flag `diary-file-name-prefix' not `diary-file-name-prefix-function'! I'm SENDING this report with emacs-version 23.1 as my mail-setup with gnus is rather lengthy an I didn't want to interfere this with the reproduction of the bug. The bug report was GENERATED within emacs-24.2. ----- END of Bug-Report ------- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/local/share/emacs/24.2/etc/DEBUG. In GNU Emacs 24.2.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2013-01-09 on filista Windowing system distributor `The X.Org Foundation', version 11.0.10707000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: i n c l u d e - d i a r y C-g C-s d i a r y - f i l e C-x C-b C-x 1 C-s d i a r y - f i e l e l e l e - n a m e - p r e f i x - f u n c t i o n C-x C-f s r o r C-g C-x C-b C-g C-x C-f ~ / l i s e l i c a l C-x 1 C-s p r i e f e f i x f - - f u M-w C-x b * s c C-y C-x C-e C-x C-b M-w C-y C-x C-e C-x C-e C-x C-e C-x C-e M-x o r - r g - a g e n - - a C-x b C-g C-x b * M e w s C-x o C-e M-x r e j p o p o r Recent messages: Mark set t (lambda (strng) (format "%1.1s" (capitalize (file-name-nondirectory strng)))) [2 times] t Making completion list... Press key for agenda command: Preparing diary... diary-add-to-list: Symbol's function definition is void: nil Quit Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils jka-compr mule-util cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs diary-lib diary-loaddefs cal-iso org-agenda org byte-opt warnings bytecomp byte-compile cconv macroexp advice advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode format-spec regexp-opt cal-menu calendar cal-loaddefs help-mode easymenu view misearch multi-isearch help-fns time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 10 06:16:52 2013 Received: (at 13396) by debbugs.gnu.org; 10 Jan 2013 11:16:52 +0000 Received: from localhost ([127.0.0.1]:53404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtG7w-0004Gs-5T for submit@debbugs.gnu.org; Thu, 10 Jan 2013 06:16:52 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:57816) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtG7t-0004GO-Ks for 13396@debbugs.gnu.org; Thu, 10 Jan 2013 06:16:50 -0500 Received: by mail-we0-f174.google.com with SMTP id x10so189977wey.19 for <13396@debbugs.gnu.org>; Thu, 10 Jan 2013 03:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=ij1c3Lkh4OS/u88Jfpf6gcCHIL6IyBOjkGNcqLrK/aU=; b=WlNHFGZ+7SH/CsGGFU1c6VmX5+FFAT6XUGW1VZSMHBOJMCACKOghfLrFC6/304NMdV 8/KhZTLR9Hr6VdTlZoBD4p32F4/+JcfR5sg7Udv1ktvofcBYP1npD7+bB0XFyXN6pCqE ySxyvw/Vu4+sRBJIoiV1HXoRDg5mP7tWEQI8w5tZ4om0E0Mur8k4Zh/pM0yWcQrN9/4D WGnuBn/p4WDeK0pgSDV5t27JqRY5+ICQ2BlTcqYmilXDktUPoZiJbyWP2kP3WiqK71OJ HtzBorWQK6Eu++6UqdeEoeBxrzzTTzZ+n8ihNbd9FFtasD2koNFf+IgITm+K+wi3WQOv 4+0Q== X-Received: by 10.180.107.130 with SMTP id hc2mr8525911wib.12.1357816601588; Thu, 10 Jan 2013 03:16:41 -0800 (PST) Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id w5sm7891443wif.11.2013.01.10.03.16.40 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Jan 2013 03:16:41 -0800 (PST) Received: by bzg.localdomain (Postfix, from userid 1000) id DD6211C20555; Thu, 10 Jan 2013 12:16:39 +0100 (CET) From: Bastien To: Andreas Merziger Subject: Re: bug#13396: 24.2; org-agenda-include-diary doesn't work while using diary-file-name-prefix and diary-file-name-prefix-function elsewhere / FIX included In-Reply-To: <87wqvmvex0.fsf@filista.fritz.box> (Andreas Merziger's message of "Wed, 09 Jan 2013 11:17:31 +0100") References: <87wqvmvex0.fsf@filista.fritz.box> User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Date: Thu, 10 Jan 2013 12:16:39 +0100 Message-ID: <87pq1dz3s8.fsf@bzg.ath.cx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 13396 Cc: 13396@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Hi Andreas, Thanks for the detailed report and the suggested fix. This is now fixed in Org's repository, it will be fixed in Emacs when Org is merged again in emacs-24 branch. Best regards, -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 13 14:13:00 2013 Received: (at control) by debbugs.gnu.org; 13 Jan 2013 19:13:00 +0000 Received: from localhost ([127.0.0.1]:58535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TuSzL-0007zV-Va for submit@debbugs.gnu.org; Sun, 13 Jan 2013 14:13:00 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:37797 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TuSzJ-0007zO-I5 for control@debbugs.gnu.org; Sun, 13 Jan 2013 14:12:58 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TuSyz-0002OL-OS for control@debbugs.gnu.org; Sun, 13 Jan 2013 14:12:37 -0500 Date: Sun, 13 Jan 2013 14:12:37 -0500 Message-Id: Subject: control message for bug 13396 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 13396 24.2.93 From unknown Sun Jun 22 11:33:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 11 Feb 2013 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator