From 9f0b1f0976c0fbc8b85ba4c8746c7b738059bfd6 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 21 Dec 1995 18:11:20 +0000 Subject: [PATCH] (add-to-list): Doc fix. (buffer-substring-no-properties): Function deleted. --- lisp/subr.el | 7 +------ 1 file changed, 1 insertion(+), 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 (defun add-to-list (list-var element) "Add to the value of LIST-VAR the element ELEMENT if it isn't there yet. +The test for presence of ELEMENT is done with `equal'. If you want to use `add-to-list' on a variable that is not defined until a certain package is loaded, you should put the call to `add-to-list' 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." (substring string (match-beginning num) (match-end num)) (buffer-substring (match-beginning num) (match-end num))))) -(defun buffer-substring-no-properties (beg end) - "Return the text from BEG to END, without text properties, as a string." - (let ((string (buffer-substring beg end))) - (set-text-properties 0 (length string) nil string) - string)) - (defun shell-quote-argument (argument) "Quote an argument for passing as argument to an inferior shell." (if (eq system-type 'ms-dos) -- 2.39.2