aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-05-31 04:23:29 +0000
committerRichard M. Stallman2005-05-31 04:23:29 +0000
commitf35aff821d533bbe2f2761a997800c198bfa9e8d (patch)
treea1f153a03cee923fc84c51150193bf182037a430
parent1376845c3c3b97cab82eb501c285a4c5a66a6859 (diff)
downloademacs-f35aff821d533bbe2f2761a997800c198bfa9e8d.tar.gz
emacs-f35aff821d533bbe2f2761a997800c198bfa9e8d.zip
(vhdl-fill-region): Test ARG, not INTERACTIVE.
(vhdl-emacs-21): Doc fix. (vhdl-mode): Unconditionally set comment-padding. (vhdl-fixup-whitespace-region): Insert spaces only where there are none. (vhdl-statistics-buffer): Make the Emacs 21 behavior universal.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/progmodes/vhdl-mode.el18
2 files changed, 21 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 93f7460fbce..a519a937eb6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12005-05-31 Richard M. Stallman <rms@gnu.org>
2
3 * progmodes/vhdl-mode.el (vhdl-fill-region): Test ARG, not
4 INTERACTIVE.
5 (vhdl-emacs-21): Doc fix.
6 (vhdl-mode): Unconditionally set comment-padding.
7 (vhdl-fixup-whitespace-region): Insert spaces only where
8 there are none.
9 (vhdl-statistics-buffer): Make the Emacs 21 behavior universal.
10
12005-05-30 John Wiegley <johnw@newartisans.com> 112005-05-30 John Wiegley <johnw@newartisans.com>
2 12
3 * eshell/em-cmpl.el, eshell/em-dirs.el, eshell/em-glob.el, 13 * eshell/em-cmpl.el, eshell/em-dirs.el, eshell/em-glob.el,
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index af05de75b34..ebccb1bf5bf 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -127,7 +127,7 @@
127 "Non-nil if XEmacs is used.") 127 "Non-nil if XEmacs is used.")
128;; Emacs 21 handling 128;; Emacs 21 handling
129(defconst vhdl-emacs-21 (and (= emacs-major-version 21) (not vhdl-xemacs)) 129(defconst vhdl-emacs-21 (and (= emacs-major-version 21) (not vhdl-xemacs))
130 "Non-nil if GNU Emacs 21 is used.") 130 "Non-nil if Emacs 21 is used.")
131 131
132 132
133;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 133;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -4568,8 +4568,7 @@ Key bindings:
4568 (set (make-local-variable 'indent-line-function) 'vhdl-indent-line) 4568 (set (make-local-variable 'indent-line-function) 'vhdl-indent-line)
4569 (set (make-local-variable 'comment-start) "--") 4569 (set (make-local-variable 'comment-start) "--")
4570 (set (make-local-variable 'comment-end) "") 4570 (set (make-local-variable 'comment-end) "")
4571 (when vhdl-emacs-21 4571 (set (make-local-variable 'comment-padding) "")
4572 (set (make-local-variable 'comment-padding) ""))
4573 (set (make-local-variable 'comment-column) vhdl-inline-comment-column) 4572 (set (make-local-variable 'comment-column) vhdl-inline-comment-column)
4574 (set (make-local-variable 'end-comment-column) vhdl-end-comment-column) 4573 (set (make-local-variable 'end-comment-column) vhdl-end-comment-column)
4575 (set (make-local-variable 'comment-start-skip) "--+\\s-*") 4574 (set (make-local-variable 'comment-start-skip) "--+\\s-*")
@@ -7484,7 +7483,13 @@ end of line, do nothing in comments and strings."
7484 (while (re-search-forward "\\(--.*\n\\|\"[^\"\n]*[\"\n]\\)\\|\\(\\([^/:<>=]\\)\\(:\\|=\\|<\\|>\\|:=\\|<=\\|>=\\|=>\\|/=\\)\\([^=>]\\|$\\)\\)" end t) 7483 (while (re-search-forward "\\(--.*\n\\|\"[^\"\n]*[\"\n]\\)\\|\\(\\([^/:<>=]\\)\\(:\\|=\\|<\\|>\\|:=\\|<=\\|>=\\|=>\\|/=\\)\\([^=>]\\|$\\)\\)" end t)
7485 (if (match-string 1) 7484 (if (match-string 1)
7486 (goto-char (match-end 1)) 7485 (goto-char (match-end 1))
7487 (replace-match "\\3 \\4 \\5") 7486 (save-excursion
7487 (goto-char (match-beginning 4))
7488 (unless (eq (preceding-char) ?\ )
7489 (insert " "))
7490 (goto-char (match-end 4))
7491 (unless (eq (following-char) ?\ )
7492 (insert " ")))
7488 (goto-char (match-end 4)))) 7493 (goto-char (match-end 4))))
7489 ;; eliminate multiple spaces and spaces at end of line 7494 ;; eliminate multiple spaces and spaces at end of line
7490 (goto-char beg) 7495 (goto-char beg)
@@ -7540,7 +7545,7 @@ buffer."
7540 (interactive "r\np") 7545 (interactive "r\np")
7541 (save-excursion 7546 (save-excursion
7542 (goto-char beg) 7547 (goto-char beg)
7543 (let ((margin (if interactive (current-indentation) (current-column)))) 7548 (let ((margin (if arg (current-indentation) (current-column))))
7544 (goto-char end) 7549 (goto-char end)
7545 (setq end (point-marker)) 7550 (setq end (point-marker))
7546 ;; remove inline comments, newlines and whitespace 7551 ;; remove inline comments, newlines and whitespace
@@ -12055,8 +12060,7 @@ File statistics: \"%s\"\n\
12055# statements : %5d\n\ 12060# statements : %5d\n\
12056# code lines : %5d\n\ 12061# code lines : %5d\n\
12057# total lines : %5d\n\ " 12062# total lines : %5d\n\ "
12058 (buffer-file-name) no-stats no-code-lines no-lines) 12063 (buffer-file-name) no-stats no-code-lines no-lines)))
12059 (unless vhdl-emacs-21 (vhdl-show-messages))))
12060 12064
12061;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 12065;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12062;; Help functions 12066;; Help functions