aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-01-09 17:04:59 +0000
committerDan Nicolaescu2008-01-09 17:04:59 +0000
commiteaf7efe9bae6b11fbd77d10c9ada51541548892d (patch)
treeba5f96fddb13cbb85c53e58f0bb153e8bbe252ce
parent09c5aa7c300919c1a21827d78e1e55cdf02d5a12 (diff)
downloademacs-eaf7efe9bae6b11fbd77d10c9ada51541548892d.tar.gz
emacs-eaf7efe9bae6b11fbd77d10c9ada51541548892d.zip
* progmodes/verilog-mode.el (verilog-booleanp): New function for
backward compatibility. Replace all uses of booleanp with verilog-booleanp.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/verilog-mode.el44
2 files changed, 31 insertions, 19 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2d959beb28a..4fb16ba4cc9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-01-09 Wilson Snyder <wsnyder@wsnyder.org>
2
3 * progmodes/verilog-mode.el (verilog-booleanp): New function for
4 backward compatibility. Replace all uses of booleanp with
5 verilog-booleanp.
6
12008-01-09 Dan Nicolaescu <dann@ics.uci.edu> 72008-01-09 Dan Nicolaescu <dann@ics.uci.edu>
2 8
3 * vc-hg.el (vc-hg-diff): Don't pass an empty string. 9 * vc-hg.el (vc-hg-diff): Don't pass an empty string.
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el
index 59d5ea83475..a1611b0eada 100644
--- a/lisp/progmodes/verilog-mode.el
+++ b/lisp/progmodes/verilog-mode.el
@@ -275,6 +275,12 @@ STRING should be given if the last search was by `string-match' on STRING."
275 (if (fboundp 'customize-apropos) 275 (if (fboundp 'customize-apropos)
276 (customize-apropos "font-lock-*" 'faces))) 276 (customize-apropos "font-lock-*" 'faces)))
277 277
278(defun verilog-booleanp (value)
279 "Return t if VALUE is boolean.
280 This implements GNU Emacs 22.1's `booleanp' function in earlier Emacs.
281 This function may be removed when Emacs 21 is no longer supported."
282 (or (equal value t) (equal value nil)))
283
278(defgroup verilog-mode nil 284(defgroup verilog-mode nil
279 "Facilitates easy editing of Verilog source text" 285 "Facilitates easy editing of Verilog source text"
280 :group 'languages) 286 :group 'languages)
@@ -355,7 +361,7 @@ entry \"Fontify Buffer\"). XEmacs: turn off and on font locking."
355 :type 'boolean 361 :type 'boolean
356 :group 'verilog-mode-indent) 362 :group 'verilog-mode-indent)
357;; Note we don't use :safe, as that would break on Emacsen before 22.0. 363;; Note we don't use :safe, as that would break on Emacsen before 22.0.
358(put 'verilog-highlight-translate-off 'safe-local-variable 'booleanp) 364(put 'verilog-highlight-translate-off 'safe-local-variable 'verilog-booleanp)
359 365
360(defcustom verilog-indent-level 3 366(defcustom verilog-indent-level 3
361 "*Indentation of Verilog statements with respect to containing block." 367 "*Indentation of Verilog statements with respect to containing block."
@@ -390,7 +396,7 @@ If non nil, treat as:
390 output c;" 396 output c;"
391 :group 'verilog-mode-indent 397 :group 'verilog-mode-indent
392 :type 'boolean) 398 :type 'boolean)
393(put 'verilog-indent-declaration-macros 'safe-local-variable 'booleanp) 399(put 'verilog-indent-declaration-macros 'safe-local-variable 'verilog-booleanp)
394 400
395(defcustom verilog-indent-lists t 401(defcustom verilog-indent-lists t
396 "*How to treat indenting items in a list. 402 "*How to treat indenting items in a list.
@@ -403,7 +409,7 @@ If nil, treat as:
403 reset ) begin" 409 reset ) begin"
404 :group 'verilog-mode-indent 410 :group 'verilog-mode-indent
405 :type 'boolean) 411 :type 'boolean)
406(put 'verilog-indent-lists 'safe-local-variable 'booleanp) 412(put 'verilog-indent-lists 'safe-local-variable 'verilog-booleanp)
407 413
408(defcustom verilog-indent-level-behavioral 3 414(defcustom verilog-indent-level-behavioral 3
409 "*Absolute indentation of first begin in a task or function block. 415 "*Absolute indentation of first begin in a task or function block.
@@ -435,33 +441,33 @@ Set to 0 to have all directives start at the left side of the screen."
435 "*True means automatically newline after semicolons." 441 "*True means automatically newline after semicolons."
436 :group 'verilog-mode-indent 442 :group 'verilog-mode-indent
437 :type 'boolean) 443 :type 'boolean)
438(put 'verilog-auto-newline 'safe-local-variable 'booleanp) 444(put 'verilog-auto-newline 'safe-local-variable 'verilog-booleanp)
439 445
440(defcustom verilog-auto-indent-on-newline t 446(defcustom verilog-auto-indent-on-newline t
441 "*True means automatically indent line after newline." 447 "*True means automatically indent line after newline."
442 :group 'verilog-mode-indent 448 :group 'verilog-mode-indent
443 :type 'boolean) 449 :type 'boolean)
444(put 'verilog-auto-indent-on-newline 'safe-local-variable 'booleanp) 450(put 'verilog-auto-indent-on-newline 'safe-local-variable 'verilog-booleanp)
445 451
446(defcustom verilog-tab-always-indent t 452(defcustom verilog-tab-always-indent t
447 "*True means TAB should always re-indent the current line. 453 "*True means TAB should always re-indent the current line.
448Nil means TAB will only reindent when at the beginning of the line." 454Nil means TAB will only reindent when at the beginning of the line."
449 :group 'verilog-mode-indent 455 :group 'verilog-mode-indent
450 :type 'boolean) 456 :type 'boolean)
451(put 'verilog-tab-always-indent 'safe-local-variable 'booleanp) 457(put 'verilog-tab-always-indent 'safe-local-variable 'verilog-booleanp)
452 458
453(defcustom verilog-tab-to-comment nil 459(defcustom verilog-tab-to-comment nil
454 "*True means TAB moves to the right hand column in preparation for a comment." 460 "*True means TAB moves to the right hand column in preparation for a comment."
455 :group 'verilog-mode-actions 461 :group 'verilog-mode-actions
456 :type 'boolean) 462 :type 'boolean)
457(put 'verilog-tab-to-comment 'safe-local-variable 'booleanp) 463(put 'verilog-tab-to-comment 'safe-local-variable 'verilog-booleanp)
458 464
459(defcustom verilog-indent-begin-after-if t 465(defcustom verilog-indent-begin-after-if t
460 "*If true, indent begin statements following if, else, while, for and repeat. 466 "*If true, indent begin statements following if, else, while, for and repeat.
461Otherwise, line them up." 467Otherwise, line them up."
462 :group 'verilog-mode-indent 468 :group 'verilog-mode-indent
463 :type 'boolean) 469 :type 'boolean)
464(put 'verilog-indent-begin-after-if 'safe-local-variable 'booleanp) 470(put 'verilog-indent-begin-after-if 'safe-local-variable 'verilog-booleanp)
465 471
466 472
467(defcustom verilog-align-ifelse nil 473(defcustom verilog-align-ifelse nil
@@ -469,7 +475,7 @@ Otherwise, line them up."
469Otherwise else is lined up with first character on line holding matching if." 475Otherwise else is lined up with first character on line holding matching if."
470 :group 'verilog-mode-indent 476 :group 'verilog-mode-indent
471 :type 'boolean) 477 :type 'boolean)
472(put 'verilog-align-ifelse 'safe-local-variable 'booleanp) 478(put 'verilog-align-ifelse 'safe-local-variable 'verilog-booleanp)
473 479
474(defcustom verilog-minimum-comment-distance 10 480(defcustom verilog-minimum-comment-distance 10
475 "*Minimum distance (in lines) between begin and end required before a comment. 481 "*Minimum distance (in lines) between begin and end required before a comment.
@@ -529,14 +535,14 @@ IEEE-1800 standard. Note that changing this will require restarting Emacs
529to see the effect as font color choices are cached by Emacs" 535to see the effect as font color choices are cached by Emacs"
530 :group 'verilog-mode-indent 536 :group 'verilog-mode-indent
531 :type 'boolean) 537 :type 'boolean)
532(put 'verilog-highlight-p1800-keywords 'safe-local-variable 'booleanp) 538(put 'verilog-highlight-p1800-keywords 'safe-local-variable 'verilog-booleanp)
533 539
534(defcustom verilog-auto-endcomments t 540(defcustom verilog-auto-endcomments t
535 "*True means insert a comment /* ... */ after 'end's. 541 "*True means insert a comment /* ... */ after 'end's.
536The name of the function or case will be set between the braces." 542The name of the function or case will be set between the braces."
537 :group 'verilog-mode-actions 543 :group 'verilog-mode-actions
538 :type 'boolean) 544 :type 'boolean)
539(put 'verilog-auto-endcomments 'safe-local-variable 'booleanp) 545(put 'verilog-auto-endcomments 'safe-local-variable 'verilog-booleanp)
540 546
541(defcustom verilog-auto-read-includes nil 547(defcustom verilog-auto-read-includes nil
542 "*True means to automatically read includes before AUTOs. 548 "*True means to automatically read includes before AUTOs.
@@ -546,7 +552,7 @@ but can result in very slow reading times if there are many or large
546include files." 552include files."
547 :group 'verilog-mode-actions 553 :group 'verilog-mode-actions
548 :type 'boolean) 554 :type 'boolean)
549(put 'verilog-auto-read-includes 'safe-local-variable 'booleanp) 555(put 'verilog-auto-read-includes 'safe-local-variable 'verilog-booleanp)
550 556
551(defcustom verilog-auto-save-policy nil 557(defcustom verilog-auto-save-policy nil
552 "*Non-nil indicates action to take when saving a Verilog buffer with AUTOs. 558 "*Non-nil indicates action to take when saving a Verilog buffer with AUTOs.
@@ -567,7 +573,7 @@ They will be expanded in the same way as if there was a AUTOINST in the
567instantiation. See also `verilog-auto-star' and `verilog-auto-star-save'." 573instantiation. See also `verilog-auto-star' and `verilog-auto-star-save'."
568 :group 'verilog-mode-actions 574 :group 'verilog-mode-actions
569 :type 'boolean) 575 :type 'boolean)
570(put 'verilog-auto-star-expand 'safe-local-variable 'booleanp) 576(put 'verilog-auto-star-expand 'safe-local-variable 'verilog-booleanp)
571 577
572(defcustom verilog-auto-star-save nil 578(defcustom verilog-auto-star-save nil
573 "*Non-nil indicates to save to disk SystemVerilog .* instance expansions. 579 "*Non-nil indicates to save to disk SystemVerilog .* instance expansions.
@@ -578,7 +584,7 @@ Instead of setting this, you may want to use /*AUTOINST*/, which will
578always be saved." 584always be saved."
579 :group 'verilog-mode-actions 585 :group 'verilog-mode-actions
580 :type 'boolean) 586 :type 'boolean)
581(put 'verilog-auto-star-save 'safe-local-variable 'booleanp) 587(put 'verilog-auto-star-save 'safe-local-variable 'verilog-booleanp)
582 588
583(defvar verilog-auto-update-tick nil 589(defvar verilog-auto-update-tick nil
584 "Modification tick at which autos were last performed.") 590 "Modification tick at which autos were last performed.")
@@ -765,7 +771,7 @@ If nil, only inputs that are NOT output signals in the same block are
765included." 771included."
766 :group 'verilog-mode-auto 772 :group 'verilog-mode-auto
767 :type 'boolean) 773 :type 'boolean)
768(put 'verilog-auto-sense-include-inputs 'safe-local-variable 'booleanp) 774(put 'verilog-auto-sense-include-inputs 'safe-local-variable 'verilog-booleanp)
769 775
770(defcustom verilog-auto-sense-defines-constant nil 776(defcustom verilog-auto-sense-defines-constant nil
771 "*If true, AUTOSENSE should assume all defines represent constants. 777 "*If true, AUTOSENSE should assume all defines represent constants.
@@ -774,7 +780,7 @@ maintain compatibility with other sites, this should be set at the bottom
774of each verilog file that requires it, rather than being set globally." 780of each verilog file that requires it, rather than being set globally."
775 :group 'verilog-mode-auto 781 :group 'verilog-mode-auto
776 :type 'boolean) 782 :type 'boolean)
777(put 'verilog-auto-sense-defines-constant 'safe-local-variable 'booleanp) 783(put 'verilog-auto-sense-defines-constant 'safe-local-variable 'verilog-booleanp)
778 784
779(defcustom verilog-auto-reset-widths t 785(defcustom verilog-auto-reset-widths t
780 "*If true, AUTORESET should determine the width of signals. 786 "*If true, AUTORESET should determine the width of signals.
@@ -784,7 +790,7 @@ the constant zero. This may result in ugly code when parameters determine
784the MSB or LSB of a signal inside a AUTORESET." 790the MSB or LSB of a signal inside a AUTORESET."
785 :type 'boolean 791 :type 'boolean
786 :group 'verilog-mode-auto) 792 :group 'verilog-mode-auto)
787(put 'verilog-auto-reset-widths 'safe-local-variable 'booleanp) 793(put 'verilog-auto-reset-widths 'safe-local-variable 'verilog-booleanp)
788 794
789(defcustom verilog-assignment-delay "" 795(defcustom verilog-assignment-delay ""
790 "*Text used for delays in delayed assignments. Add a trailing space if set." 796 "*Text used for delays in delayed assignments. Add a trailing space if set."
@@ -800,7 +806,7 @@ declare the wire to have the subscripts removed.) Nil may speed up some
800simulators, but is less general and harder to read, so avoid." 806simulators, but is less general and harder to read, so avoid."
801 :group 'verilog-mode-auto 807 :group 'verilog-mode-auto
802 :type 'boolean) 808 :type 'boolean)
803(put 'verilog-auto-inst-vector 'safe-local-variable 'booleanp) 809(put 'verilog-auto-inst-vector 'safe-local-variable 'verilog-booleanp)
804 810
805(defcustom verilog-auto-inst-template-numbers nil 811(defcustom verilog-auto-inst-template-numbers nil
806 "*If true, when creating templated ports with AUTOINST, add a comment. 812 "*If true, when creating templated ports with AUTOINST, add a comment.
@@ -809,7 +815,7 @@ port declaration. Setting this aids in debugging, but nil is suggested for
809regular use to prevent large numbers of merge conflicts." 815regular use to prevent large numbers of merge conflicts."
810 :group 'verilog-mode-auto 816 :group 'verilog-mode-auto
811 :type 'boolean) 817 :type 'boolean)
812(put 'verilog-auto-inst-template-numbers 'safe-local-variable 'booleanp) 818(put 'verilog-auto-inst-template-numbers 'safe-local-variable 'verilog-booleanp)
813 819
814(defvar verilog-auto-inst-column 40 820(defvar verilog-auto-inst-column 40
815 "Column number for first part of auto-inst.") 821 "Column number for first part of auto-inst.")