diff options
| author | Karl Heuer | 1995-12-21 18:11:20 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-12-21 18:11:20 +0000 |
| commit | 9f0b1f0976c0fbc8b85ba4c8746c7b738059bfd6 (patch) | |
| tree | 94a24076b16c0ded8acdaade3b6b1f5e6c0d1756 | |
| parent | cdee38c3676cf7986bc5749e3a274d7be380e91e (diff) | |
| download | emacs-9f0b1f0976c0fbc8b85ba4c8746c7b738059bfd6.tar.gz emacs-9f0b1f0976c0fbc8b85ba4c8746c7b738059bfd6.zip | |
(add-to-list): Doc fix.
(buffer-substring-no-properties): Function deleted.
| -rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 38c8376e8e5..f73a29ad11b 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -565,6 +565,7 @@ To make a hook variable buffer-local, always use | |||
| 565 | 565 | ||
| 566 | (defun add-to-list (list-var element) | 566 | (defun add-to-list (list-var element) |
| 567 | "Add to the value of LIST-VAR the element ELEMENT if it isn't there yet. | 567 | "Add to the value of LIST-VAR the element ELEMENT if it isn't there yet. |
| 568 | The test for presence of ELEMENT is done with `equal'. | ||
| 568 | If you want to use `add-to-list' on a variable that is not defined | 569 | If you want to use `add-to-list' on a variable that is not defined |
| 569 | until a certain package is loaded, you should put the call to `add-to-list' | 570 | until a certain package is loaded, you should put the call to `add-to-list' |
| 570 | into a hook function that will be run only after loading the package. | 571 | into a hook function that will be run only after loading the package. |
| @@ -749,12 +750,6 @@ STRING should be given if the last search was by `string-match' on STRING." | |||
| 749 | (substring string (match-beginning num) (match-end num)) | 750 | (substring string (match-beginning num) (match-end num)) |
| 750 | (buffer-substring (match-beginning num) (match-end num))))) | 751 | (buffer-substring (match-beginning num) (match-end num))))) |
| 751 | 752 | ||
| 752 | (defun buffer-substring-no-properties (beg end) | ||
| 753 | "Return the text from BEG to END, without text properties, as a string." | ||
| 754 | (let ((string (buffer-substring beg end))) | ||
| 755 | (set-text-properties 0 (length string) nil string) | ||
| 756 | string)) | ||
| 757 | |||
| 758 | (defun shell-quote-argument (argument) | 753 | (defun shell-quote-argument (argument) |
| 759 | "Quote an argument for passing as argument to an inferior shell." | 754 | "Quote an argument for passing as argument to an inferior shell." |
| 760 | (if (eq system-type 'ms-dos) | 755 | (if (eq system-type 'ms-dos) |