aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorDan Nicolaescu2008-08-06 14:05:54 +0000
committerDan Nicolaescu2008-08-06 14:05:54 +0000
commit75e0af775148aaaadf8f402fc469934cbf58ac64 (patch)
treeb74b1fc5e489646467ad048dd6068a3fc3210510 /lisp/progmodes
parent29428bb856ca0efed4a1c95261e8bfc798d9e7be (diff)
downloademacs-75e0af775148aaaadf8f402fc469934cbf58ac64.tar.gz
emacs-75e0af775148aaaadf8f402fc469934cbf58ac64.zip
* progmodes/vera-mode.el (vera-electric-tab):
* progmodes/vhdl-mode.el (vhdl-electric-tab): Make TAB indent region when active.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/vera-mode.el4
-rw-r--r--lisp/progmodes/vhdl-mode.el3
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el
index b8c5850cf6a..4a046d953c8 100644
--- a/lisp/progmodes/vera-mode.el
+++ b/lisp/progmodes/vera-mode.el
@@ -1261,7 +1261,9 @@ If `vera-intelligent-tab' is nil, always indent line."
1261 (interactive "*P") 1261 (interactive "*P")
1262 (if vera-intelligent-tab 1262 (if vera-intelligent-tab
1263 (progn 1263 (progn
1264 (cond ((memq (char-syntax (preceding-char)) '(?w ?_)) 1264 (cond ((and (not (featurep 'xemacs)) (use-region-p))
1265 (vera-indent-region (region-beginning) (region-end) nil))
1266 ((memq (char-syntax (preceding-char)) '(?w ?_))
1265 (let ((case-fold-search t) 1267 (let ((case-fold-search t)
1266 (case-replace nil) 1268 (case-replace nil)
1267 (hippie-expand-only-buffers 1269 (hippie-expand-only-buffers
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 2ff6f8f1315..e4de2380af0 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -7004,6 +7004,9 @@ else indent `correctly'."
7004 (interactive "*P") 7004 (interactive "*P")
7005 (vhdl-prepare-search-2 7005 (vhdl-prepare-search-2
7006 (cond 7006 (cond
7007 ;; indent region if region is active
7008 ((and (not (featurep 'xemacs)) (use-region-p))
7009 (vhdl-indent-region (region-beginning) (region-end) nil))
7007 ;; expand word 7010 ;; expand word
7008 ((= (char-syntax (preceding-char)) ?w) 7011 ((= (char-syntax (preceding-char)) ?w)
7009 (let ((case-fold-search (not vhdl-word-completion-case-sensitive)) 7012 (let ((case-fold-search (not vhdl-word-completion-case-sensitive))