* dired and arc-mode don't bind C-/ to undo (w/ patch)
@ 2005-01-25 1:58 John Hawkinson
2005-01-26 0:03 ` Richard Stallman
0 siblings, 1 reply; 3+ messages in thread
From: John Hawkinson @ 2005-01-25 1:58 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: dired and arc-mode don't bind C-/ to undo (w/ patch)
2005-01-25 1:58 dired and arc-mode don't bind C-/ to undo (w/ patch) John Hawkinson
@ 2005-01-26 0:03 ` Richard Stallman
2005-01-26 0:07 ` John Hawkinson
0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2005-01-26 0:03 UTC (permalink / raw)
Cc: bug-gnu-emacs
I will fix this using command remapping.
Do you know of any other modes that need similar changes?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: dired and arc-mode don't bind C-/ to undo (w/ patch)
2005-01-26 0:03 ` Richard Stallman
@ 2005-01-26 0:07 ` John Hawkinson
0 siblings, 0 replies; 3+ messages in thread
From: John Hawkinson @ 2005-01-26 0:07 UTC (permalink / raw)
Cc: bug-gnu-emacs
Richard Stallman <rms@gnu.org> wrote on Tue, 25 Jan 2005
at 19:03:48 -0500 in <E1Ctaey-0002oP-Tr@fencepost.gnu.org>:
> I will fix this using command remapping.
That sounds like it might be a more general solution, thanks.
> Do you know of any other modes that need similar changes?
Those are the only two that I know of. I only encountered dired, and
looked around and then found arc-mode as well. It is possible that
there are other cases that don't use (define-key), but I think those
are the only two cases that do.
Thanks.
--jhawk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-26 0:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25 1:58 dired and arc-mode don't bind C-/ to undo (w/ patch) John Hawkinson
2005-01-26 0:03 ` Richard Stallman
2005-01-26 0:07 ` John Hawkinson
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.