GNU bug report logs - #11954
24.1.50; Ido in dired buffers

Previous Next

Package: emacs;

Reported by: Marius Hofert <marius.hofert <at> math.ethz.ch>

Date: Tue, 17 Jul 2012 05:59:01 UTC

Severity: normal

Found in version 24.1.50

Done: Leo Liu <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11954 in the body.
You can then email your comments to 11954 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11954; Package emacs. (Tue, 17 Jul 2012 05:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marius Hofert <marius.hofert <at> math.ethz.ch>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 17 Jul 2012 05:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marius Hofert <marius.hofert <at> math.ethz.ch>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.1.50; Ido in dired buffers
Date: Tue, 17 Jul 2012 07:52:15 +0200
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

###

I use dired mode a lot and have recently started to use ido mode. I have the
following settings in .emacs to use ido mode in buffers and for finding files:

(ido-mode 1); enable ido-mode
(setq ido-enable-flex-matching t); flexibly match names via fuzzy matching
(ido-everywhere t); use ido-mode everywhere, in buffers and for finding files
(setq ido-use-filename-at-point 'guess); for find-file-at-point
(setq ido-use-url-at-point t); look for URLs at point
(setq ffap-require-prefix t); get find-file-at-point with C-u C-x C-f (used to
be C-x C-f without ido)

I was wondering if it is possible to use ido mode when copying ('C') or renaming
('R') files in dired mode. I asked on stackoverflow (see
http://stackoverflow.com/questions/11505878/get-ido-in-dired-buffers) and as the
user "assem" pointed out, I should submit this question as a bug report/feature
request. By calling ido-everywhere correctly, 'C' is already working in dired
mode. "assem" also gave a hint towards a solution for 'R':

,----
| The problem is the 'ido property in the symbol for 'dired-do-rename has been specifically set to 'ignore. As a result, inside of ido-read-file-name the (and ...) clause that falls into completing-read fails, and it jumps into the fallback, ultimately to read-file-name-default
`----

and

,----
| Surely they had a very good reason for this, but I will say that doing (put 'dired-do-rename 'ido 'find-file) gives an ido-completing read and had no adverse consequences for me to rename a basic file and directory. I don't recommend this though - instead I would submit a bug report/feature request
`----

It would be great if dired mode ("in ido mode") would work as expected and use
ido when 'R'-ing files. 

Cheers,

Marius

###

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.1.50/etc/DEBUG.


In GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2012-07-13 on lychee, modified by Debian
 (emacs-snapshot package, version 2:20120712-1~ppa1~precise1)
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man'
 '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp'
 '--without-compress-info' '--with-crt-dir=/usr/lib/x86_64-linux-gnu/'
 '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes'
 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN
 -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed
 -znocombreloc' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: ESS[S]

Minor modes in effect:
  gnus-desktop-notify-mode: t
  ess-roxy-mode: t
  TeX-PDF-mode: t
  flyspell-mode: t
  shell-dirtrack-mode: t
  eldoc-mode: t
  yas/global-mode: t
  yas/minor-mode: t
  desktop-save-mode: t
  ido-everywhere: t
  show-paren-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> C-SPC <down> C-e <down> C-w C-/ <up> 
<up> C-a C-SPC <down> <down> C-w C-/ <up> <up> C-SPC 
<down> <down> C-e C-w <backspace> C-x C-s M-> <left> 
<tab> s <return> * SPC <backspace> * SPC x u b n u 
t n <backspace> <backspace> <backspace> <backspace> 
<backspace> b u n u t <backspace> <backspace> <backspace> 
n t u <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <return> * * SPC e m a c s <return> C-y 
<up> <up> <up> <left> <left> <left> <left> <backspace> 
E C-e <down> <down> C-e <return> * * SPC o r g - m 
o d e C-x C-s <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <left> <left> <left> <left> <left> <left> 
<down> <left> <backspace> X C-x C-s C-r b u g C-r C-r 
C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r 
C-r C-r C-r C-r C-r C-r C-r C-r <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> C-e <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<right> <right> <left> <left> <left> <left> <left> 
<left> <left> i n f o SPC <right> <right> <right> <right> 
r e p o r t i n g SPC C-e <left> <left> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> C-x C-s M-> C-x C-s <switch-frame> M-x 
g <return> <return> <return> E <return> q g <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> m b u 
g <tab> <tab> <tab> C-x k <return> y q C-x k <return> 
M-x r e p o <tab> r <tab> <return>

Recent messages:
Reading active file via nndraft...done
Checking new news...done
Mark set [2 times]
No match [2 times]
Buffer *unsent mail* modified; kill anyway? (y or n)  y
Saving /home/mhofert/.newsrc.eld...
Saving file /home/mhofert/.newsrc.eld...
Wrote /home/mhofert/.newsrc.eld
Saving /home/mhofert/.newsrc.eld...done
Making completion list...

Load-path shadows:







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11954; Package emacs. (Thu, 11 Jul 2013 04:53:01 GMT) Full text and rfc822 format available.

Message #8 received at 11954 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: "Kim F. Storm" <storm <at> cua.dk>
Cc: 11954 <at> debbugs.gnu.org, Marius Hofert <marius.hofert <at> math.ethz.ch>
Subject: Re: bug#11954: 24.1.50; Ido in dired buffers
Date: Thu, 11 Jul 2013 12:52:33 +0800
Hi Kim,

On 2012-07-17 13:52 +0800, Marius Hofert wrote:
> It would be great if dired mode ("in ido mode") would work as expected and use
> ido when 'R'-ing files.

I wonder if you remember the rationale behind disabling ido for
dired-do-rename as by this line in ido.el

        (put 'dired-do-rename 'ido 'ignore)

Any harm in turning ido on for it? Thanks.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11954; Package emacs. (Thu, 11 Jul 2013 08:47:02 GMT) Full text and rfc822 format available.

Message #11 received at 11954 <at> debbugs.gnu.org (full text, mbox):

From: Kim Storm <storm <at> cua.dk>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 11954 <at> debbugs.gnu.org, Marius Hofert <marius.hofert <at> math.ethz.ch>
Subject: Re: bug#11954: 24.1.50; Ido in dired buffers
Date: Thu, 11 Jul 2013 10:45:47 +0200
On 2013-07-11 06:52, Leo Liu wrote:
> Hi Kim,
>
> On 2012-07-17 13:52 +0800, Marius Hofert wrote:
>> It would be great if dired mode ("in ido mode") would work as expected and use
>> ido when 'R'-ing files.
> I wonder if you remember the rationale behind disabling ido for
> dired-do-rename as by this line in ido.el
>
>          (put 'dired-do-rename 'ido 'ignore)
>
> Any harm in turning ido on for it? Thanks.
>
> Leo
>
As far as I remember it was disabled because - as you type the new name 
- ido would suggest names of existing files,
and when you hit return, the first suggested file (if any matches the 
new name) is overwritten.

So I think it was too dangerous to enable by default .

Kim




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11954; Package emacs. (Thu, 11 Jul 2013 16:03:02 GMT) Full text and rfc822 format available.

Message #14 received at 11954 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Kim Storm <storm <at> cua.dk>
Cc: 11954 <at> debbugs.gnu.org, Marius Hofert <marius.hofert <at> math.ethz.ch>
Subject: Re: bug#11954: 24.1.50; Ido in dired buffers
Date: Fri, 12 Jul 2013 00:02:30 +0800
On 2013-07-11 16:45 +0800, Kim Storm wrote:
> As far as I remember it was disabled because - as you type the new
> name - ido would suggest names of existing files,
> and when you hit return, the first suggested file (if any matches the
> new name) is overwritten.
>
> So I think it was too dangerous to enable by default .
>
> Kim

Thanks, Kim, for the information.

We don't opt out `dired-do-copy' for ido and people seem to handle it
alright. Also `dired-do-rename' provides confirmation query when
overwriting an existing file.

So I am leaning towards enabling ido for dired-do-rename. WDYT?

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11954; Package emacs. (Thu, 11 Jul 2013 16:37:02 GMT) Full text and rfc822 format available.

Message #17 received at 11954 <at> debbugs.gnu.org (full text, mbox):

From: Kim Storm <storm <at> cua.dk>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 11954 <at> debbugs.gnu.org, Marius Hofert <marius.hofert <at> math.ethz.ch>
Subject: Re: bug#11954: 24.1.50; Ido in dired buffers
Date: Thu, 11 Jul 2013 18:36:14 +0200
On 2013-07-11 18:02, Leo Liu wrote:
> On 2013-07-11 16:45 +0800, Kim Storm wrote:
>> As far as I remember it was disabled because - as you type the new
>> name - ido would suggest names of existing files,
>> and when you hit return, the first suggested file (if any matches the
>> new name) is overwritten.
>>
>> So I think it was too dangerous to enable by default .
>>
>> Kim
> Thanks, Kim, for the information.
>
> We don't opt out `dired-do-copy' for ido and people seem to handle it
> alright. Also `dired-do-rename' provides confirmation query when
> overwriting an existing file.
>
> So I am leaning towards enabling ido for dired-do-rename. WDYT?
>
> Leo
>

IIRC this is first complaint against the default since ido was included, 
so maybe most
users actually prefer the default.  In most cases, rename works better 
without ido.
And I probably got bitten more than once back when I decided to disable it.

The exception might be when you want to move the file to another directory,
then ido may help locating the target directory.

So I would prefer to keep the default
- and maybe even disable ido for dired-do-copy as well  :-)

Kim







Reply sent to Leo Liu <sdl.web <at> gmail.com>:
You have taken responsibility. (Fri, 12 Jul 2013 01:09:02 GMT) Full text and rfc822 format available.

Notification sent to Marius Hofert <marius.hofert <at> math.ethz.ch>:
bug acknowledged by developer. (Fri, 12 Jul 2013 01:09:03 GMT) Full text and rfc822 format available.

Message #22 received at 11954-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Kim Storm <storm <at> cua.dk>
Cc: Marius Hofert <marius.hofert <at> math.ethz.ch>, 11954-done <at> debbugs.gnu.org
Subject: Re: bug#11954: 24.1.50; Ido in dired buffers
Date: Fri, 12 Jul 2013 09:08:36 +0800
Fixed in trunk.

On 2013-07-12 00:36 +0800, Kim Storm wrote:
> So I would prefer to keep the default
> - and maybe even disable ido for dired-do-copy as well  :-)

OK, I just did as suggested.

People who like ido for dired-do-rename and dired-do-copy could use
something along these lines:

(with-eval-after-load 'ido
  ;; Make 'R' and 'C' in dired use ido.
  (put 'dired-do-rename 'ido nil)
  (put 'dired-do-copy 'ido nil))

Leo




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 09 Aug 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.