* progmodes/vera-mode.el (vera-electric-tab):
* progmodes/vhdl-mode.el (vhdl-electric-tab): Make TAB indent region when active.
This commit is contained in:
parent
29428bb856
commit
75e0af7751
3 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-08-06 Reto Zimmermann <reto@gnu.org>
|
||||
|
||||
* progmodes/vera-mode.el (vera-electric-tab):
|
||||
* progmodes/vhdl-mode.el (vhdl-electric-tab): Make TAB indent
|
||||
region when active.
|
||||
|
||||
2008-08-06 Kenichi Handa <handa@m17n.org>
|
||||
|
||||
* faces.el (face-valid-attribute-values): Fix handling the value
|
||||
|
|
|
@ -1261,7 +1261,9 @@ If `vera-intelligent-tab' is nil, always indent line."
|
|||
(interactive "*P")
|
||||
(if vera-intelligent-tab
|
||||
(progn
|
||||
(cond ((memq (char-syntax (preceding-char)) '(?w ?_))
|
||||
(cond ((and (not (featurep 'xemacs)) (use-region-p))
|
||||
(vera-indent-region (region-beginning) (region-end) nil))
|
||||
((memq (char-syntax (preceding-char)) '(?w ?_))
|
||||
(let ((case-fold-search t)
|
||||
(case-replace nil)
|
||||
(hippie-expand-only-buffers
|
||||
|
|
|
@ -7004,6 +7004,9 @@ else indent `correctly'."
|
|||
(interactive "*P")
|
||||
(vhdl-prepare-search-2
|
||||
(cond
|
||||
;; indent region if region is active
|
||||
((and (not (featurep 'xemacs)) (use-region-p))
|
||||
(vhdl-indent-region (region-beginning) (region-end) nil))
|
||||
;; expand word
|
||||
((= (char-syntax (preceding-char)) ?w)
|
||||
(let ((case-fold-search (not vhdl-word-completion-case-sensitive))
|
||||
|
|
Loading…
Add table
Reference in a new issue