diff options
| author | Dan Nicolaescu | 2008-08-06 14:05:54 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-08-06 14:05:54 +0000 |
| commit | 75e0af775148aaaadf8f402fc469934cbf58ac64 (patch) | |
| tree | b74b1fc5e489646467ad048dd6068a3fc3210510 | |
| parent | 29428bb856ca0efed4a1c95261e8bfc798d9e7be (diff) | |
| download | emacs-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.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/vera-mode.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 3 |
3 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f7a67ae83a9..c6ac44e3bfd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-08-06 Reto Zimmermann <reto@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/vera-mode.el (vera-electric-tab): | ||
| 4 | * progmodes/vhdl-mode.el (vhdl-electric-tab): Make TAB indent | ||
| 5 | region when active. | ||
| 6 | |||
| 1 | 2008-08-06 Kenichi Handa <handa@m17n.org> | 7 | 2008-08-06 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * faces.el (face-valid-attribute-values): Fix handling the value | 9 | * faces.el (face-valid-attribute-values): Fix handling the value |
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)) |