Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use mark-active instead of region-active-p

  • Loading branch information...
commit e9cc84aff761a2ebd17dc83efb32745c1827a16e 1 parent 91c2d4b
Brian C brianc authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 sws-mode.el
5 sws-mode.el
@@ -39,7 +39,7 @@
39 39 (defun sws-indent-line ()
40 40 "Indents current line"
41 41 (interactive)
42   - (if (region-active-p)
  42 + (if mark-active
43 43 (sws-indent-region)
44 44 (if (sws-at-bot-p)
45 45 (sws-do-indent-line)
@@ -94,7 +94,7 @@
94 94 (defun sws-dendent-line ()
95 95 "De-indents current line"
96 96 (interactive)
97   - (if (region-active-p)
  97 + (if mark-active
98 98 (sws-move-region (region-beginning) (region-end) '-)
99 99 (if (sws-at-bol-p)
100 100 (progn
@@ -128,7 +128,6 @@
128 128
129 129 ;; keymap
130 130 (use-local-map sws-mode-map)
131   - (whitespace-mode)
132 131 (setq major-mode 'sws-mode))
133 132
134 133 (provide 'sws-mode)

0 comments on commit e9cc84a

Please sign in to comment.
Something went wrong with that request. Please try again.