;; Other functions
;;
-(defun kill-existing-comment ()
+(defun verilog-kill-existing-comment ()
"Kill auto comment on this line."
(save-excursion
(let* (
)
(end-of-line)
(if kill-existing-comment
- (kill-existing-comment))
+ (verilog-kill-existing-comment))
(delete-horizontal-space)
(save-excursion
(backward-sexp 1)
(verilog-get-expr))))))
(end-of-line)
(if kill-existing-comment
- (kill-existing-comment))
+ (verilog-kill-existing-comment))
(delete-horizontal-space)
(insert (concat " // " str ))
(if err (ding 't))
(goto-char here)
(end-of-line)
(if kill-existing-comment
- (kill-existing-comment))
+ (verilog-kill-existing-comment))
(delete-horizontal-space)
(insert str)
(ding 't)
(goto-char here)
(end-of-line)
(if kill-existing-comment
- (kill-existing-comment))
+ (verilog-kill-existing-comment))
(delete-horizontal-space)
(if (or err
(> (count-lines here there) verilog-minimum-comment-distance))
(end-of-line)
(if kill-existing-comment
(save-match-data
- (kill-existing-comment)))
+ (verilog-kill-existing-comment)))
(delete-horizontal-space)
(backward-sexp)
(cond
(insert (user-full-name))
(insert " <" (user-login-name) "@" (system-name) ">")
(search-forward "<credate>") (replace-match "" t t)
- (insert-date)
+ (verilog-insert-date)
(search-forward "<moddate>") (replace-match "" t t)
- (insert-date)
+ (verilog-insert-date)
(search-forward "<copydate>") (replace-match "" t t)
- (insert-year)
+ (verilog-insert-year)
(search-forward "<modhist>") (replace-match "" t t)
- (insert-date)
+ (verilog-insert-date)
(insert " : created")
(goto-char start)
(let (string)
(replace-match "" t t)
)))
-;; verilog-header Uses the insert-date function
+;; verilog-header Uses the verilog-insert-date function
-(defun insert-date ()
+(defun verilog-insert-date ()
"Insert date from the system."
(interactive)
(let ((timpos))
(end-of-line))
(delete-char 1))
-(defun insert-year ()
+(defun verilog-insert-year ()
"Insert year from the system."
(interactive)
(let ((timpos))