diff options
| author | Deepak Goel | 2005-09-18 12:31:28 +0000 |
|---|---|---|
| committer | Deepak Goel | 2005-09-18 12:31:28 +0000 |
| commit | 29a4e67d88be7ea5b8ba6a2164c2dc9771bcd7ab (patch) | |
| tree | b0b5281e027e49f576c9bfcff58da0d4e7025fed /lisp/progmodes/sh-script.el | |
| parent | 5673af85e4a427c550b5a85825340250bfa36c9c (diff) | |
| download | emacs-29a4e67d88be7ea5b8ba6a2164c2dc9771bcd7ab.tar.gz emacs-29a4e67d88be7ea5b8ba6a2164c2dc9771bcd7ab.zip | |
Message format fixes, commit no. 3
Diffstat (limited to 'lisp/progmodes/sh-script.el')
| -rw-r--r-- | lisp/progmodes/sh-script.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index e37390f5b80..fc3f0beee04 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -2572,9 +2572,9 @@ If INFO is supplied it is used, else it is calculated from current line." | |||
| 2572 | (if (numberp blinkpos) | 2572 | (if (numberp blinkpos) |
| 2573 | (save-excursion | 2573 | (save-excursion |
| 2574 | (goto-char blinkpos) | 2574 | (goto-char blinkpos) |
| 2575 | (message msg) | 2575 | (if msg (message "%s" msg) (message nil)) |
| 2576 | (sit-for blink-matching-delay)) | 2576 | (sit-for blink-matching-delay)) |
| 2577 | (message msg))) | 2577 | (if message (message "%s" msg) (message nil)))) |
| 2578 | 2578 | ||
| 2579 | (defun sh-show-indent (arg) | 2579 | (defun sh-show-indent (arg) |
| 2580 | "Show the how the currently line would be indented. | 2580 | "Show the how the currently line would be indented. |
| @@ -2591,7 +2591,7 @@ we are indenting relative to, if applicable." | |||
| 2591 | (curr-indent (current-indentation)) | 2591 | (curr-indent (current-indentation)) |
| 2592 | val msg) | 2592 | val msg) |
| 2593 | (if (stringp var) | 2593 | (if (stringp var) |
| 2594 | (message (setq msg var)) | 2594 | (message "%s" (setq msg var)) |
| 2595 | (setq val (sh-calculate-indent info)) | 2595 | (setq val (sh-calculate-indent info)) |
| 2596 | 2596 | ||
| 2597 | (if (eq curr-indent val) | 2597 | (if (eq curr-indent val) |
| @@ -2610,8 +2610,8 @@ we are indenting relative to, if applicable." | |||
| 2610 | (if (and info (listp (car info)) | 2610 | (if (and info (listp (car info)) |
| 2611 | (eq (car (car info)) t)) | 2611 | (eq (car (car info)) t)) |
| 2612 | (sh-blink (nth 1 (car info)) msg) | 2612 | (sh-blink (nth 1 (car info)) msg) |
| 2613 | (message msg))) | 2613 | (message "%s" msg))) |
| 2614 | (message msg)) | 2614 | (message "%s" msg)) |
| 2615 | )) | 2615 | )) |
| 2616 | 2616 | ||
| 2617 | (defun sh-set-indent () | 2617 | (defun sh-set-indent () |
| @@ -2624,7 +2624,7 @@ for a new value for it." | |||
| 2624 | (var (sh-get-indent-var-for-line info)) | 2624 | (var (sh-get-indent-var-for-line info)) |
| 2625 | val old-val indent-val) | 2625 | val old-val indent-val) |
| 2626 | (if (stringp var) | 2626 | (if (stringp var) |
| 2627 | (message (format "Cannot set indent - %s" var)) | 2627 | (message "Cannot set indent - %s" var) |
| 2628 | (setq old-val (symbol-value var)) | 2628 | (setq old-val (symbol-value var)) |
| 2629 | (setq val (sh-read-variable var)) | 2629 | (setq val (sh-read-variable var)) |
| 2630 | (condition-case nil | 2630 | (condition-case nil |
| @@ -2675,7 +2675,7 @@ unless optional argument ARG (the prefix when interactive) is non-nil." | |||
| 2675 | (curr-indent (current-indentation))) | 2675 | (curr-indent (current-indentation))) |
| 2676 | (cond | 2676 | (cond |
| 2677 | ((stringp var) | 2677 | ((stringp var) |
| 2678 | (message (format "Cannot learn line - %s" var))) | 2678 | (message "Cannot learn line - %s" var)) |
| 2679 | ((eq var 'sh-indent-comment) | 2679 | ((eq var 'sh-indent-comment) |
| 2680 | ;; This is arbitrary... | 2680 | ;; This is arbitrary... |
| 2681 | ;; - if curr-indent is 0, set to curr-indent | 2681 | ;; - if curr-indent is 0, set to curr-indent |