From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Merziger Newsgroups: gmane.emacs.bugs Subject: 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 Date: Wed, 09 Jan 2013 11:17:31 +0100 Message-ID: <87wqvmvex0.fsf@filista.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1357750264 24662 80.91.229.3 (9 Jan 2013 16:51:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2013 16:51:04 +0000 (UTC) To: 13396@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 09 17:51:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tsys3-0006bV-4o for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jan 2013 17:51:19 +0100 Original-Received: from localhost ([::1]:47259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsyrn-0005dQ-CS for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jan 2013 11:51:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsyrh-0005ai-I9 for bug-gnu-emacs@gnu.org; Wed, 09 Jan 2013 11:51:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tsyrc-0005lM-V7 for bug-gnu-emacs@gnu.org; Wed, 09 Jan 2013 11:50:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsyrc-0005lH-RP for bug-gnu-emacs@gnu.org; Wed, 09 Jan 2013 11:50:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tsyrm-00050d-LQ for bug-gnu-emacs@gnu.org; Wed, 09 Jan 2013 11:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Merziger Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jan 2013 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13396 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135775025919242 (code B ref -1); Wed, 09 Jan 2013 16:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jan 2013 16:50:59 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69544 Archived-At: 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)