diff options
| author | Stefan Monnier | 2001-05-02 13:41:46 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-05-02 13:41:46 +0000 |
| commit | b36581fba096e7ca83c21476e53a03a1faead9ad (patch) | |
| tree | 459143377873fff687b417e24b28b3a10e1fdf1e | |
| parent | a39202f60bf05f852f35f151d4357339c6ee5eaf (diff) | |
| download | emacs-b36581fba096e7ca83c21476e53a03a1faead9ad.tar.gz emacs-b36581fba096e7ca83c21476e53a03a1faead9ad.zip | |
(sh-prev-line): Look for sh-heredoc-face
rather than font-lock-string-face.
(sh-get-indent-info): Treat heredocs like strings.
| -rw-r--r-- | lisp/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/progmodes/sh-script.el | 13 |
2 files changed, 16 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 196b3927c88..39d03f53866 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,11 +1,17 @@ | |||
| 1 | 2001-05-02 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * progmodes/sh-script.el (sh-prev-line): Look for sh-heredoc-face | ||
| 4 | rather than font-lock-string-face. | ||
| 5 | (sh-get-indent-info): Treat heredocs like strings. | ||
| 6 | |||
| 1 | 2001-05-02 Gerd Moellmann <gerd@gnu.org> | 7 | 2001-05-02 Gerd Moellmann <gerd@gnu.org> |
| 2 | 8 | ||
| 3 | * textmodes/texinfmt.el (texinfo-format-parse-args): Don't | 9 | * textmodes/texinfmt.el (texinfo-format-parse-args): Don't consume |
| 4 | consume a newline following `}'. | 10 | a newline following `}'. |
| 5 | (texinfo-format-email): New function. | 11 | (texinfo-format-email): New function. |
| 6 | (toplevel): Use texinfo-format-email for @email. | 12 | (toplevel): Use texinfo-format-email for @email. |
| 7 | (texinfo-format-kbd-regexp, texinfo-format-kbd-end-regexp): Add | 13 | (texinfo-format-kbd-regexp, texinfo-format-kbd-end-regexp): |
| 8 | `display'. | 14 | Add `display'. |
| 9 | (texinfo-sort-region): Goto point-min before sorting. | 15 | (texinfo-sort-region): Goto point-min before sorting. |
| 10 | (texinfo-set): Remove leading white space from value. | 16 | (texinfo-set): Remove leading white space from value. |
| 11 | From yagi@is.titech.ac.jp. | 17 | From yagi@is.titech.ac.jp. |
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 358b1fd22a5..80d49ea5e43 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -1917,8 +1917,9 @@ STRING This is ignored for the purposes of calculating | |||
| 1917 | ;; Note: setting result to t means we are done and will return nil. | 1917 | ;; Note: setting result to t means we are done and will return nil. |
| 1918 | ;;(This function never returns just t.) | 1918 | ;;(This function never returns just t.) |
| 1919 | (cond | 1919 | (cond |
| 1920 | ((and (boundp 'font-lock-string-face) | 1920 | ((or (and (boundp 'font-lock-string-face) |
| 1921 | (equal (get-text-property (point) 'face) font-lock-string-face)) | 1921 | (eq (get-text-property (point) 'face) font-lock-string-face)) |
| 1922 | (eq (get-text-property (point) 'face) sh-heredoc-face)) | ||
| 1922 | (setq result t) | 1923 | (setq result t) |
| 1923 | (setq have-result t)) | 1924 | (setq have-result t)) |
| 1924 | ((looking-at "\\s-*#") ; was (equal this-kw "#") | 1925 | ((looking-at "\\s-*#") ; was (equal this-kw "#") |
| @@ -2115,9 +2116,8 @@ we go to the end of the previous line and do not check for continuations." | |||
| 2115 | (forward-comment (- (point-max))) | 2116 | (forward-comment (- (point-max))) |
| 2116 | (unless end (beginning-of-line)) | 2117 | (unless end (beginning-of-line)) |
| 2117 | (when (and (not (bobp)) | 2118 | (when (and (not (bobp)) |
| 2118 | (boundp 'font-lock-string-face) | ||
| 2119 | (equal (get-text-property (1- (point)) 'face) | 2119 | (equal (get-text-property (1- (point)) 'face) |
| 2120 | font-lock-string-face)) | 2120 | sh-heredoc-face)) |
| 2121 | (let ((p1 (previous-single-property-change (1- (point)) 'face))) | 2121 | (let ((p1 (previous-single-property-change (1- (point)) 'face))) |
| 2122 | (when p1 | 2122 | (when p1 |
| 2123 | (goto-char p1) | 2123 | (goto-char p1) |
| @@ -3088,8 +3088,7 @@ This is always added to the end of the buffer." | |||
| 3088 | 4 " ( " | 3088 | 4 " ( " |
| 3089 | 6 " )" | 3089 | 6 " )" |
| 3090 | 15 '< | 3090 | 15 '< |
| 3091 | 16 "end" | 3091 | 16 "end") |
| 3092 | ) | ||
| 3093 | (es eval sh-modify rc | 3092 | (es eval sh-modify rc |
| 3094 | 4 " = ") | 3093 | 4 " = ") |
| 3095 | (rc eval sh-modify sh | 3094 | (rc eval sh-modify sh |
| @@ -3350,7 +3349,7 @@ t means to return a list of all possible completions of STRING. | |||
| 3350 | 3 "while( " | 3349 | 3 "while( " |
| 3351 | 5 " )" | 3350 | 5 " )" |
| 3352 | 10 '< | 3351 | 10 '< |
| 3353 | 11 "end" ) | 3352 | 11 "end") |
| 3354 | (es eval sh-modify sh | 3353 | (es eval sh-modify sh |
| 3355 | 3 "while { " | 3354 | 3 "while { " |
| 3356 | 5 " } {" | 3355 | 5 " } {" |