From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: Bug: org-agenda-diary-entry messes with datetree in org-agenda-diary-file [8.3beta (release_8.3beta-785-gb5d9f4 @ /home/grfz/src/org-mode/lisp/)] Date: Sun, 01 Feb 2015 22:23:47 +0100 Message-ID: <87mw4xjpgc.fsf@boo.workgroup> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI1zt-0000qk-5x for emacs-orgmode@gnu.org; Sun, 01 Feb 2015 16:24:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YI1zp-0002JT-Ky for emacs-orgmode@gnu.org; Sun, 01 Feb 2015 16:24:01 -0500 Received: from mout.gmx.net ([212.227.17.21]:58979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI1zp-0002JF-At for emacs-orgmode@gnu.org; Sun, 01 Feb 2015 16:23:57 -0500 Received: from boo.workgroup ([87.185.185.83]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LzHZ7-1Xeekc1TZB-014RkC for ; Sun, 01 Feb 2015 22:23:55 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ Dear org-mode developers, adding a date to the datetree in the org-agenda-diary-file produces a mess: - emacs-snapshot -Q -L /home/grfz/src/org-mode/lisp/ -nw =E2=80=93eval (set= q org-agenda-diary-file "/tmp/diary.org") - Mx org-agenda - a - i - d - error gives: >>>>>>>>>>>>>>> * 2015 ** 2015-02 Februar <2015-02-01 So>*** 2015-02-01 Sonntag **** error <<<<<<<<<<<<<<<<<<<< instead of: >>>>>>>>>>>>>>> * 2015 ** 2015-02 Februar *** 2015-02-01 Sonntag **** error <2015-02-01 So> <<<<<<<<<<<<<<<<<<<< This is with: Emacs : GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-02-01 on boo Package: Org-mode version 8.3beta (release_8.3beta-785-gb5d9f4 @ /home/grfz= /src/org-mode/lisp/) I did a git bisect and got: a1116aa54ee4befd8fa52e3f92207db200ebfd59 is the first bad commit commit a1116aa54ee4befd8fa52e3f92207db200ebfd59 Author: Nicolas Goaziou Date: Fri Jan 30 10:23:47 2015 +0100 Fix =E2=80=98org-agenda-insert-diary-make-new-entry=E2=80=99 =20=20=20=20 * lisp/org-agenda.el (org-agenda-insert-diary-make-new-entry): Ensure point is at a real body line and not in front of meta data, so regular contents can be inserted safely after a call to this function. =20=20=20=20 Reported-by: Samuel Loury :040000 040000 c02a04761fd8b4f2b518852afca3b44f4f0642ae 60b6dc4cf3232b8059b= 8e8c778949d8b466a2e75 M lisp Thanks for your attention, Gregor