From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yagnesh Raghava Yakkala Subject: Re: fast navigation Date: Fri, 23 Dec 2011 09:21:06 +0900 Message-ID: <874nwsuoi5.fsf@live.com> References: <4EE9F89D.1060301@sergio.spb.ru> <20111215151318.GC12790@soloJazz.com> <4EEA9293.50506@sergio.spb.ru> <874nx15ayq.fsf@ericabrahamsen.net> <4EEBE2FE.2020009@sergio.spb.ru> <87wr9tzxgu.fsf@ericabrahamsen.net> <4EEE1D93.8070008@sergio.spb.ru> <87k45tz5yp.fsf@ericabrahamsen.net> <4EEFC683.7020707@sergio.spb.ru> <874nwvfzjw.fsf@ericabrahamsen.net> <4EF07E7B.3000807@sergio.spb.ru> <87k45qrh9x.fsf@altern.org> <87iplacapy.fsf@live.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rdst2-0008RB-Aa for emacs-orgmode@gnu.org; Thu, 22 Dec 2011 19:21:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rdst0-0006D9-SS for emacs-orgmode@gnu.org; Thu, 22 Dec 2011 19:21:24 -0500 Received: from lo.gmane.org ([80.91.229.12]:50593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rdst0-0006D5-Jj for emacs-orgmode@gnu.org; Thu, 22 Dec 2011 19:21:22 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rdssz-0004KV-K2 for emacs-orgmode@gnu.org; Fri, 23 Dec 2011 01:21:21 +0100 Received: from raghava-note.lowtem.hokudai.ac.jp ([133.87.217.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Dec 2011 01:21:21 +0100 Received: from yagnesh by raghava-note.lowtem.hokudai.ac.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Dec 2011 01:21:21 +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 Hello, Leo Alekseyev writes: > The patch indeed fixes the problem, but has the following side effect: > the org-goto prompt now acquires a (possibly invalid) default > location, e.g. after I go to node "foo" in some file (file1), and do > an org-goto in some other file (file2), it will give me "foo" as a > default location, even though there's no node "foo" in file2. This is > mostly a cosmetic bug, but a bug nonetheless, because the signature of > the function in the patch is > (org-refile-get-location &optional PROMPT DEFAULT-BUFFER NEW-NODES > NO-EXCLUDE) and we are in fact passing nil to default-buffer. I would > expect this to suppress the showing of the default prompt. It seems this bug is already present there and not introduced by the patch I posted. I think possible solutions are: 1) writing a function similer to org-refile-get-location to be called only by org-goto. 2) modifying org-refile-get-location so that it recognize it is called by org-goto and acts accordingly. Its also possible I am totally wrong here because of my zero+ elisp knowledge. > > > On Wed, Dec 21, 2011 at 8:31 AM, Yagnesh Raghava Yakkala > wrote: >> Hi, >> >> Leo Alekseyev writes: >> >>> I recorded the bug in a short screencast.  emacs was started with -Q; >>> in the second part of the screencast it was restarted with a config >>> file that only included ido mode >>> >>> http://www.youtube.com/watch?v=z6nDUh0RH_c&feature=youtu.be >>> >> >> The attached highly unrelible online PATCH fixes the problem. I dont know >> it has any side effects. >> >> >> >> >> -- >> YYR >> > > -- YYR