diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-05-01 18:26:28 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-05-01 18:26:28 +0000 |
commit | 5f7fc6cf566d7c04e885f297b902b4e046585fff (patch) | |
tree | 714146d40daf9032c8f1c3d9db1b17b5980d384f /lisp/subr.el | |
parent | 2bc9b0c750ce2397db2dbcb668ff0463f4554532 (diff) | |
download | emacs-5f7fc6cf566d7c04e885f297b902b4e046585fff.tar.gz |
(buffer-substring-no-properties): New function.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index b30fc965edb..f3ab57a4955 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -842,6 +842,12 @@ 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." ;; Quote everything except POSIX filename characters. |