From: Michael Brand <michael.ch.brand@gmail.com>
To: Leo Liu <sdl.web@gmail.com>
Cc: 11861@debbugs.gnu.org
Subject: bug#11861: 24.1.1; ido-mode and interactive f
Date: Tue, 9 Jul 2013 22:28:53 +0200 [thread overview]
Message-ID: <CALn3zogs5vs2N8ZPamu8rJSrjjLCxSsGB9P=+-bT4yTgHzatyA@mail.gmail.com> (raw)
In-Reply-To: <m1wqozhi16.fsf@gmail.com>
Hi Leo
On Tue, Jul 9, 2013 at 5:25 PM, Leo Liu <sdl.web@gmail.com> wrote:
> On 2013-07-09 22:08 +0800, Michael Brand wrote:
>> in the file test.el and invoked from the directory where the file is
>> located) shows test.el highlighted as the first ido-suggestion in the
>> modeline prompt "File to load:". That is the file of the current
>> buffer test.el, as expected.
>>
>> But Emacs 24.1, 24.2 and 24.3 show the alphabetically first file in
>> the directory, highlighted as the first ido-suggestion in the prompt.
>
> I loaded a version of ido.el from 28 Feb 2011 which is a few days before
> the release of 23.3 and still couldn't reproduce this bug. I have 23.4
> installed and couldn't reproduce either.
?
There is no such bug in 23.3 and 23.4, both suggest test.el as
expected. I can reproduce the issue with 24.1, 24.2 and 24.3, these do
not suggest test.el. Did you try one of the latter with my example
command line with -q and my example file? I also assume you tried
while having additional files in the same directory with names
alphabetically before test.el.
> But from reading the code, the behaviour as you described in 23.3 would
> be wrong anyway.
> You didn't specify any default filename in the interactive form,
My previous interactive form in test.el seems not to be a good
example, so let me suggest to replace it with test_2.el with an
automated "M-x load-file":
emacs -q test_2.el -f eval-buffer
test_2.el:
;;-----------------------------------------------------------
(ido-mode 1)
(ido-everywhere 1)
(call-interactively 'load-file)
;;-----------------------------------------------------------
With 23.3 ido suggests the current buffer which I then can select,
with 24.1, 24.2 and 24.3 ido suggest the alphabetically first file of
the current directory, so I have to type the current buffer's file
name again.
> there is no reason for ido to pick test.el as the default.
Ok, for "M-x load-file" one could argue to use "M-x eval-buffer"
instead. But for "M-x org-babel-load-file" the ido suggestion was very
useful for me as I see no alternative except writing my own wrapper
for 24.1, 24.2 and 24.3 with the function current-buffer.
Michael
next prev parent reply other threads:[~2013-07-09 20:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 14:53 bug#11861: 24.1.1; ido-mode and interactive f Michael Brand
2013-07-09 5:28 ` Leo Liu
2013-07-09 14:08 ` Michael Brand
2013-07-09 15:25 ` Leo Liu
2013-07-09 20:28 ` Michael Brand [this message]
2013-07-10 2:48 ` Leo Liu
2013-07-10 13:20 ` Michael Brand
2013-07-11 3:13 ` Leo Liu
2013-07-11 7:02 ` Michael Brand
2013-07-11 15:42 ` Leo Liu
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALn3zogs5vs2N8ZPamu8rJSrjjLCxSsGB9P=+-bT4yTgHzatyA@mail.gmail.com' \
--to=michael.ch.brand@gmail.com \
--cc=11861@debbugs.gnu.org \
--cc=sdl.web@gmail.com \
/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.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).