aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-12-09 19:38:37 +0000
committerDan Nicolaescu2007-12-09 19:38:37 +0000
commit6ca0ff7375c34ba105101e5318194bdee07edf7f (patch)
tree9e47577292558801fd7292a02ab9acfe38e9a087
parent2d5590e0a3357b155d0483316c1d8ac8aafb03db (diff)
downloademacs-6ca0ff7375c34ba105101e5318194bdee07edf7f.tar.gz
emacs-6ca0ff7375c34ba105101e5318194bdee07edf7f.zip
(verilog-kill-existing-comment, verilog-insert-date)
(verilog-insert-year): Rename in order not to pollute the global namespace from kill-existing-comment, insert-date and insert-year, respectively. (verilog-set-auto-endcomments, verilog-header): Update callers.
-rw-r--r--lisp/progmodes/verilog-mode.el26
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el
index 4c0cbd65c18..79a4cd5c399 100644
--- a/lisp/progmodes/verilog-mode.el
+++ b/lisp/progmodes/verilog-mode.el
@@ -3169,7 +3169,7 @@ Limit search to point LIM."
3169;; Other functions 3169;; Other functions
3170;; 3170;;
3171 3171
3172(defun kill-existing-comment () 3172(defun verilog-kill-existing-comment ()
3173 "Kill auto comment on this line." 3173 "Kill auto comment on this line."
3174 (save-excursion 3174 (save-excursion
3175 (let* ( 3175 (let* (
@@ -3210,7 +3210,7 @@ Insert `// NAME ' if this line ends a function, task, module, primitive or inter
3210 ) 3210 )
3211 (end-of-line) 3211 (end-of-line)
3212 (if kill-existing-comment 3212 (if kill-existing-comment
3213 (kill-existing-comment)) 3213 (verilog-kill-existing-comment))
3214 (delete-horizontal-space) 3214 (delete-horizontal-space)
3215 (save-excursion 3215 (save-excursion
3216 (backward-sexp 1) 3216 (backward-sexp 1)
@@ -3287,7 +3287,7 @@ Insert `// NAME ' if this line ends a function, task, module, primitive or inter
3287 (verilog-get-expr)))))) 3287 (verilog-get-expr))))))
3288 (end-of-line) 3288 (end-of-line)
3289 (if kill-existing-comment 3289 (if kill-existing-comment
3290 (kill-existing-comment)) 3290 (verilog-kill-existing-comment))
3291 (delete-horizontal-space) 3291 (delete-horizontal-space)
3292 (insert (concat " // " str )) 3292 (insert (concat " // " str ))
3293 (if err (ding 't)) 3293 (if err (ding 't))
@@ -3309,7 +3309,7 @@ Insert `// NAME ' if this line ends a function, task, module, primitive or inter
3309 (goto-char here) 3309 (goto-char here)
3310 (end-of-line) 3310 (end-of-line)
3311 (if kill-existing-comment 3311 (if kill-existing-comment
3312 (kill-existing-comment)) 3312 (verilog-kill-existing-comment))
3313 (delete-horizontal-space) 3313 (delete-horizontal-space)
3314 (insert str) 3314 (insert str)
3315 (ding 't) 3315 (ding 't)
@@ -3450,7 +3450,7 @@ Insert `// NAME ' if this line ends a function, task, module, primitive or inter
3450 (goto-char here) 3450 (goto-char here)
3451 (end-of-line) 3451 (end-of-line)
3452 (if kill-existing-comment 3452 (if kill-existing-comment
3453 (kill-existing-comment)) 3453 (verilog-kill-existing-comment))
3454 (delete-horizontal-space) 3454 (delete-horizontal-space)
3455 (if (or err 3455 (if (or err
3456 (> (count-lines here there) verilog-minimum-comment-distance)) 3456 (> (count-lines here there) verilog-minimum-comment-distance))
@@ -3503,7 +3503,7 @@ Insert `// NAME ' if this line ends a function, task, module, primitive or inter
3503 (end-of-line) 3503 (end-of-line)
3504 (if kill-existing-comment 3504 (if kill-existing-comment
3505 (save-match-data 3505 (save-match-data
3506 (kill-existing-comment))) 3506 (verilog-kill-existing-comment)))
3507 (delete-horizontal-space) 3507 (delete-horizontal-space)
3508 (backward-sexp) 3508 (backward-sexp)
3509 (cond 3509 (cond
@@ -5846,13 +5846,13 @@ Bound search by LIMIT. Adapted from
5846 (insert (user-full-name)) 5846 (insert (user-full-name))
5847 (insert " <" (user-login-name) "@" (system-name) ">") 5847 (insert " <" (user-login-name) "@" (system-name) ">")
5848 (search-forward "<credate>") (replace-match "" t t) 5848 (search-forward "<credate>") (replace-match "" t t)
5849 (insert-date) 5849 (verilog-insert-date)
5850 (search-forward "<moddate>") (replace-match "" t t) 5850 (search-forward "<moddate>") (replace-match "" t t)
5851 (insert-date) 5851 (verilog-insert-date)
5852 (search-forward "<copydate>") (replace-match "" t t) 5852 (search-forward "<copydate>") (replace-match "" t t)
5853 (insert-year) 5853 (verilog-insert-year)
5854 (search-forward "<modhist>") (replace-match "" t t) 5854 (search-forward "<modhist>") (replace-match "" t t)
5855 (insert-date) 5855 (verilog-insert-date)
5856 (insert " : created") 5856 (insert " : created")
5857 (goto-char start) 5857 (goto-char start)
5858 (let (string) 5858 (let (string)
@@ -5877,9 +5877,9 @@ Bound search by LIMIT. Adapted from
5877 (replace-match "" t t) 5877 (replace-match "" t t)
5878 ))) 5878 )))
5879 5879
5880;; verilog-header Uses the insert-date function 5880;; verilog-header Uses the verilog-insert-date function
5881 5881
5882(defun insert-date () 5882(defun verilog-insert-date ()
5883 "Insert date from the system." 5883 "Insert date from the system."
5884 (interactive) 5884 (interactive)
5885 (let ((timpos)) 5885 (let ((timpos))
@@ -5892,7 +5892,7 @@ Bound search by LIMIT. Adapted from
5892 (end-of-line)) 5892 (end-of-line))
5893 (delete-char 1)) 5893 (delete-char 1))
5894 5894
5895(defun insert-year () 5895(defun verilog-insert-year ()
5896 "Insert year from the system." 5896 "Insert year from the system."
5897 (interactive) 5897 (interactive)
5898 (let ((timpos)) 5898 (let ((timpos))