all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Hawkinson <jhawk@MIT.EDU>
Subject: dired and arc-mode don't bind C-/ to undo (w/ patch)
Date: Mon, 24 Jan 2005 20:58:41 -0500 (EST)	[thread overview]
Message-ID: <200501250158.j0P1wf7c005537@mint-square.mit.edu> (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.

             reply	other threads:[~2005-01-25  1:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-25  1:58 John Hawkinson [this message]
2005-01-26  0:03 ` dired and arc-mode don't bind C-/ to undo (w/ patch) Richard Stallman
2005-01-26  0:07   ` John Hawkinson

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200501250158.j0P1wf7c005537@mint-square.mit.edu \
    --to=jhawk@mit.edu \
    /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 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.