[Top][All Lists]

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

Re: keybinding to duplicate the current line.

From: Deniz Dogan
Subject: Re: keybinding to duplicate the current line.
Date: Tue, 19 Jan 2010 16:29:10 +0100

2010/1/19 Richard Stallman <address@hidden>:
>    If someone decides to look into this matter, could that person also
>    see if there are any modes that make C-g part of any key sequences?
> Would you like to check for these problematical modes?
> We could use your help.

I'm on a Windows system at the moment and I don't know how to properly
install grep and other useful tools for the task, but having searched
through all .el files in the "lisp" directory, I found the following
bindings. Some of them are there to imitate other editors, so I guess
they are okay, but these are the ones that I _personally_ believe
could need some reviewing from more experienced Emacs hackers than

(define-key viper-insert-diehard-map "\C-g" 'self-insert-command)
(define-key viper-vi-basic-map "\C-c\C-g" 'viper-info-on-file)
(define-key viper-vi-diehard-map "\C-g" 'viper-info-on-file)

  (define-key wordstar-mode-map "\C-g" 'delete-char)

    (?\C-g . feedmail-message-action-edit)

  "\C-c\C-m\C-g"        mh-mh-compose-anon-ftp

    (define-key map "\C-c\C-m\C-g" 'makefile-gmake-mode)


  (if (featurep 'xemacs) ; `... C-g' not allowed in XEmacs
      (define-key vhdl-mode-map "\C-c\C-p\M-g" 'vhdl-port-paste-generic-map)
    (define-key vhdl-mode-map "\C-c\C-p\C-g" 'vhdl-port-paste-generic-map))

  (define-key vhdl-mode-map "\C-c\C-i\C-g" 'vhdl-indent-group)
  (define-key vhdl-mode-map "\C-c\C-a\C-g" 'vhdl-align-group)
  (define-key vhdl-mode-map "\C-c\C-f\C-g" 'vhdl-fill-group)
  (define-key vhdl-mode-map "\C-c\C-l\C-g" 'goto-line)

These were all found using a simple plain-text search for "\C-g", so I
may very well have missed a lot of them. I think the findings in
vhdl-mode.el are the most interesting, as the author clearly knew what
he/she was doing, making a special case of XEmacs. :)

Deniz Dogan

reply via email to

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