changeset 13653:acde2327c000

(build-mail-aliases): Use buffer-substring-no-properties not buffer-substring.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Nov 1995 18:21:17 +0000
parents 0923c642e324
children 645e14e39a2b
files lisp/mail/mailalias.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/mailalias.el	Sat Nov 25 05:49:37 1995 +0000
+++ b/lisp/mail/mailalias.el	Sat Nov 25 18:21:17 1995 +0000
@@ -120,7 +120,8 @@
 	    (cond ((get-file-buffer file)
 		   (insert (save-excursion
 			     (set-buffer (get-file-buffer file))
-			     (buffer-substring (point-min) (point-max)))))
+			     (buffer-substring-no-properties
+			      (point-min) (point-max)))))
 		  ((file-exists-p file) (insert-file-contents file))
 		  ((file-exists-p (setq file (concat "~/" file)))
 		   (insert-file-contents file))
@@ -139,8 +140,8 @@
 	    ;; handle `source' directives -- Eddy/1994/May/25
 	    (cond ((re-search-forward "^source[ \t]+" nil t)
 		   (re-search-forward "\\S-+")
-		   (setq file
-			 (buffer-substring (match-beginning 0) (match-end 0)))
+		   (setq file (buffer-substring-no-properties
+			       (match-beginning 0) (match-end 0)))
 		   (beginning-of-line)
 		   (insert "# ") ; to ensure we don't re-process this file
 		   (beginning-of-line))
@@ -153,7 +154,7 @@
 	      (end-of-line)
 	      (define-mail-alias
 		name
-		(buffer-substring start (point))
+		(buffer-substring-no-properties start (point))
 		t)))
 	  mail-aliases)
       (if buffer (kill-buffer buffer))