emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yagnesh Raghava Yakkala <yagnesh@live.com>
To: emacs-orgmode@gnu.org
Subject: Re: fast navigation
Date: Fri, 23 Dec 2011 09:21:06 +0900	[thread overview]
Message-ID: <874nwsuoi5.fsf@live.com> (raw)
In-Reply-To: CADzxs1n=rYb42Pnew4BgWbB6MeW0EEP2o-r06o32bJd8QTJ22g@mail.gmail.com


Hello,

Leo Alekseyev <dnquark@gmail.com> 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
> <yagnesh@live.com> wrote:
>> Hi,
>>
>> Leo Alekseyev <dnquark@gmail.com> 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

      reply	other threads:[~2011-12-23  0:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-15 13:39 fast navigation sergio
2011-12-15 15:13 ` Juan Pechiar
2011-12-16  0:36   ` sergio
2011-12-16  5:42     ` Eric Abrahamsen
2011-12-17  0:31       ` sergio
2011-12-18 15:54         ` Eric Abrahamsen
2011-12-18 17:06           ` sergio
2011-12-19  1:49             ` Eric Abrahamsen
2011-12-19 23:19               ` sergio
2011-12-20  7:54                 ` Eric Abrahamsen
2011-12-20 12:02                   ` sergio
2011-12-20 12:24                   ` sergio
2011-12-20 18:10                     ` Leo Alekseyev
2011-12-20 22:27                     ` Bastien
2011-12-21  6:43                       ` Leo Alekseyev
2011-12-21 13:31                         ` Yagnesh Raghava Yakkala
2011-12-22 21:45                           ` Leo Alekseyev
2011-12-23  0:21                             ` Yagnesh Raghava Yakkala [this message]

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=874nwsuoi5.fsf@live.com \
    --to=yagnesh@live.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).