emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Agenda items refer to the wrong headline
Date: Tue, 08 Apr 2014 09:07:23 -0400	[thread overview]
Message-ID: <87y4zggeb8.fsf@gmail.com> (raw)
In-Reply-To: CAGk6a7=iPt99BO+OW8snG4KNtKzF8Y-assyxuUxYYO-UgNNYkg@mail.gmail.com

Fletcher Charest <fletcher.charest@gmail.com> writes:

> Dear all,
>
> I am confronted to a weird issue with the agenda. I would like to know if you can reproduce this bug. First of all, my emacs-version is:
>
> GNU Emacs 24.3.1 (i386-mingw-nt5.1.2600) of 2013-03-17 on MARVIN
>
> I installed Org using ELPA (org repository), my org-version is:
>
> Org-mode version 8.2.5h (8.2.5h-94-g91175a-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20140331/)
>
> For this test, Org was the only package installed outside vanilla Emacs packages. I have no problem with the version of Org bundled with my Emacs (which is Org-mode version 7.9.3f
> (release_7.9.3f-17-g7524ef @ c:/Program Files/Emacs 24.3/lisp/org/). I do not load my init.el file.
>
> For the test I used a simple Org file:
>
> * TODO task 1                                :pro:
> SCHEDULED: <2014-04-01 mar.>
> * TODO task 2                                :perso:
> SCHEDULED: <2014-04-02 mer.>
>
> Then, I displayed the agenda for this file, and filtered it for the 'perso' tag using '/'. I attached the output for reference.
>
> The problem is that some tasks in the agenda refers to the wrong headlines in the main file. This is more obvious when activating follow mode: for example, if I put the cursor on the
> line marked '1' in the attached file, it refers to line '2' in the main file, which is the wrong line. This is obviously a bug, and of course very problematic.
>
> Can you reproduce this?! I hope I provided every possible piece of information.
>

I tried a bit and I couldn't reproduce it. The agenda
lines are properly linked to the file lines afaict in this version:

Org-mode version 8.2.5h (release_8.2.5h-667-g971dc4 @ /home/nick/elisp/org-mode/lisp/)
GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of
2013-07-14

But I *did* reproduce it with latest:
Org-mode version 8.2.5h (release_8.2.5h-888-g798bb8 @
/home/nick/src/emacs/org/org-mode/lisp/)

I did 'emacs -q -l /path/to/minimal.el' and then
got an agenda, put it in follow mode, searched for the perso
tag and went to that entry:

C-c a a F / <TAB> perso <RET> n

and got the wrong line in the main file. The minimal.el is as follows:

--8<---------------cut here---------------start------------->8---
;;; -*- mode: emacs-lisp -*-

(add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))

(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))

(require 'org-loaddefs)

(setq debug-on-error t)
(setq debug-on-quit t)
(setq eval-expression-print-length nil)
(setq eval-expression-print-level nil)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)

(setq org-agenda-files '("~/src/org/fletcher-charest-agenda.org"))
--8<---------------cut here---------------end--------------->8---


and the agenda file ~/src/org/fletcher-charest-agenda.org is

--8<---------------cut here---------------start------------->8---
* TODO task 1 													   :pro:
SCHEDULED: <2014-04-01 mar.>
* TODO task 2 							      :perso:
SCHEDULED: <2014-04-02 mer.>
Org-mode version 8.2.5h (release_8.2.5h-888-g798bb8 @ /home/nick/src/emacs/org/org-mode/lisp/)
--8<---------------cut here---------------end--------------->8---

-- 
Nick

  parent reply	other threads:[~2014-04-08 13:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-06  4:23 Agenda items refer to the wrong headline Fletcher Charest
2014-04-08 11:53 ` Fletcher Charest
2014-04-17  0:32   ` Bastien
2014-04-08 13:07 ` Nick Dokos [this message]
2014-04-08 20:45   ` Fletcher Charest
2014-04-09  3:54     ` Nick Dokos
2014-04-09 13:52       ` Nick Dokos
2014-04-09 14:36         ` Fletcher Charest
2014-04-10  3:24           ` Nick Dokos
2014-04-14 16:24             ` Fletcher Charest
2014-04-10  3:33   ` Samuel Wales
2014-04-16 19:05   ` Bastien
2014-04-16 22:37     ` Bastien
2014-04-17  0:33     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4zggeb8.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).