bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dired and arc-mode don't bind C-/ to undo (w/ patch)


From: John Hawkinson
Subject: dired and arc-mode don't bind C-/ to undo (w/ patch)
Date: Mon, 24 Jan 2005 20:58:41 -0500 (EST)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (sparc-sun-solaris2.9, X toolkit)
 of 2004-10-27 on downy.mit.edu
configured using `configure  --with-x-toolkit --sharedstatedir=/var/tmp 
--with-pop --with-hesiod --with-kerberos'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

    I tried to undo an accidental typo ("k") in dired mode,
and discovered that while C-x u and C-_ are bound to dired-undo,
C-/ is not. This is awful confusing since for many users,
C-/ is the most-remembered undo binding, because it is easy
to type.

    arc-mode appears to have the same problem. Here's a patch
to rebind C-/ locally in dired and arc-mode. I think the 
current behavior is confusing and undesirable, and I do not
think anyone is depending on it.

Thanks.

--jhawk@mit.edu
  John Hawkinson

diff -ur ./arc-mode.el /tmp/emacs/arc-mode.el
--- ./arc-mode.el       Wed Oct 27 00:29:24 2004
+++ /tmp/emacs/arc-mode.el      Mon Jan 24 20:53:38 2005
@@ -605,7 +605,8 @@
       (progn
        ;; Not a nice "solution" but it'll have to do
        (define-key archive-mode-map "\C-xu" 'archive-undo)
-       (define-key archive-mode-map "\C-_" 'archive-undo))
+       (define-key archive-mode-map "\C-_" 'archive-undo)
+       (define-key archive-mode-map [?\C-/] 'archive-undo))
     (substitute-key-definition 'undo 'archive-undo
                               archive-mode-map global-map))
 
diff -ur ./dired.el /tmp/emacs/dired.el
--- ./dired.el  Wed Oct 27 00:29:24 2004
+++ /tmp/emacs/dired.el Mon Jan 24 20:54:01 2005
@@ -979,6 +979,7 @@
     (define-key map "\177" 'dired-unmark-backward)
     (define-key map "\C-_" 'dired-undo)
     (define-key map "\C-xu" 'dired-undo)
+    (define-key map [?\C-/] 'dired-undo)
 
     ;; Make menu bar items.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]