aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorMiles Bader2005-07-14 08:02:00 +0000
committerMiles Bader2005-07-14 08:02:00 +0000
commitbacb9790f594207469f22ed9f3e8085ab76e5e2b (patch)
treeb1cee62715d6cd2797f3122e4f058d7bc18ceef6 /lisp/progmodes
parentd3e4babdd1267fb5690a17949196640a47c6f159 (diff)
parentead25b5cabbe092711864eae13a76437e6a65ce1 (diff)
downloademacs-bacb9790f594207469f22ed9f3e8085ab76e5e2b.tar.gz
emacs-bacb9790f594207469f22ed9f3e8085ab76e5e2b.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-69
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 474-484) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 88-91) - Merge from emacs--cvs-trunk--0 - Update FSF's address in GPL notices - Update from CVS
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el4
-rw-r--r--lisp/progmodes/gdb-ui.el13
-rw-r--r--lisp/progmodes/sh-script.el38
3 files changed, 36 insertions, 19 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 21e7c74e965..d3cbf142222 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -78,7 +78,7 @@
78 78
79;;;###autoload 79;;;###autoload
80(defcustom compilation-mode-hook nil 80(defcustom compilation-mode-hook nil
81 "*List of hook functions run by `compilation-mode' (see `run-hooks')." 81 "*List of hook functions run by `compilation-mode' (see `run-mode-hooks')."
82 :type 'hook 82 :type 'hook
83 :group 'compilation) 83 :group 'compilation)
84 84
@@ -1213,7 +1213,7 @@ from a different message."
1213move point to the error message line and type \\[compile-goto-error]. 1213move point to the error message line and type \\[compile-goto-error].
1214To kill the compilation, type \\[kill-compilation]. 1214To kill the compilation, type \\[kill-compilation].
1215 1215
1216Runs `compilation-mode-hook' with `run-hooks' (which see). 1216Runs `compilation-mode-hook' with `run-mode-hooks' (which see).
1217 1217
1218\\{compilation-mode-map}" 1218\\{compilation-mode-map}"
1219 (interactive) 1219 (interactive)
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 584b0ae8144..f4b6a705ea9 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -50,6 +50,19 @@
50;; still under development and is part of a process to migrate Emacs from 50;; still under development and is part of a process to migrate Emacs from
51;; annotations to GDB/MI. 51;; annotations to GDB/MI.
52;; 52;;
53;; Windows Platforms:
54;;
55;; If you are using Emacs and GDB on Windows you will need to flush the buffer
56;; explicitly in your program if you want timely display of I/O in Emacs.
57;; Alternatively you can make the output stream unbuffered, for example, by
58;; using a macro:
59;;
60;; #ifdef UNBUFFERED
61;; setvbuf(stdout,(char *)NULL, _IONBF,0);
62;; #endif
63;;
64;; and compiling with -DUNBUFFERED while debugging.
65;;
53;; Known Bugs: 66;; Known Bugs:
54;; 67;;
55;; TODO: 68;; TODO:
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index b561579b06d..f7f96130f39 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -2033,11 +2033,20 @@ STRING This is ignored for the purposes of calculating
2033 ;; Continuation lines are handled specially 2033 ;; Continuation lines are handled specially
2034 (if (sh-this-is-a-continuation) 2034 (if (sh-this-is-a-continuation)
2035 (progn 2035 (progn
2036 ;; We assume the line being continued is already 2036 (setq result
2037 ;; properly indented... 2037 (if (save-excursion
2038 ;; (setq prev-line-end (sh-prev-line)) 2038 (beginning-of-line)
2039 (setq align-point (sh-prev-line nil)) 2039 (not (memq (char-before (- (point) 2)) '(?\s ?\t))))
2040 (setq result (list '(+ sh-indent-for-continuation))) 2040 ;; By convention, if the continuation \ is not
2041 ;; preceded by a SPC or a TAB it means that the line
2042 ;; is cut at a place where spaces cannot be freely
2043 ;; added/removed. I.e. do not indent the line.
2044 (list '(= nil))
2045 ;; We assume the line being continued is already
2046 ;; properly indented...
2047 ;; (setq prev-line-end (sh-prev-line))
2048 (setq align-point (sh-prev-line nil))
2049 (list '(+ sh-indent-for-continuation))))
2041 (setq have-result t)) 2050 (setq have-result t))
2042 (beginning-of-line) 2051 (beginning-of-line)
2043 (skip-chars-forward " \t") 2052 (skip-chars-forward " \t")
@@ -2130,10 +2139,9 @@ STRING This is ignored for the purposes of calculating
2130 (sh-debug "result is now: %s" result) 2139 (sh-debug "result is now: %s" result)
2131 2140
2132 (or result 2141 (or result
2133 (if prev-line-end 2142 (setq result (list (if prev-line-end
2134 (setq result (list (list t prev-line-end))) 2143 (list t prev-line-end)
2135 (setq result (list (list '= 'sh-first-lines-indent))) 2144 (list '= 'sh-first-lines-indent)))))
2136 ))
2137 2145
2138 (if (eq result t) 2146 (if (eq result t)
2139 (setq result nil)) 2147 (setq result nil))
@@ -2695,11 +2703,9 @@ unless optional argument ARG (the prefix when interactive) is non-nil."
2695 2703
2696(defun sh-mark-init (buffer) 2704(defun sh-mark-init (buffer)
2697 "Initialize a BUFFER to be used by `sh-mark-line'." 2705 "Initialize a BUFFER to be used by `sh-mark-line'."
2698 (save-excursion 2706 (with-current-buffer (get-buffer-create buffer)
2699 (set-buffer (get-buffer-create buffer))
2700 (erase-buffer) 2707 (erase-buffer)
2701 (occur-mode) 2708 (occur-mode)))
2702 ))
2703 2709
2704 2710
2705(defun sh-mark-line (message point buffer &optional add-linenum occur-point) 2711(defun sh-mark-line (message point buffer &optional add-linenum occur-point)
@@ -2972,8 +2978,7 @@ This command can often take a long time to run."
2972 (let ((var (car learned-var))) 2978 (let ((var (car learned-var)))
2973 (sh-mark-line (format " %s %s" var (symbol-value var)) 2979 (sh-mark-line (format " %s %s" var (symbol-value var))
2974 (nth 2 learned-var) out-buffer))) 2980 (nth 2 learned-var) out-buffer)))
2975 (save-excursion 2981 (with-current-buffer out-buffer
2976 (set-buffer out-buffer)
2977 (goto-char (point-min)) 2982 (goto-char (point-min))
2978 (insert 2983 (insert
2979 (format "Indentation values for buffer %s.\n" name) 2984 (format "Indentation values for buffer %s.\n" name)
@@ -3244,8 +3249,7 @@ nil means to return the best completion of STRING, or nil if there is none.
3244t means to return a list of all possible completions of STRING. 3249t means to return a list of all possible completions of STRING.
3245`lambda' means to return t if STRING is a valid completion as it stands." 3250`lambda' means to return t if STRING is a valid completion as it stands."
3246 (let ((sh-shell-variables 3251 (let ((sh-shell-variables
3247 (save-excursion 3252 (with-current-buffer sh-add-buffer
3248 (set-buffer sh-add-buffer)
3249 (or sh-shell-variables-initialized 3253 (or sh-shell-variables-initialized
3250 (sh-shell-initialize-variables)) 3254 (sh-shell-initialize-variables))
3251 (nconc (mapcar (lambda (var) 3255 (nconc (mapcar (lambda (var)