diff options
| -rw-r--r-- | lisp/cedet/data-debug.el | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lisp/cedet/data-debug.el b/lisp/cedet/data-debug.el index 075e122e79d..604fc40926c 100644 --- a/lisp/cedet/data-debug.el +++ b/lisp/cedet/data-debug.el | |||
| @@ -49,9 +49,9 @@ | |||
| 49 | 49 | ||
| 50 | ;;; Compatibility | 50 | ;;; Compatibility |
| 51 | ;; | 51 | ;; |
| 52 | (defalias 'data-debug-overlay-properties 'overlay-properties) | 52 | (define-obsolete-function-alias 'data-debug-overlay-properties 'overlay-properties "28.1") |
| 53 | (defalias 'data-debug-overlay-p 'overlayp) | 53 | (define-obsolete-function-alias 'data-debug-overlay-p 'overlayp "28.1") |
| 54 | (defalias 'dd-propertize 'propertize) | 54 | (define-obsolete-function-alias 'dd-propertize 'propertize "28.1") |
| 55 | 55 | ||
| 56 | ;;; GENERIC STUFF | 56 | ;;; GENERIC STUFF |
| 57 | ;; | 57 | ;; |
| @@ -73,7 +73,7 @@ The attributes belong to the tag PARENT." | |||
| 73 | "Insert all the parts of OVERLAY. | 73 | "Insert all the parts of OVERLAY. |
| 74 | PREFIX specifies what to insert at the start of each line." | 74 | PREFIX specifies what to insert at the start of each line." |
| 75 | (let ((attrprefix (concat (make-string (length prefix) ? ) "# ")) | 75 | (let ((attrprefix (concat (make-string (length prefix) ? ) "# ")) |
| 76 | (proplist (data-debug-overlay-properties overlay))) | 76 | (proplist (overlay-properties overlay))) |
| 77 | (data-debug-insert-property-list | 77 | (data-debug-insert-property-list |
| 78 | proplist attrprefix) | 78 | proplist attrprefix) |
| 79 | ) | 79 | ) |
| @@ -393,10 +393,10 @@ PREBUTTONTEXT is some text between prefix and the stuff list button." | |||
| 393 | (lambda (key value) | 393 | (lambda (key value) |
| 394 | (data-debug-insert-thing | 394 | (data-debug-insert-thing |
| 395 | key prefix | 395 | key prefix |
| 396 | (dd-propertize "key " 'face font-lock-comment-face)) | 396 | (propertize "key " 'face font-lock-comment-face)) |
| 397 | (data-debug-insert-thing | 397 | (data-debug-insert-thing |
| 398 | value prefix | 398 | value prefix |
| 399 | (dd-propertize "val " 'face font-lock-comment-face))) | 399 | (propertize "val " 'face font-lock-comment-face))) |
| 400 | hash-table)) | 400 | hash-table)) |
| 401 | 401 | ||
| 402 | (defun data-debug-insert-hash-table-from-point (point) | 402 | (defun data-debug-insert-hash-table-from-point (point) |
| @@ -415,9 +415,9 @@ PREBUTTONTEXT is some text between prefix and the stuff list button." | |||
| 415 | 415 | ||
| 416 | (defun data-debug-insert-hash-table-button (hash-table prefix prebuttontext) | 416 | (defun data-debug-insert-hash-table-button (hash-table prefix prebuttontext) |
| 417 | "Insert HASH-TABLE as expandable button with recursive prefix PREFIX and PREBUTTONTEXT in front of the button text." | 417 | "Insert HASH-TABLE as expandable button with recursive prefix PREFIX and PREBUTTONTEXT in front of the button text." |
| 418 | (let ((string (dd-propertize (format "%s" hash-table) | 418 | (let ((string (propertize (format "%s" hash-table) |
| 419 | 'face 'font-lock-keyword-face))) | 419 | 'face 'font-lock-keyword-face))) |
| 420 | (insert (dd-propertize | 420 | (insert (propertize |
| 421 | (concat prefix prebuttontext string) | 421 | (concat prefix prebuttontext string) |
| 422 | 'ddebug hash-table | 422 | 'ddebug hash-table |
| 423 | 'ddebug-indent (length prefix) | 423 | 'ddebug-indent (length prefix) |
| @@ -444,7 +444,7 @@ PREBUTTONTEXT is some text between prefix and the stuff list button." | |||
| 444 | (data-debug-insert-thing (car (cdr rest)) | 444 | (data-debug-insert-thing (car (cdr rest)) |
| 445 | prefix | 445 | prefix |
| 446 | (concat | 446 | (concat |
| 447 | (dd-propertize (format "%s" (car rest)) | 447 | (propertize (format "%s" (car rest)) |
| 448 | 'face font-lock-comment-face) | 448 | 'face font-lock-comment-face) |
| 449 | " : ")) | 449 | " : ")) |
| 450 | (setq rest (cdr (cdr rest)))) | 450 | (setq rest (cdr (cdr rest)))) |
| @@ -468,9 +468,9 @@ PREBUTTONTEXT is some text between prefix and the stuff list button." | |||
| 468 | A Symbol is a simple thing, but this provides some face and prefix rules. | 468 | A Symbol is a simple thing, but this provides some face and prefix rules. |
| 469 | PREFIX is the text that precedes the button. | 469 | PREFIX is the text that precedes the button. |
| 470 | PREBUTTONTEXT is some text between prefix and the thing." | 470 | PREBUTTONTEXT is some text between prefix and the thing." |
| 471 | (let ((string (dd-propertize (format "#<WIDGET %s>" (car widget)) | 471 | (let ((string (propertize (format "#<WIDGET %s>" (car widget)) |
| 472 | 'face 'font-lock-keyword-face))) | 472 | 'face 'font-lock-keyword-face))) |
| 473 | (insert (dd-propertize | 473 | (insert (propertize |
| 474 | (concat prefix prebuttontext string) | 474 | (concat prefix prebuttontext string) |
| 475 | 'ddebug widget | 475 | 'ddebug widget |
| 476 | 'ddebug-indent (length prefix) | 476 | 'ddebug-indent (length prefix) |
| @@ -613,7 +613,7 @@ PREBUTTONTEXT is some text between prefix and the stuff vector button." | |||
| 613 | (symbol-value symbol) | 613 | (symbol-value symbol) |
| 614 | (concat (make-string indent ? ) "> ") | 614 | (concat (make-string indent ? ) "> ") |
| 615 | (concat | 615 | (concat |
| 616 | (dd-propertize "value" | 616 | (propertize "value" |
| 617 | 'face 'font-lock-comment-face) | 617 | 'face 'font-lock-comment-face) |
| 618 | " "))) | 618 | " "))) |
| 619 | (data-debug-insert-property-list | 619 | (data-debug-insert-property-list |
| @@ -628,13 +628,13 @@ PREFIX is the text that precedes the button. | |||
| 628 | PREBUTTONTEXT is some text between prefix and the symbol button." | 628 | PREBUTTONTEXT is some text between prefix and the symbol button." |
| 629 | (let ((string | 629 | (let ((string |
| 630 | (cond ((fboundp symbol) | 630 | (cond ((fboundp symbol) |
| 631 | (dd-propertize (concat "#'" (symbol-name symbol)) | 631 | (propertize (concat "#'" (symbol-name symbol)) |
| 632 | 'face 'font-lock-function-name-face)) | 632 | 'face 'font-lock-function-name-face)) |
| 633 | ((boundp symbol) | 633 | ((boundp symbol) |
| 634 | (dd-propertize (concat "'" (symbol-name symbol)) | 634 | (propertize (concat "'" (symbol-name symbol)) |
| 635 | 'face 'font-lock-variable-name-face)) | 635 | 'face 'font-lock-variable-name-face)) |
| 636 | (t (format "'%s" symbol))))) | 636 | (t (format "'%s" symbol))))) |
| 637 | (insert (dd-propertize | 637 | (insert (propertize |
| 638 | (concat prefix prebuttontext string) | 638 | (concat prefix prebuttontext string) |
| 639 | 'ddebug symbol | 639 | 'ddebug symbol |
| 640 | 'ddebug-indent (length prefix) | 640 | 'ddebug-indent (length prefix) |
| @@ -657,7 +657,7 @@ PREBUTTONTEXT is some text between prefix and the thing." | |||
| 657 | (while (string-match "\t" newstr) | 657 | (while (string-match "\t" newstr) |
| 658 | (setq newstr (replace-match "\\t" t t newstr))) | 658 | (setq newstr (replace-match "\\t" t t newstr))) |
| 659 | (insert prefix prebuttontext | 659 | (insert prefix prebuttontext |
| 660 | (dd-propertize (format "\"%s\"" newstr) | 660 | (propertize (format "\"%s\"" newstr) |
| 661 | 'face font-lock-string-face) | 661 | 'face font-lock-string-face) |
| 662 | "\n" ))) | 662 | "\n" ))) |
| 663 | 663 | ||
| @@ -668,7 +668,7 @@ A Symbol is a simple thing, but this provides some face and prefix rules. | |||
| 668 | PREFIX is the text that precedes the button. | 668 | PREFIX is the text that precedes the button. |
| 669 | PREBUTTONTEXT is some text between prefix and the thing." | 669 | PREBUTTONTEXT is some text between prefix and the thing." |
| 670 | (insert prefix prebuttontext | 670 | (insert prefix prebuttontext |
| 671 | (dd-propertize (format "%S" thing) | 671 | (propertize (format "%S" thing) |
| 672 | 'face font-lock-string-face) | 672 | 'face font-lock-string-face) |
| 673 | "\n")) | 673 | "\n")) |
| 674 | 674 | ||
| @@ -737,10 +737,10 @@ FACE is the face to use." | |||
| 737 | (null . data-debug-insert-nil) | 737 | (null . data-debug-insert-nil) |
| 738 | 738 | ||
| 739 | ;; Overlay | 739 | ;; Overlay |
| 740 | (data-debug-overlay-p . data-debug-insert-overlay-button) | 740 | (overlayp . data-debug-insert-overlay-button) |
| 741 | 741 | ||
| 742 | ;; Overlay list | 742 | ;; Overlay list |
| 743 | ((lambda (thing) (and (consp thing) (data-debug-overlay-p (car thing)))) . | 743 | ((lambda (thing) (and (consp thing) (overlayp (car thing)))) . |
| 744 | data-debug-insert-overlay-list-button) | 744 | data-debug-insert-overlay-list-button) |
| 745 | 745 | ||
| 746 | ;; Buffer | 746 | ;; Buffer |