From 0ef4b0c84ea93141bb8cc13150c324369f7e2c3d Mon Sep 17 00:00:00 2001 From: MrBones118 Date: Thu, 26 Feb 2015 08:40:16 +0000 Subject: [PATCH] DEL now deletes a region, consistent with other emacs modes Hitting delete/backspace previously deleted only a single character, even if the region was active. This is not consistent with how other modes work. The cause was a requirement for delete-selection-mode to be active in order to delete the region. Removed this check for delete-selection-mode --- haskell-indentation.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/haskell-indentation.el b/haskell-indentation.el index cf065d7eb..243e376ee 100644 --- a/haskell-indentation.el +++ b/haskell-indentation.el @@ -418,8 +418,7 @@ Preserves indentation and removes extra whitespace" (delete-char n) (on-parse-error (delete-char n) (cond - ((and delete-selection-mode - mark-active + ((and mark-active (not (= (point) (mark)))) (delete-region (mark) (point))) ((and (eq haskell-literate 'bird)