Tuesday, October 4, 2011

Emacs Poll on the DEL key

This might look a bit weird for some OS users but if you want to influence Emacs key chord behaviour implementation for the DEL key, now is the time to get involved.  I quote partially from the post by Dr. Richard Stallman

In Emacs 24, now in pretest, a change is being considered for ASCII DEL (on most keyboards, the Backspace key) and the Delete function key.  The change affects the case of an active region that was not dragged with the mouse.  The change is that these commands would delete the region, rather than just one character as now.

Read the post and thread in full (search for poll) and drop your feedback to the asked questions to the mail id listed in the post.  And spread the word.

2 comments:

ashawley said...

Wasn't this asked last year by TTN with the subject "d-s-m default"?

http://lists.gnu.org/archive/html/gnu-emacs-sources/2010-03/msg00012.html

gavenkoa said...

Excellent! Many people frustrated with old Emacs behavior.


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(message "highlight selected text")

;; 1/-1, when the mark is active, the region is highlighted.
(transient-mark-mode 1)
(delete-selection-mode 1) ; 1/-1

;; Order of next items is important, (assignment must done before pc-selection-mode enabled).
(require 'pc-select)
(setq pc-select-selection-keys-only t) ; To avoid some key bindings as F6, etc.
(setq pc-select-meta-moves-sexps t)
(cond
((= emacs-major-version 21) (pc-selection-mode))
((>= emacs-major-version 22) (pc-selection-mode 1))
)

(when (eq window-system 'x)
(setq x-select-enable-clipboard t) ; for Emacs 21.2.1 and newer
)