diff options
| author | Chong Yidong | 2009-11-20 15:11:16 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-11-20 15:11:16 +0000 |
| commit | acfad775d23e1ad2e2f762da2d6f4118af1efb66 (patch) | |
| tree | d3af63ecdbda94690a8e4c9718fd1bbfdd6623f7 | |
| parent | ab84bfa00e809931dd7fd0acefe719cd276197a4 (diff) | |
| download | emacs-acfad775d23e1ad2e2f762da2d6f4118af1efb66.tar.gz emacs-acfad775d23e1ad2e2f762da2d6f4118af1efb66.zip | |
* cedet/semantic/complete.el (semantic-complete-inline-map): Doc
fix.
* cedet/semantic/idle.el (define-semantic-idle-service)
(semantic-idle-summary-mode, semantic-idle-completions): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/cedet/semantic/complete.el | 3 | ||||
| -rw-r--r-- | lisp/cedet/semantic/idle.el | 75 |
3 files changed, 55 insertions, 31 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4b6809af072..914a4e8e950 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2009-11-20 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * cedet/semantic/complete.el (semantic-complete-inline-map): Doc | ||
| 4 | fix. | ||
| 5 | |||
| 6 | * cedet/semantic/idle.el (define-semantic-idle-service) | ||
| 7 | (semantic-idle-summary-mode, semantic-idle-completions): Doc fix. | ||
| 8 | |||
| 1 | 2009-11-20 Tassilo Horn <tassilo@member.fsf.org> | 9 | 2009-11-20 Tassilo Horn <tassilo@member.fsf.org> |
| 2 | 10 | ||
| 3 | * progmodes/cc-cmds.el: declare-functioned forward-subword and | 11 | * progmodes/cc-cmds.el: declare-functioned forward-subword and |
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el index 871797756ff..657bc4752b9 100644 --- a/lisp/cedet/semantic/complete.el +++ b/lisp/cedet/semantic/complete.el | |||
| @@ -553,8 +553,7 @@ if INLINE, then completion is happening inline in a buffer." | |||
| 553 | (lambda () (interactive) | 553 | (lambda () (interactive) |
| 554 | (describe-variable 'semantic-complete-inline-map))) | 554 | (describe-variable 'semantic-complete-inline-map))) |
| 555 | km) | 555 | km) |
| 556 | "Keymap used while performing Semantic inline completion. | 556 | "Keymap used while performing Semantic inline completion.") |
| 557 | \\{semantic-complete-inline-map}") | ||
| 558 | 557 | ||
| 559 | (defface semantic-complete-inline-face | 558 | (defface semantic-complete-inline-face |
| 560 | '((((class color) (background dark)) | 559 | '((((class color) (background dark)) |
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el index 7f5915064b2..174ec2a1bde 100644 --- a/lisp/cedet/semantic/idle.el +++ b/lisp/cedet/semantic/idle.el | |||
| @@ -600,22 +600,22 @@ This routines creates the following functions and variables:" | |||
| 600 | (hook (intern (concat (symbol-name name) "-mode-hook"))) | 600 | (hook (intern (concat (symbol-name name) "-mode-hook"))) |
| 601 | (map (intern (concat (symbol-name name) "-mode-map"))) | 601 | (map (intern (concat (symbol-name name) "-mode-map"))) |
| 602 | (setup (intern (concat (symbol-name name) "-mode-setup"))) | 602 | (setup (intern (concat (symbol-name name) "-mode-setup"))) |
| 603 | (func (intern (concat (symbol-name name) "-idle-function"))) | 603 | (func (intern (concat (symbol-name name) "-idle-function")))) |
| 604 | ) | ||
| 605 | 604 | ||
| 606 | `(eval-and-compile | 605 | `(eval-and-compile |
| 607 | (defun ,global (&optional arg) | 606 | (defun ,global (&optional arg) |
| 608 | ,(concat "Toggle global use of `" (symbol-name mode) "'. | 607 | ,(concat "Toggle " (symbol-name global) ". |
| 609 | If ARG is positive, enable, if it is negative, disable. | 608 | With ARG, turn the minor mode on if ARG is positive, off otherwise. |
| 610 | If ARG is nil, then toggle.") | 609 | |
| 610 | When this minor mode is enabled, `" (symbol-name mode) "' is | ||
| 611 | turned on in every Semantic-supported buffer.") | ||
| 611 | (interactive "P") | 612 | (interactive "P") |
| 612 | (setq ,global | 613 | (setq ,global |
| 613 | (semantic-toggle-minor-mode-globally | 614 | (semantic-toggle-minor-mode-globally |
| 614 | ',mode arg))) | 615 | ',mode arg))) |
| 615 | 616 | ||
| 616 | (defcustom ,global nil | 617 | (defcustom ,global nil |
| 617 | (concat "*If non-nil, enable global use of `" (symbol-name ',mode) "'. | 618 | ,(concat "Non-nil if `" (symbol-name mode) "' is enabled.") |
| 618 | " ,doc) | ||
| 619 | :group 'semantic | 619 | :group 'semantic |
| 620 | :group 'semantic-modes | 620 | :group 'semantic-modes |
| 621 | :type 'boolean | 621 | :type 'boolean |
| @@ -625,24 +625,22 @@ If ARG is nil, then toggle.") | |||
| 625 | (,global (if val 1 -1)))) | 625 | (,global (if val 1 -1)))) |
| 626 | 626 | ||
| 627 | (defcustom ,hook nil | 627 | (defcustom ,hook nil |
| 628 | (concat "*Hook run at the end of function `" (symbol-name ',mode) "'.") | 628 | ,(concat "Hook run at the end of function `" (symbol-name mode) "'.") |
| 629 | :group 'semantic | 629 | :group 'semantic |
| 630 | :type 'hook) | 630 | :type 'hook) |
| 631 | 631 | ||
| 632 | (defvar ,map | 632 | (defvar ,map |
| 633 | (let ((km (make-sparse-keymap))) | 633 | (let ((km (make-sparse-keymap))) |
| 634 | km) | 634 | km) |
| 635 | (concat "Keymap for `" (symbol-name ',mode) "'.")) | 635 | ,(concat "Keymap for `" (symbol-name mode) "'.")) |
| 636 | 636 | ||
| 637 | (defvar ,mode nil | 637 | (defvar ,mode nil |
| 638 | (concat "Non-nil if summary minor mode is enabled. | 638 | ,(concat "Non-nil if the minor mode `" (symbol-name mode) "' is enabled. |
| 639 | Use the command `" (symbol-name ',mode) "' to change this variable.")) | 639 | Use the command `" (symbol-name mode) "' to change this variable.")) |
| 640 | (make-variable-buffer-local ',mode) | 640 | (make-variable-buffer-local ',mode) |
| 641 | 641 | ||
| 642 | (defun ,setup () | 642 | (defun ,setup () |
| 643 | ,(concat "Setup option `" (symbol-name mode) "'. | 643 | ,(concat "Set up `" (symbol-name mode) "'. |
| 644 | The minor mode can be turned on only if semantic feature is available | ||
| 645 | and the idle scheduler is active. | ||
| 646 | Return non-nil if the minor mode is enabled.") | 644 | Return non-nil if the minor mode is enabled.") |
| 647 | (if ,mode | 645 | (if ,mode |
| 648 | (if (not (and (featurep 'semantic) (semantic-active-p))) | 646 | (if (not (and (featurep 'semantic) (semantic-active-p))) |
| @@ -660,12 +658,7 @@ Return non-nil if the minor mode is enabled.") | |||
| 660 | ,mode) | 658 | ,mode) |
| 661 | 659 | ||
| 662 | (defun ,mode (&optional arg) | 660 | (defun ,mode (&optional arg) |
| 663 | ,(concat doc " | 661 | ,doc |
| 664 | This is a minor mode which performs actions during idle time. | ||
| 665 | With prefix argument ARG, turn on if positive, otherwise off. The | ||
| 666 | minor mode can be turned on only if semantic feature is available and | ||
| 667 | the current buffer was set up for parsing. Return non-nil if the | ||
| 668 | minor mode is enabled.") | ||
| 669 | (interactive | 662 | (interactive |
| 670 | (list (or current-prefix-arg | 663 | (list (or current-prefix-arg |
| 671 | (if ,mode 0 1)))) | 664 | (if ,mode 0 1)))) |
| @@ -689,10 +682,9 @@ minor mode is enabled.") | |||
| 689 | ,map) | 682 | ,map) |
| 690 | 683 | ||
| 691 | (defun ,func () | 684 | (defun ,func () |
| 692 | ,doc | 685 | ,(concat "Perform idle activity for the minor mode `" |
| 693 | ,@forms) | 686 | (symbol-name mode) "'.") |
| 694 | 687 | ,@forms)))) | |
| 695 | ))) | ||
| 696 | (put 'define-semantic-idle-service 'lisp-indent-function 1) | 688 | (put 'define-semantic-idle-service 'lisp-indent-function 1) |
| 697 | 689 | ||
| 698 | 690 | ||
| @@ -832,9 +824,11 @@ current tag to display information." | |||
| 832 | 824 | ||
| 833 | (define-minor-mode semantic-idle-summary-mode | 825 | (define-minor-mode semantic-idle-summary-mode |
| 834 | "Toggle Semantic Idle Summary mode. | 826 | "Toggle Semantic Idle Summary mode. |
| 835 | When Semantic Idle Summary mode is enabled, the echo area | 827 | With ARG, turn Semantic Idle Summary mode on if ARG is positive, |
| 836 | displays a summary of the lexical token under the cursor whenever | 828 | off otherwise. |
| 837 | Emacs is idle." | 829 | |
| 830 | When this minor mode is enabled, the echo area displays a summary | ||
| 831 | of the lexical token at point whenever Emacs is idle." | ||
| 838 | :group 'semantic | 832 | :group 'semantic |
| 839 | :group 'semantic-modes | 833 | :group 'semantic-modes |
| 840 | (semantic-idle-summary-mode-setup) | 834 | (semantic-idle-summary-mode-setup) |
| @@ -871,7 +865,12 @@ Emacs is idle." | |||
| 871 | (semantic-add-minor-mode 'semantic-idle-summary-mode "") | 865 | (semantic-add-minor-mode 'semantic-idle-summary-mode "") |
| 872 | 866 | ||
| 873 | (define-minor-mode global-semantic-idle-summary-mode | 867 | (define-minor-mode global-semantic-idle-summary-mode |
| 874 | "Toggle global use of `semantic-idle-summary-mode'." | 868 | "Toggle Global Semantic Idle Summary mode. |
| 869 | With ARG, turn Global Semantic Idle Summary mode on if ARG is | ||
| 870 | positive, off otherwise. | ||
| 871 | |||
| 872 | When this minor mode is enabled, `semantic-idle-summary-mode' is | ||
| 873 | turned on in every Semantic-supported buffer." | ||
| 875 | :global t | 874 | :global t |
| 876 | :group 'semantic | 875 | :group 'semantic |
| 877 | :group 'semantic-modes | 876 | :group 'semantic-modes |
| @@ -1003,7 +1002,25 @@ Call `semantic-symref-hits-in-region' to identify local references." | |||
| 1003 | )) | 1002 | )) |
| 1004 | 1003 | ||
| 1005 | (define-semantic-idle-service semantic-idle-completions | 1004 | (define-semantic-idle-service semantic-idle-completions |
| 1006 | "Display a list of possible completions in a tooltip." | 1005 | "Toggle Semantic Idle Completions mode. |
| 1006 | With ARG, turn Semantic Idle Completions mode on if ARG is | ||
| 1007 | positive, off otherwise. | ||
| 1008 | |||
| 1009 | This minor mode only takes effect if Semantic is active and | ||
| 1010 | `semantic-idle-scheduler-mode' is enabled. | ||
| 1011 | |||
| 1012 | When enabled, Emacs displays a list of possible completions at | ||
| 1013 | idle time. The method for displaying completions is given by | ||
| 1014 | `semantic-complete-inline-analyzer-idle-displayor-class'; the | ||
| 1015 | default is to show completions inline. | ||
| 1016 | |||
| 1017 | While a completion is displayed, RET accepts the completion; M-n | ||
| 1018 | and M-p cycle through completion alternatives; TAB attempts to | ||
| 1019 | complete as far as possible, and cycles if no additional | ||
| 1020 | completion is possible; and any other command cancels the | ||
| 1021 | completion. | ||
| 1022 | |||
| 1023 | \\{semantic-complete-inline-map}" | ||
| 1007 | ;; Add the ability to override sometime. | 1024 | ;; Add the ability to override sometime. |
| 1008 | (semantic-idle-completion-list-default)) | 1025 | (semantic-idle-completion-list-default)) |
| 1009 | 1026 | ||