unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* `wdired-change-to-wdired-mode' is not on any key
@ 2007-05-03 14:49 Daniel Brockman
  2007-05-03 16:08 ` Drew Adams
  2007-05-03 18:11 ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: Daniel Brockman @ 2007-05-03 14:49 UTC (permalink / raw)
  To: emacs-devel

Most people seem to put this command on `r' (as suggested in
wdired.el), but I have also seen people put it on `C-x C-q'.

The newly-installed Emacs guided tour[1] mentions wdired as
the very first example of the power of text manipulation.
It is a little embarrasing that it has to say it like this:

    `M-x dired' invokes Dired, the file manager mode, on a
    directory of your choice. Then `M-x
    wdired-change-to-wdired-mode' switches to Editable Dired
    mode, which looks like this [...]

I suggest binding `r' in `dired-mode-map' to this command.

-- 
Daniel Brockman <daniel@brockman.se>

[1]  http://www.gnu.org/software/emacs/tour/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: `wdired-change-to-wdired-mode' is not on any key
  2007-05-03 14:49 `wdired-change-to-wdired-mode' is not on any key Daniel Brockman
@ 2007-05-03 16:08 ` Drew Adams
  2007-05-03 16:33   ` Johan Bockgård
  2007-05-03 16:51   ` Andreas Schwab
  2007-05-03 18:11 ` Stefan Monnier
  1 sibling, 2 replies; 8+ messages in thread
From: Drew Adams @ 2007-05-03 16:08 UTC (permalink / raw)
  To: emacs-devel

> I suggest binding `r' in `dired-mode-map' to this command.

And I'd suggest binding `r', after the release, to a
`dired-rename-this-file' command, such as that in dired+.el:

Code: http://www.emacswiki.org/cgi-bin/wiki/dired%2b.el
Description: http://www.emacswiki.org/cgi-bin/wiki/DiredPlus

IOW, I'd suggest some bindings for commands that treat only the current
line's file. Some of these would be lowercase equivalents for some existing
`dired-do-*' key bindings. Dired+ uses the following key bindings and
`*-this-file' commands, for instance:

b    byte-compile
r    rename
y    relsymlink (but Emacs 22 already uses y)
z    compress
M-u  upcase
M-l  downcase
M-c  capitalize
M-m  chmod
M-p  print
C-k  delete

(There are also "this-file" commands for copy, chgrp, chown, load,
shell-command, symlink, and hardlink, but they are not bound to keys.)

Dired-x uses Y for `dired-do-relsymlink', which is why I use y for the
this-file version. In light of this, I'd also propose moving
`dired-show-file-type' to a key other than y (or else moving
`dired-do-relsymlink' so a key other than Y).

Yes, the uppercase `dired-do-*' bindings will also treat the current line's
file, but they don't do that if there are marked files. IOW, with the
additional lowercase bindings, you can leave files marked and still act on
another file.

All I'm really suggesting now is to reserve the lowercase equivalents of
existing uppercase bindings for possible future this-file analogs.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: `wdired-change-to-wdired-mode' is not on any key
  2007-05-03 16:08 ` Drew Adams
@ 2007-05-03 16:33   ` Johan Bockgård
  2007-05-03 16:39     ` Drew Adams
  2007-05-03 18:42     ` Davis Herring
  2007-05-03 16:51   ` Andreas Schwab
  1 sibling, 2 replies; 8+ messages in thread
From: Johan Bockgård @ 2007-05-03 16:33 UTC (permalink / raw)
  To: emacs-devel

"Drew Adams" <drew.adams@oracle.com> writes:

> Yes, the uppercase `dired-do-*' bindings will also treat the current line's
> file, but they don't do that if there are marked files. IOW, with the
> additional lowercase bindings, you can leave files marked and still act on
> another file.

You can already do that.

    R runs the command dired-do-rename [...]
    Rename current file or all marked (or next ARG) files.

It operates on the current file when ARG = 1.

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: `wdired-change-to-wdired-mode' is not on any key
  2007-05-03 16:33   ` Johan Bockgård
@ 2007-05-03 16:39     ` Drew Adams
  2007-05-03 17:06       ` Daniel Brockman
  2007-05-03 18:42     ` Davis Herring
  1 sibling, 1 reply; 8+ messages in thread
From: Drew Adams @ 2007-05-03 16:39 UTC (permalink / raw)
  To: emacs-devel

> > Yes, the uppercase `dired-do-*' bindings will also treat the 
> > current line's file, but they don't do that if there are
> > marked files. IOW, with the additional lowercase bindings,
> > you can leave files marked and still act on another file.
> 
> You can already do that.  R ... operates on the current file
> when ARG = 1.

Sure. So think of `r' as a shortcut for `C-1 R'.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: `wdired-change-to-wdired-mode' is not on any key
  2007-05-03 16:08 ` Drew Adams
  2007-05-03 16:33   ` Johan Bockgård
@ 2007-05-03 16:51   ` Andreas Schwab
  1 sibling, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2007-05-03 16:51 UTC (permalink / raw)
  To: Drew Adams; +Cc: emacs-devel

"Drew Adams" <drew.adams@oracle.com> writes:

> Yes, the uppercase `dired-do-*' bindings will also treat the current line's
> file, but they don't do that if there are marked files. IOW, with the
> additional lowercase bindings, you can leave files marked and still act on
> another file.

`1 R', etc., does it too.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: `wdired-change-to-wdired-mode' is not on any key
  2007-05-03 16:39     ` Drew Adams
@ 2007-05-03 17:06       ` Daniel Brockman
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Brockman @ 2007-05-03 17:06 UTC (permalink / raw)
  To: emacs-devel

Drew,

>>> Yes, the uppercase `dired-do-*' bindings will also treat the 
>>> current line's file, but they don't do that if there are
>>> marked files. IOW, with the additional lowercase bindings,
>>> you can leave files marked and still act on another file.
>>
>> You can already do that.  R ... operates on the current file
>> when ARG = 1.
>
> Sure. So think of `r' as a shortcut for `C-1 R'.

There is already a shortcut for that: `1 R'.

-- 
Daniel Brockman <daniel@brockman.se>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: `wdired-change-to-wdired-mode' is not on any key
  2007-05-03 14:49 `wdired-change-to-wdired-mode' is not on any key Daniel Brockman
  2007-05-03 16:08 ` Drew Adams
@ 2007-05-03 18:11 ` Stefan Monnier
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2007-05-03 18:11 UTC (permalink / raw)
  To: Daniel Brockman; +Cc: emacs-devel

> Most people seem to put this command on `r' (as suggested in
> wdired.el), but I have also seen people put it on `C-x C-q'.

I intended to put it on C-x C-q.  I can't remember what made me not do
that, sadly.


        Stefan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: `wdired-change-to-wdired-mode' is not on any key
  2007-05-03 16:33   ` Johan Bockgård
  2007-05-03 16:39     ` Drew Adams
@ 2007-05-03 18:42     ` Davis Herring
  1 sibling, 0 replies; 8+ messages in thread
From: Davis Herring @ 2007-05-03 18:42 UTC (permalink / raw)
  To: emacs-devel, Johan Bockgård

> You can already do that.
>
>     R runs the command dired-do-rename [...]
>     Rename current file or all marked (or next ARG) files.
>
> It operates on the current file when ARG = 1.

Or if ARG is just "C-u"; for some reason I find it easiest to use the
non-numeric prefix argument to mean "this one" (as opposed, I guess, to
"this 1").

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-05-03 18:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03 14:49 `wdired-change-to-wdired-mode' is not on any key Daniel Brockman
2007-05-03 16:08 ` Drew Adams
2007-05-03 16:33   ` Johan Bockgård
2007-05-03 16:39     ` Drew Adams
2007-05-03 17:06       ` Daniel Brockman
2007-05-03 18:42     ` Davis Herring
2007-05-03 16:51   ` Andreas Schwab
2007-05-03 18:11 ` Stefan Monnier

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).