diff options
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/speedbar.el | 51 | ||||
| -rw-r--r-- | lisp/term.el | 51 | ||||
| -rw-r--r-- | lisp/term/sup-mouse.el | 7 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 22 |
5 files changed, 94 insertions, 47 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ca4fa798d15..399b1fff4e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2011-02-17 Glenn Morris <rgm@gnu.org> | 1 | 2011-02-17 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * speedbar.el (speedbar-ignored-modes, speedbar-file-unshown-regexp) | ||
| 4 | (speedbar-update-flag, speedbar-fetch-etags-command) | ||
| 5 | (speedbar-fetch-etags-arguments): | ||
| 6 | * term.el (term-buffer-maximum-size, term-input-chunk-size) | ||
| 7 | (term-completion-autolist, term-completion-addsuffix) | ||
| 8 | (term-completion-recexact, term-completion-fignore): | ||
| 9 | * term/sup-mouse.el (sup-mouse-fast-select-window): | ||
| 10 | * term/x-win.el (x-select-request-type): | ||
| 11 | Convert some defvars with "*" to defcustoms. | ||
| 12 | |||
| 3 | * shell.el (shell-delimiter-argument-list): Set it to nil. (Bug#8027) | 13 | * shell.el (shell-delimiter-argument-list): Set it to nil. (Bug#8027) |
| 4 | 14 | ||
| 5 | * vc/vc.el (vc-default-previous-version): | 15 | * vc/vc.el (vc-default-previous-version): |
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index b84afd797d1..dad2a4c82ac 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -614,8 +614,11 @@ state data." | |||
| 614 | :group 'speedbar | 614 | :group 'speedbar |
| 615 | :type 'hook) | 615 | :type 'hook) |
| 616 | 616 | ||
| 617 | (defvar speedbar-ignored-modes '(fundamental-mode) | 617 | (defcustom speedbar-ignored-modes '(fundamental-mode) |
| 618 | "*List of major modes which speedbar will not switch directories for.") | 618 | "List of major modes which speedbar will not switch directories for." |
| 619 | :group 'speedbar | ||
| 620 | :type '(choice (const nil) | ||
| 621 | (repeat :tag "List of modes" (symbol :tag "Major mode")))) | ||
| 619 | 622 | ||
| 620 | (defun speedbar-extension-list-to-regex (extlist) | 623 | (defun speedbar-extension-list-to-regex (extlist) |
| 621 | "Takes EXTLIST, a list of extensions and transforms it into regexp. | 624 | "Takes EXTLIST, a list of extensions and transforms it into regexp. |
| @@ -669,7 +672,7 @@ directories here; see `vc-directory-exclusion-list'." | |||
| 669 | :group 'speedbar | 672 | :group 'speedbar |
| 670 | :type 'string) | 673 | :type 'string) |
| 671 | 674 | ||
| 672 | (defvar speedbar-file-unshown-regexp | 675 | (defcustom speedbar-file-unshown-regexp |
| 673 | (let ((nstr "") (noext completion-ignored-extensions)) | 676 | (let ((nstr "") (noext completion-ignored-extensions)) |
| 674 | (while noext | 677 | (while noext |
| 675 | (setq nstr (concat nstr (regexp-quote (car noext)) "\\'" | 678 | (setq nstr (concat nstr (regexp-quote (car noext)) "\\'" |
| @@ -677,8 +680,10 @@ directories here; see `vc-directory-exclusion-list'." | |||
| 677 | noext (cdr noext))) | 680 | noext (cdr noext))) |
| 678 | ;; backup refdir lockfile | 681 | ;; backup refdir lockfile |
| 679 | (concat nstr "\\|#[^#]+#$\\|\\.\\.?\\'\\|\\.#")) | 682 | (concat nstr "\\|#[^#]+#$\\|\\.\\.?\\'\\|\\.#")) |
| 680 | "*Regexp matching files we don't want displayed in a speedbar buffer. | 683 | "Regexp matching files we don't want displayed in a speedbar buffer. |
| 681 | It is generated from the variable `completion-ignored-extensions'.") | 684 | It is generated from the variable `completion-ignored-extensions'." |
| 685 | :group 'speedbar | ||
| 686 | :type 'string) | ||
| 682 | 687 | ||
| 683 | (defvar speedbar-file-regexp nil | 688 | (defvar speedbar-file-regexp nil |
| 684 | "Regular expression matching files we know how to expand. | 689 | "Regular expression matching files we know how to expand. |
| @@ -755,14 +760,17 @@ DIRECTORY-EXPRESSION to `speedbar-ignored-directory-expressions'." | |||
| 755 | speedbar-ignored-directory-regexp (speedbar-extension-list-to-regex | 760 | speedbar-ignored-directory-regexp (speedbar-extension-list-to-regex |
| 756 | speedbar-ignored-directory-expressions))) | 761 | speedbar-ignored-directory-expressions))) |
| 757 | 762 | ||
| 758 | (defvar speedbar-update-flag dframe-have-timer-flag | 763 | (defcustom speedbar-update-flag dframe-have-timer-flag |
| 759 | "*Non-nil means to automatically update the display. | 764 | "Non-nil means to automatically update the display. |
| 760 | When this is nil then speedbar will not follow the attached frame's directory. | 765 | When this is nil then speedbar will not follow the attached frame's directory. |
| 761 | When speedbar is active, use: | 766 | If you want to change this while speedbar is active, either use |
| 762 | 767 | \\[customize] or call \\<speedbar-key-map> `\\[speedbar-toggle-updates]'." | |
| 763 | \\<speedbar-key-map> `\\[speedbar-toggle-updates]' | 768 | :group 'speedbar |
| 764 | 769 | :initialize 'custom-initialize-default | |
| 765 | to toggle this value.") | 770 | :set (lambda (sym val) |
| 771 | (set sym val) | ||
| 772 | (speedbar-toggle-updates)) | ||
| 773 | :type 'boolean) | ||
| 766 | 774 | ||
| 767 | (defvar speedbar-update-flag-disable nil | 775 | (defvar speedbar-update-flag-disable nil |
| 768 | "Permanently disable changing of the update flag.") | 776 | "Permanently disable changing of the update flag.") |
| @@ -3643,17 +3651,20 @@ to be at the beginning of a line in the etags buffer. | |||
| 3643 | 3651 | ||
| 3644 | This variable is ignored if `speedbar-use-imenu-flag' is non-nil.") | 3652 | This variable is ignored if `speedbar-use-imenu-flag' is non-nil.") |
| 3645 | 3653 | ||
| 3646 | (defvar speedbar-fetch-etags-command "etags" | 3654 | (defcustom speedbar-fetch-etags-command "etags" |
| 3647 | "*Command used to create an etags file. | 3655 | "Command used to create an etags file. |
| 3648 | 3656 | This variable is ignored if `speedbar-use-imenu-flag' is t." | |
| 3649 | This variable is ignored if `speedbar-use-imenu-flag' is t.") | 3657 | :group 'speedbar |
| 3658 | :type 'string) | ||
| 3650 | 3659 | ||
| 3651 | (defvar speedbar-fetch-etags-arguments '("-D" "-I" "-o" "-") | 3660 | (defcustom speedbar-fetch-etags-arguments '("-D" "-I" "-o" "-") |
| 3652 | "*List of arguments to use with `speedbar-fetch-etags-command'. | 3661 | "List of arguments to use with `speedbar-fetch-etags-command'. |
| 3653 | This creates an etags output buffer. Use `speedbar-toggle-etags' to | 3662 | This creates an etags output buffer. Use `speedbar-toggle-etags' to |
| 3654 | modify this list conveniently. | 3663 | modify this list conveniently. |
| 3655 | 3664 | This variable is ignored if `speedbar-use-imenu-flag' is t." | |
| 3656 | This variable is ignored if `speedbar-use-imenu-flag' is t.") | 3665 | :group 'speedbar |
| 3666 | :type '(choice (const nil) | ||
| 3667 | (repeat :tag "List of arguments" string))) | ||
| 3657 | 3668 | ||
| 3658 | (defun speedbar-toggle-etags (flag) | 3669 | (defun speedbar-toggle-etags (flag) |
| 3659 | "Toggle FLAG in `speedbar-fetch-etags-arguments'. | 3670 | "Toggle FLAG in `speedbar-fetch-etags-arguments'. |
diff --git a/lisp/term.el b/lisp/term.el index ea419234e0f..df95ca830ab 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -762,11 +762,13 @@ Buffer local variable.") | |||
| 762 | "magenta3" "cyan3" "white"]) | 762 | "magenta3" "cyan3" "white"]) |
| 763 | 763 | ||
| 764 | ;; Inspiration came from comint.el -mm | 764 | ;; Inspiration came from comint.el -mm |
| 765 | (defvar term-buffer-maximum-size 2048 | 765 | (defcustom term-buffer-maximum-size 2048 |
| 766 | "*The maximum size in lines for term buffers. | 766 | "The maximum size in lines for term buffers. |
| 767 | Term buffers are truncated from the top to be no greater than this number. | 767 | Term buffers are truncated from the top to be no greater than this number. |
| 768 | Notice that a setting of 0 means \"don't truncate anything\". This variable | 768 | Notice that a setting of 0 means \"don't truncate anything\". This variable |
| 769 | is buffer-local.") | 769 | is buffer-local." |
| 770 | :group 'term | ||
| 771 | :type 'integer) | ||
| 770 | 772 | ||
| 771 | (when (featurep 'xemacs) | 773 | (when (featurep 'xemacs) |
| 772 | (defvar term-terminal-menu | 774 | (defvar term-terminal-menu |
| @@ -2209,9 +2211,11 @@ Security bug: your string can still be temporarily recovered with | |||
| 2209 | 2211 | ||
| 2210 | ;;; Low-level process communication | 2212 | ;;; Low-level process communication |
| 2211 | 2213 | ||
| 2212 | (defvar term-input-chunk-size 512 | 2214 | (defcustom term-input-chunk-size 512 |
| 2213 | "*Long inputs send to term processes are broken up into chunks of this size. | 2215 | "Long inputs send to term processes are broken up into chunks of this size. |
| 2214 | If your process is choking on big inputs, try lowering the value.") | 2216 | If your process is choking on big inputs, try lowering the value." |
| 2217 | :group 'term | ||
| 2218 | :type 'integer) | ||
| 2215 | 2219 | ||
| 2216 | (defun term-send-string (proc str) | 2220 | (defun term-send-string (proc str) |
| 2217 | "Send to PROC the contents of STR as input. | 2221 | "Send to PROC the contents of STR as input. |
| @@ -3909,27 +3913,38 @@ This is a good place to put keybindings.") | |||
| 3909 | ;; Commands like this are fine things to put in load hooks if you | 3913 | ;; Commands like this are fine things to put in load hooks if you |
| 3910 | ;; want them present in specific modes. | 3914 | ;; want them present in specific modes. |
| 3911 | 3915 | ||
| 3912 | (defvar term-completion-autolist nil | 3916 | (defcustom term-completion-autolist nil |
| 3913 | "*If non-nil, automatically list possibilities on partial completion. | 3917 | "If non-nil, automatically list possibilities on partial completion. |
| 3914 | This mirrors the optional behavior of tcsh.") | 3918 | This mirrors the optional behavior of tcsh." |
| 3919 | :group 'term | ||
| 3920 | :type 'boolean) | ||
| 3915 | 3921 | ||
| 3916 | (defvar term-completion-addsuffix t | 3922 | (defcustom term-completion-addsuffix t |
| 3917 | "*If non-nil, add a `/' to completed directories, ` ' to file names. | 3923 | "If non-nil, add a `/' to completed directories, ` ' to file names. |
| 3918 | If a cons pair, it should be of the form (DIRSUFFIX . FILESUFFIX) where | 3924 | If a cons pair, it should be of the form (DIRSUFFIX . FILESUFFIX) where |
| 3919 | DIRSUFFIX and FILESUFFIX are strings added on unambiguous or exact | 3925 | DIRSUFFIX and FILESUFFIX are strings added on unambiguous or exact |
| 3920 | completion. This mirrors the optional behavior of tcsh.") | 3926 | completion. This mirrors the optional behavior of tcsh." |
| 3927 | :group 'term | ||
| 3928 | :type '(choice (const :tag "No suffix" nil) | ||
| 3929 | (cons (string :tag "dirsuffix") (string :tag "filesuffix")) | ||
| 3930 | (other :tag "Suffix" t))) | ||
| 3921 | 3931 | ||
| 3922 | (defvar term-completion-recexact nil | 3932 | (defcustom term-completion-recexact nil |
| 3923 | "*If non-nil, use shortest completion if characters cannot be added. | 3933 | "If non-nil, use shortest completion if characters cannot be added. |
| 3924 | This mirrors the optional behavior of tcsh. | 3934 | This mirrors the optional behavior of tcsh. |
| 3925 | 3935 | ||
| 3926 | A non-nil value is useful if `term-completion-autolist' is non-nil too.") | 3936 | A non-nil value is useful if `term-completion-autolist' is non-nil too." |
| 3937 | :group 'term | ||
| 3938 | :type 'boolean) | ||
| 3927 | 3939 | ||
| 3928 | (defvar term-completion-fignore nil | 3940 | (defcustom term-completion-fignore nil |
| 3929 | "*List of suffixes to be disregarded during file completion. | 3941 | "List of suffixes to be disregarded during file completion. |
| 3930 | This mirrors the optional behavior of bash and tcsh. | 3942 | This mirrors the optional behavior of bash and tcsh. |
| 3931 | 3943 | ||
| 3932 | Note that this applies to `term-dynamic-complete-filename' only.") | 3944 | Note that this applies to `term-dynamic-complete-filename' only." |
| 3945 | :group 'term | ||
| 3946 | :type '(choice (const nil) | ||
| 3947 | (repeat :tag "List of suffixes" string))) | ||
| 3933 | 3948 | ||
| 3934 | (defvar term-file-name-prefix "" | 3949 | (defvar term-file-name-prefix "" |
| 3935 | "Prefix prepended to absolute file names taken from process input. | 3950 | "Prefix prepended to absolute file names taken from process input. |
diff --git a/lisp/term/sup-mouse.el b/lisp/term/sup-mouse.el index a8b78bb3e38..6d77241008c 100644 --- a/lisp/term/sup-mouse.el +++ b/lisp/term/sup-mouse.el | |||
| @@ -30,8 +30,11 @@ | |||
| 30 | 30 | ||
| 31 | ;;; User customization option: | 31 | ;;; User customization option: |
| 32 | 32 | ||
| 33 | (defvar sup-mouse-fast-select-window nil | 33 | (defcustom sup-mouse-fast-select-window nil |
| 34 | "*Non-nil for mouse hits to select new window, then execute; else just select.") | 34 | "Non-nil means mouse hits select new window, then execute. |
| 35 | Otherwise just select." | ||
| 36 | :type 'boolean | ||
| 37 | :group 'mouse) | ||
| 35 | 38 | ||
| 36 | (defconst mouse-left 0) | 39 | (defconst mouse-left 0) |
| 37 | (defconst mouse-center 1) | 40 | (defconst mouse-center 1) |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 1ec80d5c277..e3c42626a3f 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -1167,20 +1167,28 @@ pasted text.") | |||
| 1167 | :group 'killing | 1167 | :group 'killing |
| 1168 | :version "24.1") | 1168 | :version "24.1") |
| 1169 | 1169 | ||
| 1170 | (defvar x-select-request-type nil | 1170 | (defcustom x-select-request-type nil |
| 1171 | "*Data type request for X selection. | 1171 | "Data type request for X selection. |
| 1172 | The value is one of the following data types, a list of them, or nil: | 1172 | The value is one of the following data types, a list of them, or nil: |
| 1173 | `COMPOUND_TEXT', `UTF8_STRING', `STRING', `TEXT' | 1173 | `COMPOUND_TEXT', `UTF8_STRING', `STRING', `TEXT' |
| 1174 | 1174 | ||
| 1175 | If the value is one of the above symbols, try only the specified | 1175 | If the value is one of the above symbols, try only the specified type. |
| 1176 | type. | ||
| 1177 | 1176 | ||
| 1178 | If the value is a list of them, try each of them in the specified | 1177 | If the value is a list of them, try each of them in the specified |
| 1179 | order until succeed. | 1178 | order until succeed. |
| 1180 | 1179 | ||
| 1181 | The value nil is the same as this list: | 1180 | The value nil is the same as the list (UTF8_STRING COMPOUND_TEXT STRING)." |
| 1182 | \(UTF8_STRING COMPOUND_TEXT STRING) | 1181 | :type '(choice (const :tag "Default" nil) |
| 1183 | ") | 1182 | (const COMPOUND_TEXT) |
| 1183 | (const UTF8_STRING) | ||
| 1184 | (const STRING) | ||
| 1185 | (const TEXT) | ||
| 1186 | (set :tag "List of values" | ||
| 1187 | (const COMPOUND_TEXT) | ||
| 1188 | (const UTF8_STRING) | ||
| 1189 | (const STRING) | ||
| 1190 | (const TEXT))) | ||
| 1191 | :group 'killing) | ||
| 1184 | 1192 | ||
| 1185 | ;; Get a selection value of type TYPE by calling x-get-selection with | 1193 | ;; Get a selection value of type TYPE by calling x-get-selection with |
| 1186 | ;; an appropriate DATA-TYPE argument decided by `x-select-request-type'. | 1194 | ;; an appropriate DATA-TYPE argument decided by `x-select-request-type'. |