Mercurial > emacs
comparison lisp/ps-print.el @ 17588:0054114145ca
change all buffer-substring to buffer-substring-no-properties.
author | Simon Marshall <simon@gnu.org> |
---|---|
date | Mon, 28 Apr 1997 11:25:26 +0000 |
parents | 03d612dba255 |
children | 59c4c8125906 |
comparison
equal
deleted
inserted
replaced
17587:fd8de684f5c7 | 17588:0054114145ca |
---|---|
2333 (cons (+ from avail) ps-width-remaining)))) | 2333 (cons (+ from avail) ps-width-remaining)))) |
2334 | 2334 |
2335 (defun ps-basic-plot-string (from to &optional bg-color) | 2335 (defun ps-basic-plot-string (from to &optional bg-color) |
2336 (let* ((wrappoint (ps-find-wrappoint from to ps-avg-char-width)) | 2336 (let* ((wrappoint (ps-find-wrappoint from to ps-avg-char-width)) |
2337 (to (car wrappoint)) | 2337 (to (car wrappoint)) |
2338 (string (buffer-substring from to))) | 2338 (string (buffer-substring-no-properties from to))) |
2339 (ps-output-string string) | 2339 (ps-output-string string) |
2340 (ps-output " S\n") | 2340 (ps-output " S\n") |
2341 wrappoint)) | 2341 wrappoint)) |
2342 | 2342 |
2343 (defun ps-basic-plot-whitespace (from to &optional bg-color) | 2343 (defun ps-basic-plot-whitespace (from to &optional bg-color) |
2856 ;; placed in ps-left-headers. | 2856 ;; placed in ps-left-headers. |
2857 (defun ps-article-subject () | 2857 (defun ps-article-subject () |
2858 (save-excursion | 2858 (save-excursion |
2859 (goto-char (point-min)) | 2859 (goto-char (point-min)) |
2860 (if (re-search-forward "^Subject:[ \t]+\\(.*\\)$" nil t) | 2860 (if (re-search-forward "^Subject:[ \t]+\\(.*\\)$" nil t) |
2861 (buffer-substring (match-beginning 1) (match-end 1)) | 2861 (buffer-substring-no-properties (match-beginning 1) (match-end 1)) |
2862 "Subject ???"))) | 2862 "Subject ???"))) |
2863 | 2863 |
2864 ;; Look in an article or mail message for the From: line. Sorta-kinda | 2864 ;; Look in an article or mail message for the From: line. Sorta-kinda |
2865 ;; understands RFC-822 addresses and can pull the real name out where | 2865 ;; understands RFC-822 addresses and can pull the real name out where |
2866 ;; it's provided. To be placed in ps-left-headers. | 2866 ;; it's provided. To be placed in ps-left-headers. |
2867 (defun ps-article-author () | 2867 (defun ps-article-author () |
2868 (save-excursion | 2868 (save-excursion |
2869 (goto-char (point-min)) | 2869 (goto-char (point-min)) |
2870 (if (re-search-forward "^From:[ \t]+\\(.*\\)$" nil t) | 2870 (if (re-search-forward "^From:[ \t]+\\(.*\\)$" nil t) |
2871 (let ((fromstring (buffer-substring (match-beginning 1) (match-end 1)))) | 2871 (let ((fromstring (buffer-substring-no-properties (match-beginning 1) (match-end 1)))) |
2872 (cond | 2872 (cond |
2873 | 2873 |
2874 ;; Try first to match addresses that look like | 2874 ;; Try first to match addresses that look like |
2875 ;; thompson@wg2.waii.com (Jim Thompson) | 2875 ;; thompson@wg2.waii.com (Jim Thompson) |
2876 ((string-match ".*[ \t]+(\\(.*\\))" fromstring) | 2876 ((string-match ".*[ \t]+(\\(.*\\))" fromstring) |
2939 ;; placed in ps-left-headers. | 2939 ;; placed in ps-left-headers. |
2940 (defun ps-info-file () | 2940 (defun ps-info-file () |
2941 (save-excursion | 2941 (save-excursion |
2942 (goto-char (point-min)) | 2942 (goto-char (point-min)) |
2943 (if (re-search-forward "File:[ \t]+\\([^, \t\n]*\\)" nil t) | 2943 (if (re-search-forward "File:[ \t]+\\([^, \t\n]*\\)" nil t) |
2944 (buffer-substring (match-beginning 1) (match-end 1)) | 2944 (buffer-substring-no-properties (match-beginning 1) (match-end 1)) |
2945 "File ???"))) | 2945 "File ???"))) |
2946 | 2946 |
2947 ;; Look in an article or mail message for the Subject: line. To be | 2947 ;; Look in an article or mail message for the Subject: line. To be |
2948 ;; placed in ps-left-headers. | 2948 ;; placed in ps-left-headers. |
2949 (defun ps-info-node () | 2949 (defun ps-info-node () |
2950 (save-excursion | 2950 (save-excursion |
2951 (goto-char (point-min)) | 2951 (goto-char (point-min)) |
2952 (if (re-search-forward "Node:[ \t]+\\([^,\t\n]*\\)" nil t) | 2952 (if (re-search-forward "Node:[ \t]+\\([^,\t\n]*\\)" nil t) |
2953 (buffer-substring (match-beginning 1) (match-end 1)) | 2953 (buffer-substring-no-properties (match-beginning 1) (match-end 1)) |
2954 "Node ???"))) | 2954 "Node ???"))) |
2955 | 2955 |
2956 (defun ps-info-mode-hook () | 2956 (defun ps-info-mode-hook () |
2957 (setq ps-left-header | 2957 (setq ps-left-header |
2958 ;; The left headers will display the node name and file name. | 2958 ;; The left headers will display the node name and file name. |