From 7443aaa688f3ef8014d2f9472c018982219eac97 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 9 Jul 2001 00:49:22 +0000 Subject: [PATCH] Extended the kludge to interoperate with the delsel and pending-del packages wrt to the new function `c-electric-delete-forward'. --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/cc-cmds.el | 2 ++ 2 files changed, 8 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6a67be5a1ac..289d6af3cd2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +Mon Jul 09 2001 Martin Stjernholm + + * cc-cmds.el: Extended the kludge to interoperate with the + delsel and pending-del packages wrt to the new function + `c-electric-delete-forward'. + 2001-07-08 Stefan Monnier * emacs-lisp/easy-mmode.el (define-minor-mode): Use eval-after-load diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 7b71b83a825..273b7c55652 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -1202,6 +1202,8 @@ sentence motion in or near comments and multiline strings." (put 'c-electric-delete 'pending-delete 'supersede) ; pending-del (put 'c-electric-backspace 'delete-selection 'supersede) ; delsel (put 'c-electric-backspace 'pending-delete 'supersede) ; pending-del +(put 'c-electric-delete-forward 'delete-selection 'supersede) ; delsel +(put 'c-electric-delete-forward 'pending-delete 'supersede) ; pending-del ;; This is used by indent-for-comment to decide how much to indent a -- 2.39.2