diff options
| author | Juanma Barranquero | 2008-08-26 11:02:51 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-08-26 11:02:51 +0000 |
| commit | d36b11e229d9e0d94ff87c6c3099b05ad29514fa (patch) | |
| tree | 797f02d6a0d2fc0a336ad8afb27ab677a50fe1b3 | |
| parent | 518e6a154129710eb6be4009503d77ddfb263b50 (diff) | |
| download | emacs-d36b11e229d9e0d94ff87c6c3099b05ad29514fa.tar.gz emacs-d36b11e229d9e0d94ff87c6c3099b05ad29514fa.zip | |
Fix typos (sync from the trunk).
* facemenu.el (facemenu-unlisted-faces): Fix obsolescence declaration.
* hi-lock.el (hi-lock-mode): Fix typo in docstring.
* icomplete.el (icomplete-compute-delay, icomplete-get-keys): Doc fixes.
(icomplete-delay-completions-threshold): Fix typo in docstring.
* speedbar.el (speedbar-stealthy-function-list)
(speedbar-verbosity-level, speedbar-supported-extension-expressions)
(speedbar-update-current-file, speedbar-add-indicator)
(speedbar-tag-expand): Reflow docstrings.
(speedbar-use-imenu-flag, speedbar-use-tool-tips-flag)
(speedbar-ignored-directory-regexp, speedbar-file-unshown-regexp)
(speedbar-file-regexp, speedbar-message, speedbar-item-info)
(speedbar-files-item-info, speedbar-fetch-replacement-function)
(speedbar-maybe-add-localized-support)
(speedbar-generic-list-positioned-group-p, speedbar-insert-generic-list)
(speedbar-extract-one-symbol, speedbar-recenter-to-top)
(speedbar-recenter, speedbar-separator-face): Fix typos in docstrings.
(speedbar-ignored-directory-expressions, speedbar-handle-delete-frame)
(speedbar-show-info-under-mouse, speedbar-directory-buttons)
(speedbar-check-vc-this-line, speedbar-files-line-directory)
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp)
(speedbar-buffers-line-directory): Doc fixes.
* tool-bar.el (tool-bar-add-item): Fix typo in docstring.
* emacs-lisp/edebug.el (edebug-unwrap*, edebug-signal)
(edebug-restore-status): Doc fixes.
(edebug-gensym, edebug-top-level-nonstop, edebug-eval-display)
(edebug-eval-result-list, edebug-eval-redisplay, edebug)
(edebug-trace): Fix typos in docstrings.
* emulation/tpu-edt.el (tpu-match-beginning, tpu-match-end)
(tpu-check-match, tpu-goto-breadcrumb, tpu-reset-screen-size)
(tpu-toggle-overwrite-mode, tpu-include, tpu-get, tpu-what-line)
(tpu-insert-escape, tpu-insert-formfeed, tpu-end-define-macro-key)
(tpu-check-search-case, tpu-select, tpu-unselect, tpu-trim-line-ends)
(tpu-toggle-control-keys): Fix typos in docstrings.
(tpu-kill-buffer): Doc fix.
(tpu-make-file-buffer-list, tpu-toggle-regexp, tpu-cut)
(tpu-append-region, tpu-delete-current-char, tpu-emacs-replace):
Reflow docstrings.
* eshell/em-smart.el (eshell-review-quick-commands): Doc fix.
* eshell/esh-arg.el (eshell-quote-backslash): Fix typo in docstring.
* play/solitaire.el (solitaire, solitaire-mode-map, solitaire-mode-hook)
(solitaire-mode, solitaire, solitaire-solve): Fix typos in docstrings.
* progmodes/gdb-ui.el (gdb-source-info): Fix typo in docstring.
* progmodes/python.el (python-comment-line-p, python-blank-line-p)
(python-skip-out): Doc fixes.
| -rw-r--r-- | lisp/ChangeLog | 60 | ||||
| -rw-r--r-- | lisp/emacs-lisp/edebug.el | 27 | ||||
| -rw-r--r-- | lisp/emulation/tpu-edt.el | 67 | ||||
| -rw-r--r-- | lisp/eshell/em-smart.el | 4 | ||||
| -rw-r--r-- | lisp/eshell/esh-arg.el | 2 | ||||
| -rw-r--r-- | lisp/facemenu.el | 2 | ||||
| -rw-r--r-- | lisp/hi-lock.el | 6 | ||||
| -rw-r--r-- | lisp/icomplete.el | 8 | ||||
| -rw-r--r-- | lisp/play/solitaire.el | 14 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 6 | ||||
| -rw-r--r-- | lisp/speedbar.el | 87 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 2 | ||||
| -rw-r--r-- | lisp/tool-bar.el | 2 |
14 files changed, 174 insertions, 117 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9d2089c842e..80afe2eab20 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,61 @@ | |||
| 1 | 2008-08-26 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * facemenu.el (facemenu-unlisted-faces): Fix obsolescence declaration. | ||
| 4 | |||
| 5 | * hi-lock.el (hi-lock-mode): Fix typo in docstring. | ||
| 6 | |||
| 7 | * icomplete.el (icomplete-compute-delay, icomplete-get-keys): Doc fixes. | ||
| 8 | (icomplete-delay-completions-threshold): Fix typo in docstring. | ||
| 9 | |||
| 10 | * speedbar.el (speedbar-stealthy-function-list) | ||
| 11 | (speedbar-verbosity-level, speedbar-supported-extension-expressions) | ||
| 12 | (speedbar-update-current-file, speedbar-add-indicator) | ||
| 13 | (speedbar-tag-expand): Reflow docstrings. | ||
| 14 | (speedbar-use-imenu-flag, speedbar-use-tool-tips-flag) | ||
| 15 | (speedbar-ignored-directory-regexp, speedbar-file-unshown-regexp) | ||
| 16 | (speedbar-file-regexp, speedbar-message, speedbar-item-info) | ||
| 17 | (speedbar-files-item-info, speedbar-fetch-replacement-function) | ||
| 18 | (speedbar-maybe-add-localized-support) | ||
| 19 | (speedbar-generic-list-positioned-group-p, speedbar-insert-generic-list) | ||
| 20 | (speedbar-extract-one-symbol, speedbar-recenter-to-top) | ||
| 21 | (speedbar-recenter, speedbar-separator-face): Fix typos in docstrings. | ||
| 22 | (speedbar-ignored-directory-expressions, speedbar-handle-delete-frame) | ||
| 23 | (speedbar-show-info-under-mouse, speedbar-directory-buttons) | ||
| 24 | (speedbar-check-vc-this-line, speedbar-files-line-directory) | ||
| 25 | (speedbar-buffer-buttons, speedbar-buffer-buttons-temp) | ||
| 26 | (speedbar-buffers-line-directory): Doc fixes. | ||
| 27 | |||
| 28 | * tool-bar.el (tool-bar-add-item): Fix typo in docstring. | ||
| 29 | |||
| 30 | * emacs-lisp/edebug.el (edebug-unwrap*, edebug-signal) | ||
| 31 | (edebug-restore-status): Doc fixes. | ||
| 32 | (edebug-gensym, edebug-top-level-nonstop, edebug-eval-display) | ||
| 33 | (edebug-eval-result-list, edebug-eval-redisplay, edebug) | ||
| 34 | (edebug-trace): Fix typos in docstrings. | ||
| 35 | |||
| 36 | * emulation/tpu-edt.el (tpu-match-beginning, tpu-match-end) | ||
| 37 | (tpu-check-match, tpu-goto-breadcrumb, tpu-reset-screen-size) | ||
| 38 | (tpu-toggle-overwrite-mode, tpu-include, tpu-get, tpu-what-line) | ||
| 39 | (tpu-insert-escape, tpu-insert-formfeed, tpu-end-define-macro-key) | ||
| 40 | (tpu-check-search-case, tpu-select, tpu-unselect, tpu-trim-line-ends) | ||
| 41 | (tpu-toggle-control-keys): Fix typos in docstrings. | ||
| 42 | (tpu-kill-buffer): Doc fix. | ||
| 43 | (tpu-make-file-buffer-list, tpu-toggle-regexp, tpu-cut) | ||
| 44 | (tpu-append-region, tpu-delete-current-char, tpu-emacs-replace): | ||
| 45 | Reflow docstrings. | ||
| 46 | |||
| 47 | * eshell/em-smart.el (eshell-review-quick-commands): Doc fix. | ||
| 48 | |||
| 49 | * eshell/esh-arg.el (eshell-quote-backslash): Fix typo in docstring. | ||
| 50 | |||
| 51 | * play/solitaire.el (solitaire, solitaire-mode-map, solitaire-mode-hook) | ||
| 52 | (solitaire-mode, solitaire, solitaire-solve): Fix typos in docstrings. | ||
| 53 | |||
| 54 | * progmodes/gdb-ui.el (gdb-source-info): Fix typo in docstring. | ||
| 55 | |||
| 56 | * progmodes/python.el (python-comment-line-p, python-blank-line-p) | ||
| 57 | (python-skip-out): Doc fixes. | ||
| 58 | |||
| 1 | 2008-08-25 Jay Belanger <jay.p.belanger@gmail.com> | 59 | 2008-08-25 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 60 | ||
| 3 | * calc/calc-units.el (math-simplify-units-quotient): Replace | 61 | * calc/calc-units.el (math-simplify-units-quotient): Replace |
| @@ -129,7 +187,7 @@ | |||
| 129 | * files.el (abbreviate-file-name): When replacing $HOME with ~, | 187 | * files.el (abbreviate-file-name): When replacing $HOME with ~, |
| 130 | turn off case-fold-search. | 188 | turn off case-fold-search. |
| 131 | 189 | ||
| 132 | 2008-07-31 Joachim Nilsson <joachim.nilsson@member.fsf.org> (tiny change) | 190 | 2008-07-31 Joachim Nilsson <joachim.nilsson@member.fsf.org> (tiny change) |
| 133 | 191 | ||
| 134 | * progmodes/cc-styles.el (c-style-alist): For the Ellemtel style, | 192 | * progmodes/cc-styles.el (c-style-alist): For the Ellemtel style, |
| 135 | move the (arglist-cont-nonempty) from c-offsets-alist to | 193 | move the (arglist-cont-nonempty) from c-offsets-alist to |
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index e825f2434b4..151fc4fad7b 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -273,8 +273,8 @@ An extant spec symbol is a symbol that is not a function and has a | |||
| 273 | 273 | ||
| 274 | (defun edebug-gensym (&optional prefix) | 274 | (defun edebug-gensym (&optional prefix) |
| 275 | "Generate a fresh uninterned symbol. | 275 | "Generate a fresh uninterned symbol. |
| 276 | There is an optional argument, PREFIX. PREFIX is the | 276 | There is an optional argument, PREFIX. PREFIX is the string |
| 277 | string that begins the new name. Most people take just the default, | 277 | that begins the new name. Most people take just the default, |
| 278 | except when debugging needs suggest otherwise." | 278 | except when debugging needs suggest otherwise." |
| 279 | (if (null prefix) | 279 | (if (null prefix) |
| 280 | (setq prefix "G")) | 280 | (setq prefix "G")) |
| @@ -1278,7 +1278,7 @@ expressions; a `progn' form will be returned enclosing these forms." | |||
| 1278 | sexp)) | 1278 | sexp)) |
| 1279 | 1279 | ||
| 1280 | (defun edebug-unwrap* (sexp) | 1280 | (defun edebug-unwrap* (sexp) |
| 1281 | "Return the sexp recursively unwrapped." | 1281 | "Return the SEXP recursively unwrapped." |
| 1282 | (let ((new-sexp (edebug-unwrap sexp))) | 1282 | (let ((new-sexp (edebug-unwrap sexp))) |
| 1283 | (while (not (eq sexp new-sexp)) | 1283 | (while (not (eq sexp new-sexp)) |
| 1284 | (setq sexp new-sexp | 1284 | (setq sexp new-sexp |
| @@ -2231,7 +2231,8 @@ See `condition-case'. | |||
| 2231 | This is the Edebug replacement for the standard `signal'. It should | 2231 | This is the Edebug replacement for the standard `signal'. It should |
| 2232 | only be active while Edebug is. It checks `debug-on-error' to see | 2232 | only be active while Edebug is. It checks `debug-on-error' to see |
| 2233 | whether it should call the debugger. When execution is resumed, the | 2233 | whether it should call the debugger. When execution is resumed, the |
| 2234 | error is signaled again." | 2234 | error is signaled again. |
| 2235 | \n(fn SIGNAL-NAME DATA)" | ||
| 2235 | (if (and (listp debug-on-error) (memq edebug-signal-name debug-on-error)) | 2236 | (if (and (listp debug-on-error) (memq edebug-signal-name debug-on-error)) |
| 2236 | (edebug 'error (cons edebug-signal-name edebug-signal-data))) | 2237 | (edebug 'error (cons edebug-signal-name edebug-signal-data))) |
| 2237 | ;; If we reach here without another non-local exit, then send signal again. | 2238 | ;; If we reach here without another non-local exit, then send signal again. |
| @@ -2342,7 +2343,7 @@ or nil (if the default binding is current)." | |||
| 2342 | 2343 | ||
| 2343 | (defun edebug-restore-status (var status) | 2344 | (defun edebug-restore-status (var status) |
| 2344 | "Reset VAR based on STATUS. | 2345 | "Reset VAR based on STATUS. |
| 2345 | STATUS should be a list you got from `edebug-var-status'." | 2346 | STATUS should be a list returned by `edebug-var-status'." |
| 2346 | (let ((locus (car status)) | 2347 | (let ((locus (car status)) |
| 2347 | (value (cdr status))) | 2348 | (value (cdr status))) |
| 2348 | (cond ((bufferp locus) | 2349 | (cond ((bufferp locus) |
| @@ -3502,7 +3503,7 @@ Edebug, it calls `edebug-on-entry'." | |||
| 3502 | 3503 | ||
| 3503 | (defun edebug-top-level-nonstop () | 3504 | (defun edebug-top-level-nonstop () |
| 3504 | "Set mode to Go-nonstop, and exit to top-level. | 3505 | "Set mode to Go-nonstop, and exit to top-level. |
| 3505 | This is useful for exiting even if unwind-protect code may be executed." | 3506 | This is useful for exiting even if `unwind-protect' code may be executed." |
| 3506 | (interactive) | 3507 | (interactive) |
| 3507 | (setq edebug-execution-mode 'Go-nonstop) | 3508 | (setq edebug-execution-mode 'Go-nonstop) |
| 3508 | (top-level)) | 3509 | (top-level)) |
| @@ -3937,7 +3938,7 @@ edebug-global-break-condition | |||
| 3937 | ;; A list of expressions and their evaluations is displayed in *edebug*. | 3938 | ;; A list of expressions and their evaluations is displayed in *edebug*. |
| 3938 | 3939 | ||
| 3939 | (defun edebug-eval-result-list () | 3940 | (defun edebug-eval-result-list () |
| 3940 | "Return a list of evaluations of edebug-eval-list" | 3941 | "Return a list of evaluations of `edebug-eval-list'." |
| 3941 | ;; Assumes in outside environment. | 3942 | ;; Assumes in outside environment. |
| 3942 | ;; Don't do any edebug things now. | 3943 | ;; Don't do any edebug things now. |
| 3943 | (let ((edebug-execution-mode 'Go-nonstop) | 3944 | (let ((edebug-execution-mode 'Go-nonstop) |
| @@ -3971,7 +3972,7 @@ edebug-global-break-condition | |||
| 3971 | ;; with calls in user functions, e.g. (edebug-eval-display) | 3972 | ;; with calls in user functions, e.g. (edebug-eval-display) |
| 3972 | 3973 | ||
| 3973 | (defun edebug-eval-display (edebug-eval-result-list) | 3974 | (defun edebug-eval-display (edebug-eval-result-list) |
| 3974 | "Display expressions and evaluations in EVAL-LIST. | 3975 | "Display expressions and evaluations in EDEBUG-EVAL-RESULT-LIST. |
| 3975 | It modifies the context by popping up the eval display." | 3976 | It modifies the context by popping up the eval display." |
| 3976 | (if edebug-eval-result-list | 3977 | (if edebug-eval-result-list |
| 3977 | (progn | 3978 | (progn |
| @@ -3981,7 +3982,7 @@ It modifies the context by popping up the eval display." | |||
| 3981 | 3982 | ||
| 3982 | (defun edebug-eval-redisplay () | 3983 | (defun edebug-eval-redisplay () |
| 3983 | "Redisplay eval list in outside environment. | 3984 | "Redisplay eval list in outside environment. |
| 3984 | May only be called from within edebug-recursive-edit." | 3985 | May only be called from within `edebug-recursive-edit'." |
| 3985 | (edebug-create-eval-buffer) | 3986 | (edebug-create-eval-buffer) |
| 3986 | (edebug-outside-excursion | 3987 | (edebug-outside-excursion |
| 3987 | (edebug-eval-display-list (edebug-eval-result-list)) | 3988 | (edebug-eval-display-list (edebug-eval-result-list)) |
| @@ -4073,9 +4074,9 @@ Global commands prefixed by `global-edebug-prefix': | |||
| 4073 | ;; edebug is not dependent on this, yet. | 4074 | ;; edebug is not dependent on this, yet. |
| 4074 | 4075 | ||
| 4075 | (defun edebug (&optional edebug-arg-mode &rest debugger-args) | 4076 | (defun edebug (&optional edebug-arg-mode &rest debugger-args) |
| 4076 | "Replacement for debug. | 4077 | "Replacement for `debug'. |
| 4077 | If we are running an edebugged function, | 4078 | If we are running an edebugged function,show where we last were. |
| 4078 | show where we last were. Otherwise call debug normally." | 4079 | Otherwise call `debug' normally." |
| 4079 | ;; (message "entered: %s depth: %s edebug-recursion-depth: %s" | 4080 | ;; (message "entered: %s depth: %s edebug-recursion-depth: %s" |
| 4080 | ;; edebug-entered (recursion-depth) edebug-recursion-depth) (sit-for 1) | 4081 | ;; edebug-entered (recursion-depth) edebug-recursion-depth) (sit-for 1) |
| 4081 | (if (and edebug-entered ; anything active? | 4082 | (if (and edebug-entered ; anything active? |
| @@ -4175,7 +4176,7 @@ You must include newlines in FMT to break lines, but one newline is appended." | |||
| 4175 | 4176 | ||
| 4176 | 4177 | ||
| 4177 | (defun edebug-trace (fmt &rest args) | 4178 | (defun edebug-trace (fmt &rest args) |
| 4178 | "Convenience call to edebug-trace-display using edebug-trace-buffer" | 4179 | "Convenience call to `edebug-trace-display' using `edebug-trace-buffer'." |
| 4179 | (apply 'edebug-trace-display edebug-trace-buffer fmt args)) | 4180 | (apply 'edebug-trace-display edebug-trace-buffer fmt args)) |
| 4180 | 4181 | ||
| 4181 | 4182 | ||
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el index 62e0420de1c..f78ef7e3bfb 100644 --- a/lisp/emulation/tpu-edt.el +++ b/lisp/emulation/tpu-edt.el | |||
| @@ -730,15 +730,15 @@ SS3 is DEC's name for the sequence <ESC>O.") | |||
| 730 | (set-marker tpu-match-end-mark nil)) | 730 | (set-marker tpu-match-end-mark nil)) |
| 731 | 731 | ||
| 732 | (defun tpu-match-beginning nil | 732 | (defun tpu-match-beginning nil |
| 733 | "Returns the location of the last match beginning." | 733 | "Return the location of the last match beginning." |
| 734 | (marker-position tpu-match-beginning-mark)) | 734 | (marker-position tpu-match-beginning-mark)) |
| 735 | 735 | ||
| 736 | (defun tpu-match-end nil | 736 | (defun tpu-match-end nil |
| 737 | "Returns the location of the last match end." | 737 | "Return the location of the last match end." |
| 738 | (marker-position tpu-match-end-mark)) | 738 | (marker-position tpu-match-end-mark)) |
| 739 | 739 | ||
| 740 | (defun tpu-check-match nil | 740 | (defun tpu-check-match nil |
| 741 | "Returns t if point is between tpu-match markers. | 741 | "Return t if point is between tpu-match markers. |
| 742 | Otherwise sets the tpu-match markers to nil and returns nil." | 742 | Otherwise sets the tpu-match markers to nil and returns nil." |
| 743 | ;; make sure 1- marker is in this buffer | 743 | ;; make sure 1- marker is in this buffer |
| 744 | ;; 2- point is at or after beginning marker | 744 | ;; 2- point is at or after beginning marker |
| @@ -849,7 +849,7 @@ Top line is 0. Counts each text line only once, even if it wraps." | |||
| 849 | (message "Mark %d set." num)) | 849 | (message "Mark %d set." num)) |
| 850 | 850 | ||
| 851 | (defun tpu-goto-breadcrumb (num) | 851 | (defun tpu-goto-breadcrumb (num) |
| 852 | "Returns to a breadcrumb set with drop-breadcrumb." | 852 | "Return to a breadcrumb set with drop-breadcrumb." |
| 853 | (interactive "p") | 853 | (interactive "p") |
| 854 | (cond ((get tpu-breadcrumb-plist num) | 854 | (cond ((get tpu-breadcrumb-plist num) |
| 855 | (switch-to-buffer (car (get tpu-breadcrumb-plist num))) | 855 | (switch-to-buffer (car (get tpu-breadcrumb-plist num))) |
| @@ -908,7 +908,7 @@ With argument, fill and justify." | |||
| 908 | tpu-version)) | 908 | tpu-version)) |
| 909 | 909 | ||
| 910 | (defun tpu-reset-screen-size (height width) | 910 | (defun tpu-reset-screen-size (height width) |
| 911 | "Sets the screen size." | 911 | "Set the screen size." |
| 912 | (interactive "nnew screen height: \nnnew screen width: ") | 912 | (interactive "nnew screen height: \nnnew screen width: ") |
| 913 | (set-frame-height (selected-frame) height) | 913 | (set-frame-height (selected-frame) height) |
| 914 | (set-frame-width (selected-frame) width)) | 914 | (set-frame-width (selected-frame) width)) |
| @@ -930,8 +930,8 @@ With argument, fill and justify." | |||
| 930 | (if tpu-newline-and-indent-p " and indents." ".")))) | 930 | (if tpu-newline-and-indent-p " and indents." ".")))) |
| 931 | 931 | ||
| 932 | (defun tpu-spell-check nil | 932 | (defun tpu-spell-check nil |
| 933 | "Checks the spelling of the region, or of the entire buffer if no | 933 | "Check the spelling of the region, or of the entire buffer, |
| 934 | region is selected." | 934 | if no region is selected." |
| 935 | (interactive) | 935 | (interactive) |
| 936 | (cond (tpu-have-ispell | 936 | (cond (tpu-have-ispell |
| 937 | (if (tpu-mark) (ispell-region (tpu-mark) (point)) (ispell-buffer))) | 937 | (if (tpu-mark) (ispell-region (tpu-mark) (point)) (ispell-buffer))) |
| @@ -940,7 +940,7 @@ With argument, fill and justify." | |||
| 940 | (if (tpu-mark) (tpu-unselect t))) | 940 | (if (tpu-mark) (tpu-unselect t))) |
| 941 | 941 | ||
| 942 | (defun tpu-toggle-overwrite-mode nil | 942 | (defun tpu-toggle-overwrite-mode nil |
| 943 | "Switches in and out of overwrite mode" | 943 | "Switch in and out of overwrite mode." |
| 944 | (interactive) | 944 | (interactive) |
| 945 | (cond (overwrite-mode | 945 | (cond (overwrite-mode |
| 946 | (tpu-local-set-key "\177" tpu-saved-delete-func) | 946 | (tpu-local-set-key "\177" tpu-saved-delete-func) |
| @@ -970,18 +970,18 @@ This is useful for inserting control characters." | |||
| 970 | ;;; TPU line-mode commands | 970 | ;;; TPU line-mode commands |
| 971 | ;;; | 971 | ;;; |
| 972 | (defun tpu-include (file) | 972 | (defun tpu-include (file) |
| 973 | "TPU-like include file" | 973 | "TPU-like include file." |
| 974 | (interactive "fInclude file: ") | 974 | (interactive "fInclude file: ") |
| 975 | (insert-file-contents file) | 975 | (insert-file-contents file) |
| 976 | (message "")) | 976 | (message "")) |
| 977 | 977 | ||
| 978 | (defun tpu-get (file) | 978 | (defun tpu-get (file) |
| 979 | "TPU-like get file" | 979 | "TPU-like get file." |
| 980 | (interactive "FFile to get: ") | 980 | (interactive "FFile to get: ") |
| 981 | (find-file file find-file-wildcards)) | 981 | (find-file file find-file-wildcards)) |
| 982 | 982 | ||
| 983 | (defun tpu-what-line nil | 983 | (defun tpu-what-line nil |
| 984 | "Tells what line the point is on, | 984 | "Tell what line the point is on, |
| 985 | and the total number of lines in the buffer." | 985 | and the total number of lines in the buffer." |
| 986 | (interactive) | 986 | (interactive) |
| 987 | (if (eobp) | 987 | (if (eobp) |
| @@ -1251,12 +1251,12 @@ This is useful for inserting control characters." | |||
| 1251 | ;;; Auto-insert | 1251 | ;;; Auto-insert |
| 1252 | ;;; | 1252 | ;;; |
| 1253 | (defun tpu-insert-escape nil | 1253 | (defun tpu-insert-escape nil |
| 1254 | "Inserts an escape character, and so becomes the escape-key alias." | 1254 | "Insert an escape character, and so becomes the escape-key alias." |
| 1255 | (interactive) | 1255 | (interactive) |
| 1256 | (insert "\e")) | 1256 | (insert "\e")) |
| 1257 | 1257 | ||
| 1258 | (defun tpu-insert-formfeed nil | 1258 | (defun tpu-insert-formfeed nil |
| 1259 | "Inserts a formfeed character." | 1259 | "Insert a formfeed character." |
| 1260 | (interactive) | 1260 | (interactive) |
| 1261 | (insert "\C-L")) | 1261 | (insert "\C-L")) |
| 1262 | 1262 | ||
| @@ -1267,7 +1267,7 @@ This is useful for inserting control characters." | |||
| 1267 | (defvar tpu-saved-control-r nil "Saved value of Control-r.") | 1267 | (defvar tpu-saved-control-r nil "Saved value of Control-r.") |
| 1268 | 1268 | ||
| 1269 | (defun tpu-end-define-macro-key (key) | 1269 | (defun tpu-end-define-macro-key (key) |
| 1270 | "Ends the current macro definition" | 1270 | "End the current macro definition" |
| 1271 | (interactive "kPress the key you want to use to do what was just learned: ") | 1271 | (interactive "kPress the key you want to use to do what was just learned: ") |
| 1272 | (end-kbd-macro nil) | 1272 | (end-kbd-macro nil) |
| 1273 | (global-set-key key last-kbd-macro) | 1273 | (global-set-key key last-kbd-macro) |
| @@ -1285,8 +1285,9 @@ This is useful for inserting control characters." | |||
| 1285 | ;;; Buffers and Windows | 1285 | ;;; Buffers and Windows |
| 1286 | ;;; | 1286 | ;;; |
| 1287 | (defun tpu-kill-buffer nil | 1287 | (defun tpu-kill-buffer nil |
| 1288 | "Kills the current buffer. If tpu-kill-buffers-silently is non-nil, | 1288 | "Kill the current buffer. |
| 1289 | kills modified buffers without asking." | 1289 | If `tpu-kill-buffers-silently' is non-nil, |
| 1290 | kill modified buffers without asking." | ||
| 1290 | (interactive) | 1291 | (interactive) |
| 1291 | (if tpu-kill-buffers-silently (set-buffer-modified-p nil)) | 1292 | (if tpu-kill-buffers-silently (set-buffer-modified-p nil)) |
| 1292 | (kill-buffer (current-buffer))) | 1293 | (kill-buffer (current-buffer))) |
| @@ -1316,7 +1317,7 @@ kills modified buffers without asking." | |||
| 1316 | (switch-to-buffer (car (reverse list))))) | 1317 | (switch-to-buffer (car (reverse list))))) |
| 1317 | 1318 | ||
| 1318 | (defun tpu-make-file-buffer-list (buffer-list) | 1319 | (defun tpu-make-file-buffer-list (buffer-list) |
| 1319 | "Returns names from BUFFER-LIST excluding those beginning with a space or star." | 1320 | "Return names from BUFFER-LIST excluding those beginning with a space or star." |
| 1320 | (delq nil (mapcar '(lambda (b) | 1321 | (delq nil (mapcar '(lambda (b) |
| 1321 | (if (or (= (aref (buffer-name b) 0) ? ) | 1322 | (if (or (= (aref (buffer-name b) 0) ? ) |
| 1322 | (= (aref (buffer-name b) 0) ?*)) nil b)) | 1323 | (= (aref (buffer-name b) 0) ?*)) nil b)) |
| @@ -1339,7 +1340,7 @@ kills modified buffers without asking." | |||
| 1339 | ;;; Search | 1340 | ;;; Search |
| 1340 | ;;; | 1341 | ;;; |
| 1341 | (defun tpu-toggle-regexp nil | 1342 | (defun tpu-toggle-regexp nil |
| 1342 | "Switches in and out of regular expression search and replace mode." | 1343 | "Switch in and out of regular expression search and replace mode." |
| 1343 | (interactive) | 1344 | (interactive) |
| 1344 | (setq tpu-regexp-p (not tpu-regexp-p)) | 1345 | (setq tpu-regexp-p (not tpu-regexp-p)) |
| 1345 | (tpu-set-search) | 1346 | (tpu-set-search) |
| @@ -1460,7 +1461,7 @@ direction. If an argument is specified, don't set the search direction." | |||
| 1460 | (defalias 'tpu-search-internal-core (symbol-function 'tpu-search-internal)) | 1461 | (defalias 'tpu-search-internal-core (symbol-function 'tpu-search-internal)) |
| 1461 | 1462 | ||
| 1462 | (defun tpu-check-search-case (string) | 1463 | (defun tpu-check-search-case (string) |
| 1463 | "Returns t if string contains upper case." | 1464 | "Return t if string contains upper case." |
| 1464 | ;; if using regexp, eliminate upper case forms (\B \W \S.) | 1465 | ;; if using regexp, eliminate upper case forms (\B \W \S.) |
| 1465 | (if tpu-regexp-p | 1466 | (if tpu-regexp-p |
| 1466 | (let ((pat (copy-sequence string)) (case-fold-search nil) (pos 0)) | 1467 | (let ((pat (copy-sequence string)) (case-fold-search nil) (pos 0)) |
| @@ -1508,7 +1509,7 @@ Used for reversing a search in progress." | |||
| 1508 | ;;; Select / Unselect | 1509 | ;;; Select / Unselect |
| 1509 | ;;; | 1510 | ;;; |
| 1510 | (defun tpu-select (&optional quiet) | 1511 | (defun tpu-select (&optional quiet) |
| 1511 | "Sets the mark to define one end of a region." | 1512 | "Set the mark to define one end of a region." |
| 1512 | (interactive "P") | 1513 | (interactive "P") |
| 1513 | (cond ((tpu-mark) | 1514 | (cond ((tpu-mark) |
| 1514 | (tpu-unselect quiet)) | 1515 | (tpu-unselect quiet)) |
| @@ -1518,7 +1519,7 @@ Used for reversing a search in progress." | |||
| 1518 | (if (not quiet) (message "Move the text cursor to select text."))))) | 1519 | (if (not quiet) (message "Move the text cursor to select text."))))) |
| 1519 | 1520 | ||
| 1520 | (defun tpu-unselect (&optional quiet) | 1521 | (defun tpu-unselect (&optional quiet) |
| 1521 | "Removes the mark to unselect the current region." | 1522 | "Remove the mark to unselect the current region." |
| 1522 | (interactive "P") | 1523 | (interactive "P") |
| 1523 | (deactivate-mark) | 1524 | (deactivate-mark) |
| 1524 | (setq mark-ring nil) | 1525 | (setq mark-ring nil) |
| @@ -1607,14 +1608,14 @@ The text is saved for the tpu-paste command." | |||
| 1607 | (tpu-error "No selection active.")))) | 1608 | (tpu-error "No selection active.")))) |
| 1608 | 1609 | ||
| 1609 | (defun tpu-cut (arg) | 1610 | (defun tpu-cut (arg) |
| 1610 | "Copy selected region to the cut buffer. In the absence of an | 1611 | "Copy selected region to the cut buffer. |
| 1611 | argument, delete the selected region too." | 1612 | In the absence of an argument, delete the selected region too." |
| 1612 | (interactive "P") | 1613 | (interactive "P") |
| 1613 | (if arg (tpu-store-text) (tpu-cut-text))) | 1614 | (if arg (tpu-store-text) (tpu-cut-text))) |
| 1614 | 1615 | ||
| 1615 | (defun tpu-append-region (arg) | 1616 | (defun tpu-append-region (arg) |
| 1616 | "Append selected region to the tpu-cut buffer. In the absence of an | 1617 | "Append selected region to the tpu-cut buffer. |
| 1617 | argument, delete the selected region too." | 1618 | In the absence of an argument, delete the selected region too." |
| 1618 | (interactive "P") | 1619 | (interactive "P") |
| 1619 | (cond ((tpu-mark) | 1620 | (cond ((tpu-mark) |
| 1620 | (let ((beg (region-beginning)) (end (region-end))) | 1621 | (let ((beg (region-beginning)) (end (region-end))) |
| @@ -1690,8 +1691,8 @@ They are saved for the TPU-edt undelete-words command." | |||
| 1690 | (delete-region beg (point)))) | 1691 | (delete-region beg (point)))) |
| 1691 | 1692 | ||
| 1692 | (defun tpu-delete-current-char (num) | 1693 | (defun tpu-delete-current-char (num) |
| 1693 | "Delete one or specified number of characters after point. The last | 1694 | "Delete one or specified number of characters after point. |
| 1694 | character deleted is saved for the TPU-edt undelete-char command." | 1695 | The last character deleted is saved for the TPU-edt undelete-char command." |
| 1695 | (interactive "p") | 1696 | (interactive "p") |
| 1696 | (while (and (> num 0) (not (eobp))) | 1697 | (while (and (> num 0) (not (eobp))) |
| 1697 | (setq tpu-last-deleted-char (char-after (point))) | 1698 | (setq tpu-last-deleted-char (char-after (point))) |
| @@ -1852,10 +1853,10 @@ A negative argument means replace all occurrences of the search string." | |||
| 1852 | (message "Replaced %s occurrence%s." strings (if (not (= 1 strings)) "s" "")))) | 1853 | (message "Replaced %s occurrence%s." strings (if (not (= 1 strings)) "s" "")))) |
| 1853 | 1854 | ||
| 1854 | (defun tpu-emacs-replace (&optional dont-ask) | 1855 | (defun tpu-emacs-replace (&optional dont-ask) |
| 1855 | "A TPU-edt interface to the Emacs replace functions. If TPU-edt is | 1856 | "A TPU-edt interface to the Emacs replace functions. |
| 1856 | currently in regular expression mode, the Emacs regular expression | 1857 | If TPU-edt is currently in regular expression mode, the Emacs regular |
| 1857 | replace functions are used. If an argument is supplied, replacements | 1858 | expression replace functions are used. If an argument is supplied, |
| 1858 | are performed without asking. Only works in forward direction." | 1859 | replacements are performed without asking. Only works in forward direction." |
| 1859 | (interactive "P") | 1860 | (interactive "P") |
| 1860 | (cond (dont-ask | 1861 | (cond (dont-ask |
| 1861 | (setq current-prefix-arg nil) | 1862 | (setq current-prefix-arg nil) |
| @@ -1904,7 +1905,7 @@ or each line of the entire buffer if no region is selected." | |||
| 1904 | (end-of-line) (insert text) (forward-line)))))) | 1905 | (end-of-line) (insert text) (forward-line)))))) |
| 1905 | 1906 | ||
| 1906 | (defun tpu-trim-line-ends nil | 1907 | (defun tpu-trim-line-ends nil |
| 1907 | "Removes trailing whitespace from every line in the buffer." | 1908 | "Remove trailing whitespace from every line in the buffer." |
| 1908 | (interactive) | 1909 | (interactive) |
| 1909 | (save-match-data | 1910 | (save-match-data |
| 1910 | (save-excursion | 1911 | (save-excursion |
| @@ -2306,7 +2307,7 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll." | |||
| 2306 | (setq tpu-control-keys tpu-style))) | 2307 | (setq tpu-control-keys tpu-style))) |
| 2307 | 2308 | ||
| 2308 | (defun tpu-toggle-control-keys nil | 2309 | (defun tpu-toggle-control-keys nil |
| 2309 | "Toggles control key bindings between TPU-edt and Emacs." | 2310 | "Toggle control key bindings between TPU-edt and Emacs." |
| 2310 | (interactive) | 2311 | (interactive) |
| 2311 | (tpu-reset-control-keys (not tpu-control-keys)) | 2312 | (tpu-reset-control-keys (not tpu-control-keys)) |
| 2312 | (and (interactive-p) | 2313 | (and (interactive-p) |
diff --git a/lisp/eshell/em-smart.el b/lisp/eshell/em-smart.el index 0fbbf60a351..d7a32099ff6 100644 --- a/lisp/eshell/em-smart.el +++ b/lisp/eshell/em-smart.el | |||
| @@ -110,8 +110,8 @@ If set to nil, quick commands won't be reviewed. A quick command is a | |||
| 110 | command that produces no output, and exits successfully. | 110 | command that produces no output, and exits successfully. |
| 111 | 111 | ||
| 112 | If set to `not-even-short-output', then the definition of \"quick | 112 | If set to `not-even-short-output', then the definition of \"quick |
| 113 | command\" is extended to include commands that produce output, iff | 113 | command\" is extended to include commands that produce output, if and |
| 114 | that output can be presented in its entirely in the Eshell window." | 114 | only if that output can be presented in its entirely in the Eshell window." |
| 115 | :type '(choice (const :tag "No" nil) | 115 | :type '(choice (const :tag "No" nil) |
| 116 | (const :tag "Yes" t) | 116 | (const :tag "Yes" t) |
| 117 | (const :tag "Not even short output" | 117 | (const :tag "Not even short output" |
diff --git a/lisp/eshell/esh-arg.el b/lisp/eshell/esh-arg.el index 2418dc1b1ba..ccb0701d804 100644 --- a/lisp/eshell/esh-arg.el +++ b/lisp/eshell/esh-arg.el | |||
| @@ -281,7 +281,7 @@ Point is left at the end of the arguments." | |||
| 281 | (= (+ pos 2) (point-max)))))) | 281 | (= (+ pos 2) (point-max)))))) |
| 282 | 282 | ||
| 283 | (defun eshell-quote-backslash (string &optional index) | 283 | (defun eshell-quote-backslash (string &optional index) |
| 284 | "Intelligently backslash the character occuring in STRING at INDEX. | 284 | "Intelligently backslash the character occurring in STRING at INDEX. |
| 285 | If the character is itself a backslash, it needs no escaping." | 285 | If the character is itself a backslash, it needs no escaping." |
| 286 | (let ((char (aref string index))) | 286 | (let ((char (aref string index))) |
| 287 | (if (eq char ?\\) | 287 | (if (eq char ?\\) |
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 36b577baef5..9e34b1c9784 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -139,7 +139,7 @@ just before \"Other\" at the end." | |||
| 139 | ,(purecopy "^widget-") ,(purecopy "^custom-") ,(purecopy "^vm-")) | 139 | ,(purecopy "^widget-") ,(purecopy "^custom-") ,(purecopy "^vm-")) |
| 140 | "*List of faces that are of no interest to the user.") | 140 | "*List of faces that are of no interest to the user.") |
| 141 | (make-obsolete-variable 'facemenu-unlisted-faces 'facemenu-listed-faces | 141 | (make-obsolete-variable 'facemenu-unlisted-faces 'facemenu-listed-faces |
| 142 | "since 22.1,\nand has no effect on the Face menu") | 142 | "22.1,\nand has no effect on the Face menu") |
| 143 | 143 | ||
| 144 | (defcustom facemenu-listed-faces nil | 144 | (defcustom facemenu-listed-faces nil |
| 145 | "*List of faces to include in the Face menu. | 145 | "*List of faces to include in the Face menu. |
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 79b24a96013..be38fbf5478 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el | |||
| @@ -309,9 +309,9 @@ called interactively, are: | |||
| 309 | Write active REGEXPs into buffer as comments (if possible). They may | 309 | Write active REGEXPs into buffer as comments (if possible). They may |
| 310 | be read the next time file is loaded or when the \\[hi-lock-find-patterns] command | 310 | be read the next time file is loaded or when the \\[hi-lock-find-patterns] command |
| 311 | is issued. The inserted regexps are in the form of font lock keywords. | 311 | is issued. The inserted regexps are in the form of font lock keywords. |
| 312 | (See `font-lock-keywords'.) They may be edited and re-loaded with \\[hi-lock-find-patterns], | 312 | (See `font-lock-keywords'.) They may be edited and re-loaded with \\[hi-lock-find-patterns], |
| 313 | any valid `font-lock-keywords' form is acceptable. When a file is | 313 | any valid `font-lock-keywords' form is acceptable. When a file is |
| 314 | loaded the patterns are read if `hi-lock-file-patterns-policy is | 314 | loaded the patterns are read if `hi-lock-file-patterns-policy' is |
| 315 | 'ask and the user responds y to the prompt, or if | 315 | 'ask and the user responds y to the prompt, or if |
| 316 | `hi-lock-file-patterns-policy' is bound to a function and that | 316 | `hi-lock-file-patterns-policy' is bound to a function and that |
| 317 | function returns t. | 317 | function returns t. |
diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 3eb4b4babf2..f4d3cf06ba5 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el | |||
| @@ -76,13 +76,13 @@ | |||
| 76 | :group 'icomplete) | 76 | :group 'icomplete) |
| 77 | 77 | ||
| 78 | (defcustom icomplete-compute-delay .3 | 78 | (defcustom icomplete-compute-delay .3 |
| 79 | "*Completions-computation stall, used only with large-number | 79 | "*Completions-computation stall, used only with large-number completions. |
| 80 | completions - see `icomplete-delay-completions-threshold'." | 80 | See `icomplete-delay-completions-threshold'." |
| 81 | :type 'number | 81 | :type 'number |
| 82 | :group 'icomplete) | 82 | :group 'icomplete) |
| 83 | 83 | ||
| 84 | (defcustom icomplete-delay-completions-threshold 400 | 84 | (defcustom icomplete-delay-completions-threshold 400 |
| 85 | "*Pending-completions number over which to apply icomplete-compute-delay." | 85 | "*Pending-completions number over which to apply `icomplete-compute-delay'." |
| 86 | :type 'integer | 86 | :type 'integer |
| 87 | :group 'icomplete) | 87 | :group 'icomplete) |
| 88 | 88 | ||
| @@ -140,7 +140,7 @@ minibuffer completion.") | |||
| 140 | (add-hook 'icomplete-post-command-hook 'icomplete-exhibit) | 140 | (add-hook 'icomplete-post-command-hook 'icomplete-exhibit) |
| 141 | 141 | ||
| 142 | (defun icomplete-get-keys (func-name) | 142 | (defun icomplete-get-keys (func-name) |
| 143 | "Return strings naming keys bound to `func-name', or nil if none. | 143 | "Return strings naming keys bound to FUNC-NAME, or nil if none. |
| 144 | Examines the prior, not current, buffer, presuming that current buffer | 144 | Examines the prior, not current, buffer, presuming that current buffer |
| 145 | is minibuffer." | 145 | is minibuffer." |
| 146 | (if (commandp func-name) | 146 | (if (commandp func-name) |
diff --git a/lisp/play/solitaire.el b/lisp/play/solitaire.el index 3532d47e32c..1376cf57f72 100644 --- a/lisp/play/solitaire.el +++ b/lisp/play/solitaire.el | |||
| @@ -35,15 +35,15 @@ | |||
| 35 | ;;; Code: | 35 | ;;; Code: |
| 36 | 36 | ||
| 37 | (defgroup solitaire nil | 37 | (defgroup solitaire nil |
| 38 | "Game of solitaire." | 38 | "Game of Solitaire." |
| 39 | :prefix "solitaire-" | 39 | :prefix "solitaire-" |
| 40 | :group 'games) | 40 | :group 'games) |
| 41 | 41 | ||
| 42 | (defvar solitaire-mode-map nil | 42 | (defvar solitaire-mode-map nil |
| 43 | "Keymap for playing solitaire.") | 43 | "Keymap for playing Solitaire.") |
| 44 | 44 | ||
| 45 | (defcustom solitaire-mode-hook nil | 45 | (defcustom solitaire-mode-hook nil |
| 46 | "Hook to run upon entry to solitaire." | 46 | "Hook to run upon entry to Solitaire." |
| 47 | :type 'hook | 47 | :type 'hook |
| 48 | :group 'solitaire) | 48 | :group 'solitaire) |
| 49 | 49 | ||
| @@ -94,8 +94,8 @@ | |||
| 94 | (put 'solitaire-mode 'mode-class 'special) | 94 | (put 'solitaire-mode 'mode-class 'special) |
| 95 | 95 | ||
| 96 | (defun solitaire-mode () | 96 | (defun solitaire-mode () |
| 97 | "Major mode for playing solitaire. | 97 | "Major mode for playing Solitaire. |
| 98 | To learn how to play solitaire, see the documentation for function | 98 | To learn how to play Solitaire, see the documentation for function |
| 99 | `solitaire'. | 99 | `solitaire'. |
| 100 | \\<solitaire-mode-map> | 100 | \\<solitaire-mode-map> |
| 101 | The usual mnemonic keys move the cursor around the board; in addition, | 101 | The usual mnemonic keys move the cursor around the board; in addition, |
| @@ -147,7 +147,7 @@ Move stones using \\[solitaire-move] followed by a direction key. | |||
| 147 | Undo moves using \\[solitaire-undo]. | 147 | Undo moves using \\[solitaire-undo]. |
| 148 | Check for possible moves using \\[solitaire-do-check]. | 148 | Check for possible moves using \\[solitaire-do-check]. |
| 149 | \(The variable `solitaire-auto-eval' controls whether to automatically | 149 | \(The variable `solitaire-auto-eval' controls whether to automatically |
| 150 | check after each move or undo) | 150 | check after each move or undo.) |
| 151 | 151 | ||
| 152 | What is Solitaire? | 152 | What is Solitaire? |
| 153 | 153 | ||
| @@ -428,7 +428,7 @@ Seen in info on text lines." | |||
| 428 | 428 | ||
| 429 | ;; And here's the spoiler:) | 429 | ;; And here's the spoiler:) |
| 430 | (defun solitaire-solve () | 430 | (defun solitaire-solve () |
| 431 | "Spoil solitaire by solving the game for you - nearly ... | 431 | "Spoil Solitaire by solving the game for you - nearly ... |
| 432 | ... stops with five stones left ;)" | 432 | ... stops with five stones left ;)" |
| 433 | (interactive) | 433 | (interactive) |
| 434 | (when (< solitaire-stones 32) | 434 | (when (< solitaire-stones 32) |
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index e1c87b884c8..a564f426ee2 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1315,7 +1315,7 @@ want the GDB Graphical Interface." | |||
| 1315 | (setq gdb-flush-pending-output t) | 1315 | (setq gdb-flush-pending-output t) |
| 1316 | (setq gud-running nil) | 1316 | (setq gud-running nil) |
| 1317 | (gdb-force-mode-line-update | 1317 | (gdb-force-mode-line-update |
| 1318 | (propertize "stopped"'face font-lock-warning-face)) | 1318 | (propertize "stopped" 'face font-lock-warning-face)) |
| 1319 | (setq gdb-output-sink 'user) | 1319 | (setq gdb-output-sink 'user) |
| 1320 | (setq gdb-input-queue nil) | 1320 | (setq gdb-input-queue nil) |
| 1321 | (setq gdb-pending-triggers nil) | 1321 | (setq gdb-pending-triggers nil) |
| @@ -3109,7 +3109,7 @@ Kills the gdb buffers, and resets variables and the source buffers." | |||
| 3109 | (remove-hook 'after-save-hook 'gdb-create-define-alist t)) | 3109 | (remove-hook 'after-save-hook 'gdb-create-define-alist t)) |
| 3110 | 3110 | ||
| 3111 | (defun gdb-source-info () | 3111 | (defun gdb-source-info () |
| 3112 | "Find the source file where the program starts and displays it with related | 3112 | "Find the source file where the program starts and display it with related |
| 3113 | buffers." | 3113 | buffers." |
| 3114 | (goto-char (point-min)) | 3114 | (goto-char (point-min)) |
| 3115 | (if (and (search-forward "Located in " nil t) | 3115 | (if (and (search-forward "Located in " nil t) |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 341d1c46722..9b7da0ce610 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -350,7 +350,7 @@ comments and strings, or that point is within brackets/parens." | |||
| 350 | (error nil)))))))) | 350 | (error nil)))))))) |
| 351 | 351 | ||
| 352 | (defun python-comment-line-p () | 352 | (defun python-comment-line-p () |
| 353 | "Return non-nil iff current line has only a comment." | 353 | "Return non-nil if and only if current line has only a comment." |
| 354 | (save-excursion | 354 | (save-excursion |
| 355 | (end-of-line) | 355 | (end-of-line) |
| 356 | (when (eq 'comment (syntax-ppss-context (syntax-ppss))) | 356 | (when (eq 'comment (syntax-ppss-context (syntax-ppss))) |
| @@ -358,7 +358,7 @@ comments and strings, or that point is within brackets/parens." | |||
| 358 | (looking-at (rx (or (syntax comment-start) line-end)))))) | 358 | (looking-at (rx (or (syntax comment-start) line-end)))))) |
| 359 | 359 | ||
| 360 | (defun python-blank-line-p () | 360 | (defun python-blank-line-p () |
| 361 | "Return non-nil iff current line is blank." | 361 | "Return non-nil if and only if current line is blank." |
| 362 | (save-excursion | 362 | (save-excursion |
| 363 | (beginning-of-line) | 363 | (beginning-of-line) |
| 364 | (looking-at "\\s-*$"))) | 364 | (looking-at "\\s-*$"))) |
| @@ -852,7 +852,7 @@ multi-line bracketed expressions." | |||
| 852 | "Skip out of any nested brackets. | 852 | "Skip out of any nested brackets. |
| 853 | Skip forward if FORWARD is non-nil, else backward. | 853 | Skip forward if FORWARD is non-nil, else backward. |
| 854 | If SYNTAX is non-nil it is the state returned by `syntax-ppss' at point. | 854 | If SYNTAX is non-nil it is the state returned by `syntax-ppss' at point. |
| 855 | Return non-nil iff skipping was done." | 855 | Return non-nil if and only if skipping was done." |
| 856 | (let ((depth (syntax-ppss-depth (or syntax (syntax-ppss)))) | 856 | (let ((depth (syntax-ppss-depth (or syntax (syntax-ppss)))) |
| 857 | (forward (if forward -1 1))) | 857 | (forward (if forward -1 1))) |
| 858 | (unless (zerop depth) | 858 | (unless (zerop depth) |
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index 370431dc639..08db694e8ec 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -220,10 +220,10 @@ This list is of the form: | |||
| 220 | where NAME is the name of the major display mode these functions are | 220 | where NAME is the name of the major display mode these functions are |
| 221 | for, and the remaining elements FUNCTION are functions to call in order. | 221 | for, and the remaining elements FUNCTION are functions to call in order. |
| 222 | Each function must return nil if interrupted, or t if completed. | 222 | Each function must return nil if interrupted, or t if completed. |
| 223 | Stealthy functions which have a single operation should always return | 223 | Stealthy functions which have a single operation should always return t. |
| 224 | t. Functions which take a long time should maintain a state (where | 224 | Functions which take a long time should maintain a state (where they |
| 225 | they are in their speedbar related calculations) and permit | 225 | are in their speedbar related calculations) and permit interruption. |
| 226 | interruption. See `speedbar-check-vc' as a good example.") | 226 | See `speedbar-check-vc' as a good example.") |
| 227 | 227 | ||
| 228 | (defvar speedbar-mode-functions-list | 228 | (defvar speedbar-mode-functions-list |
| 229 | '(("files" (speedbar-item-info . speedbar-files-item-info) | 229 | '(("files" (speedbar-item-info . speedbar-files-item-info) |
| @@ -322,8 +322,8 @@ A nil value means don't show the file in the list." | |||
| 322 | 322 | ||
| 323 | ;;; EVENTUALLY REMOVE THESE | 323 | ;;; EVENTUALLY REMOVE THESE |
| 324 | 324 | ||
| 325 | ;; When I moved to a repeating timer, I had the horrible missfortune | 325 | ;; When I moved to a repeating timer, I had the horrible misfortune |
| 326 | ;; of loosing the ability for adaptive speed choice. This update | 326 | ;; of losing the ability for adaptive speed choice. This update |
| 327 | ;; speed currently causes long delays when it should have been turned off. | 327 | ;; speed currently causes long delays when it should have been turned off. |
| 328 | (defvar speedbar-update-speed dframe-update-speed | 328 | (defvar speedbar-update-speed dframe-update-speed |
| 329 | "*Obsoleted variable. Use `dframe-update-speed'.") | 329 | "*Obsoleted variable. Use `dframe-update-speed'.") |
| @@ -367,7 +367,7 @@ is attached to." | |||
| 367 | (sexp :tag "Value")))) | 367 | (sexp :tag "Value")))) |
| 368 | 368 | ||
| 369 | (defcustom speedbar-use-imenu-flag (fboundp 'imenu) | 369 | (defcustom speedbar-use-imenu-flag (fboundp 'imenu) |
| 370 | "*Non-nil means use imenu for file parsing. nil to use etags. | 370 | "*Non-nil means use imenu for file parsing, nil to use etags. |
| 371 | XEmacs prior to 20.4 doesn't support imenu, therefore the default is to | 371 | XEmacs prior to 20.4 doesn't support imenu, therefore the default is to |
| 372 | use etags instead. Etags support is not as robust as imenu support." | 372 | use etags instead. Etags support is not as robust as imenu support." |
| 373 | :tag "Use Imenu for tags" | 373 | :tag "Use Imenu for tags" |
| @@ -388,7 +388,7 @@ tags to insert. It will then create the speedbar buttons.") | |||
| 388 | 388 | ||
| 389 | (defcustom speedbar-use-tool-tips-flag (and (not (featurep 'xemacs)) | 389 | (defcustom speedbar-use-tool-tips-flag (and (not (featurep 'xemacs)) |
| 390 | (>= emacs-major-version 21)) | 390 | (>= emacs-major-version 21)) |
| 391 | "*Non-nil means to use tool tips if they are avaialble. | 391 | "*Non-nil means to use tool tips if they are available. |
| 392 | When tooltips are not available, mouse-tracking and minibuffer | 392 | When tooltips are not available, mouse-tracking and minibuffer |
| 393 | display is used instead." | 393 | display is used instead." |
| 394 | :group 'speedbar | 394 | :group 'speedbar |
| @@ -523,9 +523,10 @@ hierarchy would be replaced with the new directory." | |||
| 523 | :type 'hook) | 523 | :type 'hook) |
| 524 | 524 | ||
| 525 | (defcustom speedbar-verbosity-level 1 | 525 | (defcustom speedbar-verbosity-level 1 |
| 526 | "*Verbosity level of the speedbar. 0 means say nothing. | 526 | "*Verbosity level of the speedbar. |
| 527 | 1 means medium level verbosity. 2 and higher are higher levels of | 527 | 0 means say nothing. |
| 528 | verbosity." | 528 | 1 means medium level verbosity. |
| 529 | 2 and higher are higher levels of verbosity." | ||
| 529 | :group 'speedbar | 530 | :group 'speedbar |
| 530 | :type 'integer) | 531 | :type 'integer) |
| 531 | 532 | ||
| @@ -636,7 +637,7 @@ with `.' followed by extensions, followed by full-filenames." | |||
| 636 | "\\)$"))) | 637 | "\\)$"))) |
| 637 | 638 | ||
| 638 | (defvar speedbar-ignored-directory-regexp nil | 639 | (defvar speedbar-ignored-directory-regexp nil |
| 639 | "Regular expression matching directorys speedbar will not switch to. | 640 | "Regular expression matching directories speedbar will not switch to. |
| 640 | Created from `speedbar-ignored-directory-expressions' with the function | 641 | Created from `speedbar-ignored-directory-expressions' with the function |
| 641 | `speedbar-extension-list-to-regex' (A misnamed function in this case.) | 642 | `speedbar-extension-list-to-regex' (A misnamed function in this case.) |
| 642 | Use the function `speedbar-add-ignored-directory-regexp', or customize the | 643 | Use the function `speedbar-add-ignored-directory-regexp', or customize the |
| @@ -645,8 +646,8 @@ variable `speedbar-ignored-directory-expressions' to modify this variable.") | |||
| 645 | (defcustom speedbar-ignored-directory-expressions | 646 | (defcustom speedbar-ignored-directory-expressions |
| 646 | '("[/\\]logs?[/\\]\\'") | 647 | '("[/\\]logs?[/\\]\\'") |
| 647 | "*List of regular expressions matching directories speedbar will ignore. | 648 | "*List of regular expressions matching directories speedbar will ignore. |
| 648 | They should included directorys to directories which are notoriously very | 649 | They should included directories which are notoriously very large |
| 649 | large and take a long time to load in. Use the function | 650 | and take a long time to load in. Use the function |
| 650 | `speedbar-add-ignored-directory-regexp' to add new items to this list after | 651 | `speedbar-add-ignored-directory-regexp' to add new items to this list after |
| 651 | speedbar is loaded. You may place anything you like in this list | 652 | speedbar is loaded. You may place anything you like in this list |
| 652 | before speedbar has been loaded." | 653 | before speedbar has been loaded." |
| @@ -673,12 +674,12 @@ useful, such as version control." | |||
| 673 | ;; backup refdir lockfile | 674 | ;; backup refdir lockfile |
| 674 | (concat nstr "\\|#[^#]+#$\\|\\.\\.?\\'\\|\\.#")) | 675 | (concat nstr "\\|#[^#]+#$\\|\\.\\.?\\'\\|\\.#")) |
| 675 | "*Regexp matching files we don't want displayed in a speedbar buffer. | 676 | "*Regexp matching files we don't want displayed in a speedbar buffer. |
| 676 | It is generated from the variable `completion-ignored-extensions'") | 677 | It is generated from the variable `completion-ignored-extensions'.") |
| 677 | 678 | ||
| 678 | (defvar speedbar-file-regexp nil | 679 | (defvar speedbar-file-regexp nil |
| 679 | "Regular expression matching files we know how to expand. | 680 | "Regular expression matching files we know how to expand. |
| 680 | Created from `speedbar-supported-extension-expressions' with the | 681 | Created from `speedbar-supported-extension-expressions' with the |
| 681 | function `speedbar-extension-list-to-regex'") | 682 | function `speedbar-extension-list-to-regex'.") |
| 682 | 683 | ||
| 683 | ;; this is dangerous to customize, because the defaults will probably | 684 | ;; this is dangerous to customize, because the defaults will probably |
| 684 | ;; change in the future. | 685 | ;; change in the future. |
| @@ -697,8 +698,7 @@ will be stripped by a simplified optimizer when compiled into a | |||
| 697 | singular expression. This variable will be turned into | 698 | singular expression. This variable will be turned into |
| 698 | `speedbar-file-regexp' for use with speedbar. You should use the | 699 | `speedbar-file-regexp' for use with speedbar. You should use the |
| 699 | function `speedbar-add-supported-extension' to add a new extension at | 700 | function `speedbar-add-supported-extension' to add a new extension at |
| 700 | runtime, or use the configuration dialog to set it in your .emacs | 701 | runtime, or use the configuration dialog to set it in your .emacs file. |
| 701 | file. | ||
| 702 | If you add an extension to this list, and it does not appear, you may | 702 | If you add an extension to this list, and it does not appear, you may |
| 703 | need to also modify `completion-ignored-extension' which will also help | 703 | need to also modify `completion-ignored-extension' which will also help |
| 704 | file completion." | 704 | file completion." |
| @@ -1051,7 +1051,7 @@ supported at a time. | |||
| 1051 | 1051 | ||
| 1052 | (defun speedbar-handle-delete-frame (e) | 1052 | (defun speedbar-handle-delete-frame (e) |
| 1053 | "Handle a delete frame event E. | 1053 | "Handle a delete frame event E. |
| 1054 | If the deleted frame is the frame SPEEDBAR is attached to, | 1054 | If the deleted frame is the frame speedbar is attached to, |
| 1055 | we need to delete speedbar also." | 1055 | we need to delete speedbar also." |
| 1056 | (when (and speedbar-frame | 1056 | (when (and speedbar-frame |
| 1057 | (eq (car (car (cdr e))) ;; frame to be deleted | 1057 | (eq (car (car (cdr e))) ;; frame to be deleted |
| @@ -1137,7 +1137,7 @@ in the selected file. | |||
| 1137 | speedbar-buffer) | 1137 | speedbar-buffer) |
| 1138 | 1138 | ||
| 1139 | (defmacro speedbar-message (fmt &rest args) | 1139 | (defmacro speedbar-message (fmt &rest args) |
| 1140 | "Like message, but for use in the speedbar frame. | 1140 | "Like `message', but for use in the speedbar frame. |
| 1141 | Argument FMT is the format string, and ARGS are the arguments for message." | 1141 | Argument FMT is the format string, and ARGS are the arguments for message." |
| 1142 | `(dframe-message ,fmt ,@args)) | 1142 | `(dframe-message ,fmt ,@args)) |
| 1143 | 1143 | ||
| @@ -1289,8 +1289,7 @@ and the existence of packages." | |||
| 1289 | (t (speedbar-message nil))))))) | 1289 | (t (speedbar-message nil))))))) |
| 1290 | 1290 | ||
| 1291 | (defun speedbar-show-info-under-mouse () | 1291 | (defun speedbar-show-info-under-mouse () |
| 1292 | "Call the info function for the line under the mouse. | 1292 | "Call the info function for the line under the mouse." |
| 1293 | Optional EVENT is currently not used." | ||
| 1294 | (let ((pos (mouse-position))) ; we ignore event until I use it later. | 1293 | (let ((pos (mouse-position))) ; we ignore event until I use it later. |
| 1295 | (if (equal (car pos) speedbar-frame) | 1294 | (if (equal (car pos) speedbar-frame) |
| 1296 | (save-excursion | 1295 | (save-excursion |
| @@ -1472,7 +1471,7 @@ File style information is displayed with `speedbar-item-info'." | |||
| 1472 | (point) (progn (end-of-line) (point)))))) | 1471 | (point) (progn (end-of-line) (point)))))) |
| 1473 | 1472 | ||
| 1474 | (defun speedbar-item-info () | 1473 | (defun speedbar-item-info () |
| 1475 | "Display info in the mini-buffer about the button the mouse is over. | 1474 | "Display info in the minibuffer about the button the mouse is over. |
| 1476 | This function can be replaced in `speedbar-mode-functions-list' as | 1475 | This function can be replaced in `speedbar-mode-functions-list' as |
| 1477 | `speedbar-item-info'." | 1476 | `speedbar-item-info'." |
| 1478 | (interactive) | 1477 | (interactive) |
| @@ -1550,7 +1549,7 @@ Return nil if not applicable." | |||
| 1550 | nil))))) | 1549 | nil))))) |
| 1551 | 1550 | ||
| 1552 | (defun speedbar-files-item-info () | 1551 | (defun speedbar-files-item-info () |
| 1553 | "Display info in the mini-buffer about the button the mouse is over." | 1552 | "Display info in the minibuffer about the button the mouse is over." |
| 1554 | (if (not speedbar-shown-directories) | 1553 | (if (not speedbar-shown-directories) |
| 1555 | (speedbar-generic-item-info) | 1554 | (speedbar-generic-item-info) |
| 1556 | (or (speedbar-item-info-file-helper) | 1555 | (or (speedbar-item-info-file-helper) |
| @@ -1827,7 +1826,7 @@ This is based on `speedbar-initial-expansion-list-name' referencing | |||
| 1827 | (speedbar-reconfigure-keymaps)))) | 1826 | (speedbar-reconfigure-keymaps)))) |
| 1828 | 1827 | ||
| 1829 | (defun speedbar-fetch-replacement-function (function) | 1828 | (defun speedbar-fetch-replacement-function (function) |
| 1830 | "Return a current mode specific replacement for function, or nil. | 1829 | "Return a current mode-specific replacement for function, or nil. |
| 1831 | Scans `speedbar-mode-functions-list' first for the current mode, then | 1830 | Scans `speedbar-mode-functions-list' first for the current mode, then |
| 1832 | for FUNCTION." | 1831 | for FUNCTION." |
| 1833 | (cdr (assoc function | 1832 | (cdr (assoc function |
| @@ -1844,7 +1843,7 @@ See `speedbar-mode-functions-list' for details." | |||
| 1844 | ;; | 1843 | ;; |
| 1845 | (defun speedbar-maybe-add-localized-support (buffer) | 1844 | (defun speedbar-maybe-add-localized-support (buffer) |
| 1846 | "Quick check function called on BUFFERs by the speedbar timer function. | 1845 | "Quick check function called on BUFFERs by the speedbar timer function. |
| 1847 | Maintains the value of local variables which control speedbars use | 1846 | Maintains the value of local variables which control speedbar's use |
| 1848 | of the special mode functions." | 1847 | of the special mode functions." |
| 1849 | (or speedbar-special-mode-expansion-list | 1848 | (or speedbar-special-mode-expansion-list |
| 1850 | (speedbar-add-localized-speedbar-support buffer))) | 1849 | (speedbar-add-localized-speedbar-support buffer))) |
| @@ -1929,7 +1928,7 @@ the file-system." | |||
| 1929 | 1928 | ||
| 1930 | (defun speedbar-directory-buttons (directory index) | 1929 | (defun speedbar-directory-buttons (directory index) |
| 1931 | "Insert a single button group at point for DIRECTORY. | 1930 | "Insert a single button group at point for DIRECTORY. |
| 1932 | Each directory directory part is a different button. If part of the directory | 1931 | Each directory part is a different button. If part of the directory |
| 1933 | matches the user directory ~, then it is replaced with a ~. | 1932 | matches the user directory ~, then it is replaced with a ~. |
| 1934 | INDEX is not used, but is required by the caller." | 1933 | INDEX is not used, but is required by the caller." |
| 1935 | (let* ((tilde (expand-file-name "~/")) | 1934 | (let* ((tilde (expand-file-name "~/")) |
| @@ -2146,7 +2145,7 @@ Groups may optionally contain a position." | |||
| 2146 | ))) | 2145 | ))) |
| 2147 | 2146 | ||
| 2148 | (defun speedbar-generic-list-positioned-group-p (sublst) | 2147 | (defun speedbar-generic-list-positioned-group-p (sublst) |
| 2149 | "Non-nil of SUBLST is a group with a position." | 2148 | "Non-nil if SUBLST is a group with a position." |
| 2150 | (and (stringp (car-safe sublst)) | 2149 | (and (stringp (car-safe sublst)) |
| 2151 | (number-or-marker-p (car-safe (cdr-safe sublst))) | 2150 | (number-or-marker-p (car-safe (cdr-safe sublst))) |
| 2152 | (listp (cdr-safe (cdr-safe sublst))) | 2151 | (listp (cdr-safe (cdr-safe sublst))) |
| @@ -2403,7 +2402,7 @@ Make buffer local for your mode.") | |||
| 2403 | "At LEVEL, insert a generic multi-level alist LST. | 2402 | "At LEVEL, insert a generic multi-level alist LST. |
| 2404 | Associations with lists get {+} tags (to expand into more nodes) and | 2403 | Associations with lists get {+} tags (to expand into more nodes) and |
| 2405 | those with positions just get a > as the indicator. {+} buttons will | 2404 | those with positions just get a > as the indicator. {+} buttons will |
| 2406 | have the function EXPAND-FUN and the token is the CDR list. The token | 2405 | have the function EXPAND-FUN and the token is the cdr list. The token |
| 2407 | name will have the function FIND-FUN and not token." | 2406 | name will have the function FIND-FUN and not token." |
| 2408 | ;; Remove imenu rescan button | 2407 | ;; Remove imenu rescan button |
| 2409 | (if (string= (car (car lst)) "*Rescan*") | 2408 | (if (string= (car (car lst)) "*Rescan*") |
| @@ -2766,8 +2765,7 @@ If new functions are added, their state needs to be updated here." | |||
| 2766 | (defun speedbar-update-current-file () | 2765 | (defun speedbar-update-current-file () |
| 2767 | "Find the current file, and update our visuals to indicate its name. | 2766 | "Find the current file, and update our visuals to indicate its name. |
| 2768 | This is specific to file names. If the file name doesn't show up, but | 2767 | This is specific to file names. If the file name doesn't show up, but |
| 2769 | it should be in the list, then the directory cache needs to be | 2768 | it should be in the list, then the directory cache needs to be updated." |
| 2770 | updated." | ||
| 2771 | (let* ((lastf (selected-frame)) | 2769 | (let* ((lastf (selected-frame)) |
| 2772 | (newcfd (save-excursion | 2770 | (newcfd (save-excursion |
| 2773 | (dframe-select-attached-frame speedbar-frame) | 2771 | (dframe-select-attached-frame speedbar-frame) |
| @@ -2836,8 +2834,8 @@ updated." | |||
| 2836 | 2834 | ||
| 2837 | (defun speedbar-add-indicator (indicator-string &optional replace-this) | 2835 | (defun speedbar-add-indicator (indicator-string &optional replace-this) |
| 2838 | "Add INDICATOR-STRING to the end of this speedbar line. | 2836 | "Add INDICATOR-STRING to the end of this speedbar line. |
| 2839 | If INDICATOR-STRING is space, and REPLACE-THIS is a character, then | 2837 | If INDICATOR-STRING is space, and REPLACE-THIS is a character, |
| 2840 | the existing indicator is removed. If there is already an | 2838 | then the existing indicator is removed. If there is already an |
| 2841 | indicator, then do not add a space." | 2839 | indicator, then do not add a space." |
| 2842 | (beginning-of-line) | 2840 | (beginning-of-line) |
| 2843 | ;; The nature of the beast: Assume we are in "the right place" | 2841 | ;; The nature of the beast: Assume we are in "the right place" |
| @@ -2950,7 +2948,7 @@ to add more types of version control systems." | |||
| 2950 | t))) | 2948 | t))) |
| 2951 | 2949 | ||
| 2952 | (defun speedbar-check-vc-this-line (depth) | 2950 | (defun speedbar-check-vc-this-line (depth) |
| 2953 | "Return t if the file on this line is check of of a version control system. | 2951 | "Return t if the file on this line is checked out of a version control system. |
| 2954 | Parameter DEPTH is a string with the current depth of indentation of | 2952 | Parameter DEPTH is a string with the current depth of indentation of |
| 2955 | the file being checked." | 2953 | the file being checked." |
| 2956 | (let* ((d (string-to-number depth)) | 2954 | (let* ((d (string-to-number depth)) |
| @@ -3222,7 +3220,7 @@ directory with these items. This function is replaceable in | |||
| 3222 | (if rf (funcall rf depth) default-directory)))) | 3220 | (if rf (funcall rf depth) default-directory)))) |
| 3223 | 3221 | ||
| 3224 | (defun speedbar-files-line-directory (&optional depth) | 3222 | (defun speedbar-files-line-directory (&optional depth) |
| 3225 | "Retrieve the directoryname associated with the current line. | 3223 | "Retrieve the directory associated with the current line. |
| 3226 | This may require traversing backwards from DEPTH and combining the default | 3224 | This may require traversing backwards from DEPTH and combining the default |
| 3227 | directory with these items." | 3225 | directory with these items." |
| 3228 | (save-excursion | 3226 | (save-excursion |
| @@ -3507,9 +3505,8 @@ INDENT is the current indentation level." | |||
| 3507 | 3505 | ||
| 3508 | (defun speedbar-tag-expand (text token indent) | 3506 | (defun speedbar-tag-expand (text token indent) |
| 3509 | "Expand a tag sublist. Imenu will return sub-lists of specialized tag types. | 3507 | "Expand a tag sublist. Imenu will return sub-lists of specialized tag types. |
| 3510 | Etags does not support this feature. TEXT will be the button | 3508 | Etags does not support this feature. TEXT will be the button string. |
| 3511 | string. TOKEN will be the list, and INDENT is the current indentation | 3509 | TOKEN will be the list, and INDENT is the current indentation level." |
| 3512 | level." | ||
| 3513 | (cond ((string-match "+" text) ;we have to expand this file | 3510 | (cond ((string-match "+" text) ;we have to expand this file |
| 3514 | (speedbar-change-expand-button-char ?-) | 3511 | (speedbar-change-expand-button-char ?-) |
| 3515 | (speedbar-with-writable | 3512 | (speedbar-with-writable |
| @@ -3794,7 +3791,7 @@ Each symbol will be associated with its line position in FILE." | |||
| 3794 | ; (delete-region (match-beginning 1) (match-end 1))))) | 3791 | ; (delete-region (match-beginning 1) (match-end 1))))) |
| 3795 | 3792 | ||
| 3796 | (defun speedbar-extract-one-symbol (expr) | 3793 | (defun speedbar-extract-one-symbol (expr) |
| 3797 | "At point, return nil, or one alist in the form: (SYMBOL . POSITION) | 3794 | "At point, return nil, or one alist in the form (SYMBOL . POSITION) |
| 3798 | The line should contain output from etags. Parse the output using the | 3795 | The line should contain output from etags. Parse the output using the |
| 3799 | regular expression EXPR." | 3796 | regular expression EXPR." |
| 3800 | (let* ((sym (if (stringp expr) | 3797 | (let* ((sym (if (stringp expr) |
| @@ -3891,12 +3888,12 @@ regular expression EXPR." | |||
| 3891 | 3888 | ||
| 3892 | (defun speedbar-buffer-buttons (directory zero) | 3889 | (defun speedbar-buffer-buttons (directory zero) |
| 3893 | "Create speedbar buttons based on the buffers currently loaded. | 3890 | "Create speedbar buttons based on the buffers currently loaded. |
| 3894 | DIRECTORY is the directory to the currently active buffer, and ZERO is 0." | 3891 | DIRECTORY is the directory of the currently active buffer, and ZERO is 0." |
| 3895 | (speedbar-buffer-buttons-engine nil)) | 3892 | (speedbar-buffer-buttons-engine nil)) |
| 3896 | 3893 | ||
| 3897 | (defun speedbar-buffer-buttons-temp (directory zero) | 3894 | (defun speedbar-buffer-buttons-temp (directory zero) |
| 3898 | "Create speedbar buttons based on the buffers currently loaded. | 3895 | "Create speedbar buttons based on the buffers currently loaded. |
| 3899 | DIRECTORY is the directory to the currently active buffer, and ZERO is 0." | 3896 | DIRECTORY is the directory of the currently active buffer, and ZERO is 0." |
| 3900 | (speedbar-buffer-buttons-engine t)) | 3897 | (speedbar-buffer-buttons-engine t)) |
| 3901 | 3898 | ||
| 3902 | (defun speedbar-buffer-buttons-engine (temp) | 3899 | (defun speedbar-buffer-buttons-engine (temp) |
| @@ -3974,7 +3971,7 @@ Argument BUFFER is the buffer being tested." | |||
| 3974 | (or (buffer-file-name buffer) "<No file>")))))) | 3971 | (or (buffer-file-name buffer) "<No file>")))))) |
| 3975 | 3972 | ||
| 3976 | (defun speedbar-buffers-line-directory (&optional depth) | 3973 | (defun speedbar-buffers-line-directory (&optional depth) |
| 3977 | "Fetch the full directory to the file (buffer) specified on the current line. | 3974 | "Fetch the directory to the file (buffer) specified on the current line. |
| 3978 | Optional argument DEPTH specifies the current depth of the back search." | 3975 | Optional argument DEPTH specifies the current depth of the back search." |
| 3979 | (save-excursion | 3976 | (save-excursion |
| 3980 | (end-of-line) | 3977 | (end-of-line) |
| @@ -4061,11 +4058,11 @@ TEXT is the buffer's name, TOKEN and INDENT are unused." | |||
| 4061 | (remove-hook 'pre-command-hook 'speedbar-unhighlight-one-tag-line)) | 4058 | (remove-hook 'pre-command-hook 'speedbar-unhighlight-one-tag-line)) |
| 4062 | 4059 | ||
| 4063 | (defun speedbar-recenter-to-top () | 4060 | (defun speedbar-recenter-to-top () |
| 4064 | "Recenter the current buffer so POINT is on the top of the window." | 4061 | "Recenter the current buffer so point is on the top of the window." |
| 4065 | (recenter 1)) | 4062 | (recenter 1)) |
| 4066 | 4063 | ||
| 4067 | (defun speedbar-recenter () | 4064 | (defun speedbar-recenter () |
| 4068 | "Recenter the current buffer so POINT is in the center of the window." | 4065 | "Recenter the current buffer so point is in the center of the window." |
| 4069 | (recenter (/ (window-height (selected-window)) 2))) | 4066 | (recenter (/ (window-height (selected-window)) 2))) |
| 4070 | 4067 | ||
| 4071 | 4068 | ||
| @@ -4138,7 +4135,7 @@ TEXT is the buffer's name, TOKEN and INDENT are unused." | |||
| 4138 | (:background "white" | 4135 | (:background "white" |
| 4139 | :foreground "black" | 4136 | :foreground "black" |
| 4140 | :overline "black"))) | 4137 | :overline "black"))) |
| 4141 | "Face used for separator labes in a display." | 4138 | "Face used for separator labels in a display." |
| 4142 | :group 'speedbar-faces) | 4139 | :group 'speedbar-faces) |
| 4143 | 4140 | ||
| 4144 | ;; some edebug hooks | 4141 | ;; some edebug hooks |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 418d7c17dc2..5f930213767 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -758,7 +758,7 @@ space does not end a sentence, so don't break a line there." | |||
| 758 | If ARG is non-nil (interactively, with prefix argument), justify as well. | 758 | If ARG is non-nil (interactively, with prefix argument), justify as well. |
| 759 | If `sentence-end-double-space' is non-nil, then period followed by one | 759 | If `sentence-end-double-space' is non-nil, then period followed by one |
| 760 | space does not end a sentence, so don't break a line there. | 760 | space does not end a sentence, so don't break a line there. |
| 761 | the variable `fill-column' controls the width for filling. | 761 | The variable `fill-column' controls the width for filling. |
| 762 | 762 | ||
| 763 | If `fill-paragraph-function' is non-nil, we call it (passing our | 763 | If `fill-paragraph-function' is non-nil, we call it (passing our |
| 764 | argument to it), and if it returns non-nil, we simply return its value. | 764 | argument to it), and if it returns non-nil, we simply return its value. |
diff --git a/lisp/tool-bar.el b/lisp/tool-bar.el index fcaf9584fe5..e85955fb374 100644 --- a/lisp/tool-bar.el +++ b/lisp/tool-bar.el | |||
| @@ -99,7 +99,7 @@ PROPS are additional items to add to the menu item specification. See | |||
| 99 | Info node `(elisp)Tool Bar'. Items are added from left to right. | 99 | Info node `(elisp)Tool Bar'. Items are added from left to right. |
| 100 | 100 | ||
| 101 | ICON is the base name of a file containing the image to use. The | 101 | ICON is the base name of a file containing the image to use. The |
| 102 | function will first try to use low-color/ICON.xpm if display-color-cells | 102 | function will first try to use low-color/ICON.xpm if `display-color-cells' |
| 103 | is less or equal to 256, then ICON.xpm, then ICON.pbm, and finally | 103 | is less or equal to 256, then ICON.xpm, then ICON.pbm, and finally |
| 104 | ICON.xbm, using `find-image'. | 104 | ICON.xbm, using `find-image'. |
| 105 | 105 | ||